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

Allow upgrades on AWS and Azure using RHUI infrastructure #539

Merged
merged 1 commit into from
Sep 9, 2020

Conversation

Rezney
Copy link
Member

@Rezney Rezney commented Jul 28, 2020

- add actor to check for particular cloud package (provided from
special repository) to determine whether we are on public
cloud.

- disable DNF plugin with a message

- use the resolved mirrorlist on AWS

- copy RHUI data from special Leapp package when on
  public cloud and running without RHSM

- add hybrid (BIOS, UEFI) image grubby workaround

EDIT: requires PR #520

@Rezney Rezney added the WIP Work In Progress label Jul 28, 2020
@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, pass tests and linter checks before it can be merged.

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

@Rezney Rezney force-pushed the rhui_all branch 5 times, most recently from 7bc02a9 to 775aee1 Compare July 30, 2020 06:48
@Rezney Rezney force-pushed the rhui_all branch 4 times, most recently from 4e0dafb to 3d0e42c Compare July 30, 2020 14:21
@pirat89
Copy link
Member

pirat89 commented Jul 31, 2020

@Rezney the idea looks ok.

Copy link
Contributor

@zhukovgreen zhukovgreen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Rezney, please report also test coverage for new actors or heavily updated. In order to do this just run:
$ pytest {path to actor} --cov {path to actor}

@Rezney Rezney force-pushed the rhui_all branch 5 times, most recently from d6e2a88 to 7a6d87a Compare July 31, 2020 16:38
@AloisMahdal
Copy link

@Rezney fails are because of stale branch. Please rebase. You can then run tests using e2e tests.

@Rezney Rezney force-pushed the rhui_all branch 4 times, most recently from 5cdb17d to 822a827 Compare August 24, 2020 09:47
@Rezney
Copy link
Member Author

Rezney commented Aug 24, 2020

@AloisMahdal thanks. Will e2e tests run everything we have?

@Rezney
Copy link
Member Author

Rezney commented Aug 24, 2020

@examon the e2e test is failing cause we are not using RHEL7.9 image.

@AloisMahdal
Copy link

No, e2e tests runs a practical subset. Currently all integration tests and few upgrade sanity tests, rhel-7 x86_64 only (no rhel-alt).

Running "everything we have" is an effort that takes days (due to various reasons related to Beaker load and eg. stage CDN reliability) and is a substantial load on QE resources. If you want to extend beyond e2e tests I guess we could have a quick chat and figure out what would be the best mix.

@AloisMahdal
Copy link

The murphy-ci/upgrade fail is a false positive caused by recently deployed restraint-0.3.0 (leading to AVC). (Workaround applied in MORF/Murphy so next time it should be fine.)

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.

(First part; I am in the middle of PR now)

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.

Second part of the code review is finished.

@Rezney Rezney force-pushed the rhui_all branch 4 times, most recently from 7ced225 to e32ab33 Compare August 27, 2020 08:24
@RadekBiba
Copy link

Upgrade from RHEL 7 to 8 passed in AWS using leapp-repository-0.11.0-0.202008261315Z.7ced225.rhui_all.PR539.el7 and Michal's playbook (with the necessary temporary workarounds).

@Rezney
Copy link
Member Author

Rezney commented Aug 28, 2020

Upgrade from RHEL 7 to 8 passed in AWS using leapp-repository-0.11.0-0.202008261315Z.7ced225.rhui_all.PR539.el7 and Michal's playbook (with the necessary temporary workarounds).

Just for the transparency sakes, the 1st workaround was to not use localrepoinhibit actor as there is the recently reported BUG and a mass replace of $releasever to "8" in our leapp-rhui package as there is still missing the CDN symlink (SPMM-1688).

@Rezney Rezney force-pushed the rhui_all branch 2 times, most recently from 290c333 to 81b53a0 Compare August 28, 2020 11:56
@pirat89
Copy link
Member

pirat89 commented Aug 28, 2020

LGTM. I will add approval later after merged PR #520. But it's good otherwise so far.

- add actor to check for particular cloud package (provided from
special repository) to determine whether we are on public
cloud.

- disable DNF plugin with a message

- use the resolved mirrorlist on AWS

- copy RHUI data from special Leapp package when on
  public cloud and running without RHSM

- add hybrid (BIOS, UEFI) image grubby workaround
@Rezney
Copy link
Member Author

Rezney commented Sep 4, 2020

e2e tests

2 similar comments
@Rezney
Copy link
Member Author

Rezney commented Sep 7, 2020

e2e tests

@Rezney
Copy link
Member Author

Rezney commented Sep 8, 2020

e2e tests

@Rezney
Copy link
Member Author

Rezney commented Sep 9, 2020

Verified from RHUI team and in OAMG-3543.

@pirat89 pirat89 changed the title [DoNotMerge] - Allow upgrades on AWS and Azure using RHUI infrastructure Allow upgrades on AWS and Azure using RHUI infrastructure Sep 9, 2020
@pirat89 pirat89 merged commit 2e13c88 into oamg:master Sep 9, 2020
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.

8 participants