LXC containers missing rootfs dir
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack-Ansible |
Fix Released
|
Medium
|
Matt Thompson | ||
Kilo |
Fix Released
|
Medium
|
Matt Thompson | ||
Trunk |
Fix Released
|
Medium
|
Matt Thompson |
Bug Description
I've noticed something odd and believe it's a result of https:/
root@jenk-
total 104
drwxr-xr-x 22 root root 4096 Jun 29 14:57 .
drwx------ 27 root root 4096 Jun 29 14:17 ..
drwxr-xr-x 2 root root 4096 Jun 29 14:22 bin
drwxr-xr-x 2 root root 4096 Apr 10 2014 boot
-rw-r--r-- 1 root root 1370 Jun 29 14:57 config
-rw-r--r-- 1 root root 1219 Jun 29 14:18 config.
drwxr-xr-x 5 root root 4096 Jun 29 15:00 dev
drwxr-xr-x 77 root root 4096 Jun 29 15:00 etc
-rw-r--r-- 1 root root 512 Jun 29 14:18 eth1.ini
-rw-r--r-- 1 root root 515 Jun 29 14:18 eth2.ini
-rw-r--r-- 1 root root 0 Jun 29 14:17 fstab
drwxr-xr-x 3 root root 4096 Jun 29 14:17 home
drwxr-xr-x 14 root root 4096 Jun 29 14:58 lib
drwxr-xr-x 2 root root 4096 May 31 20:07 lib64
drwxr-xr-x 2 root root 4096 Jul 29 2014 media
drwxr-xr-x 2 root root 4096 Apr 10 2014 mnt
drwxr-xr-x 2 root root 4096 Jun 29 14:57 opt
drwxr-xr-x 2 root root 4096 Apr 10 2014 proc
drwx--S--- 6 root root 4096 Jun 29 14:58 root
drwxr-xr-x 2 root root 4096 Jun 29 14:16 rootfs
drwxr-xr-x 9 root root 4096 Jun 29 14:17 run
drwxr-xr-x 2 root root 4096 Jun 29 14:58 sbin
drwxr-xr-x 2 root root 4096 Jul 29 2014 srv
drwxr-xr-x 2 root root 4096 Mar 13 2014 sys
drwxrwxrwt 2 root root 4096 Jun 30 09:17 tmp
drwxr-xr-x 10 root root 4096 Jul 29 2014 usr
drwxr-xr-x 12 root root 4096 Jun 15 12:38 var
root@jenk-
Previously, the rootfs would have been in /var/lib/
This new behaviour is quite messy as it's going to become difficult to determine what files are LXC configuration versus files within the rootfs.
Changed in openstack-ansible: | |
status: | Triaged → Fix Committed |
Reviewed: https:/ /review. openstack. org/197074 /git.openstack. org/cgit/ stackforge/ os-ansible- deployment/ commit/ ?id=6a7a2ffbd1b 2becbf2ebd3f41c 37e1365d53cee9
Committed: https:/
Submitter: Jenkins
Branch: kilo
commit 6a7a2ffbd1b2bec bf2ebd3f41c37e1 365d53cee9
Author: Matt Thompson <email address hidden>
Date: Tue Jun 30 13:57:57 2015 +0100
Create LXC containers with a rootfs dir
Previously, an LXC container's rootfs was being placed into lib/lxc/ <container> /rootfs. Commit /review. openstack. org/#/c/ 190048/ 8 inadvertently changed this so lxc/<container/ .
/var/
https:/
that a container's rootfs is now placed into /var/lib/
The downside here is that we now have a directory containing a
container's root fs and the LXC configuration for the container.
This change creates a new role-level variable called container_ rootfs_ directory which defaults to directory }}/{{ container_name }}/rootfs" and passes
lxc_
"{{ lxc_container_
this variable when creating the container.
Change-Id: Ibbaa879166f5ef af7ca96add131cc 3762dd88653 90d5517afa6c543 07e3c69baf)
Closes-Bug: #1470101
(cherry picked from commit 04149af86b300bb