Created attachment 1256758 [details] Logs during installation Description of problem: rhvh4.0-20170221.0 auto kickstart installation failed Version-Release number of selected component (if applicable): redhat-virtualization-host-4.0-20170221.4.x86_64 How reproducible: 100% Steps to Reproduce: 1. PXE boot for rhvh4.0-20170221 2. Boot with KS file defined below '''''' #live disk image liveimg --url=http://10.66.10.22:8090/rhvh_ngn/squashimg/redhat-virtualization-host-4.0-20170221.0/redhat-virtualization-host-4.0-20170221.0.x86_64.liveimg.squashfs #Keyboard layouts keyboard 'us' #Root password rootpw --plaintext redhat # System language lang en_us # Partition cleaning information clearpart --all # System bootloader configure bootloader --location=mbr autopart --type=thinp # System Timezone timezone --utc Asia/Shanghai # Clean mbr information zerombr # Use text mode install text # Reboot after installation reboot %post --erroronfail #%post imgbase layout --init %end '''''' Actual results: 1.Installed failed, there is error shown: 05:36:51,570 INFO program: Running... /bin/sh /tmp/ks-script-9uYrtQ 05:37:01,805 INFO program: [INFO] Trying to create a manageable base from '/' 05:37:01,806 INFO program: [INFO] Initial base will be <Base rhvh-4.0-0.20170221.0 [] /> 05:37:01,806 INFO program: [INFO] Initial layer will be <Layer rhvh-4.0-0.20170221.0+1 /> 05:37:01,806 INFO program: [INFO] Creating an initial base <Base rhvh-4.0-0.20170221.0 [] /> for <LV 'rhvh_dhcp-8-140/root' /> 05:37:01,807 INFO program: WARNING: Sum of all thin volume sizes (409.40 GiB) exceeds the size of thin pool rhvh_dhcp-8-140/pool00 and the size of whole volume group (231.83 GiB)! 05:37:01,807 INFO program: [INFO] Creating initial layer <Layer rhvh-4.0-0.20170221.0+1 /> for initial base 05:37:01,807 INFO program: [INFO] Adding a new layer after <Base rhvh-4.0-0.20170221.0 [] /> 05:37:01,808 INFO program: [INFO] Adding a new layer after <Base rhvh-4.0-0.20170221.0 [] /> 05:37:01,808 INFO program: [INFO] New layer will be: <Layer rhvh-4.0-0.20170221.0+1 /> 05:37:01,808 INFO program: WARNING: Sum of all thin volume sizes (606.60 GiB) exceeds the size of thin pool rhvh_dhcp-8-140/pool00 and the size of whole volume group (231.83 GiB)! 05:37:01,809 INFO program: [INFO] Verifying stream compatability 05:37:01,809 INFO program: [INFO] Migrating /etc (from <LV 'rhvh_dhcp-8-140/rhvh-4.0-0.20170221.0+1' />) 05:37:01,809 INFO program: cp: '/tmp/mnt.o1pu3///etc/ntp.conf' and '/tmp/mnt.4aLAI///etc/ntp.conf' are the same file 05:37:01,809 INFO program: [ERROR] Failed to migrate etc 05:37:01,810 INFO program: Traceback (most recent call last): 05:37:01,810 INFO program: File "/usr/lib/python2.7/site-packages/imgbased/plugins/osupdater.py", line 76, in on_new_layer 05:37:01,810 INFO program: migrate_etc(imgbase, new_lv, previous_layer_lv) 05:37:01,810 INFO program: File "/usr/lib/python2.7/site-packages/imgbased/plugins/osupdater.py", line 262, in migrate_etc 05:37:01,811 INFO program: "-a", "-r") 05:37:01,811 INFO program: File "/usr/lib/python2.7/site-packages/imgbased/utils.py", line 63, in copy_files 05:37:01,811 INFO program: return cp(args) 05:37:01,812 INFO program: File "/usr/lib/python2.7/site-packages/imgbased/utils.py", line 362, in cp 05:37:01,812 INFO program: return self.call(["cp"] + args, **kwargs) 05:37:01,812 INFO program: File "/usr/lib/python2.7/site-packages/imgbased/utils.py", line 324, in call 05:37:01,812 INFO program: stdout = call(*args, **kwargs) 05:37:01,813 INFO program: File "/usr/lib/python2.7/site-packages/imgbased/utils.py", line 118, in call 05:37:01,813 INFO program: return subprocess.check_output(*args, **kwargs).strip() 05:37:01,813 INFO program: File "/usr/lib64/python2.7/subprocess.py", line 575, in check_output 05:37:01,814 INFO program: raise CalledProcessError(retcode, cmd, output=output) 05:37:01,814 INFO program: CalledProcessError: Command '['cp', '-a', '-r', u'/tmp/mnt.o1pu3///etc/ntp.conf', u'/tmp/mnt.4aLAI///etc/ntp.conf']' returned non-zero exit status 1 05:37:01,814 INFO program: Traceback (most recent call last): 05:37:01,814 INFO program: File "/usr/lib64/python2.7/runpy.py", line 162, in _run_module_as_main 05:37:01,815 INFO program: "__main__", fname, loader, pkg_name) Expected results: 1. Install can be successfully Additional info: 1. No such issue in previous build, so it is a regression
Ryan can you spend two words on what happened and what has been fixed?
This was a regression caused by a change to osupdater. At init, osupdater appears to trigger with the new LV/layer as both old_fs and new_fs, meaning that any attempts to copy files are using the same path as source and destination. rsync didn't complain about this. cp does.
Verified on latest build rhvh-4.0-2017022.0
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://rhn.redhat.com/errata/RHSA-2017-0549.html