Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1483871

Summary: Raise RuntimeError("Failed to parse NVR: %s" % nvr) during install ovirt-node-ng 4.2
Product: [oVirt] ovirt-node Reporter: cshao <cshao>
Component: Installation & UpdateAssignee: Ryan Barry <rbarry>
Status: CLOSED CURRENTRELEASE QA Contact: cshao <cshao>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 4.2CC: bugs, cshao, dguo, huzhao, jiawu, mgoldboi, qiyuan, rbarry, sbonazzo, weiwang, yaniwang, ycui, yzhao
Target Milestone: ovirt-4.2.0Keywords: TestBlocker
Target Release: ---Flags: rule-engine: ovirt-4.2+
rule-engine: blocker+
mgoldboi: planning_ack+
sbonazzo: devel_ack+
cshao: testing_ack+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-12-20 11:08:51 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:
Attachments:
Description Flags
all log info
none
us-install-failed none

Description cshao 2017-08-22 07:38:41 UTC
Created attachment 1316550 [details]
all log info

Description of problem:
Raise RuntimeError("Failed to parse NVR: %s" % nvr) during install ovirt-node-ng 4.2


2017-08-22 16:22:10,882 [ERROR] (MainThread) The root volume does not look like an image
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 53, 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 173, in post_argparse
    layout.initialize(args.source, args.init_nvr)
  File "/usr/lib/python2.7/site-packages/imgbased/plugins/core.py", line 220, in initialize
    self.app.imgbase.init_layout_from(source, init_nvr)
  File "/usr/lib/python2.7/site-packages/imgbased/imgbase.py", line 293, in init_layout_from
    self.add_layer(initial_base, new_layer)
  File "/usr/lib/python2.7/site-packages/imgbased/imgbase.py", line 192, in add_layer
    self.hooks.emit("new-layer-added", prev_lv, new_lv)
  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/osupdater.py", line 87, in on_new_layer
    previous_layer_lv = imgbase._lvm_from_layer(imgbase.current_layer())
  File "/usr/lib/python2.7/site-packages/imgbased/imgbase.py", line 382, in current_layer
    return self.image_from_path(lv)
  File "/usr/lib/python2.7/site-packages/imgbased/imgbase.py", line 147, in image_from_path
    return Image.from_lv_name(name)
  File "/usr/lib/python2.7/site-packages/imgbased/naming.py", line 328, in from_lv_name
    return cls.from_nvr(lv_name)
  File "/usr/lib/python2.7/site-packages/imgbased/naming.py", line 323, in from_nvr
    return Base(nvr)
  File "/usr/lib/python2.7/site-packages/imgbased/naming.py", line 384, in __init__
    self.nvr = NVR.parse(nvr)  # For convenience: Parse if necessary
  File "/usr/lib/python2.7/site-packages/imgbased/naming.py", line 277, in parse
    raise RuntimeError("Failed to parse NVR: %s" % nvr)
RuntimeError: Failed to parse NVR: root
~


Version-Release number of selected component (if applicable):
ovirt-node-ng-installer-master-2017082204.iso


How reproducible:
100

Steps to Reproduce:
1. Install ovirt-node-ng-installer-master-2017082204.iso via anaconda GUI.
2. Choose auto partitioning, and finish other needed steps.
3. Focus on the installation process.

Actual results:
Raise RuntimeError("Failed to parse NVR: %s" % nvr) during install ovirt-node-ng 4.2

Expected results:
Install ovirt-node-ng 4.2 can successful.

Additional info:

Comment 1 cshao 2017-08-22 08:15:28 UTC
Created attachment 1316554 [details]
us-install-failed

Comment 2 Red Hat Bugzilla Rules Engine 2017-08-22 09:08:06 UTC
This bug report has Keywords: Regression or TestBlocker.
Since no regressions or test blockers are allowed between releases, it is also being identified as a blocker for this release. Please resolve ASAP.

Comment 3 cshao 2017-08-25 02:46:26 UTC
Test versin:
ovirt-node-ng-installer-master-2017082404.iso
imgbased-1.0.999-0.201708231342git22dabdb.el7.centos.noarch

Test steps:
1. Install ovirt-node-ng-installer-master-2017082404.iso via anaconda GUI.
2. Choose auto partitioning, and finish other needed steps.

Test result:
Install ovirt-node-ng 4.2 can successful.

So the bug is fixed, change bug status to VERIFIED.

Comment 4 Sandro Bonazzola 2017-12-20 11:08:51 UTC
This bugzilla is included in oVirt 4.2.0 release, published on Dec 20th 2017.

Since the problem described in this bug report should be
resolved in oVirt 4.2.0 release, published on Dec 20th 2017, it has been closed with a resolution of CURRENT RELEASE.

If the solution does not work for you, please open a new bug report.