Description of problem: Execute install.ovirt_boot_setup(reboot="Y") failed with IOError: [Errno 20] Not a directory: '/dev/.initramfs/live/grub/grub.conf , when wanted to update rhevh after enabled iSCSI boot [root@localhost data]# mkdir -p updates [root@localhost data]# mv rhevh-6.4-20121126.0.el6.iso ovirt-node-image.iso [root@localhost data]# cp -a ovirt-node-image.iso updates/ [root@localhost data]# cd updates/ [root@localhost updates]# ls /data/updates/ovirt-node-image.iso /data/updates/ovirt-node-image.iso [root@localhost updates]# /usr/share/vdsm-reg/vdsm-upgrade [root@dhcp-8-185 updates]# /usr/share/vdsm-reg/vdsm-upgrade <BSTRAP component='RHEL_INSTALL' status='WARN'message='vdsm daemon is already down before we stop it for upgrade.'/> <BSTRAP component='setMountPoint' status='OK' message='Mount succeeded.'/> <BSTRAP component='RHEV_INSTALL' status='FAIL'/> [root@dhcp-8-185 updates]# python Python 2.6.6 (r266:84292, Oct 12 2012, 14:23:48) [GCC 4.4.6 20120305 (Red Hat 4.4.6-4)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from ovirtnode.install import Install >>> install = Install() >>> install.ovirt_boot_setup(reboot="Y") Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python2.6/site-packages/ovirtnode/install.py", line 267, in ovirt_boot_setup IOError: [Errno 20] Not a directory: '/dev/.initramfs/live/grub/grub.conf' >>> After enabled iSCSI boot,rhev-h saved grub.conf in the local BootBackup disk(/dev/mapper/1ATA_ST3000DM001-9YN166_S1F0PZ15p2 ). But when Execute install.ovirt_boot_setup(reboot="Y") to update rhevh, rhev-h still try to find grub.conf in the /dev/.initramfs/live/grub/grub.conf (the iscsi Root disk). Version-Release number of selected component (if applicable): rhev-hypervisor6-6.4-20121126.0.el6 How reproducible: 100% Steps to Reproduce: Actual result: Expect result:
Fixed with upstream 4c059429672ca44e558ee8329de1bdc1ef282e3a Change-Id: I12ab54ce821d5727d7a0d6efa06009276215055b
Test version: rhevh-6.5-20131213.0.0 ovirt-node-3.0.1-9.el6_5.noarch Test as follow: 1.Auto install RHEV-H with follow parameters to enable iscsi boot. BOOTIF=eth0 storage_init=/dev/sda,/dev/sdb iscsi_init=/dev/sdb iscsi_target_name=iqn.2013-02.com:hadong iscsi_install iscsi_server=10.66.11.127:3260 firstboot 2. Using "ovirt-node-upgrade" tools to upgrade rhevh failed. [root@dhcp-10-106 data]# ovirt-node-upgrade --iso rhevh-6.5-20131213.0.0.iso ovirt-node-upgrade.UpgradeTool: INFO Temporary Directory is: /data/tmpxTiq7H ovirt-node-upgrade.LockFile: INFO Acquiring Lock ovirt-node-upgrade.UpgradeTool: INFO Running pre-upgrade hooks ovirt-node-upgrade.UpgradeTool: INFO pre-upgrade hooks completed ovirt-node-upgrade.UpgradeTool: INFO hooks: False Maybe the root cause happen here: [root@dhcp-10-106 data]# python Python 2.6.6 (r266:84292, Sep 4 2013, 07:46:00) [GCC 4.4.7 20120313 (Red Hat 4.4.7-3)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from ovirtnode.install import Install >>> install = Install() >>> install.ovirt_boot_setup() Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python2.6/site-packages/ovirtnode/install.py", line 302, in ovirt_boot_setup File "/usr/lib64/python2.6/shutil.py", line 84, in copy File "/usr/lib64/python2.6/shutil.py", line 50, in copyfile IOError: [Errno 2] No such file or directory: '/boot/efi/EFI/redhat/grub.efi' >>> No the file "/boot/efi/EFI/redhat/grub.efi" in /boot: [root@dhcp-10-106 data]# ls /boot/ grub/ initrd0.img lost+found/ ovirt ovirt.log vmlinuz0 so need to re-assinged this bug.
Test version: rhevh-6.5-20131220.0 ovirt-node-3.0.1-13.el6_5.noarch Test as follow: 1.Auto install RHEV-H with follow parameters to enable iscsi boot. BOOTIF=eth0 storage_init=/dev/sda,/dev/sdb iscsi_init=/dev/sdb iscsi_target_name=iqn.2013-02.com:hadong iscsi_install iscsi_server=10.66.11.127:3260 firstboot 2. Using "ovirt-node-upgrade" tools to upgrade rhevh failed. [root@dhcp-8-254 data]# ovirt-node-upgrade --iso rhevh-6.5-20131220.0.iso ovirt-node-upgrade.UpgradeTool: INFO Temporary Directory is: /data/tmp50ZR7g ovirt-node-upgrade.LockFile: INFO Acquiring Lock ovirt-node-upgrade.UpgradeTool: INFO Running pre-upgrade hooks ovirt-node-upgrade.UpgradeTool: INFO pre-upgrade hooks completed ovirt-node-upgrade.UpgradeTool: INFO hooks: False Enable Networking ----------------- Checking pre-conditions ... (1/1) Configuring network it will hang on configuring network and couldn't do any action for the system.
I notice jboggs repore a new bug 1051136 to track issue for uefi iscsi upgrade failure . so i change the summary of this bug into "BIOS iscsi upgrade failure via ovirt-node-upgrade/TUI/cmdline"
Created attachment 849166 [details] attached Screenshot for error info during iscsi cmdline upgrade.png Test version: ovirt-node-3.0.1-16.el6_5.noarch.rpm rhevh-6.5-20140110.1 Test cases in BIOS machine: (a) Support rhev-h upgrade via ovirt-node-upgrade tools in BIOS mode machine after enabled iscsi boot----PASS (b) Support rhev-h upgrade via cmdline in BIOS mode machine after enabled iscsi boot----FAIL (see screenshot for ovirt-node.log in "error info during iscsi cmdline upgrade.png") (c) Support rhev-h upgrade via TUI in BIOS mode machine after enabled iscsi boot--- FAIL (It will enter into install process page, not upgrade process page) due to failed via tui/cmdline, so need to re-assigened this bug.
Created attachment 860850 [details] attached ovirt-node.log Attach the ovirt-node.log in here.
Setting this back to assigned as there are still problems.
This is a mass change, moving bugs of merged patches into MODIFIED. Please correct the state, if you think that the move was not justified.
Created attachment 950653 [details] attached Screenshot for upgrade via cmdline.png Test version: rhev-hypervisor7-7.0-20141006.0.el7ev ovirt-node-3.1.0-0.20.20141006gitc421e04.el7.noarch.rpm Test cases in BIOS machine: (a) Support rhev-h upgrade via ovirt-node-upgrade tools in BIOS mode machine after enabled iscsi boot----FAIL. Although the ovirt-node-upgrade tools print "upgrade success" info, but after reboot rhevh, only one version could be selected to boot. (b) Support rhev-h upgrade via cmdline in BIOS mode machine after enabled iscsi boot----FAIL (see screenshot for upgrade via cmdline.png) (c) Support rhev-h upgrade via TUI in BIOS mode machine after enabled iscsi boot--- FAIL (It will enter into install process page, not upgrade process page) so need re-assigned this bug again
Also this bug could reproduce in rhevh 6.6 for RHEV 3.4.z bulid version: rhev-hypervisor6-6.6-20141106.1.iso ovirt-node-3.0.1-19.el6.22
assigned this bug according to comment 40