{"action":"created","issue":{"url":"https://api.github.com/repos/lxc/lxc/issues/2625","repository_url":"https://api.github.com/repos/lxc/lxc","labels_url":"https://api.github.com/repos/lxc/lxc/issues/2625/labels{/name}","comments_url":"https://api.github.com/repos/lxc/lxc/issues/2625/comments","events_url":"https://api.github.com/repos/lxc/lxc/issues/2625/events","html_url":"https://github.com/lxc/lxc/issues/2625","id":362155844,"node_id":"MDU6SXNzdWUzNjIxNTU4NDQ=","number":2625,"title":"lxc image copy command on remote repositories takes a lot of time to \"initialise\"","user":{"login":"GavrielNsof","id":31381906,"node_id":"MDQ6VXNlcjMxMzgxOTA2","avatar_url":"https://avatars2.githubusercontent.com/u/31381906?v=4","gravatar_id":"","url":"https://api.github.com/users/GavrielNsof","html_url":"https://github.com/GavrielNsof","followers_url":"https://api.github.com/users/GavrielNsof/followers","following_url":"https://api.github.com/users/GavrielNsof/following{/other_user}","gists_url":"https://api.github.com/users/GavrielNsof/gists{/gist_id}","starred_url":"https://api.github.com/users/GavrielNsof/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GavrielNsof/subscriptions","organizations_url":"https://api.github.com/users/GavrielNsof/orgs","repos_url":"https://api.github.com/users/GavrielNsof/repos","events_url":"https://api.github.com/users/GavrielNsof/events{/privacy}","received_events_url":"https://api.github.com/users/GavrielNsof/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-20T12:04:32Z","updated_at":"2018-09-20T12:05:52Z","closed_at":"2018-09-20T12:05:52Z","author_association":"NONE","body":"# Issue description\r\n\r\nlxc image copy command on remote repositories takes a lot of time to \"initialise\"\r\nnormally between 30 seconds to 2 minutes until it starts to download. \r\n(it just hangs)\r\n\r\n# Steps to reproduce\r\n\r\n1. lxc image copy ubuntu:d9f88b00dc5e local: --copy-aliases\r\n\r\n# running the command with \"--debug\":\r\nDBUG[09-20|12:02:43] Connecting to a remote simplestreams server\r\nDBUG[09-20|12:02:43] Connecting to a local LXD over a Unix socket\r\nDBUG[09-20|12:02:43] Sending request to LXD                   etag= method=GET url=http://unix.socket/1.0\r\nDBUG[09-20|12:02:43] Got response struct from LXD\r\nDBUG[09-20|12:02:43]\r\n\t{\r\n\t\t\"config\": {},\r\n\t\t\"api_extensions\": [\r\n\t\t\t\"storage_zfs_remove_snapshots\",\r\n\t\t\t\"container_host_shutdown_timeout\",\r\n\t\t\t\"container_stop_priority\",\r\n\t\t\t\"container_syscall_filtering\",\r\n\t\t\t\"auth_pki\",\r\n\t\t\t\"container_last_used_at\",\r\n\t\t\t\"etag\",\r\n\t\t\t\"patch\",\r\n\t\t\t\"usb_devices\",\r\n\t\t\t\"https_allowed_credentials\",\r\n\t\t\t\"image_compression_algorithm\",\r\n\t\t\t\"directory_manipulation\",\r\n\t\t\t\"container_cpu_time\",\r\n\t\t\t\"storage_zfs_use_refquota\",\r\n\t\t\t\"storage_lvm_mount_options\",\r\n\t\t\t\"network\",\r\n\t\t\t\"profile_usedby\",\r\n\t\t\t\"container_push\",\r\n\t\t\t\"container_exec_recording\",\r\n\t\t\t\"certificate_update\",\r\n\t\t\t\"container_exec_signal_handling\",\r\n\t\t\t\"gpu_devices\",\r\n\t\t\t\"container_image_properties\",\r\n\t\t\t\"migration_progress\",\r\n\t\t\t\"id_map\",\r\n\t\t\t\"network_firewall_filtering\",\r\n\t\t\t\"network_routes\",\r\n\t\t\t\"storage\",\r\n\t\t\t\"file_delete\",\r\n\t\t\t\"file_append\",\r\n\t\t\t\"network_dhcp_expiry\",\r\n\t\t\t\"storage_lvm_vg_rename\",\r\n\t\t\t\"storage_lvm_thinpool_rename\",\r\n\t\t\t\"network_vlan\",\r\n\t\t\t\"image_create_aliases\",\r\n\t\t\t\"container_stateless_copy\",\r\n\t\t\t\"container_only_migration\",\r\n\t\t\t\"storage_zfs_clone_copy\",\r\n\t\t\t\"unix_device_rename\",\r\n\t\t\t\"storage_lvm_use_thinpool\",\r\n\t\t\t\"storage_rsync_bwlimit\",\r\n\t\t\t\"network_vxlan_interface\",\r\n\t\t\t\"storage_btrfs_mount_options\",\r\n\t\t\t\"entity_description\",\r\n\t\t\t\"image_force_refresh\",\r\n\t\t\t\"storage_lvm_lv_resizing\",\r\n\t\t\t\"id_map_base\",\r\n\t\t\t\"file_symlinks\",\r\n\t\t\t\"container_push_target\",\r\n\t\t\t\"network_vlan_physical\",\r\n\t\t\t\"storage_images_delete\",\r\n\t\t\t\"container_edit_metadata\",\r\n\t\t\t\"container_snapshot_stateful_migration\",\r\n\t\t\t\"storage_driver_ceph\",\r\n\t\t\t\"storage_ceph_user_name\",\r\n\t\t\t\"resource_limits\",\r\n\t\t\t\"storage_volatile_initial_source\",\r\n\t\t\t\"storage_ceph_force_osd_reuse\",\r\n\t\t\t\"storage_block_filesystem_btrfs\",\r\n\t\t\t\"resources\",\r\n\t\t\t\"kernel_limits\",\r\n\t\t\t\"storage_api_volume_rename\",\r\n\t\t\t\"macaroon_authentication\",\r\n\t\t\t\"network_sriov\",\r\n\t\t\t\"console\",\r\n\t\t\t\"restrict_devlxd\",\r\n\t\t\t\"migration_pre_copy\",\r\n\t\t\t\"infiniband\",\r\n\t\t\t\"maas_network\",\r\n\t\t\t\"devlxd_events\",\r\n\t\t\t\"proxy\",\r\n\t\t\t\"network_dhcp_gateway\",\r\n\t\t\t\"file_get_symlink\",\r\n\t\t\t\"network_leases\",\r\n\t\t\t\"unix_device_hotplug\",\r\n\t\t\t\"storage_api_local_volume_handling\",\r\n\t\t\t\"operation_description\",\r\n\t\t\t\"clustering\",\r\n\t\t\t\"event_lifecycle\",\r\n\t\t\t\"storage_api_remote_volume_handling\",\r\n\t\t\t\"nvidia_runtime\"\r\n\t\t],\r\n\t\t\"api_status\": \"stable\",\r\n\t\t\"api_version\": \"1.0\",\r\n\t\t\"auth\": \"trusted\",\r\n\t\t\"public\": false,\r\n\t\t\"auth_methods\": [\r\n\t\t\t\"tls\"\r\n\t\t],\r\n\t\t\"environment\": {\r\n\t\t\t\"addresses\": [],\r\n\t\t\t\"architectures\": [\r\n\t\t\t\t\"x86_64\",\r\n\t\t\t\t\"i686\"\r\n\t\t\t],\r\n\t\t\t\"driver\": \"lxc\",\r\n\t\t\t\"driver_version\": \"3.0.1\",\r\n\t\t\t\"kernel\": \"Linux\",\r\n\t\t\t\"kernel_architecture\": \"x86_64\",\r\n\t\t\t\"kernel_version\": \"4.15.0-34-generic\",\r\n\t\t\t\"server\": \"lxd\",\r\n\t\t\t\"server_pid\": 1885,\r\n\t\t\t\"server_version\": \"3.0.1\",\r\n\t\t\t\"storage\": \"dir\",\r\n\t\t\t\"storage_version\": \"1\",\r\n\t\t\t\"server_clustered\": false,\r\n\t\t\t\"server_name\": \"hkg-hv-001-01.stg1.nsof.io\"\r\n\t\t}\r\n\t}\r\n\r\n*** **Hangs for some time** ***\r\n\r\nDBUG[09-20|12:03:58] Connected to the websocket\r\nDBUG[09-20|12:03:58] Sending request to LXD                   etag= method=POST url=http://unix.socket/1.0/images\r\nDBUG[09-20|12:03:58]\r\n\t{\r\n\t\t\"auto_update\": false,\r\n\t\t\"properties\": null,\r\n\t\t\"public\": false,\r\n\t\t\"filename\": \"\",\r\n\t\t\"source\": {\r\n\t\t\t\"alias\": \"\",\r\n\t\t\t\"certificate\": \"\",\r\n\t\t\t\"protocol\": \"simplestreams\",\r\n\t\t\t\"server\": \"https://cloud-images.ubuntu.com/releases\",\r\n\t\t\t\"mode\": \"pull\",\r\n\t\t\t\"type\": \"image\",\r\n\t\t\t\"url\": \"\",\r\n\t\t\t\"name\": \"\",\r\n\t\t\t\"fingerprint\": \"d9f88b00dc5e810519e4360590e19ecdf9de8da781f245d0eaa0fa7ff21976dd\",\r\n\t\t\t\"secret\": \"\"\r\n\t\t},\r\n\t\t\"compression_algorithm\": \"\",\r\n\t\t\"aliases\": null\r\n\t}\r\nDBUG[09-20|12:03:58] Got operation from LXD\r\nDBUG[09-20|12:03:58]\r\n\t{\r\n\t\t\"id\": \"880fbe1b-9e91-460c-bac5-a7553d956a26\",\r\n\t\t\"class\": \"task\",\r\n\t\t\"description\": \"Downloading image\",\r\n\t\t\"created_at\": \"2018-09-20T12:03:58.112683744Z\",\r\n\t\t\"updated_at\": \"2018-09-20T12:03:58.112683744Z\",\r\n\t\t\"status\": \"Running\",\r\n\t\t\"status_code\": 103,\r\n\t\t\"resources\": null,\r\n\t\t\"metadata\": null,\r\n\t\t\"may_cancel\": false,\r\n\t\t\"err\": \"\"\r\n\t}\r\nDBUG[09-20|12:03:58] Sending request to LXD                   etag= method=GET url=http://unix.socket/1.0/operations/880fbe1b-9e91-460c-bac5-a7553d956a26\r\nDBUG[09-20|12:03:58] Got response struct from LXD\r\nDBUG[09-20|12:03:58]\r\n\t{\r\n\t\t\"id\": \"880fbe1b-9e91-460c-bac5-a7553d956a26\",\r\n\t\t\"class\": \"task\",\r\n\t\t\"description\": \"Downloading image\",\r\n\t\t\"created_at\": \"2018-09-20T12:03:58.112683744Z\",\r\n\t\t\"updated_at\": \"2018-09-20T12:03:58.112683744Z\",\r\n\t\t\"status\": \"Running\",\r\n\t\t\"status_code\": 103,\r\n\t\t\"resources\": null,\r\n\t\t\"metadata\": null,\r\n\t\t\"may_cancel\": false,\r\n\t\t\"err\": \"\"\r\n\t}\r\n\r\n\r\n\r\n\r\n# More Info:\r\nUbunut 16.04- 4.15.0-34-generic\r\nlxc --version = 3.0.1\r\n\r\ncat /proc/self/cgroup\r\n12:blkio:/user.slice\r\n11:hugetlb:/\r\n10:cpuset:/\r\n9:pids:/user.slice/user-1000.slice\r\n8:freezer:/\r\n7:rdma:/\r\n6:devices:/user.slice\r\n5:memory:/user.slice\r\n4:perf_event:/\r\n3:net_cls,net_prio:/\r\n2:cpu,cpuacct:/user.slice\r\n1:name=systemd:/user.slice/user-1000.slice/session-844.scope\r\n"},"comment":{"url":"https://api.github.com/repos/lxc/lxc/issues/comments/423158472","html_url":"https://github.com/lxc/lxc/issues/2625#issuecomment-423158472","issue_url":"https://api.github.com/repos/lxc/lxc/issues/2625","id":423158472,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMzE1ODQ3Mg==","user":{"login":"brauner","id":7353573,"node_id":"MDQ6VXNlcjczNTM1NzM=","avatar_url":"https://avatars0.githubusercontent.com/u/7353573?v=4","gravatar_id":"","url":"https://api.github.com/users/brauner","html_url":"https://github.com/brauner","followers_url":"https://api.github.com/users/brauner/followers","following_url":"https://api.github.com/users/brauner/following{/other_user}","gists_url":"https://api.github.com/users/brauner/gists{/gist_id}","starred_url":"https://api.github.com/users/brauner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brauner/subscriptions","organizations_url":"https://api.github.com/users/brauner/orgs","repos_url":"https://api.github.com/users/brauner/repos","events_url":"https://api.github.com/users/brauner/events{/privacy}","received_events_url":"https://api.github.com/users/brauner/received_events","type":"User","site_admin":false},"created_at":"2018-09-20T12:05:52Z","updated_at":"2018-09-20T12:05:52Z","author_association":"MEMBER","body":"Sorry, this is the wrong repo. Can you please file this issue against https://github.com/lxc/lxd ? :)"}}
{"actor":{"display_login":"brauner"}}