Bug 1408941 - RHVH 4.1 version could not work correctly after installation
Summary: RHVH 4.1 version could not work correctly after installation
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-node
Classification: oVirt
Component: Installation & Update
Version: 4.1
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: ovirt-4.1.0-rc
: 4.1
Assignee: Ryan Barry
QA Contact: jianwu
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-12-28 09:59 UTC by jianwu
Modified: 2017-02-01 14:38 UTC (History)
17 users (show)

Fixed In Version: redhat-virtualization-host-4.0-20170104.0
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-02-01 14:38:59 UTC
oVirt Team: Node
Embargoed:
rule-engine: ovirt-4.1+
gklein: blocker+
rule-engine: planning_ack+
sbonazzo: devel_ack+
cshao: testing_ack+


Attachments (Terms of Use)
4.1_install log (8.81 MB, application/x-gzip)
2016-12-28 09:59 UTC, jianwu
no flags Details
grub file (3.57 KB, text/plain)
2016-12-28 10:00 UTC, jianwu
no flags Details
boot_1 image (12.51 KB, image/jpeg)
2016-12-28 10:01 UTC, jianwu
no flags Details
boot image 2 (21.86 KB, image/jpeg)
2016-12-28 10:02 UTC, jianwu
no flags Details
engine logs (4.59 MB, application/x-gzip)
2016-12-29 03:28 UTC, jianwu
no flags Details

Description jianwu 2016-12-28 09:59:46 UTC
Created attachment 1235595 [details]
4.1_install log

Description of problem:
RHVH 4.1-Beta ( rhvh-4.1-0.20161222.0 ) could be installed successfully, but unfortunately, there are some errors occur:
1. After reboot, it could not find entry boot but could enter the system, check # cat /etc/grub2.cfg, there is no rhvh-4.1-0.20161222.0 info added to this config file.
2. run #imgbase w
 File "/usr/lib64/python2.7/runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib64/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/usr/lib/python2.7/site-packages/imgbased/__main__.py", line 51, in <module>
    CliApplication()
  File "/usr/lib/python2.7/site-packages/imgbased/__init__.py", line 82, in CliApplication
    app.hooks.emit("post-arg-parse", args)
......
     #imgbase layout
rhvh-4.1-0.20161222.0
 +- rhvh-4.1-0.20161222.0+1
3. run #nodectl check
Status: FAILED
Bootloader ... FAILED - It looks like there are no valid bootloader entries. Please ensure this is fixed before rebooting.
  Layer boot entries ... FAILED - No bootloader entries which point to imgbased layers
  Valid boot entries ... FAILED - No valid boot entries for imgbased layers or non-imgbased layers
Mount points ... FAILED - This can happen if the installation was performed incorrectly
  Separate /var ... OK
  Discard is used ... FAILED - 'discard' mount option was not added or got removed
.....


Version-Release number of selected component (if applicable):
PXE profile: RHVH-4.0-73-20161116.0 
cockpit-ws-118-2.el7.x86_64
imgbased-0.8.10-0.1.el7ev.noarch

How reproducible:
100%

Steps to Reproduce:
1. Install redhat-virtualization-host-4.1-0.20161222.0 via anaconda GUI
2. Successfully install and reboot

Actual results:
After step 2, it could not find boot entry, and some tools like imgbase, nodectl  could not work well.

Expected results:
After step 2, it could install successfully, and work correctly

Additional info:
Maybe imgbase tools problems result in other tool to work well and focus on attachment "grub2.cfg" to check boot info

Comment 1 jianwu 2016-12-28 10:00:46 UTC
Created attachment 1235596 [details]
grub file

Comment 2 jianwu 2016-12-28 10:01:58 UTC
Created attachment 1235597 [details]
boot_1 image

Comment 3 jianwu 2016-12-28 10:02:28 UTC
Created attachment 1235598 [details]
boot image 2

Comment 4 dguo 2016-12-29 02:54:42 UTC
After the installation, also catch the issue, and adding host to engine, found the failure issue:

Host dguo_local installation failed. Unexpected error during execution: usage: 
nodectl [-h] [--version] [--debug] [--machine-readable]
               {info,rollback,check,motd,init,generate-banner} ...
nodectl: error: unrecognized arguments: --oneline

This issue blocked the registration test cases.

Comment 5 Ryan Barry 2016-12-29 03:08:35 UTC
Can you please add the engine logs? I'm guessing it should be calling --machine-readable, not --oneline, but I didn't know host-deploy checked nodectl at all

Comment 6 jianwu 2016-12-29 03:28:18 UTC
Created attachment 1235800 [details]
engine logs

Comment 7 jianwu 2016-12-29 03:32:52 UTC
(In reply to Ryan Barry from comment #5)
> Can you please add the engine logs? I'm guessing it should be calling
> --machine-readable, not --oneline, but I didn't know host-deploy checked
> nodectl at all

Hi, Ryan Barry
I have uploaded engine logs on #attachment 1235800 [details], please check it

Comment 8 Yihui Zhao 2016-12-30 07:00:07 UTC
After deploy HostedEngine successfully, add additional host via engine web UI also 
failed.Just like add host to engine failed.So blocked by it.

Thanks,
Yihui

Comment 9 Sandro Bonazzola 2017-01-02 08:11:27 UTC
(In reply to Ryan Barry from comment #5)
> Can you please add the engine logs? I'm guessing it should be calling
> --machine-readable, not --oneline, but I didn't know host-deploy checked
> nodectl at all

Please open a separate bug about this.

Comment 10 dguo 2017-01-03 08:48:38 UTC
(In reply to Sandro Bonazzola from comment #9)
> (In reply to Ryan Barry from comment #5)
> > Can you please add the engine logs? I'm guessing it should be calling
> > --machine-readable, not --oneline, but I didn't know host-deploy checked
> > nodectl at all
> 
> Please open a separate bug about this.

As request, submit a new bug 1409745

Comment 11 Yuval Turgeman 2017-01-04 10:53:45 UTC
(In reply to dguo from comment #10)
> (In reply to Sandro Bonazzola from comment #9)
> > (In reply to Ryan Barry from comment #5)
> > > Can you please add the engine logs? I'm guessing it should be calling
> > > --machine-readable, not --oneline, but I didn't know host-deploy checked
> > > nodectl at all
> > 
> > Please open a separate bug about this.
> 
> As request, submit a new bug 1409745

the --oneline gets called from profile.d after a successful login from /etc/profile.d/nodectl-motd.sh, it's not something that host-deploy runs.  I think this was solved in bug 1409388

Comment 12 jianwu 2017-01-06 05:52:08 UTC
Hi, Ryan Barry

I have retest this bug on redhat-virtualization-host-4.1-20170104.0 version

version
cockpit-ovirt-dashboard-0.10.7-0.0.3.el7ev.noarch
kernel-3.10.0-514.2.2.el7.x86_64
ovirt-hosted-engine-setup-2.1.0-0.0.master.git46cacd3.el7ev.noarch
redhat-release-virtualization-host-4.1-0.0.el7.x86_64
vdsm-4.19.1-1.el7ev.x86_64

Step to reproduce:
1. Install redhat-virtualization-host-4.1-0.20170104.0 via anaconda GUI
2. Successfully install and reboot

Actual results:
After step 2, RHVH is installed successfully and could reboot.

According to this test result, this bug is fixed in redhat-virtualization-host-4.1-20170104.0, so i will verify this bug.

Jian Wu
Thanks


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