{"action":"created","issue":{"url":"https://api.github.com/repos/juju/juju/issues/5439","repository_url":"https://api.github.com/repos/juju/juju","labels_url":"https://api.github.com/repos/juju/juju/issues/5439/labels{/name}","comments_url":"https://api.github.com/repos/juju/juju/issues/5439/comments","events_url":"https://api.github.com/repos/juju/juju/issues/5439/events","html_url":"https://github.com/juju/juju/issues/5439","id":156078482,"number":5439,"title":"ERROR  getting API info for Juju 2 devel on non standard bridge","user":{"login":"niccolox","id":453798,"avatar_url":"https://avatars.githubusercontent.com/u/453798?v=3","gravatar_id":"","url":"https://api.github.com/users/niccolox","html_url":"https://github.com/niccolox","followers_url":"https://api.github.com/users/niccolox/followers","following_url":"https://api.github.com/users/niccolox/following{/other_user}","gists_url":"https://api.github.com/users/niccolox/gists{/gist_id}","starred_url":"https://api.github.com/users/niccolox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/niccolox/subscriptions","organizations_url":"https://api.github.com/users/niccolox/orgs","repos_url":"https://api.github.com/users/niccolox/repos","events_url":"https://api.github.com/users/niccolox/events{/privacy}","received_events_url":"https://api.github.com/users/niccolox/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-05-21T02:11:31Z","updated_at":"2016-05-21T23:00:13Z","closed_at":null,"body":"still having problems with Juju 2 (devel) and LXD on Xenial\r\n\r\nI am using lxd on br0 happily with lxc via command line and also now the new LXD Ansible cloud module (still a PR I think)\r\n\r\nJuju 2 still doesnt work for lxd\r\n\r\nalways getting this error \"\r\n\r\n> getting API info\r\n\r\nand in my logs \r\n\r\n> LXD isn't socket activated\r\n\r\nis this https://bugs.launchpad.net/juju-core/+bug/1571593\r\n\r\nor  https://github.com/juju/juju/issues/4652\r\n\r\nJuju has created all the files as required\r\n\r\n```\r\nlxd       \r\nWARN[05-20|21:28:52] Per-container AppArmor profiles are disabled because the mac_admin capability is missing. \r\nWARN[05-20|21:28:52] CGroup memory swap accounting is disabled, swap limits will be ignored. \r\nerror: remove /var/lib/lxd/devlxd/sock: permission denied\r\n```\r\n\r\n\r\n```\r\ntree /home/devekko/.local/share/juju/                         \r\n/home/devekko/.local/share/juju/\r\n├── accounts.yaml\r\n├── bootstrap-config.yaml\r\n├── controllers.yaml\r\n├── current-controller\r\n├── models.yaml\r\n└── ssh\r\n    ├── juju_id_rsa\r\n    └── juju_id_rsa.pub\r\n\r\n```\r\n1 directory, 7 files\r\n\r\nmy host networking\r\n\r\n\r\n```\r\nauto lo\r\niface lo inet loopback\r\n\r\niface enp2s0f0 inet manual\r\n\r\nauto br0\r\niface br0 inet dhcp\r\n\r\nauto br0:0\r\niface br0:0 inet static\r\n    address 92.93.187.125/28\r\n\r\ndns-nameservers 8.8.8.8 72.72.72.72\r\ndns-search      demo.net\r\n```\r\n\r\n```\r\nsudo -E lxd shutdown             \r\ndemo@blahblah:~|⇒  sudo -E lxd --group sudo --debug   \r\nINFO[05-20|19:45:41] LXD is starting in normal mode           path=/var/lib/lxd\r\nWARN[05-20|19:45:41] CGroup memory swap accounting is disabled, swap limits will be ignored. \r\nINFO[05-20|19:45:41] Default uid/gid map: \r\nINFO[05-20|19:45:41]  - u 0 165536 65536 \r\nINFO[05-20|19:45:41]  - g 0 165536 65536 \r\nINFO[05-20|19:45:41] Init                                     driver=storage/zfs\r\nINFO[05-20|19:45:41] Looking for existing certificates        cert=/var/lib/lxd/server.crt key=/var/lib/lxd/server.key\r\nINFO[05-20|19:45:41] LXD isn't socket activated \r\nDBUG[05-20|19:45:41] Raw response: {\"type\":\"sync\",\"status\":\"Success\",\"status_code\":200,\"metadata\":{\"api_extensions\":[],\"api_status\":\"stable\",\"api_version\":\"1.0\",\"auth\":\"trusted\",\"config\":{\"core.https_address\":\"[::]\",\"storage.zfs_pool_name\":\"lxd\"},\"environment\":{\"addresses\":[\"REDACTED:8443\",\"REDACTED:8443\",\"[2601:645:2016a:8092]:8443\",\"192.168.121.1:8443\",\"192.168.99.1:8443\"],\"architectures\":[\"x86_64\",\"i686\"],\"certificate\":\"-----BEGIN CERTIFICATE-----\\n\",\"driver\":\"lxc\",\"driver_version\":\"2.0.0\",\"kernel\":\"Linux\",\"kernel_architecture\":\"x86_64\",\"kernel_version\":\"4.4.0-22-generic\",\"server\":\"lxd\",\"server_pid\":21088,\"server_version\":\"2.0.0\",\"storage\":\"zfs\",\"storage_version\":\"5\"},\"public\":false}}\r\n \r\nerror: LXD is already running.\r\n```\r\n\r\nand\r\n\r\n```\r\nsudo systemctl status lxd \r\n● lxd.service - LXD - main daemon\r\n   Loaded: loaded (/lib/systemd/system/lxd.service; indirect; vendor preset: enabled)\r\n   Active: active (running) since Fri 2016-05-20 19:45:41 PDT; 8min ago\r\n     Docs: man:lxd(1)\r\n  Process: 21092 ExecStartPost=/usr/bin/lxd waitready --timeout=600 (code=exited, status=0/SU\r\n  Process: 21089 ExecStartPost=/usr/lib/lxd/profile-config (code=exited, status=0/SUCCESS)\r\n  Process: 21077 ExecStartPre=/usr/lib/x86_64-linux-gnu/lxc/lxc-apparmor-load (code=exited, s\r\n Main PID: 21088 (lxd)\r\n    Tasks: 51\r\n   Memory: 45.6M\r\n      CPU: 1.967s\r\n   CGroup: /system.slice/lxd.service\r\n           ├─ 2484 [lxc monitor] /var/lib/lxd/containers ws02\r\n           ├─21088 /usr/bin/lxd --group lxd --logfile=/var/log/lxd/lxd.log\r\n           ├─21137 [lxc monitor] /var/lib/lxd/containers atlassian-xenial\r\n           ├─21246 [lxc monitor] /var/lib/lxd/containers bigbluebutton\r\n           ├─22303 [lxc monitor] /var/lib/lxd/containers centos7\r\n           ├─24101 [lxc monitor] /var/lib/lxd/containers edx\r\n           ├─25194 [lxc monitor] /var/lib/lxd/containers gitlab-xenial\r\n  \r\nMay 20 19:45:41 mendix systemd[1]: Starting LXD - main daemon...\r\nMay 20 19:45:41 mendix lxd[21088]: t=2016-05-20T19:45:41-0700 lvl=warn msg=\"CGroup memory\r\nMay 20 19:45:41 mendix systemd[1]: Started LXD - main daemon.\r\n```\r\n\r\n/etc/default/lxd-bridge\r\n\r\n```\r\n# WARNING: This file is generated by a debconf template!\r\n# It is recommended to update it by using \"dpkg-reconfigure -p medium lxd\"\r\n\r\n# Whether to setup a new bridge or use an existing one\r\nUSE_LXD_BRIDGE=\"false\"\r\n\r\n# Bridge name\r\n# This is still used even if USE_LXD_BRIDGE is set to false\r\n# set to an empty value to fully disable\r\nLXD_BRIDGE=\"br0\"\r\n\r\n# Update the \"default\" LXD profile\r\nUPDATE_PROFILE=\"true\"\r\n\r\n# Path to an extra dnsmasq configuration file\r\nLXD_CONFILE=\"\"\r\n\r\n# DNS domain for the bridge\r\nLXD_DOMAIN=\"lxd\"\r\n\r\n# IPv4\r\n## IPv4 address (e.g. 10.0.8.1)\r\nLXD_IPV4_ADDR=\"10.25.57.1\"\r\n\r\n## IPv4 netmask (e.g. 255.255.255.0)\r\nLXD_IPV4_NETMASK=\"255.255.255.0\"\r\n\r\n## IPv4 network (e.g. 10.0.8.0/24)\r\nLXD_IPV4_NETWORK=\"10.25.57.1/24\"\r\n\r\n## IPv4 DHCP range (e.g. 10.0.8.2,10.0.8.254)\r\nLXD_IPV4_DHCP_RANGE=\"10.25.57.2,10.25.57.254\"\r\n\r\n## IPv4 DHCP number of hosts (e.g. 250)\r\nLXD_IPV4_DHCP_MAX=\"252\"\r\n\r\n## NAT IPv4 traffic\r\nLXD_IPV4_NAT=\"true\"\r\n\r\n# IPv6\r\n## IPv6 address (e.g. 2001:470:b368:4242::1)\r\nLXD_IPV6_ADDR=\"fd97:b6ef:3cef:85e::1\"\r\n\r\n## IPv6 CIDR mask (e.g. 64)\r\nLXD_IPV6_MASK=\"64\"\r\n\r\n## IPv6 network (e.g. 2001:470:b368:4242::/64)\r\nLXD_IPV6_NETWORK=\"fd97:b6ef:3cef:85e::1/64\"\r\n\r\n\r\n```\r\n\r\nlxc profile edit default\r\n\r\n```\r\nname: default\r\nconfig: {}\r\ndescription: Default LXD profile\r\ndevices:\r\n  eth0:\r\n    name: eth0\r\n    nictype: bridged\r\n    parent: br0\r\n    type: nic\r\n\r\n```\r\n```\r\n\r\nnetstat -i   \r\nKernel Interface table\r\nIface   MTU Met   RX-OK RX-ERR RX-DRP RX-OVR    TX-OK TX-ERR TX-DRP TX-OVR Flg\r\nbr0        1500 0   1261551      0      0 0        912703      0      0      0 BMRU\r\nbr0:0      1500 0       - no statistics available -                        BMRU\r\nenp2s0f0   1500 0   2163018      0      0 0        818739      0      0      0 BMRU\r\nlo        65536 0     39503      0      0 0         39503      0      0      0 LRU\r\nveth0B0M97  1500 0       243      0      0 0         11828      0      0      0 BMRU\r\nveth4NNUM6  1500 0       275      0      0 0         11871      0      0      0 BMRU\r\nvethB18PG7  1500 0       270      0      0 0         11879      0      0      0 BMRU\r\nvethF1PK5J  1500 0       242      0      0 0         11833      0      0      0 BMRU\r\nvethG7H39F  1500 0       244      0      0 0         11861      0      0      0 BMRU\r\nvethJCW1XJ  1500 0       239      0      0 0         12048      0      0      0 BMRU\r\nvethN0UOEH  1500 0     58746      0      0 0         56968      0      0      0 BMRU\r\nvethN536NO  1500 0       618      0      0 0         12549      0      0      0 BMRU\r\nvethOESAB7  1500 0      1327      0      0 0         12875      0      0      0 BMRU\r\nvethRW3IRE  1500 0       243      0      0 0         11852      0      0      0 BMRU\r\nvethUHX520  1500 0       681      0      0 0         12318      0      0      0 BMRU\r\nvethY3DOQC  1500 0       246      0      0 0         12284      0      0      0 BMRU\r\nvmnet1     1500 0         0      0      0 0           134      0      0      0 BMRU\r\nvmnet8     1500 0         0      0      0 0           132      0      0      0 BMRU\r\n```\r\n\r\n```\r\nbr0       Link encap:Ethernet  HWaddr 00:25:90:6a:80:92  \r\n          inet addr:10.1.10.98  Bcast:10.1.10.255  Mask:255.255.255.0\r\n          inet6 addr: fe80::225:90ff:fe6a:8092/64 Scope:Link\r\n          inet6 addr: 2601:645:201:9000:225:90ff:fe6a:8092/64 Scope:Global\r\n          inet6 addr: 2601:645:201:9000:a810:9703:9ec1:5888/64 Scope:Global\r\n          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1\r\n          RX packets:1283031 errors:0 dropped:0 overruns:0 frame:0\r\n          TX packets:928036 errors:0 dropped:0 overruns:0 carrier:0\r\n          collisions:0 txqueuelen:1000 \r\n          RX bytes:3140969903 (3.1 GB)  TX bytes:315332522 (315.3 MB)\r\n\r\nbr0:0     Link encap:Ethernet  HWaddr 00:25:90:6a:80:92  \r\n          inet addr:REDACTED  Bcast:REDACTED.127  Mask:255.255.255.240\r\n          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1\r\n\r\nenp2s0f0  Link encap:Ethernet  HWaddr 00:25:90:6a:80:92  \r\n          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1\r\n          RX packets:2204451 errors:0 dropped:0 overruns:0 frame:0\r\n          TX packets:833559 errors:0 dropped:0 overruns:0 carrier:0\r\n          collisions:0 txqueuelen:1000 \r\n          RX bytes:3210565176 (3.2 GB)  TX bytes:82074558 (82.0 MB)\r\n          Memory:df420000-df43ffff \r\n\r\nlo        Link encap:Local Loopback  \r\n          inet addr:127.0.0.1  Mask:255.0.0.0\r\n          inet6 addr: ::1/128 Scope:Host\r\n          UP LOOPBACK RUNNING  MTU:65536  Metric:1\r\n          RX packets:39919 errors:0 dropped:0 overruns:0 frame:0\r\n          TX packets:39919 errors:0 dropped:0 overruns:0 carrier:0\r\n          collisions:0 txqueuelen:1 \r\n          RX bytes:12561545 (12.5 MB)  TX bytes:12561545 (12.5 MB)\r\n\r\nveth0B0M97 Link encap:Ethernet  HWaddr fe:2e:15:d8:52:18  \r\n          inet6 addr: fe80::fc2e:15ff:fed8:5218/64 Scope:Link\r\n          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1\r\n          RX packets:248 errors:0 dropped:0 overruns:0 frame:0\r\n          TX packets:12067 errors:0 dropped:0 overruns:0 carrier:0\r\n          collisions:0 txqueuelen:1000 \r\n          RX bytes:13864 (13.8 KB)  TX bytes:1007951 (1.0 MB)\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/juju/juju/issues/comments/220804892","html_url":"https://github.com/juju/juju/issues/5439#issuecomment-220804892","issue_url":"https://api.github.com/repos/juju/juju/issues/5439","id":220804892,"user":{"login":"niccolox","id":453798,"avatar_url":"https://avatars.githubusercontent.com/u/453798?v=3","gravatar_id":"","url":"https://api.github.com/users/niccolox","html_url":"https://github.com/niccolox","followers_url":"https://api.github.com/users/niccolox/followers","following_url":"https://api.github.com/users/niccolox/following{/other_user}","gists_url":"https://api.github.com/users/niccolox/gists{/gist_id}","starred_url":"https://api.github.com/users/niccolox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/niccolox/subscriptions","organizations_url":"https://api.github.com/users/niccolox/orgs","repos_url":"https://api.github.com/users/niccolox/repos","events_url":"https://api.github.com/users/niccolox/events{/privacy}","received_events_url":"https://api.github.com/users/niccolox/received_events","type":"User","site_admin":false},"created_at":"2016-05-21T23:00:13Z","updated_at":"2016-05-21T23:00:13Z","body":"looking at the docs I am wondering now if its even possible to use another bridge other than lxdbr0 with juju 2 ? \r\n\r\nI dont want to use lxdbr0, I want a custom bridge br0 and it works fine for LXD lxc cli and Ansible cloud module\r\n\r\n```\r\nsudo dpkg-reconfigure -p medium lxd\r\n!!! Note: During the configuration dialog, the bridge must be 'lxdbr0'. You can accept all other prompts although the last question (IPv6) is probably not needed.\r\n\r\n```\r\nhttps://github.com/juju/docs/blob/master/src/en/getting-started.md"}}
{"actor":{"display_login":"niccolox"}}