Red Hat Bugzilla – Bug 1532279
rhevm-setup-plugins should require updating itself
Last modified: 2018-05-15 13:34:17 EDT
Description of problem: When running engine-setup, it (also) checks if there are updates to setup packages, and if so, lists the packages to be updated and aborts. rhevm-setup-plugins should register itself in this set of packages, so that if there are updates to it, engine-setup will abort. Note that fixing this bug will only affect attempts to upgrade from a fixed version, not from a non-fixed version to a fixed one.
ok # rpm -q ovirt-engine-setup rhvm-setup-plugins ovirt-engine-setup-4.2.2.2-0.1.el7.noarch rhvm-setup-plugins-4.2.5-1.el7ev.noarch # grep rhevm-setup-plugins /var/log/yum.log Feb 23 17:07:53 Installed: rhevm-setup-plugins-4.1.5-1.el7ev.noarch Mar 07 14:32:37 Erased: rhevm-setup-plugins-4.1.5-1.el7ev.noarch
Not sure how you could verify this, actually. Reproduction/Verification flow is: 1. Install and setup engine 2. yum update 'ovirt\*setup\*' 3. Have newer rhvm-setup-plugins in the repo, but do not update it 4. engine-setup With a broken engine-setup, it will continue happily. With a fixed one, it should abort, asking to update rhvm-setup-plugins. Current build is the latest provided to QE, so you don't have an update for step 3. You can try to verify using this jenkins build: https://rhv-devops-jenkins.rhev-ci-vms.eng.rdu2.redhat.com/job/rhvm-setup-plugins_master_build-artifacts-rhel7-x86_64/28/
ok, misunderstood. is this what i should see? ... Replying "No" will abort Setup. You can pass the option "--offline" to prevent installing or updating packages. Do you wish to update them now? (Yes, No) [Yes]: [ INFO ] Checking for an update for Setup... An update for the Setup packages rhvm-setup-plugins was found. Please update that package by running: "yum update rhvm-setup-plugins" and then execute Setup again. [ ERROR ] Failed to execute stage 'Environment customization': Please update the Setup packages [ INFO ] Stage: Clean up Log file is located at /var/log/ovirt-engine/setup/ovirt-engine-setup-20180307163435-ys5i1c.log [ INFO ] Generating answer file '/var/lib/ovirt-engine/setup/answers/20180307163504-setup.conf' [ INFO ] Stage: Pre-termination [ INFO ] Stage: Termination [ ERROR ] Execution of setup failed
Exactly.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHEA-2018:1473