swift group race condition

Bug #1314772 reported by Chris Ricker
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cisco Openstack
Fix Released
Medium
Chris Ricker

Bug Description

(Note: this is different than Bug #1274358)

dependency ordering problem where swift group not existing yet causes cascading swift resource failures

Error: Could not set 'directory' on ensure: Could not find group swift at 134:/usr/share/puppet/modules/concat/manifests/init.pp
Error: Could not set 'directory' on ensure: Could not find group swift at 134:/usr/share/puppet/modules/concat/manifests/init.pp
Wrapped exception:
Could not find group swift
Error: /Stage[main]/Swift::Storage::All/Swift::Storage::Server[6001]/Concat[/etc/swift/container-server.conf]/File[/var/lib/puppet/concat/_etc_swift_container-server.conf]/ensure: change from absent to directory failed: Could not set 'directory' on ensure: Could not find group swift at 134:/usr/share/puppet/modules/concat/manifests/init.pp

this gets resolved by multiple puppet runs

summary: - swift user race condition
+ swift group race condition
Changed in openstack-cisco:
assignee: nobody → boddepalli srikanth (boddepalli-srikanth)
Revision history for this message
boddepalli srikanth (boddepalli-srikanth) wrote :

I tried to reproduce this issue using COI Icehouse on Ubuntu 14.04 vitrual machine, but this bug is not reproduciable
Can you please provide additional information to reproduce this bug.

Revision history for this message
Pradeep Kilambi (pkilambi) wrote :

I was able to reproduce this on a fresh AIO:

Info: /Stage[main]/Coe::Base/Apt::Source[cisco-openstack-mirror_icehouse]/File[cisco-openstack-mirror_icehouse.list]: Scheduling refresh of Exec[apt_update]
Debug: /Stage[main]/Coe::Base/Apt::Source[cisco-openstack-mirror_icehouse]/File[cisco-openstack-mirror_icehouse.list]: The container Apt::Source[cisco-openstack-mirror_icehouse] will propagate my refresh event
Error: Could not set 'directory' on ensure: Could not find group swift at 134:/usr/share/puppet/modules/concat/manifests/init.pp
Error: Could not set 'directory' on ensure: Could not find group swift at 134:/usr/share/puppet/modules/concat/manifests/init.pp
Wrapped exception:
Could not find group swift
Error: /Stage[main]/Swift::Storage::All/Swift::Storage::Server[6001]/Concat[/etc/swift/container-server.conf]/File[/var/lib/puppet/concat/_etc_swift_container-server.conf]/ensure: change from absent to directory failed: Could not set 'directory' on ensure: Could not find group swift at 134:/usr/share/puppet/modules/concat/manifests/init.pp
Notice: /Stage[main]/Swift::Storage::All/Swift::Storage::Server[6001]/Concat[/etc/swift/container-server.conf]/File[/var/lib/puppet/concat/_etc_swift_container-server.conf/fragments]: Dependency File[/var/lib/puppet/concat/_etc_swift_container-server.conf] has failures: true
Warning: /Stage[main]/Swift::Storage::All/Swift::Storage::Server[6001]/Concat[/etc/swift/container-server.conf]/File[/var/lib/puppet/concat/_etc_swift_container-server.conf/fragments]: Skipping because of failed dependencies
Notice: /Stage[main]/Swift::Storage::All/Swift::Storage::Server[6001]/Concat[/etc/swift/container-server.conf]/File[/var/lib/puppet/concat/_etc_swift_container-server.conf/fragments.concat]: Dependency File[/var/lib/puppet/concat/_etc_swift_container-server.conf] has failures: true

Revision history for this message
Chris Ricker (chris-ricker) wrote :
Changed in openstack-cisco:
assignee: boddepalli srikanth (boddepalli-srikanth) → Chris Ricker (chris-ricker)
status: New → In Progress
Revision history for this message
Chris Ricker (chris-ricker) wrote :
Changed in openstack-cisco:
status: In Progress → Fix Committed
Changed in openstack-cisco:
status: Fix Committed → Fix Released
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.