Bug 1389679 - Fatal error occurs during anaconda interactive install via iso.
Summary: Fatal error occurs during anaconda interactive install via iso.
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-node
Classification: oVirt
Component: Installation & Update
Version: 4.0
Hardware: Unspecified
OS: Unspecified
urgent
urgent vote
Target Milestone: ovirt-4.0.5
: 4.0
Assignee: Ryan Barry
QA Contact: cshao
URL:
Whiteboard:
Depends On:
Blocks: 1372719
TreeView+ depends on / blocked
 
Reported: 2016-10-28 08:43 UTC by cshao
Modified: 2020-01-17 16:09 UTC (History)
14 users (show)

Fixed In Version: imgbased-0.8.7-1.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-01-18 07:39:03 UTC
oVirt Team: Node
rule-engine: ovirt-4.0.z+
rule-engine: blocker+
mgoldboi: planning_ack+
fdeutsch: devel_ack+
cshao: testing_ack+


Attachments (Terms of Use)
anaconda-error (126.46 KB, image/png)
2016-10-28 08:43 UTC, cshao
no flags Details
/var/log; /tmp (135.90 KB, application/x-gzip)
2016-10-28 08:43 UTC, cshao
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1388317 0 urgent CLOSED [z-stream clone - 4.0.5] Node upgrade doesn't keep service enable/disable configuration 2021-02-22 00:41:40 UTC
oVirt gerrit 65978 0 None None None 2016-11-03 13:21:19 UTC

Internal Links: 1388317

Description cshao 2016-10-28 08:43:05 UTC
Created attachment 1214864 [details]
anaconda-error

Description of problem:
Fatal error occurs during anaconda interactive install via iso.

14:15:39,169 ERR anaconda: Error code 1 running the kickstart script at line 9

Version-Release number of selected component (if applicable):
RHVH-4.0-20161027.3-RHVH-x86_64-dvd1.iso
imgbased-0.8.6-0.1.el7ev.src.rpm
redhat-release-virtualization-host-4.0-5.1.el7.x86_64

How reproducible:
100%

Steps to Reproduce:
1. Anaconda interactive install RHVH via iso with default ks.
2. Try to finish the installation with correct steps.
3. Focus on the installation process.

Actual results:
Fatal error occurs during anaconda interactive install via iso.

Expected results:
Anaconda interactive install RHVH can successful via ISO.

Additional info:

Comment 1 cshao 2016-10-28 08:43:49 UTC
Created attachment 1214865 [details]
/var/log; /tmp

Comment 2 cshao 2016-10-28 08:48:29 UTC
Add keyword "regression" due to no such issue on previous iso (RHVH-4.0-20161007.0-RHVH-x86_64-dvd1.iso)

Comment 3 Fabian Deutsch 2016-10-28 10:20:34 UTC
This seems to be a regression of 1380797.

From ks snippet log:

[INFO] Syncing systemd levels
rm: cannot remove '/tmp/mnt.mjju6///etc/systemd/system/multi-user.target.wants/chronyd.service': No such file or directory
[ERROR] Failed to migrate etc
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/imgbased/plugins/osupdater.py", line 74, in on_new_layer
    migrate_etc(imgbase, new_lv, previous_layer_lv)
  File "/usr/lib/python2.7/site-packages/imgbased/plugins/osupdater.py", line 164, in migrate_etc
    fix_systemd_services(old_fs, new_fs)
  File "/usr/lib/python2.7/site-packages/imgbased/plugins/osupdater.py", line 196, in fix_systemd_services
    remove_file(new_fs.path("/") + d)
  File "/usr/lib/python2.7/site-packages/imgbased/utils.py", line 52, in remove_file
    return rm(args)
  File "/usr/lib/python2.7/site-packages/imgbased/utils.py", line 358, in rm
    return self.call(["rm"] + args, **kwargs)
  File "/usr/lib/python2.7/site-packages/imgbased/utils.py", line 323, in call
    stdout = call(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/imgbased/utils.py", line 117, in call
    return subprocess.check_output(*args, **kwargs).strip()
  File "/usr/lib64/python2.7/subprocess.py", line 575, in check_output
    raise CalledProcessError(retcode, cmd, output=output)
CalledProcessError: Command '['rm', u'/tmp/mnt.mjju6///etc/systemd/system/multi-user.target.wants/chronyd.service']' returned non-zero exit status 1
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 163, in post_argparse
    layout.initialize(args.source, args.init_nvr)
  File "/usr/lib/python2.7/site-packages/imgbased/plugins/core.py", line 211, in initialize
    self.app.imgbase.init_layout_from(source, init_nvr)
  File "/usr/lib/python2.7/site-packages/imgbased/imgbase.py", line 244, in init_layout_from
    self.add_layer(initial_base, new_layer)
  File "/usr/lib/python2.7/site-packages/imgbased/imgbase.py", line 170, 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 77, in on_new_layer
    raise ConfigMigrationError()
imgbased.plugins.osupdater.ConfigMigrationError

Is this a TestBlocker?

Comment 4 Red Hat Bugzilla Rules Engine 2016-10-28 10:20:43 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 5 Ying Cui 2016-10-28 14:24:48 UTC
(In reply to Fabian Deutsch from comment #3)
> This seems to be a regression of 1380797.
> 
If so, the bug 1380797 is MODIFIED status and is targeted to ovirt-4.1.0, not sure why the patches affect z-stream?

Comment 6 Ying Cui 2016-10-28 14:41:41 UTC
Tested the upstream build ovirt-node-ng-installer-ovirt-4.0-snapshot-2016102804.iso, still failed with the same error like in comment 3. 

<snip>
rm: cannot remove '/tmp/mnt.ew9UH///etc/systemd/system/multi-user.target.wants/chronyd.service': No such file or directory
[ERROR] Failed to migrate etc
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/imgbased/plugins/osupdater.py", line 74, in on_new_layer
    migrate_etc(imgbase, new_lv, previous_layer_lv)
  File "/usr/lib/python2.7/site-packages/imgbased/plugins/osupdater.py", line 164, in migrate_etc
    fix_systemd_services(old_fs, new_fs)
  File "/usr/lib/python2.7/site-packages/imgbased/plugins/osupdater.py", line 196, in fix_systemd_services
    remove_file(new_fs.path("/") + d)
  File "/usr/lib/python2.7/site-packages/imgbased/utils.py", line 52, in remove_file
    return rm(args)
  File "/usr/lib/python2.7/site-packages/imgbased/utils.py", line 358, in rm
    return self.call(["rm"] + args, **kwargs)
  File "/usr/lib/python2.7/site-packages/imgbased/utils.py", line 323, in call
    stdout = call(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/imgbased/utils.py", line 117, in call
    return subprocess.check_output(*args, **kwargs).strip()
  File "/usr/lib64/python2.7/subprocess.py", line 575, in check_output
    raise CalledProcessError(retcode, cmd, output=output)
CalledProcessError: Command '['rm', u'/tmp/mnt.ew9UH///etc/systemd/system/multi-user.target.wants/chronyd.service']' returned non-zero exit status 1
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 163, in post_argparse
    layout.initialize(args.source, args.init_nvr)
  File "/usr/lib/python2.7/site-packages/imgbased/plugins/core.py", line 211, in initialize
    self.app.imgbase.init_layout_from(source, init_nvr)
  File "/usr/lib/python2.7/site-packages/imgbased/imgbase.py", line 244, in init_layout_from
    self.add_layer(initial_base, new_layer)
  File "/usr/lib/python2.7/site-packages/imgbased/imgbase.py", line 170, 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 77, in on_new_layer
    raise ConfigMigrationError()
imgbased.plugins.osupdater.ConfigMigrationError

</snip>

Comment 7 Fabian Deutsch 2016-10-31 09:36:12 UTC
In comment 3 I was actually referring to the zstream clone bug 1388317 - but did not point it out.

I'll revert the patch tof ix this issue.

Comment 8 Fabian Deutsch 2016-10-31 10:58:21 UTC
I just learned that there is a way to work around the issue for SVVP testing, tuhs I will not revert the patch.

Comment 9 cshao 2016-11-09 06:42:18 UTC
Test version:
redhat-virtualization-host-4.0-20161107.0
imgbased-0.8.7-0.1.el7ev.noarch

Test steps:
1. Anaconda interactive install RHVH via iso on local machine with default ks.
2. Anaconda interactive install RHVH via iso on UEFI machine with default ks.
3. Anaconda interactive install RHVH via iso on ISCSI machine with default ks.
4. Anaconda interactive install RHVH via iso on FC machine with default ks.
5. Try to finish the installation with correct steps.
6. Focus on the installation process.

Test results:
Anaconda interactive install RHVH can successful via ISO.

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

Comment 10 Mike Goodwin 2017-11-08 04:48:29 UTC
I have this exact error on 3 production dell servers with:

ovirt-node-ng-installer-ovirt-4.1-2017110715.iso

from jenkins.


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