Hi,
“lxc pause” doesn’t seem to be working for me in Ubuntu 18.04 (fresh OS installation and fresh container). How to reproduce:
$ lxc launch ubuntu:18.04 bionic
$ lxc list
+--------+---------+---------------------+-----------------------------------------------+------------+-----------+
| NAME | STATE | IPV4 | IPV6 | TYPE | SNAPSHOTS |
+--------+---------+---------------------+-----------------------------------------------+------------+-----------+
| bionic | RUNNING | 10.27.107.13 (eth0) | fd42:8f8d:77b8:6c04:216:3eff:fe17:28b0 (eth0) | PERSISTENT | 0 |
+--------+---------+---------------------+-----------------------------------------------+------------+-----------+
$ lxc pause bionic
Error: unknown action pause
$ lxc pause bionic -v --debug
DBUG[05-09|14:05:51] Connecting to a local LXD over a Unix socket
DBUG[05-09|14:05:51] Sending request to LXD etag= method=GET url=http://unix.socket/1.0
DBUG[05-09|14:05:51] Got response struct from LXD
DBUG[05-09|14:05:51]
{
"config": {
"core.https_address": "[::]:8443",
"core.trust_password": true
},
"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"
],
"api_status": "stable",
"api_version": "1.0",
"auth": "trusted",
"public": false,
"auth_methods": [
"tls"
],
"environment": {
"addresses": [
"192.168.0.107:8443",
"10.27.107.1:8443",
"[fd42:8f8d:77b8:6c04::1]:8443",
"10.251.172.66:8443"
],
"architectures": [
"x86_64",
"i686"
],
"certificate": "stripped",
"certificate_fingerprint": "0daf25ff4cf24ad17177d88a06c08b28db6b1295891af85419c8f2c45c1cc888",
"driver": "lxc",
"driver_version": "3.0.0",
"kernel": "Linux",
"kernel_architecture": "x86_64",
"kernel_version": "4.15.0-20-generic",
"server": "lxd",
"server_pid": 1491,
"server_version": "3.0.0",
"storage": "dir",
"storage_version": "1",
"server_clustered": false,
"server_name": "krypton"
}
}
DBUG[05-09|14:05:51] Connected to the websocket
DBUG[05-09|14:05:51] Sending request to LXD etag= method=PUT url=http://unix.socket/1.0/containers/bionic/state
DBUG[05-09|14:05:51]
{
"action": "pause",
"timeout": 0,
"force": false,
"stateful": false
}
Error: unknown action pause
Only semi-relevant system/LXD changes I can think of is some dnsmasq tweaks and setting core.https_address (used “lxc copy” to transfer old containers from remote 16.04 system).
Any ideas? Thanks.