Race creating /openstack/log

Bug #1426254 reported by git-harry
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack-Ansible
Fix Released
Low
Kevin Carter
Kilo
Fix Released
Low
Kevin Carter
Liberty
Fix Released
Low
Kevin Carter
Trunk
Fix Released
Low
Kevin Carter

Bug Description

2015-02-26 23:40:04.080 | TASK: [lxc_container_create | Container service directories] ******************
2015-02-26 23:40:05.600 | changed: [aio1_utility_container-30125a06 -> aio1] => (item=/openstack/aio1_utility_container-30125a06) => {"changed": true, "gid": 0, "group": "root", "item": "/openstack/aio1_utility_container-30125a06", "mode": "0755", "owner": "root", "path": "/openstack/aio1_utility_container-30125a06", "size": 4096, "state": "directory", "uid": 0}
2015-02-26 23:40:05.600 | changed: [aio1_utility_container-30125a06 -> aio1] => (item=/openstack/backup/aio1_utility_container-30125a06) => {"changed": true, "gid": 0, "group": "root", "item": "/openstack/backup/aio1_utility_container-30125a06", "mode": "0755", "owner": "root", "path": "/openstack/backup/aio1_utility_container-30125a06", "size": 4096, "state": "directory", "uid": 0}
2015-02-26 23:40:05.600 | failed: [aio1_utility_container-30125a06 -> aio1] => (item=/openstack/log/aio1_utility_container-30125a06) => {"failed": true, "item": "/openstack/log/aio1_utility_container-30125a06", "parsed": false}
2015-02-26 23:40:05.600 | Traceback (most recent call last):
2015-02-26 23:40:05.600 | File "<stdin>", line 1924, in <module>
2015-02-26 23:40:05.601 | File "<stdin>", line 238, in main
2015-02-26 23:40:05.601 | OSError: [Errno 17] File exists: '/openstack/log'

http://logstash.openstack.org/#eyJzZWFyY2giOiJwcm9qZWN0Olwic3RhY2tmb3JnZS9vcy1hbnNpYmxlLWRlcGxveW1lbnRcIiBBTkQgZmlsZW5hbWU6XCJjb25zb2xlLmh0bWxcIiBBTkQgbWVzc2FnZTpcIk9TRXJyb3I6IFtFcnJubyAxN10gRmlsZSBleGlzdHM6XCIiLCJmaWVsZHMiOltdLCJvZmZzZXQiOjAsInRpbWVmcmFtZSI6IjYwNDgwMCIsImdyYXBobW9kZSI6ImNvdW50IiwidGltZSI6eyJ1c2VyX2ludGVydmFsIjowfSwic3RhbXAiOjE0MjUwMjMwMTcyMTF9

Revision history for this message
Jesse Pretorius (jesse-pretorius) wrote :

Perhaps this is related: https://bugs.launchpad.net/openstack-ansible/+bug/1407121
That was fixed in master prior to a large refactor and this may be a regression.

Changed in openstack-ansible:
assignee: nobody → Hugh Saunders (hughsaunders)
importance: Undecided → Low
Revision history for this message
Kevin Carter (kevin-carter) wrote :

There are no recent hits on this issue nor have we seen this in gating recently. As such Im am closing this issue however if it comes back please feel free to re-open it.

Changed in openstack-ansible:
status: New → Invalid
Changed in openstack-ansible:
status: Invalid → Triaged
milestone: none → 12.0.1
assignee: Hugh Saunders (hughsaunders) → Kevin Carter (kevin-carter)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to openstack-ansible (master)

Fix proposed to branch: master
Review: https://review.openstack.org/242291

Changed in openstack-ansible:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-ansible (master)

Reviewed: https://review.openstack.org/242291
Committed: https://git.openstack.org/cgit/openstack/openstack-ansible/commit/?id=de6f3a21e04daff5ea583653bef6ed62de624635
Submitter: Jenkins
Branch: master

commit de6f3a21e04daff5ea583653bef6ed62de624635
Author: Kevin Carter <email address hidden>
Date: Thu Nov 5 19:29:24 2015 -0600

    Fix race condition for /openstack directories

    To resolve a possible race condition when containers are creating
    log directories the /openstack directory and its basic sub-directories
    are being created within the openstack_hosts role which will ensure that
    the appropriate skeleton is available when the containers go to build
    in subsequent tasks.

    Closes-bug: #1426254
    Change-Id: Icdbddf285f8b898518657b082a9263a2923c97c4
    Signed-off-by: Kevin Carter <email address hidden>

Changed in openstack-ansible:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-ansible (kilo)

Reviewed: https://review.openstack.org/243916
Committed: https://git.openstack.org/cgit/openstack/openstack-ansible/commit/?id=208624793efdbef8e64c81a7879451835981d9bc
Submitter: Jenkins
Branch: kilo

commit 208624793efdbef8e64c81a7879451835981d9bc
Author: Kevin Carter <email address hidden>
Date: Thu Nov 5 19:29:24 2015 -0600

    Fix race condition for /openstack directories

    To resolve a possible race condition when containers are creating
    log directories the /openstack directory and its basic sub-directories
    are being created within the openstack_hosts role which will ensure that
    the appropriate skeleton is available when the containers go to build
    in subsequent tasks.

    Closes-bug: #1426254
    Change-Id: Icdbddf285f8b898518657b082a9263a2923c97c4
    Signed-off-by: Kevin Carter <email address hidden>
    (cherry picked from commit de6f3a21e04daff5ea583653bef6ed62de624635)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-ansible (liberty)

Reviewed: https://review.openstack.org/244501
Committed: https://git.openstack.org/cgit/openstack/openstack-ansible/commit/?id=725e3d80d36e4685466429d855578ad14a480b25
Submitter: Jenkins
Branch: liberty

commit 725e3d80d36e4685466429d855578ad14a480b25
Author: Kevin Carter <email address hidden>
Date: Thu Nov 5 19:29:24 2015 -0600

    Fix race condition for /openstack directories

    To resolve a possible race condition when containers are creating
    log directories the /openstack directory and its basic sub-directories
    are being created within the openstack_hosts role which will ensure that
    the appropriate skeleton is available when the containers go to build
    in subsequent tasks.

    Closes-bug: #1426254
    Change-Id: Icdbddf285f8b898518657b082a9263a2923c97c4
    Signed-off-by: Kevin Carter <email address hidden>
    (cherry picked from commit de6f3a21e04daff5ea583653bef6ed62de624635)

Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote : Fix included in openstack/openstack-ansible 13.0.0

This issue was fixed in the openstack/openstack-ansible 13.0.0 release.

Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote : Fix included in openstack/openstack-ansible 12.0.11

This issue was fixed in the openstack/openstack-ansible 12.0.11 release.

Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote : Fix included in openstack/openstack-ansible 11.2.14

This issue was fixed in the openstack/openstack-ansible 11.2.14 release.

Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/openstack-ansible 11.2.15

This issue was fixed in the openstack/openstack-ansible 11.2.15 release.

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.