Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@drehak
Copy link
Contributor

@drehak drehak commented Nov 18, 2019

A complement of:
oamg/leapp-repository#404
If the inhibition of unsupported upgrade is bypassed through LEAPP_UNSUPPORTED, a giant yellow warning appears.

@drehak drehak added the wip label Nov 18, 2019
@centos-ci
Copy link

Can one of the admins verify this patch?

@drehak drehak force-pushed the unsupported branch 3 times, most recently from c5dc0bf to a1b9504 Compare November 22, 2019 11:12
@drehak drehak removed the wip label Dec 3, 2019
@drehak drehak changed the title WIP: Display a warning when upgrade is not supported (PoC) Display a warning when upgrade is unsupported Dec 3, 2019
The user can disable inhibitors caused by enabled experimetal actors or
set LEAPP_DEVEL_* variables by setting the variable LEAPP_UNSUPPORTED.
In this case, a warning is displayed at the start.
@pirat89
Copy link
Member

pirat89 commented Dec 4, 2019

Now I am pretty confused why the piece of code is here when it should be in leapp-repository?

@drehak
Copy link
Contributor Author

drehak commented Dec 4, 2019

@pirat89 No, that's different. This one prints a warning at the start, while the leapp-repository one produces the actual inhibitors.
As far as I know, printing from actors is a terrible practice and I haven't found a good way to gather this info in just leapp or leapp-repository.

@pirat89
Copy link
Member

pirat89 commented Dec 6, 2019

@drehak The point is, when you raise inhibitor, it's already documented - they should open the report file anyway, so why to add additional prints into the leapp? This was the original idea before we agreed on inhibition of IPU. Now, when upgrade is inhibit when LEAPP_DEVEL_* or --whitelist-experimental is used, it doesn't make sense to put additional warning into the leapp. WDYT guys? (@shaded-enmity, @vinzenz, @bocekm, @fernflower, @Rezney, @oamg/developers ).

EDIT: ah. Now I see the point. This is when LEAPP_UNSUPPORTED is used.

Copy link
Member

@fernflower fernflower left a comment

Choose a reason for hiding this comment

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

I'm wondering if we should also show have a report entry about unsupported upgrade. I'd say it would be nice for visibility purposes but can be surely done as another bugfix. Like unsupported_upgrade_check actor producing a report message that upgrade is experimental?

Tested together with pr404, works as expected

@drehak
Copy link
Contributor Author

drehak commented Dec 12, 2019

@fernflower

I'm wondering if we should also show have a report entry about unsupported upgrade.

Yeah, it won't hurt. I'll add it to the other PR. Just check the specifics (like description, tags and severity) when the commit is there, because I'm not that sure what to put there.

@fernflower fernflower merged commit 2d722ea into oamg:master Dec 17, 2019
pirat89 added a commit to pirat89/leapp that referenced this pull request Apr 7, 2020
## Packaging
- Add BuildRequires on python2-setuptools
- Add new dependency on python?-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 istead 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 tutorial) (oamg#618)
- Report inhibitors seprately 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 and it will be fixed definitely in the
  next release.

## 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 on CLI (oamg#592)
- Add the --no-rhsm option for (pre)upgrade commands (oamg#622)
- Display warning when leapp is used in unsupported (devel/testing) mode (oamg#577)
- Print errors on stdout in pretty format (oamg#593)
- The error messages are part of the preupgrade report
- The verbosity options (--verbose | --debug) are available for leapp commands as well

## Snactor
### Fixes
### Enhancements

## stdlib
### Fixes

### Enhancements
- Add `stdin` and `encoding` parameters in the run function (oamg#583, oamg#595)

## Modifications
- Code is compatible with Python3 pylint
pirat89 added a commit to pirat89/leapp that referenced this pull request Apr 16, 2020
## 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
@pirat89 pirat89 mentioned this pull request Apr 16, 2020
pirat89 added a commit that referenced this pull request Apr 16, 2020
## 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") (#591)
- Move all leapp and snactor files into related rpms instead of python?-leapp (#591)
- Remove dependency on Jinja2

## Framework
### Fixes
- Fix json export capabilities using serialization (#598)

### Enhancements
- Add the DESKTOP tag for the leapp report (#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 (#589)
- Introduce Workflow API (see the Workflow APIs tutorial) (#618)
- Report inhibitors separately from errors on stdout (#620)
- Show progress in non-verbose executions (#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` (#573)

### Enhancements
- Add `leapp answer` to answer Dialog questions in CLI (#592)
- Add the --no-rhsm option for (pre)upgrade commands (#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 (#577)
- Print errors on stdout in pretty format (#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 (#583, #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.

5 participants