Bug 1812574
Summary: | imgbase layout --init failed during the kickstart installation | ||
---|---|---|---|
Product: | Red Hat Enterprise Virtualization Manager | Reporter: | Martin Styk <mastyk> |
Component: | imgbased | Assignee: | Yuval Turgeman <yturgema> |
Status: | CLOSED ERRATA | QA Contact: | Qin Yuan <qiyuan> |
Severity: | high | Docs Contact: | |
Priority: | urgent | ||
Version: | 4.3.9 | CC: | cshao, dfediuck, emarcus, lsvaty, mavital, nlevy, pelauter, peyu, qiyuan, sbonazzo, shlei, weiwang, yaniwang, yturgema |
Target Milestone: | ovirt-4.3.10 | Keywords: | Regression, Reopened, ZStream |
Target Release: | 4.3.10 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | imgbased-1.1.15 | Doc Type: | If docs needed, set a value |
Doc Text: |
Before this update, imgbase layout --init failed during Red Hat Virtualization Host installation with Kickstart.
In this release, the installation with Kickstart succeeds.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2020-06-04 15:04:34 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | Node | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Martin Styk
2020-03-11 15:36:17 UTC
In the given ks file, `$package_command -y install restraint-0.1.39` is called before `imgbase layout --init`, restraint rpm will be put in /var/imgbased/persisted/, imgbased will try to reinstall it during init. imgbased shouldn't reinstall the rpm when it's in installation but not upgrade phase. One workaround is to download the rpm first, then use rpm install in the ks, such as: yumdownloader restraint-0.1.39 && rpm -i restraint* Closing not a bug as per comment #1. Please fix your kickstart. (In reply to Sandro Bonazzola from comment #2) > Closing not a bug as per comment #1. > Please fix your kickstart. Not sure If I'm understanding this correctly. Comment 1 mentioned that imgbased shouldn't reinstall the rpm when it's in installation but not upgrade phase. We are speaking about installation not upgrade. Are you sure this is not a bug? The reason why imgbased tried to reinstall persisted rpms during installation phase is that it identifies the phase as installation only when "inst.ks" is in /proc/cmdline, unfortunately, "ks" but not "inst.ks" is used in this issue, so imgbased treated it as upgrade phase. I think it would be better if we could improve the way to identify installation phase, though there are workarounds, such as use inst.ks instead of ks in kernel options line, or use rpm -i instead of yum install in ks file. Thank you for clarification. Yes, I agree workarounds are in place and I will take a look at how we can apply. I just didn't understand why the issue was closed. I'm glad for reopening this issue. Is this issue relevant to 4.4 as well? No, this mechanism was changed in 4.4 Verified with: RHVH-4.3-20200422.1-RHVH-x86_64-dvd1.iso imgbased-1.1.15-0.1.el7ev.noarch 1. Checked on beaker, the boot option is inst.ks now, provisioning works. 2. Tested boot option ks= with the following post section in ksfile: %post --erroronfail # Add Harness Repo cat <<"EOF" >/etc/yum.repos.d/beaker-harness.repo [beaker-harness] name=beaker-harness baseurl=http://beaker.engineering.redhat.com/harness/RHVH4/ enabled=1 gpgcheck=0 EOF yum -y install restraint-0.1.39 imgbase --debug layout --init %end Installation succeeded: 1) restraint rpm was put in /var/imgbased/persisted-rpms/ [root@dell-per730-34 ~]# ls -al /var/imgbased/persisted-rpms/ total 7192 drwxr-xr-x. 2 root root 4096 Apr 24 11:25 . drwxr-xr-x. 4 root root 4096 Apr 24 11:26 .. -rw-r--r--. 1 root root 7354548 Feb 28 2019 restraint-0.1.39-1.el7bkr.x86_64.rpm 2) reinstall flow was skipped during installation 11:27:50,077 INFO program: 2020-04-24 11:26:32,204 [INFO] (MainThread) Not reinstalling RPMs during system installation Hi Yuval, please review this doc text for the Errata: "Before this update, imgbase layout --init failed during Red Hat Virtualization Host installation with Kickstart. In this release, the installation with Kickstart succeeds." 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/RHBA-2020:2399 The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days |