Hi all,
We are hitting an error in the centos 7 installation with our kickstart configuration.
=============================================================================== An unknown error has occurred =============================================================================== anaconda 21.48.22.56-1 exception report Traceback (most recent call first): File "/usr/lib/python2.7/site-packages/blivet/devicelibs/lvm.py", line 538, in lvactivate raise LVMError("lvactivate failed for %s: %s" % (lv_name, msg)) File "/usr/lib/python2.7/site-packages/blivet/devices/lvm.py", line 690, in _setup lvm.lvactivate(self.vg.name, self._name) File "/usr/lib/python2.7/site-packages/blivet/devices/storage.py", line 413, in setup self._setup(orig=orig) File "/usr/lib/python2.7/site-packages/blivet/deviceaction.py", line 650, in execute self.device.setup(orig=True) File "/usr/lib/python2.7/site-packages/blivet/devicetree.py", line 377, in processActions action.execute(callbacks) File "/usr/lib/python2.7/site-packages/blivet/__init__.py", line 374, in doIt self.devicetree.processActions(callbacks) File "/usr/lib/python2.7/site-packages/blivet/__init__.py", line 224, in turnOnFilesystems storage.doIt(callbacks) File "/usr/lib64/python2.7/site-packages/pyanaconda/install.py", line 186, in doInstall turnOnFilesystems(storage, mountOnly=flags.flags.dirInstall, callbacks=callbacks_reg) File "/usr/lib64/python2.7/threading.py", line 764, in run self.__target(*self.__args, **self.__kwargs) File "/usr/lib64/python2.7/site-packages/pyanaconda/threads.py", line 227, in run threading.Thread.run(self, *args, **kwargs) LVMError: lvactivate failed for swap: running lvm lvchange -a y --config devices { preferred_names=["^/dev/mapper/", "^/dev/md/", "^/dev/sd"] } redhat/swap failed
Kickstart:- #version=RHEL7 # System authorization information auth --enableshadow --passalgo=sha512
# Use CDROM installation media cdrom # Run the Setup Agent on first boot firstboot --enable ignoredisk --only-use=vda # Keyboard layouts
keyboard --vckeymap=us --xlayouts='us' network --device eth0 --bootproto static --ip 10.97.60.50 --netmask 255.255.255.0 --gateway 10.97.60.254 --nameserver 10.97.2.1 --noipv6 # System language lang en_US.UTF-8 # System timezone timezone America/Los_Angeles
# Network information
#network --bootproto=dhcp --device=eno1 --onboot=yes --ipv6=auto #network --bootproto=dhcp --device=eno2 --onboot=yes --ipv6=auto #network --bootproto=dhcp --device=enp4s0f0 --onboot=yes --ipv6=auto #network --bootproto=dhcp --device=enp4s0f1 --onboot=yes --ipv6=auto #network --bootproto=dhcp --device=enp4s0f2 --onboot=yes --ipv6=auto #network --bootproto=dhcp --device=enp4s0f3 --onboot=yes --ipv6=auto #network --bootproto=dhcp --device=enp7s0f0 --onboot=yes --ipv6=auto #network --bootproto=dhcp --device=enp7s0f1 --onboot=yes --ipv6=auto #network --hostname=localhost.localdomain # Reboot after installation reboot # Root password #rootpw --iscrypted $6$1VdyMsGywTam2QoF$h9G0RZJlZ8etF8LMvjT8LBuYoRkWfP3nXSP8UrNtW6gV/gHCjdUbnMDca.St2NVftNz5rJ5bZ/FgvLky2j2TG1 rootpw "root"
# Create user admin user --groups=wheel --name=admin --password=$6$zVk6Jq/HtswVONHY$0frpMHx1IBOe302zYnhdo9xRQS6NOgBWgpXpH33k3dNYkHm1jCo6Cj.SXn9Ct/BugC.0iTkwBsX.NcpVtocc70 --iscrypted --shell=/sbin/nologin # Partitioning and System bootloader configuration bootloader --append=" crashkernel=auto" --location=mbr --boot-drive=vda autopart --type=lvm clearpart --all --initlabel
%packages <list of packages> %end
Can somebody suggest a quick workaround for the above anaconda error.
We feel that Red hat has acknowledged this issue, but not sure, when can we get the fix for this.
https://access.redhat.com/solutions/2203631
Is there any workaround for this?
Regards Sudhanshu bhutani