Cannot find any containers in lxc (Openstack with Novalxd)

Bug #1767681 reported by Adam Chen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nova-lxd
Incomplete
Undecided
Unassigned

Bug Description

Before I updated lxc, lxd and Ubuntu to the latest version, I can run each container of Openstack by "lxc start container-name " and I also can check the container names by "lxc list".

After I updated them all, I re-installed Openstack by the tutorial here(https://askubuntu.com/questions/955728/conjure-up-unable-to-deploy-openstack-cloud-on-lxd-configuration-ubuntu-16-04l). After installation, I thought OpenStack is running because I could log into the dashboard and juju controller page. I also could use "juju status" to find out their infos. However I tried to type "lxc list" and the only output was

+------+-------+------+------+------+-----------+
| NAME | STATE | IPV4 | IPV6 | TYPE | SNAPSHOTS |
+------+-------+------+------+------+-----------+
I tried to use "lxd shutdown" or other commands but none of them can shut down OpenStack. I had to reboot and found that I have no idea to start them again because "lxc start" doesn't work since there's nothing in "lxc list"
So, where are containers? How could I can start/stop them again?

Any help will be appreciated! Thank you!

More info:

OS: Ubuntu 18.04 LTS
lxc --version: 3.0.0
lxd --version: 3.0.0
conjure-up --version: conjure-up 2.5.6
juju --version: 2.3.7-bionic-amd64
juju controllers:
Controller: conjure-up-localhost-dee*
Model: conjure-openstack-novalx-a1d
User: Admin Access: superuser Cloud/Region: localhost/localhost Models: 2 Machines: 1 HA: none version: 2.3.7

Revision history for this message
Adam Chen (zetelight) wrote :

I originally posted this issue on GitHub of lxc. (https://github.com/lxc/lxc/issues/2296)
The guy told me that I have to post the issue here.

Revision history for this message
Alex Kavanagh (ajkavanagh) wrote :

I can't reproduce this with the latest bionic image. e.g. lxc list gives:

+----------------+---------+-----------------------+------+------------+-----------+
| NAME | STATE | IPV4 | IPV6 | TYPE | SNAPSHOTS |
+----------------+---------+-----------------------+------+------------+-----------+
| juju-3b85a0-0 | RUNNING | 10.236.143.149 (eth0) | | PERSISTENT | 0 |
+----------------+---------+-----------------------+------+------------+-----------+
| juju-3b85a0-1 | RUNNING | 10.236.143.41 (eth0) | | PERSISTENT | 0 |
+----------------+---------+-----------------------+------+------------+-----------+
| juju-3b85a0-10 | RUNNING | 10.236.143.231 (eth0) | | PERSISTENT | 0 |
+----------------+---------+-----------------------+------+------------+-----------+
| juju-3b85a0-11 | RUNNING | 10.236.143.198 (eth0) | | PERSISTENT | 0 |
+----------------+---------+-----------------------+------+------------+-----------+
| juju-3b85a0-12 | STOPPED | | | PERSISTENT | 0 |
+----------------+---------+-----------------------+------+------------+-----------+
| juju-3b85a0-13 | RUNNING | 10.236.143.233 (eth0) | | PERSISTENT | 0 |
+----------------+---------+-----------------------+------+------------+-----------+
| juju-3b85a0-14 | STOPPED | | | PERSISTENT | 0 |
+----------------+---------+-----------------------+------+------------+-----------+
| juju-3b85a0-2 | RUNNING | 10.236.143.27 (eth0) | | PERSISTENT | 0 |
+----------------+---------+-----------------------+------+------------+-----------+
| juju-3b85a0-3 | RUNNING | 10.236.143.127 (eth0) | | PERSISTENT | 0 |
+----------------+---------+-----------------------+------+------------+-----------+
| juju-3b85a0-4 | RUNNING | 10.236.143.150 (eth0) | | PERSISTENT | 0 |
+----------------+---------+-----------------------+------+------------+-----------+
| juju-3b85a0-5 | RUNNING | 10.236.143.156 (eth0) | | PERSISTENT | 0 |
+----------------+---------+-----------------------+------+------------+-----------+
| juju-3b85a0-6 | RUNNING | 10.236.143.7 (eth0) | | PERSISTENT | 0 |
+----------------+---------+-----------------------+------+------------+-----------+
| juju-3b85a0-7 | RUNNING | 10.236.143.203 (eth0) | | PERSISTENT | 0 |
+----------------+---------+-----------------------+------+------------+-----------+
| juju-3b85a0-8 | RUNNING | 10.236.143.168 (eth0) | | PERSISTENT | 0 |
+----------------+---------+-----------------------+------+------------+-----------+
| juju-3b85a0-9 | RUNNING | 10.236.143.123 (eth0) | | PERSISTENT | 0 |
+----------------+---------+-----------------------+------+------------+-----------+
| juju-7c0a1d-0 | RUNNING | 10.236.143.36 (eth0) | | PERSISTENT | 0 |
+----------------+---------+-----------------------+------+------------+-----------+

$ lxc --version
3.0.0
$ lxd --version
3.0.0
$ conjure-up --version
conjure-up 2.5.6
$ juju --version
2.3.7-bionic-amd64

Changed in nova-lxd:
status: New → Incomplete
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.