Bug 885987 - BIOS iscsi upgrade failure via ovirt-node-upgrade/TUI/cmdline
Summary: BIOS iscsi upgrade failure via ovirt-node-upgrade/TUI/cmdline
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-node
Version: 3.2.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 3.6.0
Assignee: Ryan Barry
QA Contact: Virtualization Bugs
URL:
Whiteboard: node
Depends On: 1053505
Blocks: 520111 1051136 rhevh-software-iscsi-root
TreeView+ depends on / blocked
 
Reported: 2012-12-11 09:13 UTC by haiyang,dong
Modified: 2016-02-10 20:02 UTC (History)
13 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1051136 (view as bug list)
Environment:
Last Closed: 2015-03-05 10:55:50 UTC
oVirt Team: Node
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
attached Screenshot for error info during iscsi cmdline upgrade.png (34.57 KB, image/png)
2014-01-13 07:18 UTC, haiyang,dong
no flags Details
attached ovirt-node.log (3.12 KB, text/plain)
2014-02-08 08:50 UTC, haiyang,dong
no flags Details
attached Screenshot for upgrade via cmdline.png (19.02 KB, image/png)
2014-10-25 13:38 UTC, haiyang,dong
no flags Details

Description haiyang,dong 2012-12-11 09:13:37 UTC
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:

Comment 3 Fabian Deutsch 2013-05-17 07:22:01 UTC
Fixed with upstream 4c059429672ca44e558ee8329de1bdc1ef282e3a

Change-Id: I12ab54ce821d5727d7a0d6efa06009276215055b

Comment 8 haiyang,dong 2013-12-17 09:15:05 UTC
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.

Comment 10 haiyang,dong 2013-12-24 05:10:00 UTC
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.

Comment 20 haiyang,dong 2014-01-11 06:01:46 UTC
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"

Comment 21 haiyang,dong 2014-01-13 07:18:30 UTC
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.

Comment 31 haiyang,dong 2014-02-08 08:50:54 UTC
Created attachment 860850 [details]
attached ovirt-node.log

Attach the ovirt-node.log in here.

Comment 34 Fabian Deutsch 2014-03-03 10:16:07 UTC
Setting this back to assigned as there are still problems.

Comment 39 Fabian Deutsch 2014-07-24 16:02:16 UTC
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.

Comment 40 haiyang,dong 2014-10-25 13:38:30 UTC
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

Comment 41 haiyang,dong 2014-11-07 08:14:36 UTC
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

Comment 42 Ying Cui 2014-11-10 03:36:18 UTC
assigned this bug according to comment 40


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