-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
skip image download if same image is running #397
Comments
@glimchb I will start working on this feature |
assigned to @h0lyalg0rithm |
@h0lyalg0rithm note, this is not just about correct image is already downloaded, but also maybe it is already installed and running as well... also skip that in this case.... we also might introduce a new flag |
@glimchb At the moment I think there is no way to know if image is running. |
@h0lyalg0rithm , the running image version is available via sztp/sztp-agent/pkg/secureagent/utils.go Lines 45 to 51 in aa72379
|
@glimchb .The JSONContent field has a stringified version of this information but its not stored anywhere, should it be stored somewhere before and then compared against the bootimage. |
boot image is your ISO image you will eventually run... for example Ubuntu22.04 from https://releases.ubuntu.com/jammy/ubuntu-22.04.4-live-server-amd64.iso so you download this image, then you install it using post-config script and then you reboot... not you are running this image... no need to store anything anywhere in my opinion... |
@glimchb Apologize if I am asking similar questions again. But when the machine reboots we would get a new jsonContent information when a new agent is instantiated. sztp/sztp-agent/pkg/secureagent/agent.go Line 99 in aa72379
How exactly should I do know if its a new image then? |
the correct flow is:
today in the code the image is
always
being downloadedsee
sztp/sztp-agent/pkg/secureagent/daemon.go
Line 55 in 2b14bd2
The text was updated successfully, but these errors were encountered: