-
Notifications
You must be signed in to change notification settings - Fork 345
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
op_mode: T6767: Check latest image version in VRF context for "add system image latest vrf <name>" #4225
Conversation
👍 |
As mentioned on Slack, this should be rebased over current and pushed to sync with the changes in A local build of this PR confirms a successful build. |
@Mergifyio rebase |
I have not found a 'mergifyio rebase' to suffice in the past; this will likely need an explicit rebase and force push to the branch. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if it's a good idea to show REMOTE_USERNAME and REMOTE_PASSWORD on the CLI on error
The image cannot be fetched from: https://github.com/vyos/vyos-nightly-build/releases/download/1.5-rolling-202412100007/vyos-1.5-rolling-202412100007-generic-amd64.iso [Errno 1] failed to run command: REMOTE_USERNAME= REMOTE_PASSWORD= ip vrf exec red /usr/libexec/vyos/simple-download.py --local-file /tmp/vyos_installation.iso --remote-path https://github.com/vyos/vyos-nightly-build/releases/download/1.5-rolling-202412100007/vyos-1.5-rolling-202412100007-generic-amd64.iso
returned: HTTPSConnectionPool(host='github.com', port=443): Max retries exceeded with url: /vyos/vyos-nightly-build/releases/download/1.5-rolling-202412100007/vyos-1.5-rolling-202412100007-generic-amd64.iso (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fe011080a90>: Failed to establish a new connection: [Errno 16] Device or resource busy'))
…stem image latest vrf <name>"
CI integration ❌ failed! Details
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree that this solution fixes the immediate problem. I still think we can do it better, though.
First, do we really need to execute the update check script as a subprocess? I think we could import it as a Python module and call a function from it instead.
Second, executing something in a VRF context is a need common enough that I believe we should add a named argument (vrf
) to everything in vyos.utils.subprocess
. That part should be a separate task, though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't mind merging it right now since it solves a problem but we need to address the deeper issue of VRF-awareness nonetheless.
Change Summary
Types of changes
Related Task(s)
Related PR(s)
Component(s) name
op mode
Proposed changes
How to test
Smoketest result
Checklist: