Hide Forgot
Description of problem: I tried to reinstall RHEV-H (to fix bug 732515). I had already installed RHEV-H to the hard disk once. The reinstall failed. I'll attach some screenshots to this bug to show the errors. Version-Release number of selected component (if applicable): rhev-hypervisor 6.2-0.12.1.el6 How reproducible: I tried the reinstall twice. It failed in the same way both times. Steps to Reproduce: 1. Install RHEV-H to hard disk. 2. Reinstall RHEV-H a second time. 3. Actual results: Fails to reinstall. Expected results: Should be able to reinstall over the top of an existing installation. Additional info: See screenshots.
Created attachment 519336 [details] Errors shown during install
Created attachment 519338 [details] Possible root cause error from the log file
ssh does not work inside rhev-h. However this is a neat trick to fix it: script -q /dev/null -c "ssh command"
Created attachment 519344 [details] ovirt.log
Created attachment 519345 [details] /var/log/messages
After doing dd if=/dev/zero of=/dev/sda and rebooting I was able to reinstall RHEV-H. So it does seem to be something about the old installation / partitions confusing the installer.
(In reply to comment #7) > After doing dd if=/dev/zero of=/dev/sda and rebooting > I was able to reinstall RHEV-H. So it does seem to be > something about the old installation / partitions > confusing the installer. I'm not sure what the exact issue is here, but you can force the cleanup using command line options: storage_init=/dev/sda reinstall This should boot back to the main installation screen.
see below bugs, https://bugzilla.redhat.com/show_bug.cgi?id=713698 https://bugzilla.redhat.com/show_bug.cgi?id=715597
> I'm not sure what the exact issue is here, but you can force the cleanup using > command line options: > > storage_init=/dev/sda reinstall > > This should boot back to the main installation screen. with the storage_init=/dev/sda reinstall params, 1. first remove the exited partitions 2. create the new partitions for root/rootbackup etc by auto install. 3. after auto installation,there display the installation screen, just 'Quit' can be operated. 4. Press F2, there display error. ****************** 0 Traceback (most recent call last): File "/user/libexec/ovirt-config-installer", line 751, in start menu_choice=self.menu_list.current() File "/usr/lib64/python2.6/site-packages/snack/py", line 183, in current KeyError: 0 ****************** Need to be clear, 1. which step should boot back to the main installation screen? after removing the existed partition? or after auto installation?
Created attachment 519437 [details] reinstall param
Joey, can you look at the error when re-install is specified? Having it not work with reinstall is a bug. Booting with reinstall and storage_init triggers the cleanup in dracut. Then after dracut finishes, it should boot to the regular install page with an Install option. That the install option is missing is a bug. you can boot with "storage_init=/dev/sda uninstall" and that will do a complete wipe of all disks listed in storage_init and then reboot the machine. You'll have to choose the pxe option again, or choose to boot from CD again in this case which is why I didn't offer it the first time
the keyerror seems like an inconsistency in determining hostvg status and it cant present the right install/upgrade option leaving it blank(causing the keyerror). Can you run through the steps again? Once it fails, rerun the reinstall immediately to see if its just caching something? If it succeeds it must be holding onto some lvm info still. If it fails can you run through and snap a shot of the usual {pv,vg,lv}scan commands? Unable to reproduce with a vm installation but will try on real hardware and post those results as well.
HP ProLiant microserver. One SATA drive which is: scsi 2:0:0:0: Direct-Access ATA VB0250EAVER HPG0 PQ: 0 ANSI: 5 sd 2:0:0:0: [sda] 488397168 512-byte logical blocks: (250 GB/232 GiB) Can you be much more explicit about what exactly you want me to do? I've already been through the reinstall twice and it failed to reinstall both times. Each time I had to go to the shell and dd zeroes over the first 100MB and reboot in order to clear the problem.
I've gone through the install process another time. RHEV-H was previously installed. I PXE-booted RHEV-H and followed the steps. Same failure this time, RHEV-H failed to (re-)install over the existing image. After the failed installation, I pressed F2 to get a shell, and captured the following information which I will attach to this bug: 1-7.jpg: pictures showing installation process dmesg.txt: output of 'dmesg' command after failed installation lvs.txt: output of 'lvs' command messages: contents of /var/log/messages pvs.txt: output of 'pvs' command tmp-ovirt.log: contents of /tmp/ovirt.log var-log-ovirt.log: contents of /var/log/ovirt.log vgs.txt: output of 'vgs' command It's not likely I will be able to reproduce this bug in future because I need to install RHEL on this hardware and use it as a server.
Created attachment 519582 [details] 1.jpg
Created attachment 519583 [details] 2.jpg
Created attachment 519584 [details] 3.jpg
Created attachment 519585 [details] 4.jpg
Created attachment 519586 [details] 5.jpg
Created attachment 519587 [details] 6.jpg
Created attachment 519588 [details] 7.jpg
Created attachment 519589 [details] dmesg
Created attachment 519590 [details] lvs
Created attachment 519591 [details] /var/log/messages
Created attachment 519592 [details] pvs
Created attachment 519594 [details] /tmp/ovirt.log
Created attachment 519595 [details] /var/log/ovirt.log
Created attachment 519596 [details] vgs
PXE configuration. This config was generated by rhevh-iso-to-pxeboot and the only thing I have changed were the paths to the vmlinuz and initrd files. ---------- DEFAULT pxeboot TIMEOUT 20 PROMPT 0 LABEL pxeboot KERNEL rhev-hypervisor-6.2-0.12.1.el6-x86-64/vmlinuz0 APPEND rootflags=loop initrd=rhev-hypervisor-6.2-0.12.1.el6-x86-64/initrd0.img root=live:/rhev-hypervisor.iso rootfstype=auto ro liveimg nomodeset check rootflags=ro crashkernel=512M-2G:64M,2G-:128M elevator=deadline processor.max_cstate=1 install quiet rd_NO_LVM rhgb rd_NO_LUKS rd_NO_MD rd_NO_DM ONERROR LOCALBOOT 0
(In reply to comment #12) > Joey, can you look at the error when re-install is specified? > > Having it not work with reinstall is a bug. Booting with reinstall and > storage_init triggers the cleanup in dracut. Then after dracut finishes, it > should boot to the regular install page with an Install option. That the > install option is missing is a bug. > > you can boot with "storage_init=/dev/sda uninstall" and that will do a complete > wipe of all disks listed in storage_init and then reboot the machine. You'll > have to choose the pxe option again, or choose to boot from CD again in this > case which is why I didn't offer it the first time Hi Joey, Check this issue with latest build 6.2-0.14. When booting with storage_init and reinstall params, the behavior is not correct that it do NOT boot to regular install page,it start to auto installation, at the end there display the UI page. Press F2, there display error. pls check the output log info. Attached: reinstall.log The phenomenon with the bug description is not the same as comment #10, I will separate the new bug for comment #10 to make this issue more clearly. Thanks Ying
Created attachment 519783 [details] reinstall.log
I open a new bug to trace the detail issue for comment #10 and comment #33 https://bugzilla.redhat.com/show_bug.cgi?id=733274
Ying, I think we're clear on this bug now then, the original issue was narrowed down to a dirty install, and the secondary issue with autoinstall and the firstboot menu at the same time you found was moved to a new bug. Are there any outstanding issues here still? If not we can close this one out
Closing since there is no fix here. *** This bug has been marked as a duplicate of bug 691679 ***