{"action":"created","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/23772","labels_url":"https://api.github.com/repos/saltstack/salt/issues/23772/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/23772/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/23772/events","html_url":"https://github.com/saltstack/salt/issues/23772","id":76769499,"number":23772,"title":"lxc.init fails to bootstrap container","user":{"login":"cheuschober","id":1184479,"avatar_url":"https://avatars.githubusercontent.com/u/1184479?v=3","gravatar_id":"","url":"https://api.github.com/users/cheuschober","html_url":"https://github.com/cheuschober","followers_url":"https://api.github.com/users/cheuschober/followers","following_url":"https://api.github.com/users/cheuschober/following{/other_user}","gists_url":"https://api.github.com/users/cheuschober/gists{/gist_id}","starred_url":"https://api.github.com/users/cheuschober/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cheuschober/subscriptions","organizations_url":"https://api.github.com/users/cheuschober/orgs","repos_url":"https://api.github.com/users/cheuschober/repos","events_url":"https://api.github.com/users/cheuschober/events{/privacy}","received_events_url":"https://api.github.com/users/cheuschober/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2015-05-15T15:51:53Z","updated_at":"2015-05-15T18:55:53Z","closed_at":null,"body":"Happy to be proven wrong here, but from my best understanding, calls to lxc.init will always fail as long as it attempts to remove the seed marker prior to starting the container.\r\n\r\n`remove_seed_marker` is set to `True` at:\r\nhttps://github.com/saltstack/salt/blob/develop/salt/modules/lxc.py#L1197\r\n\r\nThe bit that looks like it could use some reordering is:\r\nhttps://github.com/saltstack/salt/blob/develop/salt/modules/lxc.py#L1230-L1259\r\n\r\nSteps to reproduce:\r\n\r\n    $ salt-call lxc.init testbuntu template=ubuntu options=\"{'release':'trusty', 'arch': 'amd64'}\"\r\n\r\nFirst failure is in `attachable()`\r\n\r\n    [ERROR   ] Command 'lxc-attach --clear-env -n testbuntu -- /usr/bin/env' failed with return code: 1\r\n\r\nVersions report:\r\n\r\n    $ salt --versions-report\r\n                      Salt: 2015.5.0\r\n                    Python: 2.7.6 (default, Mar 22 2014, 22:59:56)\r\n                    Jinja2: 2.7.2\r\n                  M2Crypto: 0.21.1\r\n            msgpack-python: 0.3.0\r\n              msgpack-pure: Not Installed\r\n                  pycrypto: 2.6.1\r\n                   libnacl: Not Installed\r\n                    PyYAML: 3.10\r\n                     ioflo: Not Installed\r\n                     PyZMQ: 14.0.1\r\n                      RAET: Not Installed\r\n                       ZMQ: 4.0.4\r\n                      Mako: 0.9.1\r\n     Debian source package: 2015.5.0+ds-1trusty1"},"comment":{"url":"https://api.github.com/repos/saltstack/salt/issues/comments/102491288","html_url":"https://github.com/saltstack/salt/issues/23772#issuecomment-102491288","issue_url":"https://api.github.com/repos/saltstack/salt/issues/23772","id":102491288,"user":{"login":"kiorky","id":90111,"avatar_url":"https://avatars.githubusercontent.com/u/90111?v=3","gravatar_id":"","url":"https://api.github.com/users/kiorky","html_url":"https://github.com/kiorky","followers_url":"https://api.github.com/users/kiorky/followers","following_url":"https://api.github.com/users/kiorky/following{/other_user}","gists_url":"https://api.github.com/users/kiorky/gists{/gist_id}","starred_url":"https://api.github.com/users/kiorky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kiorky/subscriptions","organizations_url":"https://api.github.com/users/kiorky/orgs","repos_url":"https://api.github.com/users/kiorky/repos","events_url":"https://api.github.com/users/kiorky/events{/privacy}","received_events_url":"https://api.github.com/users/kiorky/received_events","type":"User","site_admin":false},"created_at":"2015-05-15T18:55:53Z","updated_at":"2015-05-15T18:55:53Z","body":"Forget what i said, i'm a bit tired :).\r\nYou can use both, the the correct scheme is ``lxc.container_profile``."}}