endpoint not used in lxd provider
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Fix Released
|
High
|
Unassigned |
Bug Description
Hi,
I'm trying to use the endpoint with the lxd provider, and it doesn't use the information provided. Config file is this:
clouds:
ant-lxd:
type: lxd
authtypes: [empty]
regions:
ant:
endpoint: https:/
lxd is added as a remote in local lxd and can be used:
lxc remote list
+------
| NAME | URL | PROTOCOL | PUBLIC | STATIC |
+------
| ant | https:/
+------
Using it:
lxc launch ant:f4c4c60a6b75 ant:mycontainer
Creating mycontainer
Starting mycontainer
lxc list
+------
| NAME | STATE | IPV4 | IPV6 | TYPE | SNAPSHOTS |
+------
| mycontainer | RUNNING | 192.168.0.2 (eth0) | | PERSISTENT | 0 |
+------
Bootstrapping the cloud:
juju bootstrap ant-controller ant-lxd
ERROR invalid config: lxdbr0 has no ipv4 or ipv6 subnet enabled
It looks like your lxdbr0 has not yet been configured. Please configure it via:
sudo dpkg-reconfigure -p medium lxd
and then bootstrap again.
Which corresponds to locally use the default profile in the host it tries to connect to the remote:
lxc profile show default
name: default
config:
environment.
user.
description: Default LXD profile
devices:
eth0:
name: eth0
nictype: bridged
parent: lxdbr0
type: nic
This is the profile in the remote host:
lxc profile show default
name: default
config: {}
description: Default LXD profile
devices:
eth0:
name: eth0
nictype: bridged
parent: br0
type: nic
Any clue what is going on? Any other info I can provide?
Thanks!
José.
no longer affects: | juju-core |
Changed in juju: | |
status: | New → Triaged |
importance: | Undecided → High |
milestone: | none → 2.0-beta18 |
Way to test it:
1) Create a xenial container connected to a bridge in your machine.
2) Install juju 2 on it.
3) juju add-cloud ant-lxd lxd.yaml
4) juju bootstrap ant-controller ant-lxd