packstack install fails with non-standard /home path

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

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:

                                                                                    [ ERROR ]

ERROR : Error appeared during Puppet run:
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

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

larsks gravatar image

This is due to , 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


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 -0600 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


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

Seen: 381 times

Last updated: Apr 10 '14