{"action":"created","issue":{"url":"https://api.github.com/repos/lxc/lxd/issues/5036","repository_url":"https://api.github.com/repos/lxc/lxd","labels_url":"https://api.github.com/repos/lxc/lxd/issues/5036/labels{/name}","comments_url":"https://api.github.com/repos/lxc/lxd/issues/5036/comments","events_url":"https://api.github.com/repos/lxc/lxd/issues/5036/events","html_url":"https://github.com/lxc/lxd/issues/5036","id":360633042,"node_id":"MDU6SXNzdWUzNjA2MzMwNDI=","number":5036,"title":"lxd move --storage failure leaving unused and non-removable container in new storage","user":{"login":"bigjools","id":11657873,"node_id":"MDQ6VXNlcjExNjU3ODcz","avatar_url":"https://avatars1.githubusercontent.com/u/11657873?v=4","gravatar_id":"","url":"https://api.github.com/users/bigjools","html_url":"https://github.com/bigjools","followers_url":"https://api.github.com/users/bigjools/followers","following_url":"https://api.github.com/users/bigjools/following{/other_user}","gists_url":"https://api.github.com/users/bigjools/gists{/gist_id}","starred_url":"https://api.github.com/users/bigjools/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bigjools/subscriptions","organizations_url":"https://api.github.com/users/bigjools/orgs","repos_url":"https://api.github.com/users/bigjools/repos","events_url":"https://api.github.com/users/bigjools/events{/privacy}","received_events_url":"https://api.github.com/users/bigjools/received_events","type":"User","site_admin":false},"labels":[{"id":144672267,"node_id":"MDU6TGFiZWwxNDQ2NzIyNjc=","url":"https://api.github.com/repos/lxc/lxd/labels/Bug","name":"Bug","color":"eb6420","default":false}],"state":"open","locked":false,"assignee":{"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},"assignees":[{"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}],"milestone":{"url":"https://api.github.com/repos/lxc/lxd/milestones/73","html_url":"https://github.com/lxc/lxd/milestone/73","labels_url":"https://api.github.com/repos/lxc/lxd/milestones/73/labels","id":3339215,"node_id":"MDk6TWlsZXN0b25lMzMzOTIxNQ==","number":73,"title":"lxd-3.6","description":"","creator":{"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},"open_issues":10,"closed_issues":0,"state":"open","created_at":"2018-05-11T13:59:32Z","updated_at":"2018-09-16T15:42:23Z","due_on":"2018-10-09T07:00:00Z","closed_at":null},"comments":10,"created_at":"2018-09-16T12:05:26Z","updated_at":"2018-09-16T23:39:20Z","closed_at":null,"author_association":"NONE","body":"# Required information\r\n\r\n * Distribution: Ubuntu\r\n * Distribution version: 16.04\r\n * The output of \"lxc info\" or if that fails:\r\n   * Kernel version: 4.4.0-66-generic\r\n   * LXC version: 3.4\r\n   * LXD version: 3.4\r\n   * Storage backend in use: dir and zfspool\r\n\r\n# Issue description\r\nMoving a container's storage from dir to zfspool failed with this output:\r\n```\r\n$ /snap/bin/lxc move serviio serviio2 --storage zfspool\r\nError: Failed to run: rsync -a -HAX --sparse --devices --delete --checksum --numeric-ids --xattrs --bwlimit 0 -q /var/snap/lxd/common/lxd/storage-pools/default/containers/serviio/ /var/snap/lxd/common/lxd/storage-pools/zfspool/containers/serviio2: rsync: set_acl: sys_acl_set_file(., ACL_TYPE_ACCESS): Operation not supported (95)\r\nrsync: set_acl: sys_acl_set_file(rootfs/var/log/journal, ACL_TYPE_ACCESS): Operation not supported (95)\r\nrsync: set_acl: sys_acl_set_file(rootfs/var/log/journal/a74b9fcc748449e6aff724e4d761dd48, ACL_TYPE_ACCESS): Operation not supported (95)\r\nrsync: set_acl: sys_acl_set_file(rootfs/var/log/journal/a74b9fcc748449e6aff724e4d761dd48/.system.journal.UKFmAW, ACL_TYPE_ACCESS): Operation not supported (95)\r\nrsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.1]\r\n```\r\n\r\nNote that I have to specify a dummy second container name as simply specifying one name results in an error saying there's not enough args to the CLI.\r\n\r\n# Steps to reproduce\r\n\r\n 1. Have a container in dir storage\r\n 2. create some empty zfs storage\r\n 3. lxc move name1 name2 --storage <zfspoolname>\r\n\r\n# Information to attach\r\n\r\nSee the initial output above. Also note here that the zfs pool has got my two containers I tried to migrate plus two of the snapshots in the one called \"hass\":\r\n```\r\n$ /snap/bin/lxc storage info zfspool\r\ninfo:\r\n  description: \"\"\r\n  driver: zfs\r\n  name: zfspool\r\n  space used: 2.56GB\r\n  total space: 100.94GB\r\nused by:\r\n  containers:\r\n  - hass2\r\n  - hass2\r\n  - hass2\r\n  - serviio2\r\n```\r\n\r\nHowever the containers `hass2` and `serviio2` don't show up in `lxc ls` \r\n```\r\n$ /snap/bin/lxc ls\r\n+---------+---------+----------------------+------+------------+-----------+\r\n|  NAME   |  STATE  |         IPV4         | IPV6 |    TYPE    | SNAPSHOTS |\r\n+---------+---------+----------------------+------+------------+-----------+\r\n| hass    | RUNNING | 192.168.1.115 (eth1) |      | PERSISTENT | 2         |\r\n|         |         | 192.168.1.114 (eth0) |      |            |           |\r\n+---------+---------+----------------------+------+------------+-----------+\r\n| serviio | RUNNING | 192.168.1.117 (eth0) |      | PERSISTENT |           |\r\n+---------+---------+----------------------+------+------------+-----------+\r\n```\r\n\r\n - [ ] Any relevant kernel output (`dmesg`)\r\n - [ ] Container log (`lxc info NAME --show-log`)\r\n - [ ] Container configuration (`lxc config show NAME --expanded`)\r\n - [ ] Main daemon log (at /var/log/lxd/lxd.log or /var/snap/lxd/common/lxd/logs/lxd.log)\r\n - [ ] Output of the client with --debug\r\n - [ ] Output of the daemon with --debug (alternatively output of `lxc monitor` while reproducing the issue)\r\n"},"comment":{"url":"https://api.github.com/repos/lxc/lxd/issues/comments/421853878","html_url":"https://github.com/lxc/lxd/issues/5036#issuecomment-421853878","issue_url":"https://api.github.com/repos/lxc/lxd/issues/5036","id":421853878,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMTg1Mzg3OA==","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-09-16T23:39:20Z","updated_at":"2018-09-16T23:39:20Z","author_association":"MEMBER","body":"Yeah, currently this is needed because there's no internal API which does that move, it's effectively the client asking LXD to copy the container and then delete the old one. We've already added an API like that for moving containers within a cluster, so we should be able to use the same infrastructure to also allow local container moves between storage."}}
{"actor":{"display_login":"stgraber"}}