-
Notifications
You must be signed in to change notification settings - Fork 144
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
Azure hybrid image handling #591
Conversation
Thank you for contributing to the Leapp project!Please note that every PR needs to comply with the If you want to re-run tests or request review, you can use following commands as a comment:
Note: In case there are problems with tests hanging or pending for a long time, please consider rerunning the CI by commenting leapp-ci build. |
leapp-ci build |
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.
Mostly just suggestions and tips. But I guess the stuff around the HybridImageDetected
model should really be changed.
repos/system_upgrade/el7toel8/actors/cloud/checkhybridimage/actor.py
Outdated
Show resolved
Hide resolved
repos/system_upgrade/el7toel8/actors/cloud/checkhybridimage/libraries/checkhybridimage.py
Outdated
Show resolved
Hide resolved
repos/system_upgrade/el7toel8/actors/cloud/checkhybridimage/libraries/checkhybridimage.py
Outdated
Show resolved
Hide resolved
repos/system_upgrade/el7toel8/actors/cloud/checkhybridimage/tests/test_checkhybridimage.py
Outdated
Show resolved
Hide resolved
repos/system_upgrade/el7toel8/actors/cloud/grubenvtofile/actor.py
Outdated
Show resolved
Hide resolved
repos/system_upgrade/el7toel8/actors/cloud/grubenvtofile/libraries/grubenvtofile.py
Outdated
Show resolved
Hide resolved
repos/system_upgrade/el7toel8/actors/cloud/grubenvtofile/actor.py
Outdated
Show resolved
Hide resolved
8b78e4c
to
ddef350
Compare
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.
Just fix docstrings (title\n\nbody
) and it's ok for me.
grubenv_msg = next(self.consume(HybridImage), None) | ||
|
||
if grubenv_msg and grubenv_msg.detected: |
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.
What about this (↓)? Anyway, not blocker. I am ok with the current solution as well.
grubenv_msg = next(self.consume(HybridImage), None) | |
if grubenv_msg and grubenv_msg.detected: | |
grubenv_msg = next(self.consume(HybridImage), HybridImage()) | |
if grubenv_msg.detected: |
Detect Azure hybrid (BIOS/EFI) image and convert /boot/grub2/grubenv symling pointing to /boot/efi/EFI/redhat/grubenv to a normal file as GRUB cannot read the symlink if it is pointing to different partition (in case of BIOS). Consequently, we do not need the "KernelCmdlineArg" with "root_delay" anymore.
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.
lgtm. keeping testing on other guys
Hi, tested using the playbook on all 4 variations (gen1/gen2 x rhui/byos) and it upgrades OK. |
## Packaging - Add BuildRequires on python2-setuptools - Add new dependency on python2-requests - Add unversioned dependency on leapp-repository and provide the leapp-framework capability in python2-leapp (see docs about "new dependency mechanism") (oamg#591) - Move all leapp and snactor files into related rpms instead of python?-leapp (oamg#591) - Remove dependency on Jinja2 ## Framework ### Fixes - Fix json export capabilities using serialization (oamg#598) ### Enhancements - Add the DESKTOP tag for the leapp report (oamg#612) - Dialogs are non-interactive and redesigned significantly; but in beta support (see the known issue) - Introduce DialogModel that could be processed by actors to add related information into the report (oamg#589) - Introduce Workflow API (see the Workflow APIs tutorial) (oamg#618) - Report inhibitors separately from errors on stdout (oamg#620) - Show progress in non-verbose executions (oamg#621) ### Known issue - The answerfile is not generated on some machines after the run of leapp. Currently it's under investigation. ## Leapp ### Fixes - Print message about generated report when `leapp upgrade` ends, as we do for `leapp preupgrade` (oamg#573) ### Enhancements - Add `leapp answer` to answer Dialog questions in CLI (oamg#592) - Add the --no-rhsm option for (pre)upgrade commands (oamg#622) - Add the --enablerepo option for Leapp to use an existing custom yum/dnf repository during the upgrade - Display a warning when leapp is used in an unsupported (devel/testing) mode (oamg#577) - Print errors on stdout in pretty format (oamg#593) - Error messages are now part of the preupgrade report - The verbosity options (--verbose | --debug) are available for leapp commands as well ## stdlib ### Enhancements - Add `stdin` and `encoding` parameters in the run function (oamg#583, oamg#595) ## Modifications - Code is compatible with Python3 pylint
Detect Azure hybrid (BIOS/EFI) image and convert
/boot/grub2/grubenv symlink pointing to
/boot/efi/EFI/redhat/grubenv to a normal file
as GRUB cannot read the symlink if it is pointing
to different partition (in case of BIOS).
Consequently, we do not need the "KernelCmdlineArg"
with "root_delay" anymore.