{"action":"created","issue":{"url":"https://api.github.com/repos/lxc/lxd/issues/4869","repository_url":"https://api.github.com/repos/lxc/lxd","labels_url":"https://api.github.com/repos/lxc/lxd/issues/4869/labels{/name}","comments_url":"https://api.github.com/repos/lxc/lxd/issues/4869/comments","events_url":"https://api.github.com/repos/lxc/lxd/issues/4869/events","html_url":"https://github.com/lxc/lxd/issues/4869","id":347138588,"node_id":"MDU6SXNzdWUzNDcxMzg1ODg=","number":4869,"title":"lxc-to-lxd config check not working on 3.x but was working on 2.12","user":{"login":"mrheroux","id":19890291,"node_id":"MDQ6VXNlcjE5ODkwMjkx","avatar_url":"https://avatars0.githubusercontent.com/u/19890291?v=4","gravatar_id":"","url":"https://api.github.com/users/mrheroux","html_url":"https://github.com/mrheroux","followers_url":"https://api.github.com/users/mrheroux/followers","following_url":"https://api.github.com/users/mrheroux/following{/other_user}","gists_url":"https://api.github.com/users/mrheroux/gists{/gist_id}","starred_url":"https://api.github.com/users/mrheroux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrheroux/subscriptions","organizations_url":"https://api.github.com/users/mrheroux/orgs","repos_url":"https://api.github.com/users/mrheroux/repos","events_url":"https://api.github.com/users/mrheroux/events{/privacy}","received_events_url":"https://api.github.com/users/mrheroux/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-08-02T19:11:38Z","updated_at":"2018-08-02T19:34:37Z","closed_at":null,"author_association":"NONE","body":"I'm able to migrate containers using the lxc-to-lxd python3 script on Ubuntu 16-17 (lxd --version 2.12)\r\n\r\nHowever, I have a newer server that is using Bionic Beaver (18) fresh install and it is unable to use either the older python3 or the built in lxc-to-lxd package. (lxd --version 3.0.1)\r\n\r\nIt fails on reading the config file. I've tested this with multiple LXC containers I'm still migrating and it doesn't work. It seems to fail on the following function where the containers config is parsed. \r\n\r\n```\r\n   # Load the container\r\n    try:\r\n        container = lxc.Container(container_name, args.lxcpath)\r\n    except:\r\n        print(\"Invalid container configuration, skipping...\")\r\n        return False\r\n```\r\nPerhaps a library has  changed? \r\n\r\nThank you."},"comment":{"url":"https://api.github.com/repos/lxc/lxd/issues/comments/410042681","html_url":"https://github.com/lxc/lxd/issues/4869#issuecomment-410042681","issue_url":"https://api.github.com/repos/lxc/lxd/issues/4869","id":410042681,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMDA0MjY4MQ==","user":{"login":"stgraber","id":2230599,"node_id":"MDQ6VXNlcjIyMzA1OTk=","avatar_url":"https://avatars0.githubusercontent.com/u/2230599?v=4","gravatar_id":"","url":"https://api.github.com/users/stgraber","html_url":"https://github.com/stgraber","followers_url":"https://api.github.com/users/stgraber/followers","following_url":"https://api.github.com/users/stgraber/following{/other_user}","gists_url":"https://api.github.com/users/stgraber/gists{/gist_id}","starred_url":"https://api.github.com/users/stgraber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stgraber/subscriptions","organizations_url":"https://api.github.com/users/stgraber/orgs","repos_url":"https://api.github.com/users/stgraber/repos","events_url":"https://api.github.com/users/stgraber/events{/privacy}","received_events_url":"https://api.github.com/users/stgraber/received_events","type":"User","site_admin":false},"created_at":"2018-08-02T19:34:37Z","updated_at":"2018-08-02T19:34:37Z","author_association":"MEMBER","body":"Ok, that'd be expected indeed as the python3 one will only work with liblxc 2.x while Ubuntu 18.04 ships liblxc 3.x"}}
{"actor":{"display_login":"stgraber"}}