Swift puppet module creates (unused) /home/swift

Bug #1269542 reported by Lars Kellogg-Stedman
24
This bug affects 5 people
Affects Status Importance Assigned to Milestone
puppet-openstack
New
Undecided
Unassigned

Bug Description

The Swift Puppet module attempts to create /home/swift in https://github.com/stackforge/puppet-swift/blob/master/manifests/init.pp:

  file { '/home/swift':
    ensure => directory,
    mode => '0700',
  }

Nothing else appears to use this directory, and in environments where /home is mounted from a remote system or is maintained by automount it may not be root writeable, which causes the module to throw an error. It is also possible that home directories aren't actually located in /home.

Since nothing appears to use this directory, removing this stanza from the manifest seems like an easy solution.

Revision history for this message
Lars Kellogg-Stedman (larsks) wrote :
Revision history for this message
Kent Holloway (drizit) wrote :

We automount all /homes from a NFS location and local nodes don't have permissions to create or modify directories or directory permissions on the NFS mount so Packstack fails to install until you create /home/swift and set it's permissions to 0700 (even if you don't use this directory it has to exist!).

It would be much better if it used the directory defined in /etc/passwd for the user OR tested for usability of the /homes dir before failing hard.

Thanks.

Revision history for this message
Alex Tomic (atomic777) wrote :

I ran into the same problem in our environment where we have an NFS mounted /home.

An ugly but effective workaround was to change /home/swift to another directory outside of home directly in the installed puppet module. I re-ran packstack and I seem to have a working swift installation now.

Revision history for this message
Ali (ali-0) wrote :

I ran into same problem. Just changed /home/swift to point to another directory (with chmod 0700) outside of home and re ran the packstack.

For those who do not know whic file to edit:
/usr/share/openstack-puppet/modules/swift/manifests/init.pp

Please fix this issue. Thanks.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.