Bug 1376607

Summary: [RFE] Improve error message in case that the layout is already initialized
Product: Red Hat Enterprise Virtualization Manager Reporter: Diego Mendoza <dmendoza>
Component: imgbasedAssignee: Douglas Schilling Landgraf <dougsland>
Status: CLOSED ERRATA QA Contact: Qin Yuan <qiyuan>
Severity: high Docs Contact:
Priority: high    
Version: 4.0.0CC: cshao, dfediuck, dguo, dmendoza, huzhao, jspanko, leiwang, mgoldboi, weiwang, yaniwang, ycui
Target Milestone: ovirt-4.1.0-betaKeywords: FutureFeature
Target Release: ---Flags: cshao: testing_plan_complete+
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-04-20 18:59:00 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 Diego Mendoza 2016-09-15 22:34:58 UTC
Description of problem:

I'm trying to install on a Dell PowerEdge R310 server.

Version-Release number of selected component (if applicable):

imgbased-0.8.4-1.el7ev.noarch

installation Media:RHVH-4.0-20160907.4-RHVH-x86_64-dvd1.iso 

How reproducible:

imgbase layout --init

Actual results:

Traceback (most recent call last):
  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)
  File "/usr/lib/python2.7/site-packages/imgbased/hooks.py", line 120, in emit
    cb(self.context, *args)
  File "/usr/lib/python2.7/site-packages/imgbased/plugins/core.py", line 162, in post_argparse
    layout.initialize(args.source, args.init_nvr)
  File "/usr/lib/python2.7/site-packages/imgbased/plugins/core.py", line 214, in initialize
    source)
imgbased.plugins.core.InitializationFailedError: Failed to initialized layout from '/'

Comment 1 Fabian Deutsch 2016-09-19 06:46:09 UTC
This error is likely raised because the partitioning did not meet the requirements of RHVH.

What kind of partitioning did you perform (auto or manual)?
If it was manual, please provide smoe details on the partitioning type and the mount-points you created.

Bug 1331278 covers the improvement of the error messages during installation - this bug is one of those which will get a better error message to explain what the issue is.

Comment 2 Wei Wang 2016-11-15 09:51:49 UTC
Test Version
RHVH-4.0-20160907.4-RHVH-x86_64-dvd1.iso
imgbased-0.8.4-1.el7ev.noarch

Steps:
1. Clean install RHVH-4.0-20160907.4-RHVH-x86_64-dvd1.iso with auto partitioning
2. Login to with root account
3. Input command 
   #imgbase layout --init

Result:
[root@localhost ~]# imgbase layout --init
Traceback (most recent call last):
  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)
  File "/usr/lib/python2.7/site-packages/imgbased/hooks.py", line 120, in emit
    cb(self.context, *args)
  File "/usr/lib/python2.7/site-packages/imgbased/plugins/core.py", line 162, in post_argparse
    layout.initialize(args.source, args.init_nvr)
  File "/usr/lib/python2.7/site-packages/imgbased/plugins/core.py", line 214, in initialize
    source)
imgbased.plugins.core.InitializationFailedError: Failed to initialized layout from '/'

QE can reproduce this bug, please add qe_ack.

Comment 3 Fabian Deutsch 2016-11-15 11:30:05 UTC
Diego, how did you run into the issue? Did you do it as comment 2 is describing it?

So installing RHVH - and then additionally run imgbase layout --init?

Comment 4 Douglas Schilling Landgraf 2016-11-19 04:51:29 UTC
Hi Diego,

The output of lvs -o +tags also would help us. For now, I have sent an initial patch to show us more details in case of failure.

Comment 6 Qin Yuan 2017-01-11 09:03:08 UTC
Test Version:
redhat-virtualization-host-4.1-0.20170104.0
imgbased-0.9.2-0.1.el7ev.noarch

Test Steps:
1. Install RHVH 4.1
2. Reboot and log in to RHVH 4.1
3. Run command "imgbase layout --init"

Test Result:
After step3, there is a message printed out on the screen saying:
imgbased.imgbase.ExistingImgbaseWithTags: Looks like the system already has imgbase working properly.
However, imgbase was called with --init. If this wasintentional, please untag the existing volumes and try again.


There is a friendly message to indicate the user what happened when running command "imgbase layout --init" after installation finished.

So, change the RFE's status to VERIFIED.

Comment 8 errata-xmlrpc 2017-04-20 18:59:00 UTC
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/RHEA-2017:1114

Comment 9 Red Hat Bugzilla 2023-09-14 03:30:59 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days