English
« Back to projectatomic.io
Ask Your Question
0

kickstart error - OSError permission denied

asked 2016-02-19 12:44:43 +0000

baboune gravatar image

updated 2016-02-19 15:14:30 +0000

Hi,

During the kickstart phase, the server fails during the installation, the following error is shown:
OSError: [Errno 13] Permission denied: '/mnt/sysimage/ostree/deploy/centos/deploy/06efd9d78a08a8bec8b5ffb363d3b1918996a06a362080a39aaa69908e9437d0.0/data'

I verified the kickstart and it works on other distributions. The error is when trying to define two logvol under one partition.

kickstart http://pastebin.com/uiChf06U
Error logs: https://dl.dropboxusercontent.com/u/1...

anaconda 21.48.22.56-1 exception report
Traceback (most recent call first):
File "/usr/lib64/python2.7/os.py", line 157, in makedirs mkdir(name, mode)
File "/usr/lib/python2.7/site-packages/blivet/util.py", line 285, in makedirs os.makedirs(path, 0o755)
File "/usr/lib/python2.7/site-packages/blivet/formats/fs.py", line 657, in mount util.makedirs(chrootedMountpoint)
File "/usr/lib/python2.7/site-packages/blivet/formats/fs.py", line 921, in setup< return self.mount(*kwargs)
File "/usr/lib/python2.7/site-packages/blivet/init.py", line 2644, in mountFilesystems chroot=rootPath)
File "/usr/lib/python2.7/site-packages/blivet/init.py", line 1621, in mountFilesystems readOnly=readOnly, skipRoot=skipRoot)
File "/usr/lib64/python2.7/site-packages/pyanaconda/install.py", line 248, in doInstall storage.mountFilesystems(skipRoot=True)
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)
OSError: [Errno 13] Permission denied: '/mnt/sysimage/ostree/deploy/centos/deploy/06efd9d78a08a8bec8b5ffb363d3b1918996a06a362080a39aaa69908e9437d0.0/data'

Local variables in innermost frame:
tail: data
head: /mnt/sysimage/ostree/deploy/centos/deploy /06efd9d78a08a8bec8b5ffb363d3b1918996a06a362080a39aaa69908e9437d0.0
name: /mnt/sysimage/ostree/deploy/centos/deploy/06efd9d78a08a8bec8b5ffb363d3b1918996a06a362080a39aaa69908e9437d0.0/data
mode: 493

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-02-19 15:12:13 +0000

baboune gravatar image

updated 2016-02-19 15:12:37 +0000

ok. Somehow it requires the kickstart to be like this:

clearpart --all --initlabel --drives=sda
bootloader --location=mbr --append="ds=nocloud\;seedfrom=/var/cloud-init/"
part /boot --fstype=ext4 --asprimary --size=512 --ondrive=sda
part pv.01 --fstype=ext4 --asprimary --size=3560 --ondrive=sda --grow
part pv.02 --fstype=xfs --asprimary --size=2048 --ondrive=sda
volgroup atomicos-vg pv.01
volgroup docker-vg pv.02
logvol / --vgname=atomicos-vg --fstype=ext4 --name=root --size=3560
logvol /mnt/data --vgname=atomicos-vg --fstype=ext4 --name=data --size=512 --grow

Note the /mnt/data in the last line.

Using:

clearpart --all --initlabel --drives=sda
bootloader --location=mbr --append="ds=nocloud\;seedfrom=/var/cloud-init/"
part /boot --fstype=ext4 --asprimary --size=512 --ondrive=sda
part pv.01 --fstype=ext4 --asprimary --size=3560 --ondrive=sda --grow
part pv.02 --fstype=xfs --asprimary --size=2048 --ondrive=sda
volgroup atomicos-vg pv.01
volgroup docker-vg pv.02
logvol / --vgname=atomicos-vg --fstype=ext4 --name=root --size=3560
logvol /data --vgname=atomicos-vg --fstype=ext4 --name=data --size=512 --grow

Makes anaconda crash.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Question Tools

Follow
1 follower

Stats

Asked: 2016-02-19 12:44:43 +0000

Seen: 325 times

Last updated: Feb 19 '16