{"action":"created","issue":{"url":"https://api.github.com/repos/lxc/lxd/issues/5359","repository_url":"https://api.github.com/repos/lxc/lxd","labels_url":"https://api.github.com/repos/lxc/lxd/issues/5359/labels{/name}","comments_url":"https://api.github.com/repos/lxc/lxd/issues/5359/comments","events_url":"https://api.github.com/repos/lxc/lxd/issues/5359/events","html_url":"https://github.com/lxc/lxd/issues/5359","id":391119844,"node_id":"MDU6SXNzdWUzOTExMTk4NDQ=","number":5359,"title":"Failed to initialize storage volume, after copy over zfs","user":{"login":"kim0","id":59667,"node_id":"MDQ6VXNlcjU5NjY3","avatar_url":"https://avatars1.githubusercontent.com/u/59667?v=4","gravatar_id":"","url":"https://api.github.com/users/kim0","html_url":"https://github.com/kim0","followers_url":"https://api.github.com/users/kim0/followers","following_url":"https://api.github.com/users/kim0/following{/other_user}","gists_url":"https://api.github.com/users/kim0/gists{/gist_id}","starred_url":"https://api.github.com/users/kim0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kim0/subscriptions","organizations_url":"https://api.github.com/users/kim0/orgs","repos_url":"https://api.github.com/users/kim0/repos","events_url":"https://api.github.com/users/kim0/events{/privacy}","received_events_url":"https://api.github.com/users/kim0/received_events","type":"User","site_admin":false},"labels":[{"id":145665855,"node_id":"MDU6TGFiZWwxNDU2NjU4NTU=","url":"https://api.github.com/repos/lxc/lxd/labels/Incomplete","name":"Incomplete","color":"5319e7","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":16,"created_at":"2018-12-14T13:53:14Z","updated_at":"2018-12-14T22:11:04Z","closed_at":null,"author_association":"NONE","body":"# Issue description\r\n\r\nI'm trying to have a container + data volume, where I snapshot both of them, execute a shell command then snapshot both of them again .. so that I have an audit trail along the way. The below set of commands fail consistently\r\n\r\n# Steps to reproduce\r\n\r\n 1. Run the below shell commands on a fresh lxd/pool\r\n 2. Watch the error?\r\n\r\n```\r\n\r\nlxc launch ubuntu:18.04 container-6d8a1e8771ad200e1d616b238125830db412fc86\r\nlxc storage volume create s data-6d8a1e8771ad200e1d616b238125830db412fc86\r\nlxc storage volume attach s data-6d8a1e8771ad200e1d616b238125830db412fc86 container-6d8a1e8771ad200e1d616b238125830db412fc86 /data\r\n\r\nlxc storage volume copy s/data-6d8a1e8771ad200e1d616b238125830db412fc86 s/data-ea258f44566afa4feb9480843af24075b9662d9a\r\nlxc cp container-6d8a1e8771ad200e1d616b238125830db412fc86 container-ea258f44566afa4feb9480843af24075b9662d9a\r\nlxc config device remove container-ea258f44566afa4feb9480843af24075b9662d9a data-6d8a1e8771ad200e1d616b238125830db412fc86\r\nlxc config device add container-ea258f44566afa4feb9480843af24075b9662d9a data-ea258f44566afa4feb9480843af24075b9662d9a disk source=data-ea258f44566afa4feb9480843af24075b9662d9a path=/data pool=s\r\nlxc start container-ea258f44566afa4feb9480843af24075b9662d9a\r\n```\r\nThe last line to start the new container, fails with the below error!\r\n```\r\n\r\nError: Common start logic: Failed to initialize storage volume \"data-ea258f44566afa4feb9480843af24075b9662d9a\" of type \"custom\" on storage pool \"s\": No such file or director\r\ny: \"/var/snap/lxd/common/lxd/storage-pools/s/custom/data-ea258f44566afa4feb9480843af24075b9662d9a\"\r\nTry `lxc info --show-log container-ea258f44566afa4feb9480843af24075b9662d9a` for more info\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/lxc/lxd/issues/comments/447494135","html_url":"https://github.com/lxc/lxd/issues/5359#issuecomment-447494135","issue_url":"https://api.github.com/repos/lxc/lxd/issues/5359","id":447494135,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NzQ5NDEzNQ==","user":{"login":"kim0","id":59667,"node_id":"MDQ6VXNlcjU5NjY3","avatar_url":"https://avatars1.githubusercontent.com/u/59667?v=4","gravatar_id":"","url":"https://api.github.com/users/kim0","html_url":"https://github.com/kim0","followers_url":"https://api.github.com/users/kim0/followers","following_url":"https://api.github.com/users/kim0/following{/other_user}","gists_url":"https://api.github.com/users/kim0/gists{/gist_id}","starred_url":"https://api.github.com/users/kim0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kim0/subscriptions","organizations_url":"https://api.github.com/users/kim0/orgs","repos_url":"https://api.github.com/users/kim0/repos","events_url":"https://api.github.com/users/kim0/events{/privacy}","received_events_url":"https://api.github.com/users/kim0/received_events","type":"User","site_admin":false},"created_at":"2018-12-14T22:11:04Z","updated_at":"2018-12-14T22:11:04Z","author_association":"NONE","body":"Let me try with a loopback zfs pool\r\n"}}
{"actor":{"display_login":"kim0"}}