-
Notifications
You must be signed in to change notification settings - Fork 6
air gapped update #285
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
base: master
Are you sure you want to change the base?
air gapped update #285
Conversation
827d442 to
cd61472
Compare
7e5b59e to
80cf940
Compare
69cc887 to
6383196
Compare
6383196 to
6adcc80
Compare
6adcc80 to
33db5b4
Compare
Signed-off-by: Gaëtan Lehmann <[email protected]>
33db5b4 to
b919018
Compare
| def test_air_gapped_update(host: Host): | ||
| # get the required files and install the offline repositories | ||
| air_gapped_download( | ||
| 'https://raw.githubusercontent.com/xcp-ng/xcp/refs/heads/master/scripts/setup_offline_xcpng_repos', host |
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 would create a variable or env var the can override the location, using floating master as default
but I believe a pinned version would make the test more reproductible
|
|
||
| def air_gapped_download(url: str, host: Host): | ||
| logging.debug(f"downloading {url}") | ||
| tmppath = f'/tmp/{os.path.basename(url)}' |
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.
would use secure tmp directory to avoid possible overlap
| # Requirements: | ||
| # - a host running XCP-ng 8.3. | ||
| # - with no access to internet | ||
| # - TODO: a snapshot to restore the host to a state without the offline repositories, to integrate when #226 |
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.
This one #226 or something else ?
If yes then may TODO updated then
rzr
left a comment
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.
May TODO updated before merge, else LGTM few suggested added feel free to take into account
The test has to be run on an installed xcp-ng host for now.
It should be integrated with #226 code once its merged.