-
Notifications
You must be signed in to change notification settings - Fork 236
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
podman: experiment with "fallback to normal bootstrap" #1200
podman: experiment with "fallback to normal bootstrap" #1200
Conversation
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.
+1
cb74219
to
d6f9dc4
Compare
7839ed8
to
e1ad979
Compare
@xsuchy can you please re-review? I've also added retry-mechanism. |
e1ad979
to
757b8ad
Compare
try: | ||
yield | ||
except BootstrapError as exc: | ||
if not self.config["image_fallback"]: |
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.
image_fallback or bootstrap_image_fallback?
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.
Ahh, in bootstrap it is without the prefix. Ignore my 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.
+1
757b8ad
to
d19c01c
Compare
Thank you for taking a look! |
When Podman isn't installed, or the image can not be downloaded, or the image isn't compatible with host arch - Mock newly falls-back to a normal 'dnf --installroot' when bootstrap_image_fallback=True (default). Closes: rpm-software-management#1200
Move podman_check_native_image_architecture() to the later stage, so we don't retry upon architecture mismatch. Relates: containers/podman#19770 Closes: rpm-software-management#1200
d19c01c
to
ee8f26f
Compare
rebased |
When Podman isn't installed, or the image can not be downloaded, or the image isn't compatible with host arch - Mock newly falls-back to a normal 'dnf --installroot' when bootstrap_image_fallback=True (default). Closes: rpm-software-management#1200
Move podman_check_native_image_architecture() to the later stage, so we don't retry upon architecture mismatch. Relates: containers/podman#19770 Closes: rpm-software-management#1200
This message may be raised when /bin/podman fails for any reason, not just when that image arch != host arch.
ee8f26f
to
a056d52
Compare
Sorry for yet another rebase, I believe the code is now a bit clearer. |
When Podman isn't installed, or the image can not be downloaded, or the image isn't compatible with host arch - Mock newly falls-back to a normal 'dnf --installroot' when bootstrap_image_fallback=True (default). Closes: #1200
Move podman_check_native_image_architecture() to the later stage, so we don't retry upon architecture mismatch. Relates: containers/podman#19770 Closes: #1200
Needs to be applied on top of #1199, if at all.