canonical / lxd

Powerful system container and virtual machine manager
https://canonical.com/lxd
GNU Affero General Public License v3.0
4.32k stars 926 forks source link

lxc suggests running the exact command I am running #6248

Closed anonymouse64 closed 4 years ago

anonymouse64 commented 4 years ago

Required information

``` config: {} api_extensions: - storage_zfs_remove_snapshots - container_host_shutdown_timeout - container_stop_priority - container_syscall_filtering - auth_pki - container_last_used_at - etag - patch - usb_devices - https_allowed_credentials - image_compression_algorithm - directory_manipulation - container_cpu_time - storage_zfs_use_refquota - storage_lvm_mount_options - network - profile_usedby - container_push - container_exec_recording - certificate_update - container_exec_signal_handling - gpu_devices - container_image_properties - migration_progress - id_map - network_firewall_filtering - network_routes - storage - file_delete - file_append - network_dhcp_expiry - storage_lvm_vg_rename - storage_lvm_thinpool_rename - network_vlan - image_create_aliases - container_stateless_copy - container_only_migration - storage_zfs_clone_copy - unix_device_rename - storage_lvm_use_thinpool - storage_rsync_bwlimit - network_vxlan_interface - storage_btrfs_mount_options - entity_description - image_force_refresh - storage_lvm_lv_resizing - id_map_base - file_symlinks - container_push_target - network_vlan_physical - storage_images_delete - container_edit_metadata - container_snapshot_stateful_migration - storage_driver_ceph - storage_ceph_user_name - resource_limits - storage_volatile_initial_source - storage_ceph_force_osd_reuse - storage_block_filesystem_btrfs - resources - kernel_limits - storage_api_volume_rename - macaroon_authentication - network_sriov - console - restrict_devlxd - migration_pre_copy - infiniband - maas_network - devlxd_events - proxy - network_dhcp_gateway - file_get_symlink - network_leases - unix_device_hotplug - storage_api_local_volume_handling - operation_description - clustering - event_lifecycle - storage_api_remote_volume_handling - nvidia_runtime - candid_authentication - candid_config - candid_config_key - usb_optional_vendorid api_status: stable api_version: "1.0" auth: trusted public: false auth_methods: - tls environment: addresses: [] architectures: - x86_64 - i686 certificate: | -----BEGIN CERTIFICATE----- MIIFbTCCA1WgAwIBAgIQCxnlukRT/6Nv+hvkEwSzGzANBgkqhkiG9w0BAQsFADA9 MRwwGgYDVQQKExNsaW51eGNvbnRhaW5lcnMub3JnM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0k4x7Up5HuAjc3ZJMq8tccKoMWfZ6yR/0htsriOXD IR0SgqsUfMhf4VdayhB8yZ9vZs0HjqkZzf0VLzEgtnI9Wn08dQscqDAcKZrjUVVs e7QOP1oLKGnvpJymw3esxxECzDmThIXdqV1pcK9JfzER1R3yxqlvrhEN8C2KeOmM S1Kvspyl859vgoghec34ScgvlBP0iFNU8DfVWflDcYga2TXSBfGOGzGc89e35RVf 4Gg3fmMm+QuwZ/Ody2c/jZdmvHBl0GjLl2FGRiEB4bP6vdxOMN1oXd7ZwCaoXKhZ f8ipkCWJ+5/6nC8ZOL333rsdjIqkZ+hsCC4BvrrCYyjf4vkO9Iqhi6eyFFDCy7HM 1asXiS17ulr/W7P8kXC19ALHmaMbIoJMFDZhMWranLEix7D5e/4A3wTKYj/m7VO2 YW751rUxtrGUwsfa0Id6uJ8K7C9BTGNOYZpFpXr1ZP/ZzyodEM7mohQvr8pjn0Zs V5oFhW1/DZldtwDyIke0p+aNj/HoO8KXD8ajTA/eXDKwBiTXjnWVIb9wZn1OXYaV pA04TkXU+aEEU0Bb9WR/sLgmPR0fU2u5MMkwl9ln8yiNnChy2tjvIP8/yDKlR6aa OWKY5UD3T7jwDvxTsLMDd0fgGnKZ/MTfOx8TMjOObpG3sIE8M/gkHkCB/PFiYT5i hA== -----END CERTIFICATE----- certificate_fingerprint: 089261acd7217c512926100ffe4eaf12d9326eb3989e0968af577e1daadc1888 driver: lxc driver_version: 3.0.3 kernel: Linux kernel_architecture: x86_64 kernel_version: 5.0.0-29-generic server: lxd server_pid: 2752 server_version: 3.0.3 storage: dir storage_version: "1" server_clustered: false server_name: feasible-amoeba project: "" ```

Issue description

lxc suggests to try the exact command I am running:

root@feasible-amoeba:~# sudo lxd init --auto
root@feasible-amoeba:~# lxc launch ubuntu:18.04
To start your first container, try: lxc launch ubuntu:18.04

Creating the container
Container name is: crack-cobra              
Starting crack-cobra
root@feasible-amoeba:~#

Information to attach

Note that this was running from inside a lxd container, so perhaps this doesn't happen with a fresh install on a virtual or native host.

anonymouse64 commented 4 years ago

While I don't see this exact issue anymore, I do still see this with a slightly different order of commands:

ubuntu@vital-spitz:~$ lxc launch ubuntu-daily:20.04
Creating the instance
Instance name is: lucky-macaw               
Starting lucky-macaw
ubuntu@vital-spitz:~$ lxc shell lucky-macaw
To start your first instance, try: lxc launch ubuntu:18.04

root@lucky-macaw:~# logout
ubuntu@vital-spitz:~$ lxc version
Client version: 3.19
Server version: 3.19
ubuntu@vital-spitz:~$ snap info lxd | grep installed:
installed:        3.19                   (13162) 67MB -

I removed the lxc lxd-client and lxd debian packages, then installed lxd as a snap, so I'm certain that this was from the snap and not the deb (which is probably old since this was a xenial machine)

stgraber commented 4 years ago

Can't reproduce this here.

stgraber@castiana:~/data/code/lxc/lxd (stgraber/master)$ rm -Rf ~/.config/lxc
stgraber@castiana:~/data/code/lxc/lxd (stgraber/master)$ lxc list
To start your first instance, try: lxc launch ubuntu:18.04

+------+-------+------+------+------+-----------+
| NAME | STATE | IPV4 | IPV6 | TYPE | SNAPSHOTS |
+------+-------+------+------+------+-----------+
stgraber@castiana:~/data/code/lxc/lxd (stgraber/master)$ lxc list
+------+-------+------+------+------+-----------+
| NAME | STATE | IPV4 | IPV6 | TYPE | SNAPSHOTS |
+------+-------+------+------+------+-----------+

stgraber@castiana:~/data/code/lxc/lxd (stgraber/master)$ rm -Rf ~/.config/lxc
stgraber@castiana:~/data/code/lxc/lxd (stgraber/master)$ lxc launch ubuntu:18.04 c1
Creating c1
Starting c1
stgraber@castiana:~/data/code/lxc/lxd (stgraber/master)$ lxc shell c1
root@c1:~# logout
stgraber@castiana:~/data/code/lxc/lxd (stgraber/master)$ lxc list
+------+---------+------+------+-----------+-----------+
| NAME |  STATE  | IPV4 | IPV6 |   TYPE    | SNAPSHOTS |
+------+---------+------+------+-----------+-----------+
| c1   | RUNNING |      |      | CONTAINER | 0         |
+------+---------+------+------+-----------+-----------+