[lxc-users] lxc list fails to show containers after upgrade to lxd 0.22 / lxc 1.1.5
Stéphane Graber
stgraber at ubuntu.com
Wed Nov 18 03:09:17 UTC 2015
Can you confirm your client and server are running the exact same
version of LXD?
The fact that the containers appear to be properly in the database
typically indicates an API mismatch between the client and the server.
Our API isn't stable yet (it will be when we tag LXD 2.0 early next
year), so mismatches can give you random results.
If "lxc version" and "lxd --version" match, then I'd suggest running
both of them with --debug, that should give us more of an idea of what's
going on.
On Tue, Nov 17, 2015 at 09:57:50PM -0500, Matthew McKennirey wrote:
> I am running LXD/LXC on two hosts, each with multiple containers.
> I upgraded one host to the latest versions of LXD /LXC (had been on lxd
> 0.21 / lxc 1.1.4)
>
> After the upgrade. lxc list shows no containers
>
> lxc list
> +------+-------+------+------+-----------+-----------+
> | NAME | STATE | IPV4 | IPV6 | EPHEMERAL | SNAPSHOTS |
> +------+-------+------+------+-----------+-----------+
> +------+-------+------+------+-----------+-----------+
>
> Using sqlite3, SELECT * FROM containers in the lx.db, shows all the
> containers.
>
> sqlite> SELECT * FROM containers;
> 6|ubuntu-sg|2|0|0
> 7|ubuntu14-java-utils|0|0|0
> 8|ubuntu-sg-base|0|0|0
> 9|ubuntu-build|0|0|0
> 10|ubuntu-web|0|0|0
> 11|ubuntu-build-clone|0|0|0
> 12|ubuntu-tst|0|0|0
> 13|ubuntu-sg-tst|0|0|0
>
> All the containers are physically present on the file system, there was no
> change there.
>
> Is there some way to "recover" the existing containers so that lxc can see
> and start them?
>
> If I attempt to start a container, even though lxc list shows none, I get
> lxc start ubuntu-build
> error: setting lxc.network keys is not allowed
>
> I was not using profiles yet on that host
> sqlite> SELECT * FROM profiles;
> 1|default
> 2|migratable
>
> Other than to list the contents of tables I have not attempted to modify
> lxd.db in any way.
>
> thanks very much
> _______________________________________________
> lxc-users mailing list
> lxc-users at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users
--
Stéphane Graber
Ubuntu developer
http://www.ubuntu.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20151117/a473453d/attachment.sig>
More information about the lxc-users
mailing list