Skip to content
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

Merged
merged 1 commit into from
Sep 30, 2020
Merged

Azure hybrid image handling #591

merged 1 commit into from
Sep 30, 2020

Conversation

Rezney
Copy link
Member

@Rezney Rezney commented Sep 24, 2020

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.

@leapp-bot
Copy link
Collaborator

Thank you for contributing to the Leapp project!

Please note that every PR needs to comply with the
Leapp Guidelines.

If you want to re-run tests or request review, you can use following commands as a comment:

  • leapp-ci build to run unit tests and copr build
  • e2e tests to run unit tests, copr build and end-to-end tests (OAMG members only)
  • review please to notify leapp developers of review request

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.

@pirat89
Copy link
Member

pirat89 commented Sep 24, 2020

leapp-ci build

Copy link
Member

@pirat89 pirat89 left a 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.

@Rezney Rezney force-pushed the azure_fixes branch 2 times, most recently from 8b78e4c to ddef350 Compare September 29, 2020 09:16
Copy link
Member

@pirat89 pirat89 left a 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.

Comment on lines +23 to +27
grubenv_msg = next(self.consume(HybridImage), None)

if grubenv_msg and grubenv_msg.detected:
Copy link
Member

@pirat89 pirat89 Sep 29, 2020

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.

Suggested change
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.
Copy link
Member

@pirat89 pirat89 left a 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

@mmacura311
Copy link
Member

Hi, tested using the playbook on all 4 variations (gen1/gen2 x rhui/byos) and it upgrades OK.

@pirat89 pirat89 merged commit dce08fc into oamg:master Sep 30, 2020
MichalHe pushed a commit to MichalHe/leapp-repository that referenced this pull request Jun 21, 2022
## 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants