{"action":"created","issue":{"url":"https://api.github.com/repos/lxc/lxd/issues/4629","repository_url":"https://api.github.com/repos/lxc/lxd","labels_url":"https://api.github.com/repos/lxc/lxd/issues/4629/labels{/name}","comments_url":"https://api.github.com/repos/lxc/lxd/issues/4629/comments","events_url":"https://api.github.com/repos/lxc/lxd/issues/4629/events","html_url":"https://github.com/lxc/lxd/issues/4629","id":330416357,"node_id":"MDU6SXNzdWUzMzA0MTYzNTc=","number":4629,"title":"LXD 3.01 - Clustering - Failed container creation: no \"source\" property found for the storage pool","user":{"login":"rkelleyrtp","id":23708220,"node_id":"MDQ6VXNlcjIzNzA4MjIw","avatar_url":"https://avatars0.githubusercontent.com/u/23708220?v=4","gravatar_id":"","url":"https://api.github.com/users/rkelleyrtp","html_url":"https://github.com/rkelleyrtp","followers_url":"https://api.github.com/users/rkelleyrtp/followers","following_url":"https://api.github.com/users/rkelleyrtp/following{/other_user}","gists_url":"https://api.github.com/users/rkelleyrtp/gists{/gist_id}","starred_url":"https://api.github.com/users/rkelleyrtp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rkelleyrtp/subscriptions","organizations_url":"https://api.github.com/users/rkelleyrtp/orgs","repos_url":"https://api.github.com/users/rkelleyrtp/repos","events_url":"https://api.github.com/users/rkelleyrtp/events{/privacy}","received_events_url":"https://api.github.com/users/rkelleyrtp/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":"freeekanayaka","id":598445,"node_id":"MDQ6VXNlcjU5ODQ0NQ==","avatar_url":"https://avatars0.githubusercontent.com/u/598445?v=4","gravatar_id":"","url":"https://api.github.com/users/freeekanayaka","html_url":"https://github.com/freeekanayaka","followers_url":"https://api.github.com/users/freeekanayaka/followers","following_url":"https://api.github.com/users/freeekanayaka/following{/other_user}","gists_url":"https://api.github.com/users/freeekanayaka/gists{/gist_id}","starred_url":"https://api.github.com/users/freeekanayaka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/freeekanayaka/subscriptions","organizations_url":"https://api.github.com/users/freeekanayaka/orgs","repos_url":"https://api.github.com/users/freeekanayaka/repos","events_url":"https://api.github.com/users/freeekanayaka/events{/privacy}","received_events_url":"https://api.github.com/users/freeekanayaka/received_events","type":"User","site_admin":false},"assignees":[{"login":"freeekanayaka","id":598445,"node_id":"MDQ6VXNlcjU5ODQ0NQ==","avatar_url":"https://avatars0.githubusercontent.com/u/598445?v=4","gravatar_id":"","url":"https://api.github.com/users/freeekanayaka","html_url":"https://github.com/freeekanayaka","followers_url":"https://api.github.com/users/freeekanayaka/followers","following_url":"https://api.github.com/users/freeekanayaka/following{/other_user}","gists_url":"https://api.github.com/users/freeekanayaka/gists{/gist_id}","starred_url":"https://api.github.com/users/freeekanayaka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/freeekanayaka/subscriptions","organizations_url":"https://api.github.com/users/freeekanayaka/orgs","repos_url":"https://api.github.com/users/freeekanayaka/repos","events_url":"https://api.github.com/users/freeekanayaka/events{/privacy}","received_events_url":"https://api.github.com/users/freeekanayaka/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/lxc/lxd/milestones/69","html_url":"https://github.com/lxc/lxd/milestone/69","labels_url":"https://api.github.com/repos/lxc/lxd/milestones/69/labels","id":3339209,"node_id":"MDk6TWlsZXN0b25lMzMzOTIwOQ==","number":69,"title":"lxd-3.2","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":6,"closed_issues":9,"state":"open","created_at":"2018-05-11T13:58:13Z","updated_at":"2018-06-07T21:14:11Z","due_on":"2018-06-19T07:00:00Z","closed_at":null},"comments":13,"created_at":"2018-06-07T20:04:30Z","updated_at":"2018-06-07T22:49:46Z","closed_at":null,"author_association":"NONE","body":"<!--\r\nGithub issues are used for bug reports. For support questions, please use [our forum](https://discuss.linuxcontainers.org).\r\n\r\nPlease fill the template below as it will greatly help us track down your issue and reproduce it on our side.  \r\nFeel free to remove anything which doesn't apply to you and add more information where it makes sense.\r\n-->\r\n\r\n# Required information\r\n\r\n * Distribution: Ubuntu\r\n * Distribution version: 18.04\r\n * The output of \"lxc info\" or if that fails:\r\nconfig:\r\n  core.https_address: 10.30.50.60:8443\r\n  core.trust_password: true\r\napi_extensions:\r\n- storage_zfs_remove_snapshots\r\n- container_host_shutdown_timeout\r\n- container_stop_priority\r\n- container_syscall_filtering\r\n- auth_pki\r\n- container_last_used_at\r\n- etag\r\n- patch\r\n- usb_devices\r\n- https_allowed_credentials\r\n- image_compression_algorithm\r\n- directory_manipulation\r\n- container_cpu_time\r\n- storage_zfs_use_refquota\r\n- storage_lvm_mount_options\r\n- network\r\n- profile_usedby\r\n- container_push\r\n- container_exec_recording\r\n- certificate_update\r\n- container_exec_signal_handling\r\n- gpu_devices\r\n- container_image_properties\r\n- migration_progress\r\n- id_map\r\n- network_firewall_filtering\r\n- network_routes\r\n- storage\r\n- file_delete\r\n- file_append\r\n- network_dhcp_expiry\r\n- storage_lvm_vg_rename\r\n- storage_lvm_thinpool_rename\r\n- network_vlan\r\n- image_create_aliases\r\n- container_stateless_copy\r\n- container_only_migration\r\n- storage_zfs_clone_copy\r\n- unix_device_rename\r\n- storage_lvm_use_thinpool\r\n- storage_rsync_bwlimit\r\n- network_vxlan_interface\r\n- storage_btrfs_mount_options\r\n- entity_description\r\n- image_force_refresh\r\n- storage_lvm_lv_resizing\r\n- id_map_base\r\n- file_symlinks\r\n- container_push_target\r\n- network_vlan_physical\r\n- storage_images_delete\r\n- container_edit_metadata\r\n- container_snapshot_stateful_migration\r\n- storage_driver_ceph\r\n- storage_ceph_user_name\r\n- resource_limits\r\n- storage_volatile_initial_source\r\n- storage_ceph_force_osd_reuse\r\n- storage_block_filesystem_btrfs\r\n- resources\r\n- kernel_limits\r\n- storage_api_volume_rename\r\n- macaroon_authentication\r\n- network_sriov\r\n- console\r\n- restrict_devlxd\r\n- migration_pre_copy\r\n- infiniband\r\n- maas_network\r\n- devlxd_events\r\n- proxy\r\n- network_dhcp_gateway\r\n- file_get_symlink\r\n- network_leases\r\n- unix_device_hotplug\r\n- storage_api_local_volume_handling\r\n- operation_description\r\n- clustering\r\n- event_lifecycle\r\n- storage_api_remote_volume_handling\r\n- nvidia_runtime\r\n- container_mount_propagation\r\n- container_backup\r\napi_status: stable\r\napi_version: \"1.0\"\r\nauth: trusted\r\npublic: false\r\nauth_methods:\r\n- tls\r\nenvironment:\r\n  addresses:\r\n  - 10.30.50.60:8443\r\n  architectures:\r\n  - x86_64\r\n  - i686\r\n  certificate: |\r\n    -----BEGIN CERTIFICATE-----\r\n    MIIFVTCCAz2gAwIBAgIQJoB2Oq2wAO9l2qWCd98wCjANBgkqhkiG9w0BAQsFADA7\r\n    MRwwGgYDVQQKExNsaW51eGNvbnRhaW5lcnMub3JnMRswGQYDVQQDDBJyb290QExY\r\n    RC0zLU1hbmFnZXIwHhcNMTgwNjA3MTkwOTQyWhcNMjgwNjA0MTkwOTQyWjA7MRww\r\n    GgYDVQQKExNsaW51eGNvbnRhaW5lcnMub3JnMRswGQYDVQQDDBJyb290QExYRC0z\r\n    LU1hbmFnZXIwggIiMA0GCSqGSIb3DQEBAQUAA4ICD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r\n    9SE6IOTOODnaddHu8GoXOb9xs1/ke8bS4Vxdi9n0RimEecc3coxF09DZpNY8H18p\r\n    chpGEnmDXiRhpR5FhVhJXhXnD1Zmov/qZ/x4nRbapPeGu6GHpJTIF3EO0iWC/uLf\r\n    zzyOyGMjt/tEdX1t28HwljDgVRrwwa0OXp0LXGOy8eEOQKWh3ZN4qOzst2+PO36G\r\n    7RpSHQpjmAiyYCF5H3X5DsX8I6BfRAMM/NgoyqXQ+/FaTPmE39tMmHK51vQiCBFZ\r\n    qUvxt2exahOtCsgXNpVrPGH6HmH2KLQptwupaxvHXq4BuSPPIUyuHE+uogOged2n\r\n    9tKVOOsgzGT80DIRY5Hkc0auYlAITqCLyN2wEBFNEaj4Z/0xJbwE9NNmDrXxeuHQ\r\n    bB4lLTWW6uc1cvI8y+5gRBIT3HOS/guRqZ54ehOZonhA4NfES7hllJHQpBWfS1r4\r\n    aBzQlDlck8Q4qVe9WaYYmaifvAeBazRz1mqnU2BEhPpA6mGmPjs74ZqxFHGfUpSZ\r\n    PGtGFemMGxwhuuHAeQBDzruM1kWzcWKssg==\r\n    -----END CERTIFICATE-----\r\n  certificate_fingerprint: ba6c919bc7a5b8a249075487790abca2c3c148b5a5a139d2c1848f0b0817a94c\r\n  driver: lxc\r\n  driver_version: 3.0.1\r\n  kernel: Linux\r\n  kernel_architecture: x86_64\r\n  kernel_version: 4.15.0-22-generic\r\n  server: lxd\r\n  server_pid: 808\r\n  server_version: \"3.1\"\r\n  storage: dir\r\n  storage_version: \"1\"\r\n  server_clustered: true\r\n  server_name: LXD-3-Manager\r\n\r\n\r\n\r\n\r\n# Issue description\r\nAfter adding a second node to a cluster using a local \"dir\" storage pool, the new server fails to properly create the container.  However, the storage pool shows the new container.\r\n\r\n```\r\nroot@LXD-Server1:/var/snap/lxd/common/lxd/storage-pools/BTRFS# lxc storage volume list BTRFS\r\n+-----------+------+-------------+---------+---------------+\r\n|   TYPE    | NAME | DESCRIPTION | USED BY |   LOCATION    |\r\n+-----------+------+-------------+---------+---------------+\r\n| container | c2   |             | 1       | LXD-Server1   |\r\n+-----------+------+-------------+---------+---------------+\r\n| container | c99  |             | 1       | LXD-3-Manager |\r\n+-----------+------+-------------+---------+---------------+\r\n| container | c99  |             | 1       | LXD-Server1   |\r\n+-----------+------+-------------+---------+---------------+\r\n\r\n```\r\n\r\n```\r\nroot@LXD-Server1:/var/snap/lxd/common/lxd/storage-pools/BTRFS# lxc list\r\n+------+---------+-------------------+------+------------+-----------+---------------+\r\n| NAME |  STATE  |       IPV4        | IPV6 |    TYPE    | SNAPSHOTS |   LOCATION    |\r\n+------+---------+-------------------+------+------------+-----------+---------------+\r\n| c99  | RUNNING | 240.60.0.9 (eth0) |      | PERSISTENT | 0         | LXD-3-Manager |\r\n+------+---------+-------------------+------+------------+-----------+---------------+\r\n\r\n```\r\n\r\n# Steps to reproduce\r\n\r\n * Install U18.04 on a fresh machine with two disks (boot and storage) - call it \"Manager\"\r\n\r\n * Remove LXD and re-install via latest snap (LXD 3.01)\r\n\r\n * Setup LXD in cluster mode as cluster master - take all defaults\r\n\r\n * Create new BTRFS filesystem on /dev/sdb (second drive)\r\n\r\n * Add a new storage pool via \"lxc storage create BTRFS dir\" - use /var/snap/lxd/common/lxd/storage-pools/BTRFS as the target directory\r\n\r\n * Mount /dev/sdb to /var/snap/lxd/common/lxd/storage-pools/BTRFS and run \"lxd storage list\"\r\n\r\n```\r\n    root@LXD-3-Manager:~# lxc storage list\r\n    +-------+-------------+--------+---------+---------+\r\n    | NAME  | DESCRIPTION | DRIVER |  STATE  | USED BY |\r\n    +-------+-------------+--------+---------+---------+\r\n    | local |             | dir    | CREATED | 2       |\r\n    +-------+-------------+--------+---------+---------+\r\n    | BTRFS |             | dir    | CREATED | 2       |\r\n    +-------+-------------+--------+---------+---------+\r\n\r\n```\r\n\r\n  * Edit the default profile and change the pool name from \"local\" to \"BTRFS\"\r\n\r\n  * Remove the local storage pool so as to have only a single BTRFS storage pool available:  \"lxc storage delete local\" and list the pool again\r\n\r\n```\r\n    root@LXD-3-Manager:~# lxc storage list\r\n    +-------+-------------+--------+---------+---------+\r\n    | NAME  | DESCRIPTION | DRIVER |  STATE  | USED BY |\r\n    +-------+-------------+--------+---------+---------+\r\n    | BTRFS |             | dir    | CREATED | 2       |\r\n    +-------+-------------+--------+---------+---------+\r\n\r\n```\r\n\r\n  * Spin up an identical U18.04 server (Server1) and add it to the cluster\r\n     --> Create a new BTRFS filesystem on /dev/sdb\r\n     --> During the cluster setup, specify the directory \"/var/snap/lxd/common/lxd/storage-pools/BTRFS\" for the BTRFS pool id\r\n\r\n\r\n  * Create a new container on Manager - specify BTRFS storage pool\r\n\r\n  * Create a new container on Server1 - specify BTRFS storage pool (lxc launch Ubuntu:18.04 --storage BTRFS --target Server1\r\n\r\n    ------------------------------\r\n```\r\n    lxc launch ubuntu:16.04 c2\r\n    Creating c2\r\n    Error: Failed container creation: no \"source\" property found for the storage pool\r\n\r\n```    ------------------------------\r\n\r\n\r\n# Information to attach\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/395590053","html_url":"https://github.com/lxc/lxd/issues/4629#issuecomment-395590053","issue_url":"https://api.github.com/repos/lxc/lxd/issues/4629","id":395590053,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NTU5MDA1Mw==","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-06-07T22:49:46Z","updated_at":"2018-06-07T22:49:46Z","author_association":"MEMBER","body":"And in any case, it shouldn't then cause a subsequent init to fail weirdly."}}
{"actor":{"display_login":"stgraber"}}