Description of problem: packstack/puppet-swift fails to install on EL6 because it is unable to find the 'restorecon' command. policycoreutils is installed and the /sbin/restorecon exists. Version-Release number of selected component (if applicable): openstack-packstack-puppet-2014.1.1-0.21.dev1157.1.el6.noarch openstack-packstack-2014.1.1-0.21.dev1157.1.el6.noarch policycoreutils-2.0.83-19.39.el6.x86_64 How reproducible: always Console log: 2014-07-02 11:40:11,108 - sshConnection - INFO - ERROR : Error appeared during Puppet run: 172.16.32.19_swift.pp 2014-07-02 11:40:11,109 - sshConnection - INFO - Error: /Stage[main]/Main/Swift::Storage::Loopback[swift_loopback]/Swift::Storage::Ext4[swift_loopback]/Swift::Storage::Mount[swift_loopback]/Exec[restorecon_mount_swift_loopback]: Failed to call refresh: Could not find command 'restorecon' manifest log: Notice: /Stage[main]/Main/Swift::Storage::Loopback[swift_loopback]/Swift::Storage::Ext4[swift_loopback]/Swift::Storage::Mount[swift_loopback]/Exec[mount_swift_loopback]: Triggered 'refresh' from 1 events Info: /Stage[main]/Main/Swift::Storage::Loopback[swift_loopback]/Swift::Storage::Ext4[swift_loopback]/Swift::Storage::Mount[swift_loopback]/Exec[mount_swift_loopback]: Scheduling refresh of Exec[restorecon_mount_swift_loopback] Debug: /Stage[main]/Main/Swift::Storage::Loopback[swift_loopback]/Swift::Storage::Ext4[swift_loopback]/Swift::Storage::Mount[swift_loopback]/Exec[mount_swift_loopback]: The container Swift::Storage::Mount[swift_loopback] will propagate my refresh event Info: /Stage[main]/Main/Swift::Storage::Loopback[swift_loopback]/Swift::Storage::Ext4[swift_loopback]/Swift::Storage::Mount[swift_loopback]/Exec[mount_swift_loopback]: Scheduling refresh of Exec[fix_mount_permissions_swift_loopback] Error: /Stage[main]/Main/Swift::Storage::Loopback[swift_loopback]/Swift::Storage::Ext4[swift_loopback]/Swift::Storage::Mount[swift_loopback]/Exec[restorecon_mount_swift_loopback]: Failed to call refresh: Could not find command 'restorecon' Error: /Stage[main]/Main/Swift::Storage::Loopback[swift_loopback]/Swift::Storage::Ext4[swift_loopback]/Swift::Storage::Mount[swift_loopback]/Exec[restorecon_mount_swift_loopback]: Could not find command 'restorecon' Debug: Exec[fix_mount_permissions_swift_loopback](provider=posix): Executing 'chown -R swift:swift /srv/node/swift_loopback' Debug: Executing 'chown -R swift:swift /srv/node/swift_loopback' Notice: /Stage[main]/Main/Swift::Storage::Loopback[swift_loopback]/Swift::Storage::Ext4[swift_loopback]/Swift::Storage::Mount[swift_loopback]/Exec[fix_mount_permissions_swift_loopback]: Triggered 'refresh' from 3 events Debug: /Stage[main]/Main/Swift::Storage::Loopback[swift_loopback]/Swift::Storage::Ext4[swift_loopback]/Swift::Storage::Mount[swift_loopback]/Exec[fix_mount_permissions_swift_loopback]: The container Swift::Storage::Mount[swift_loopback] will propagate my refresh event Debug: Swift::Storage::Mount[swift_loopback]: The container Swift::Storage::Ext4[swift_loopback] will propagate my refresh event Debug: Executing '/sbin/service xinetd status' Debug: Executing '/sbin/chkconfig xinetd' Debug: Exec[rsync /etc/swift/account.ring.gz](provider=posix): Executing check 'test `rsync --dry-run --itemize-changes -a rsync://172.16.32.19/swift_server/account.ring.gz /etc/swift/account.ring.gz | wc -l` -gt 0' Debug: Executing 'test `rsync --dry-run --itemize-changes -a rsync://172.16.32.19/swift_server/account.ring.gz /etc/swift/account.ring.gz | wc -l` -gt 0' Debug: Exec[rsync /etc/swift/object.ring.gz](provider=posix): Executing check 'test `rsync --dry-run --itemize-changes -a rsync://172.16.32.19/swift_server/object.ring.gz /etc/swift/object.ring.gz | wc -l` -gt 0' Debug: Executing 'test `rsync --dry-run --itemize-changes -a rsync://172.16.32.19/swift_server/object.ring.gz /etc/swift/object.ring.gz | wc -l` -gt 0' Debug: Puppet::Type::Firewall::ProviderIptables: [instances] Debug: Executing '/sbin/iptables-save' Debug: Firewall[001 swift storage and rsync incoming swift_storage_and_rsync_172.16.32.19](provider=iptables): Inserting rule 001 swift storage and rsync incoming swift_storage_and_rsync_172.16.32.19 Debug: Firewall[001 swift storage and rsync incoming swift_storage_and_rsync_172.16.32.19](provider=iptables): [insert_order] Debug: Puppet::Type::Firewall::ProviderIptables: [instances] Debug: Executing '/sbin/iptables-save' Debug: Firewall[001 swift storage and rsync incoming swift_storage_and_rsync_172.16.32.19](provider=iptables): Current resource: Puppet::Type::Firewall Debug: Executing '/sbin/iptables -I INPUT 19 -t filter -s 172.16.32.19/32 -p tcp -m multiport --dports 6000,6001,6002,873 -m comment --comment 001 swift storage and rsync incoming swift_storage_and_rsync_172.16.32.19 -j ACCEPT' Notice: /Stage[main]/Main/Packstack::Firewall[swift_storage_and_rsync_172.16.32.19]/Firewall[001 swift storage and rsync incoming swift_storage_and_rsync_172.16.32.19]/ensure: created
May be while applying workaround for another bug you changed line 53 along with 68 to make path => ['/usr/sbin', '/bin'], to path => ['/usr/sbin', '/sbin']? revert it back and modify only line 68. It may resolve your problem as it did resolve mine.
(In reply to Ali Anwar from comment #2) > May be while applying workaround for another bug you changed line 53 along > with 68 to make path => ['/usr/sbin', '/bin'], to path => > ['/usr/sbin', '/sbin']? > > revert it back and modify only line 68. It may resolve your problem as it > did resolve mine. https://bugzilla.redhat.com/show_bug.cgi?id=1109079 /usr/share/openstack-puppet/modules/swift/manifests/storage/mount.pp