Ask Your Question
1

packstack install fails with non-standard /home path

asked 2014-04-10 17:46:11 -0500

alexthegraham gravatar image

Clean, patched install of CentOS 6.5, packstack --allinone works great.

However, if I modify /etc/default/useradd to specify a directory other than /home for new user home folder creation, installation fails with:

Applying 172.19.5.11_ring_swift.pp
                                                                                    [ ERROR ]

ERROR : Error appeared during Puppet run: 172.19.5.11_ring_swift.pp
Error: Could not set 'directory' on ensure: Permission denied - /home/swift at 49:/var/tmp/packstack/2ed98d563c0c4a0785aad7fb6ff2b075/modules/swift/manifests/init.pp

By the time the script has failed, the 'swift' user has been created, so I made sure that 'swift' can read and write to their home folder, but the script continues to fail with the same error.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-04-10 21:39:50 -0500

larsks gravatar image

This is due to https://bugs.launchpad.net/puppet-ope... , which I filed back in January. Feel free to click the "This bug affects me" link there to help draw attention to it.

Depending on your environment, you may be able to trick the problematic puppet module through the use of symlinks or bind mounts to make /home/swift point to or otherwise act like the correct directory.

You may be able to correct this by removing the file {} resource from the puppet modules manifests/init.pp, but I have not yet had the chance to test this out and see if anything breaks. Some of the ruby libraries in the puppet module also refer to this directory explicitly.

edit flag offensive delete link more

Comments

Your bug report precisely describes my situation - /home is automounted from a network share and can't be used by local accounts.

alexthegraham gravatar imagealexthegraham ( 2014-04-11 11:40:42 -0500 )edit

Your Answer

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

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-04-10 17:46:11 -0500

Seen: 357 times

Last updated: Apr 10 '14