[lxc-users] LXD with lxc info on remote host not working
Stéphane Graber
stgraber at ubuntu.com
Mon Apr 6 16:38:20 UTC 2015
On Mon, Apr 06, 2015 at 06:22:13PM +0200, Dirk Geschke wrote:
> Hi Tycho,
>
> > > > $ lxc info otto:ubuntix
> > > > error: not found
> > > >
> > > > On otto, a test system running lxd, I can see this:
> > > >
> > > > 2015/04/06 16:59:31 handling GET /1.0/containers/otto:ubuntix
> > > >
> > > > So I guess, the part "otto:" is wrong here...
> > > >
> > > > An "lxc info ubuntix" on otto works without problems.
> > > >
> > > > Maybe someone can fix this?
> > >
> > > It looks like otto is not a valid remote here (have you added it and
> > > does it show up in `lxc remote list`?). If you do something like:
>
> yes, and it works:
>
> lxcuser at karl:~$ lxc remote list
> local <unix:/var/lib/lxd/unix.socket>
> otto <https://192.168.1.233:8443>
>
> and this works, too:
>
> lxcuser at karl:~$ lxc list otto:
> +---------+---------+---------------+------+
> | NAME | STATE | IPV4 | IPV6 |
> +---------+---------+---------------+------+
> | wheezy1 | STOPPED | | |
> | wheezy2 | RUNNING | 192.168.1.111 | |
> | ubuntix | RUNNING | 192.168.1.112 | |
> +---------+---------+---------------+------+
>
> but not this:
>
> lxcuser at karl:~$ lxc info otto:ubuntix
> error: not found
>
> > Hmm, it looks to me like with 0.5 we do detect unknown remotes
> > correctly, so I'm not sure what's going on here. What's the output of
> > `lxc version`?
>
> it is on both systems the same:
>
> lxcuser at karl:~$ lxc version
> 0.5
>
> Best regards
>
> Dirk
Reproduced it here with current git master.
Indeed info against a remote container doesn't appear to work.
I've filed https://github.com/lxc/lxd/issues/465 and I'll take care of
fixing this and adding a test later today.
Thanks for reporting it!
--
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/20150406/331613ad/attachment.sig>
More information about the lxc-users
mailing list