RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1199081 - preupgrade script should detect whether proper upgrade target
Summary: preupgrade script should detect whether proper upgrade target
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: preupgrade-assistant-contents
Version: 6.7
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: rc
: ---
Assignee: Frantisek Kluknavsky
QA Contact: Alois Mahdal
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-03-05 12:55 UTC by Petr Hracek
Modified: 2015-03-05 12:56 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-03-05 12:56:34 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Petr Hracek 2015-03-05 12:55:11 UTC
Description of problem:
Before alone upgrade done be redhat-upgrade-tool. preupgrade script should detect if redhat-upgrade-tool is executed with proper target version.
If not then upgrade should fail.

Question is if this can be done directly in redhat-upgrade-tool so that we will save time before downloading packages.
I think that redhat-upgrade-tool can detect if version file (generated by preupgrade-assistant-contents) exits and then compare them with command line arguments.
Use cases:

1) If version file doesn't exist then upgrade will stop and doesn't continue.
2) If version file contains version 7.1 then redhat-upgrade-tool should have arguments with 7.1 version too and upgrade continues.
3) If version file contains version 7.1 and redhat-upgrade-tool arguments are  with 7.0 version then it have to stop as well.
4) If version file contains version 7.0 and redhat-upgrade-tool contains 7.1 then upgrade won't be possible too.

I think that this is a good part for redhat-upgrade-tool.

What do you think?

Comment 1 Petr Hracek 2015-03-05 12:56:34 UTC
I will generate a new bug.
Huge typos from.


Note You need to log in before you can comment on or make changes to this bug.