/openstack directory creation race
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openstack-ansible |
Fix Released
|
Medium
|
Hugh Saunders | ||
Juno |
Fix Released
|
Medium
|
Jesse Pretorius | ||
Trunk |
Fix Released
|
Medium
|
Hugh Saunders |
Bug Description
"TASK: [container_setup | Create Required local monitoring directories]" is targeted at all containers but delegated to each container's host. It creates /openstack/
=======
**15:17:37** failed: [node17_
**15:17:37** OpenSSH_6.6.1, OpenSSL 1.0.1f 6 Jan 2014
**15:17:37** debug1: Reading configuration data /etc/ssh/ssh_config
**15:17:37** debug1: /etc/ssh/ssh_config line 19: Applying options for *
**15:17:37** debug1: auto-mux: Trying existing master
**15:17:37** debug2: fd 3 setting O_NONBLOCK
**15:17:37** debug2: mux_client_
**15:17:37** debug3: mux_client_
**15:17:37** debug3: mux_client_
**15:17:37** debug3: mux_client_
**15:17:37** debug3: mux_client_
**15:17:37** debug3: mux_client_
**15:17:37** debug1: mux_client_
**15:17:37** Traceback (most recent call last):
**15:17:37** File "<stdin>", line 1928, in <module>
**15:17:37** File "<stdin>", line 238, in main
**15:17:37** OSError: [Errno 17] File exists: '/openstack'
**15:17:37** debug3: mux_client_
**15:17:37** debug2: Received exit status from master 1
**15:17:37** failed: [node17_
**15:17:37** OpenSSH_6.6.1, OpenSSL 1.0.1f 6 Jan 2014
**15:17:37** debug1: Reading configuration data /etc/ssh/ssh_config
**15:17:37** debug1: /etc/ssh/ssh_config line 19: Applying options for *
**15:17:37** debug1: auto-mux: Trying existing master
**15:17:37** debug2: fd 3 setting O_NONBLOCK
**15:17:37** debug2: mux_client_
**15:17:37** debug3: mux_client_
**15:17:37** debug3: mux_client_
**15:17:37** debug3: mux_client_
**15:17:37** debug3: mux_client_
**15:17:37** debug3: mux_client_
**15:17:37** debug1: mux_client_
**15:17:37** Traceback (most recent call last):
**15:17:37** File "<stdin>", line 1928, in <module>
**15:17:37** File "<stdin>", line 238, in main
**15:17:37** OSError: [Errno 17] File exists: '/openstack'
**15:17:37** debug3: mux_client_
**15:17:37** debug2: Received exit status from master 1
**15:17:37**
=======
Changed in openstack-ansible: | |
assignee: | nobody → Hugh Saunders (hughsaunders) |
status: | New → In Progress |
importance: | Undecided → Medium |
Reviewed: https:/ /review. openstack. org/144776 /git.openstack. org/cgit/ stackforge/ os-ansible- deployment/ commit/ ?id=ac7c30c6ad6 45353c3af84d89d 061ea187afa96b
Committed: https:/
Submitter: Jenkins
Branch: master
commit ac7c30c6ad64535 3c3af84d89d061e a187afa96b
Author: Hugh Saunders <email address hidden>
Date: Fri Jan 2 16:52:13 2015 +0000
Restructure creation, perms for bind mounted dirs
Creating /openstack in a task targetted at the host, prevents a race
when it is created in a task targetted at containers but delegated to
the host. Same problem also exists with common subdirs.
/var/log/nova has a similar problem, for metal 'containers' it should be log/container_ name, but for lxc containers
a symlink to /openstack/
/var/log/nova should be an empty dir ready for logs.
Change-Id: I6366535a76562e 9f95cc1e0352daf 76d9ae39e3b
Closes-Bug: #1407121