[lxc-users] LXD with lxc info on remote host not working

Tycho Andersen tycho.andersen at canonical.com
Mon Apr 6 15:09:42 UTC 2015


Hi Dirk,

On Mon, Apr 06, 2015 at 05:05:59PM +0200, Dirk Geschke wrote:
> Hi all,
> 
> I think this is a minor bug, this does not work:
> 
>    $ 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:

lxc remote add otto http://otto.local:8443 # or whatever the hostname is

it'll be a valid remote and you can do the syntax you're suggesting.

In the meantime, we should really warn a user that the remote they're
using is not valid, instead of assuming the whole thing is a container
name. I'll send a patch to `lxc` for that.

Tycho

> Best regards
> 
> Dirk
> 
> -- 
> +----------------------------------------------------------------------+
> | Dr. Dirk Geschke       / Plankensteinweg 61    / 85435 Erding        |
> | Telefon: 08122-559448  / Mobil: 0176-96906350 / Fax: 08122-9818106   |
> | dirk at geschke-online.de / dirk at lug-erding.de  / kontakt at lug-erding.de |
> +----------------------------------------------------------------------+
> _______________________________________________
> lxc-users mailing list
> lxc-users at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users


More information about the lxc-users mailing list