Bug 1376607 - [RFE] Improve error message in case that the layout is already initialized
Summary: [RFE] Improve error message in case that the layout is already initialized
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: imgbased
Version: 4.0.0
Hardware: x86_64
OS: Linux
high
high
Target Milestone: ovirt-4.1.0-beta
: ---
Assignee: Douglas Schilling Landgraf
QA Contact: Qin Yuan
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-09-15 22:34 UTC by Diego Mendoza
Modified: 2023-09-14 03:30 UTC (History)
11 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-04-20 18:59:00 UTC
oVirt Team: Node
Target Upstream Version:
Embargoed:
cshao: testing_plan_complete+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1331278 0 high CLOSED [RFE] Raise a meaningful error of the layout can not be created (i.e. no thinpool available) 2021-02-22 00:41:40 UTC
Red Hat Product Errata RHEA-2017:1114 0 normal SHIPPED_LIVE redhat-virtualization-host bug fix and enhancement update 2017-04-20 22:57:46 UTC
oVirt gerrit 67062 0 None MERGED imgbase: improve error handling during layout --init 2020-03-11 15:25:58 UTC

Internal Links: 1331278

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


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