Page MenuHomeVyOS Platform

'add system image' with URL fails
Resolved (N/A)PublicBUG

Description

frebib@zeus:~$ add system image https://github.com/vyos/vyos-rolling-nightly-builds/releases/download/1.5-rolling-202401250024/vyos-1.5-rolling-202401250024-amd64.iso
https://github.com/vyos/vyos-rolling-nightly-builds/releases/download/1.5-rolling-202401250024/vyos-1.5-rolling-202401250024-amd64.isoRedirecting to https://objects.githubusercontent.com/github-production-release-asset-2e65be/674742659/f85ebba6-8756-4df6-a3c2-241d2e44ef5a?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAVCODYLSA53PQK4ZA%2F20240126%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240126T000422Z&X-Amz-Expires=300&X-Amz-Signature=1ad8cf1526f96dd0735fc398801bc403e394d7013dd65bd39bf135648afa6c79&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=674742659&response-content-disposition=attachment%3B%20filename%3Dvyos-1.5-rolling-202401250024-amd64.iso&response-content-type=application%2Foctet-stream
The file is 445.000 MiB.
[#########################################################################################################] 100%
Validating signature
Signature is valid
Validating image checksums
What would you like to name this image? (Default: 1.5-rolling-202401250024)
Would you like to set the new image as the default one for boot? [Y/n]
An active configuration was found. Would you like to copy it to the new image? [Y/n]
Copying configuration directory

Would you like to copy SSH host keys? [Y/n] Copying SSH host keys
Copying system image files
Cleaning up
Unmounting target filesystems
Removing temporary files
Whooops: [Errno 2] No such file or directory: '/usr/lib/live/mount/persistence/boot/https://github.com/vyos/vyos-rolling-nightly-builds/releases/download/1.5-rolling-202401250024/vyos-1.5-rolling-202401250024-amd64.iso/https://github.com/vyos/vyos-rolling-nightly-builds/releases/download/1.5-rolling-202401250024/vyos-1.5-rolling-202401250024-amd64.iso.squashfs'
frebib@zeus:~$ show system image
Name                      Default boot    Running
------------------------  --------------  ---------
1.5-rolling-202401200023  Yes             Yes
1.4-rolling-202308261721
1.4-rolling-202308261551

Details

Difficulty level
Unknown (require assessment)
Version
1.5-rolling-202401200023
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Bug (incorrect behavior)

Event Timeline

frebib created this object in space S1 VyOS Public.
Viacheslav changed the subtype of this task from "Task" to "Bug".Jan 26 2024, 1:32 AM
jestabro raised the priority of this task from Low to High.
jestabro added a subscriber: jestabro.

That is an odd one: I am not able to reproduce with those 1.5-rolling versions, but will raise priority for investigation.

vyos@vyos:~$ add system image https://github.com/vyos/vyos-rolling-nightly-builds/releases/download/1.5-rolling-202401250024/vyos-1.5-rolling-202401250024-amd64.iso
Redirecting to https://objects.githubusercontent.com/github-production-release-asset-2e65be/674742659/f85ebba6-8756-4df6-a3c2-241d2e44ef5a?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAVCODYLSA53PQK4ZA%2F20240126%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240126T024708Z&X-Amz-Expires=300&X-Amz-Signature=d36c1116510bdb7f29600be1c16edb3890808c829c135b568da7c50a7bb13a78&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=674742659&response-content-disposition=attachment%3B%20filename%3Dvyos-1.5-rolling-202401250024-amd64.iso&response-content-type=application%2Foctet-stream
The file is 445.000 MiB.
[###############################################################################################] 100%
Validating signature
Signature is valid
Validating image checksums
What would you like to name this image? (Default: 1.5-rolling-202401250024) 
Would you like to set the new image as the default one for boot? [Y/n] 
An active configuration was found. Would you like to copy it to the new image? [Y/n] 
Copying configuration directory
Would you like to copy SSH host keys? [Y/n] 
Copying SSH host keys
Copying system image files
Cleaning up
Unmounting target filesystems
Removing temporary files
vyos@vyos:~$ show system image
Name                      Default boot    Running
------------------------  --------------  ---------
1.5-rolling-202401250024  Yes
1.5-rolling-202401200023                  Yes
jestabro lowered the priority of this task from High to Low.Jan 26 2024, 3:10 AM

Okay, I can reproduce the error with an errant copy-paste; not sure how that happened in the reported lines, but if I paste the url as the image name, the resulting error matches. I will leave open for the submitter's response/comments, but otherwise close as 'invalid'.

vyos@vyos:~$ add system image https://github.com/vyos/vyos-rolling-nightly-builds/releases/download/1.5-rolling-202401250024/vyos-1.5-rolling-202401250024-amd64.iso
Redirecting to https://objects.githubusercontent.com/github-production-release-asset-2e65be/674742659/f85ebba6-8756-4df6-a3c2-241d2e44ef5a?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAVCODYLSA53PQK4ZA%2F20240126%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240126T030551Z&X-Amz-Expires=300&X-Amz-Signature=86bf09b11dd10b4a12ad3d90a38a350b85c65836eb86655a7a897dcb5765a00f&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=674742659&response-content-disposition=attachment%3B%20filename%3Dvyos-1.5-rolling-202401250024-amd64.iso&response-content-type=application%2Foctet-stream
The file is 445.000 MiB.
[###############################################################################################] 100%
Validating signature
Signature is valid
Validating image checksums
What would you like to name this image? (Default: 1.5-rolling-202401250024) https://github.com/vyos/vyos-rolling-nightly-builds/releases/download/1.5-rolling-202401250024/vyos-1.5-rolling-202401250024-amd64.iso
Would you like to set the new image as the default one for boot? [Y/n] 
An active configuration was found. Would you like to copy it to the new image? [Y/n] 
Copying configuration directory
Would you like to copy SSH host keys? [Y/n] 
Copying SSH host keys
Copying system image files
Whooops: [Errno 2] No such file or directory: '/usr/lib/live/mount/persistence/boot/https://github.com/vyos/vyos-rolling-nightly-builds/releases/download/1.5-rolling-202401250024/vyos-1.5-rolling-202401250024-amd64.iso/https://github.com/vyos/vyos-rolling-nightly-builds/releases/download/1.5-rolling-202401250024/vyos-1.5-rolling-202401250024-amd64.iso.squashfs'

Sub-task merged and backported; I will close this as 'Resolved N/A', as described above.