$ juju ssh nova-compute/0 Welcome to Ubuntu 18.04.2 LTS (GNU/Linux 4.15.0-43-generic x86_64) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: https://ubuntu.com/advantage System information as of Fri Jul 5 13:55:23 UTC 2019 System load: 0.13 Processes: 116 Usage of /: 7.9% of 38.60GB Users logged in: 1 Memory usage: 21% IP address for ens3: 10.5.0.23 Swap usage: 0% IP address for fan-252: 252.0.23.1 Get cloud support with Ubuntu Advantage Cloud Guest: http://www.ubuntu.com/business/services/cloud * Canonical Livepatch is available for installation. - Reduce system reboots and improve kernel security. Activate at: https://ubuntu.com/livepatch 10 packages can be updated. 3 updates are security updates. *** System restart required *** Last login: Fri Jul 5 13:40:17 2019 from 10.5.0.13 ubuntu@juju-4d4b6a-bionic-queens-sru2-7:~$ sudo -s root@juju-4d4b6a-bionic-queens-sru2-7:~# vi /usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py root@juju-4d4b6a-bionic-queens-sru2-7:~# systemctl restart nova-compute root@juju-4d4b6a-bionic-queens-sru2-7:~# exit exit ubuntu@juju-4d4b6a-bionic-queens-sru2-7:~$ exit logout Connection to 10.5.0.23 closed. $ juju ssh nova-compute/1 Welcome to Ubuntu 18.04.2 LTS (GNU/Linux 4.15.0-43-generic x86_64) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: https://ubuntu.com/advantage System information as of Fri Jul 5 13:57:06 UTC 2019 System load: 0.14 Processes: 116 Usage of /: 7.4% of 38.60GB Users logged in: 1 Memory usage: 20% IP address for ens3: 10.5.0.50 Swap usage: 0% IP address for fan-252: 252.0.50.1 Get cloud support with Ubuntu Advantage Cloud Guest: http://www.ubuntu.com/business/services/cloud 0 packages can be updated. 0 updates are security updates. *** System restart required *** Last login: Fri Jul 5 13:40:29 2019 from 10.5.0.13 ubuntu@juju-4d4b6a-bionic-queens-sru2-10:~$ sudo -s root@juju-4d4b6a-bionic-queens-sru2-10:~# vi /usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py root@juju-4d4b6a-bionic-queens-sru2-10:~# systemctl restart nova-compute root@juju-4d4b6a-bionic-queens-sru2-10:~# exit exit ubuntu@juju-4d4b6a-bionic-queens-sru2-10:~$ exit logout Connection to 10.5.0.50 closed. $ openstack server create --nic net-id=c2a107bc-aaa0-4e48-9377-bb2874cbbd8b --key-name ganso --flavor 2 --image bionic ins1 +-------------------------------------+-----------------------------------------------+ | Field | Value | +-------------------------------------+-----------------------------------------------+ | OS-DCF:diskConfig | MANUAL | | OS-EXT-AZ:availability_zone | | | OS-EXT-SRV-ATTR:host | None | | OS-EXT-SRV-ATTR:hypervisor_hostname | None | | OS-EXT-SRV-ATTR:instance_name | | | OS-EXT-STS:power_state | NOSTATE | | OS-EXT-STS:task_state | scheduling | | OS-EXT-STS:vm_state | building | | OS-SRV-USG:launched_at | None | | OS-SRV-USG:terminated_at | None | | accessIPv4 | | | accessIPv6 | | | addresses | | | adminPass | Lew4tAMugirs | | config_drive | | | created | 2019-07-05T13:58:42Z | | flavor | m1.small (2) | | hostId | | | id | 9333510a-df85-4210-af2f-4aebc95deece | | image | bionic (de9db079-6143-465a-8d25-1f8d3d7ee0fa) | | key_name | ganso | | name | ins1 | | progress | 0 | | project_id | af9821c98a1a45c89054a4ae79179148 | | properties | | | security_groups | name='default' | | status | BUILD | | updated | 2019-07-05T13:58:41Z | | user_id | 1db6fef7119c4355b743516e10fe09ab | | volumes_attached | | +-------------------------------------+-----------------------------------------------+ $ openstack server list +--------------------------------------+------+--------+----------------------+--------+----------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+------+--------+----------------------+--------+----------+ | 9333510a-df85-4210-af2f-4aebc95deece | ins1 | ACTIVE | private=192.168.21.3 | bionic | m1.small | +--------------------------------------+------+--------+----------------------+--------+----------+ $ openstack server migrate ins1 $ openstack server list openstack server res+--------------------------------------+------+---------------+----------------------+--------+----------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+------+---------------+----------------------+--------+----------+ | 9333510a-df85-4210-af2f-4aebc95deece | ins1 | VERIFY_RESIZE | private=192.168.21.3 | bionic | m1.small | +--------------------------------------+------+---------------+----------------------+--------+----------+ $ openstack server resize --confirm ins1 $ openstack server list +--------------------------------------+------+--------+----------------------+--------+----------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+------+--------+----------------------+--------+----------+ | 9333510a-df85-4210-af2f-4aebc95deece | ins1 | ERROR | private=192.168.21.3 | bionic | m1.small | +--------------------------------------+------+--------+----------------------+--------+----------+ $ nova migration-list +----+--------------------------------------+--------------------------------------------+---------------------------------------------+----------------------------------+-----------------------------------+-----------+------------+--------------------------------------+------------+------------+----------------------------+----------------------------+-----------+ | Id | UUID | Source Node | Dest Node | Source Compute | Dest Compute | Dest Host | Status | Instance UUID | Old Flavor | New Flavor | Created At | Updated At | Type | +----+--------------------------------------+--------------------------------------------+---------------------------------------------+----------------------------------+-----------------------------------+-----------+------------+--------------------------------------+------------+------------+----------------------------+----------------------------+-----------+ | 2 | dbe3cd56-49f7-4138-bcb1-738574d34c80 | juju-4d4b6a-bionic-queens-sru2-7.cloud.sts | juju-4d4b6a-bionic-queens-sru2-10.cloud.sts | juju-4d4b6a-bionic-queens-sru2-7 | juju-4d4b6a-bionic-queens-sru2-10 | 10.5.0.50 | confirming | 9333510a-df85-4210-af2f-4aebc95deece | 5 | 5 | 2019-07-05T14:00:13.000000 | 2019-07-05T14:03:29.000000 | migration | +----+--------------------------------------+--------------------------------------------+---------------------------------------------+----------------------------------+-----------------------------------+-----------+------------+--------------------------------------+------------+------------+----------------------------+----------------------------+-----------+ $ export ENDPOINT="http://10.5.0.17:8778" $ export TOKEN=`openstack token issue| grep ' id '| awk '{print $4}'` $ for id in $(curl -k -s -X GET $ENDPOINT/resource_providers -H "Accept: application/json" -H "X-Auth-Token: $TOKEN" -H "OpenStack-API-Version: placement 1.17" | jq -r .resource_providers[].uuid); do curl -k -s -X GET $ENDPOINT/resource_providers/$id/allocations -H "Accept: application/json" -H "X-Auth-Token: $TOKEN" -H "OpenStack-API-Version: placement 1.17" | jq [.allocations]; done [ { "dbe3cd56-49f7-4138-bcb1-738574d34c80": { "resources": { "VCPU": 1, "MEMORY_MB": 2048, "DISK_GB": 20 } } } ] [ { "9333510a-df85-4210-af2f-4aebc95deece": { "resources": { "VCPU": 1, "MEMORY_MB": 2048, "DISK_GB": 20 } } } ] $ openstack server delete ins1 $ openstack server list $ export ID="dbe3cd56-49f7-4138-bcb1-738574d34c80" $ curl -k -s -X DELETE $ENDPOINT/allocations/$ID -H "Accept: application/json" -H "X-Auth-Token: $TOKEN" -H "OpenStack-API-Version: placement 1.17" $ juju ssh nova-compute/0 Welcome to Ubuntu 18.04.2 LTS (GNU/Linux 4.15.0-43-generic x86_64) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: https://ubuntu.com/advantage System information as of Fri Jul 5 14:06:44 UTC 2019 System load: 0.03 Processes: 116 Usage of /: 7.9% of 38.60GB Users logged in: 1 Memory usage: 19% IP address for ens3: 10.5.0.23 Swap usage: 0% IP address for fan-252: 252.0.23.1 Get cloud support with Ubuntu Advantage Cloud Guest: http://www.ubuntu.com/business/services/cloud * Canonical Livepatch is available for installation. - Reduce system reboots and improve kernel security. Activate at: https://ubuntu.com/livepatch 10 packages can be updated. 3 updates are security updates. *** System restart required *** Last login: Fri Jul 5 13:55:24 2019 from 10.5.0.13 ubuntu@juju-4d4b6a-bionic-queens-sru2-7:~$ sudo -s root@juju-4d4b6a-bionic-queens-sru2-7:~# echo 'deb http://archive.ubuntu.com/ubuntu/ bionic-proposed restricted main multiverse universe' >> /etc/apt/sources.list root@juju-4d4b6a-bionic-queens-sru2-7:~# apt update Get:1 http://archive.ubuntu.com/ubuntu bionic-proposed InRelease [242 kB] Hit:2 http://nova.clouds.archive.ubuntu.com/ubuntu bionic InRelease Get:3 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB] Get:4 http://nova.clouds.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB] Get:5 http://nova.clouds.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB] Get:6 http://nova.clouds.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [679 kB] Get:7 http://archive.ubuntu.com/ubuntu bionic-proposed/main amd64 Packages [85.9 kB] Get:8 http://archive.ubuntu.com/ubuntu bionic-proposed/main Translation-en [34.0 kB] Get:9 http://nova.clouds.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [969 kB] Get:10 http://archive.ubuntu.com/ubuntu bionic-proposed/multiverse amd64 Packages [5968 B] Get:11 http://archive.ubuntu.com/ubuntu bionic-proposed/multiverse Translation-en [2740 B] Get:12 http://archive.ubuntu.com/ubuntu bionic-proposed/universe amd64 Packages [51.5 kB] Get:13 http://archive.ubuntu.com/ubuntu bionic-proposed/universe Translation-en [29.6 kB] Fetched 2352 kB in 1s (1661 kB/s) Reading package lists... Done Building dependency tree Reading state information... Done 37 packages can be upgraded. Run 'apt list --upgradable' to see them. root@juju-4d4b6a-bionic-queens-sru2-7:~# apt install python-nova nova-compute Reading package lists... Done Building dependency tree Reading state information... Done The following package was automatically installed and is no longer required: grub-pc-bin Use 'apt autoremove' to remove it. The following additional packages will be installed: nova-common nova-compute-kvm nova-compute-libvirt Suggested packages: guestmount multipath-tools sg3-utils sysfsutils python-ldap The following packages will be upgraded: nova-common nova-compute nova-compute-kvm nova-compute-libvirt python-nova 5 upgraded, 0 newly installed, 0 to remove and 32 not upgraded. Need to get 3004 kB of archives. After this operation, 62.5 kB of additional disk space will be used. Do you want to continue? [Y/n] y Get:1 http://archive.ubuntu.com/ubuntu bionic-proposed/main amd64 nova-compute-kvm all 2:17.0.10-0ubuntu2 [2940 B] Get:2 http://archive.ubuntu.com/ubuntu bionic-proposed/main amd64 nova-compute-libvirt all 2:17.0.10-0ubuntu2 [3000 B] Get:3 http://archive.ubuntu.com/ubuntu bionic-proposed/main amd64 nova-compute all 2:17.0.10-0ubuntu2 [8132 B] Get:4 http://archive.ubuntu.com/ubuntu bionic-proposed/main amd64 nova-common all 2:17.0.10-0ubuntu2 [93.9 kB] Get:5 http://archive.ubuntu.com/ubuntu bionic-proposed/main amd64 python-nova all 2:17.0.10-0ubuntu2 [2896 kB] Fetched 3004 kB in 1s (3502 kB/s) (Reading database ... 121082 files and directories currently installed.) Preparing to unpack .../nova-compute-kvm_2%3a17.0.10-0ubuntu2_all.deb ... Unpacking nova-compute-kvm (2:17.0.10-0ubuntu2) over (2:17.0.9-0ubuntu3) ... Preparing to unpack .../nova-compute-libvirt_2%3a17.0.10-0ubuntu2_all.deb ... Unpacking nova-compute-libvirt (2:17.0.10-0ubuntu2) over (2:17.0.9-0ubuntu3) ... Preparing to unpack .../nova-compute_2%3a17.0.10-0ubuntu2_all.deb ... Unpacking nova-compute (2:17.0.10-0ubuntu2) over (2:17.0.9-0ubuntu3) ... Preparing to unpack .../nova-common_2%3a17.0.10-0ubuntu2_all.deb ... Unpacking nova-common (2:17.0.10-0ubuntu2) over (2:17.0.9-0ubuntu3) ... Preparing to unpack .../python-nova_2%3a17.0.10-0ubuntu2_all.deb ... Unpacking python-nova (2:17.0.10-0ubuntu2) over (2:17.0.9-0ubuntu3) ... Processing triggers for ureadahead (0.100.0-21) ... Processing triggers for systemd (237-3ubuntu10.23) ... Processing triggers for man-db (2.8.3-2ubuntu0.1) ... Setting up python-nova (2:17.0.10-0ubuntu2) ... Setting up nova-common (2:17.0.10-0ubuntu2) ... Configuration file '/etc/nova/nova.conf' ==> Modified (by you or by a script) since installation. ==> Package distributor has shipped an updated version. What would you like to do about it ? Your options are: Y or I : install the package maintainer's version N or O : keep your currently-installed version D : show the differences between the versions Z : start a shell to examine the situation The default action is to keep your current version. *** nova.conf (Y/I/N/O/D/Z) [default=N] ? Setting up nova-compute-libvirt (2:17.0.10-0ubuntu2) ... Setting up nova-compute-kvm (2:17.0.10-0ubuntu2) ... Setting up nova-compute (2:17.0.10-0ubuntu2) ... root@juju-4d4b6a-bionic-queens-sru2-7:~# exit exit ubuntu@juju-4d4b6a-bionic-queens-sru2-7:~$ exit logout Connection to 10.5.0.23 closed. $ juju ssh nova-compute/1 Welcome to Ubuntu 18.04.2 LTS (GNU/Linux 4.15.0-43-generic x86_64) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: https://ubuntu.com/advantage System information as of Fri Jul 5 14:17:41 UTC 2019 System load: 0.03 Processes: 115 Usage of /: 7.4% of 38.60GB Users logged in: 1 Memory usage: 19% IP address for ens3: 10.5.0.50 Swap usage: 0% IP address for fan-252: 252.0.50.1 Get cloud support with Ubuntu Advantage Cloud Guest: http://www.ubuntu.com/business/services/cloud 0 packages can be updated. 0 updates are security updates. *** System restart required *** Last login: Fri Jul 5 13:57:07 2019 from 10.5.0.13 ubuntu@juju-4d4b6a-bionic-queens-sru2-10:~$ sudo -s root@juju-4d4b6a-bionic-queens-sru2-10:~# echo 'deb http://archive.ubuntu.com/ubuntu/ bionic-proposed restricted main multiverse universe' >> /etc/apt/sources.list root@juju-4d4b6a-bionic-queens-sru2-10:~# apt update Get:1 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB] Get:2 http://archive.ubuntu.com/ubuntu bionic-proposed InRelease [242 kB] Hit:3 http://nova.clouds.archive.ubuntu.com/ubuntu bionic InRelease Get:4 http://nova.clouds.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB] Get:5 http://nova.clouds.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB] Get:6 http://nova.clouds.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [679 kB] Get:7 http://archive.ubuntu.com/ubuntu bionic-proposed/main amd64 Packages [85.9 kB] Get:8 http://archive.ubuntu.com/ubuntu bionic-proposed/main Translation-en [34.0 kB] Get:9 http://nova.clouds.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [969 kB] Get:10 http://archive.ubuntu.com/ubuntu bionic-proposed/multiverse amd64 Packages [5968 B] Get:11 http://archive.ubuntu.com/ubuntu bionic-proposed/multiverse Translation-en [2740 B] Get:12 http://archive.ubuntu.com/ubuntu bionic-proposed/universe amd64 Packages [51.5 kB] Get:13 http://archive.ubuntu.com/ubuntu bionic-proposed/universe Translation-en [29.6 kB] Fetched 2352 kB in 1s (1580 kB/s) Reading package lists... Done Building dependency tree Reading state information... Done 27 packages can be upgraded. Run 'apt list --upgradable' to see them. root@juju-4d4b6a-bionic-queens-sru2-10:~# apt install python-nova nova-compute Reading package lists... Done Building dependency tree Reading state information... Done The following package was automatically installed and is no longer required: grub-pc-bin Use 'apt autoremove' to remove it. The following additional packages will be installed: nova-common nova-compute-kvm nova-compute-libvirt Suggested packages: guestmount multipath-tools sg3-utils sysfsutils python-ldap The following packages will be upgraded: nova-common nova-compute nova-compute-kvm nova-compute-libvirt python-nova 5 upgraded, 0 newly installed, 0 to remove and 22 not upgraded. Need to get 3004 kB of archives. After this operation, 62.5 kB of additional disk space will be used. Do you want to continue? [Y/n] y Get:1 http://archive.ubuntu.com/ubuntu bionic-proposed/main amd64 nova-compute-kvm all 2:17.0.10-0ubuntu2 [2940 B] Get:2 http://archive.ubuntu.com/ubuntu bionic-proposed/main amd64 nova-compute-libvirt all 2:17.0.10-0ubuntu2 [3000 B] Get:3 http://archive.ubuntu.com/ubuntu bionic-proposed/main amd64 nova-compute all 2:17.0.10-0ubuntu2 [8132 B] Get:4 http://archive.ubuntu.com/ubuntu bionic-proposed/main amd64 nova-common all 2:17.0.10-0ubuntu2 [93.9 kB] Get:5 http://archive.ubuntu.com/ubuntu bionic-proposed/main amd64 python-nova all 2:17.0.10-0ubuntu2 [2896 kB] Fetched 3004 kB in 1s (3662 kB/s) (Reading database ... 121082 files and directories currently installed.) Preparing to unpack .../nova-compute-kvm_2%3a17.0.10-0ubuntu2_all.deb ... Unpacking nova-compute-kvm (2:17.0.10-0ubuntu2) over (2:17.0.9-0ubuntu3) ... Preparing to unpack .../nova-compute-libvirt_2%3a17.0.10-0ubuntu2_all.deb ... Unpacking nova-compute-libvirt (2:17.0.10-0ubuntu2) over (2:17.0.9-0ubuntu3) ... Preparing to unpack .../nova-compute_2%3a17.0.10-0ubuntu2_all.deb ... Unpacking nova-compute (2:17.0.10-0ubuntu2) over (2:17.0.9-0ubuntu3) ... Preparing to unpack .../nova-common_2%3a17.0.10-0ubuntu2_all.deb ... Unpacking nova-common (2:17.0.10-0ubuntu2) over (2:17.0.9-0ubuntu3) ... Preparing to unpack .../python-nova_2%3a17.0.10-0ubuntu2_all.deb ... Unpacking python-nova (2:17.0.10-0ubuntu2) over (2:17.0.9-0ubuntu3) ... Processing triggers for ureadahead (0.100.0-21) ... Processing triggers for systemd (237-3ubuntu10.24) ... Processing triggers for man-db (2.8.3-2ubuntu0.1) ... Setting up python-nova (2:17.0.10-0ubuntu2) ... Setting up nova-common (2:17.0.10-0ubuntu2) ... Configuration file '/etc/nova/nova.conf' ==> Modified (by you or by a script) since installation. ==> Package distributor has shipped an updated version. What would you like to do about it ? Your options are: Y or I : install the package maintainer's version N or O : keep your currently-installed version D : show the differences between the versions Z : start a shell to examine the situation The default action is to keep your current version. *** nova.conf (Y/I/N/O/D/Z) [default=N] ? Setting up nova-compute-libvirt (2:17.0.10-0ubuntu2) ... Setting up nova-compute-kvm (2:17.0.10-0ubuntu2) ... Setting up nova-compute (2:17.0.10-0ubuntu2) ... root@juju-4d4b6a-bionic-queens-sru2-10:~# exit exit ubuntu@juju-4d4b6a-bionic-queens-sru2-10:~$ exit logout Connection to 10.5.0.50 closed. $ juju ssh nova-compute/0 Welcome to Ubuntu 18.04.2 LTS (GNU/Linux 4.15.0-43-generic x86_64) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: https://ubuntu.com/advantage System information as of Fri Jul 5 14:19:26 UTC 2019 System load: 0.18 Processes: 127 Usage of /: 7.9% of 38.60GB Users logged in: 1 Memory usage: 17% IP address for ens3: 10.5.0.23 Swap usage: 0% IP address for fan-252: 252.0.23.1 Get cloud support with Ubuntu Advantage Cloud Guest: http://www.ubuntu.com/business/services/cloud * Canonical Livepatch is available for installation. - Reduce system reboots and improve kernel security. Activate at: https://ubuntu.com/livepatch 36 packages can be updated. 3 updates are security updates. *** System restart required *** Last login: Fri Jul 5 14:06:46 2019 from 10.5.0.13 ubuntu@juju-4d4b6a-bionic-queens-sru2-7:~$ sudo -s root@juju-4d4b6a-bionic-queens-sru2-7:~# vi /usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py root@juju-4d4b6a-bionic-queens-sru2-7:~# systemctl restart nova-compute root@juju-4d4b6a-bionic-queens-sru2-7:~# exit exit ubuntu@juju-4d4b6a-bionic-queens-sru2-7:~$ exit logout Connection to 10.5.0.23 closed. $ juju ssh nova-compute/1 Welcome to Ubuntu 18.04.2 LTS (GNU/Linux 4.15.0-43-generic x86_64) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: https://ubuntu.com/advantage System information as of Fri Jul 5 14:20:29 UTC 2019 System load: 0.23 Processes: 124 Usage of /: 7.4% of 38.60GB Users logged in: 1 Memory usage: 19% IP address for ens3: 10.5.0.50 Swap usage: 0% IP address for fan-252: 252.0.50.1 Get cloud support with Ubuntu Advantage Cloud Guest: http://www.ubuntu.com/business/services/cloud 26 packages can be updated. 0 updates are security updates. *** System restart required *** Last login: Fri Jul 5 14:17:42 2019 from 10.5.0.13 ubuntu@juju-4d4b6a-bionic-queens-sru2-10:~$ sudo -s root@juju-4d4b6a-bionic-queens-sru2-10:~# vi /usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py root@juju-4d4b6a-bionic-queens-sru2-10:~# systemctl restart nova-compute root@juju-4d4b6a-bionic-queens-sru2-10:~# exit exit ubuntu@juju-4d4b6a-bionic-queens-sru2-10:~$ exit logout Connection to 10.5.0.50 closed. $ openstack server create --nic net-id=c2a107bc-aaa0-4e48-9377-bb2874cbbd8b --key-name ganso --flavor 2 --image bionic ins2 +-------------------------------------+-----------------------------------------------+ | Field | Value | +-------------------------------------+-----------------------------------------------+ | OS-DCF:diskConfig | MANUAL | | OS-EXT-AZ:availability_zone | | | OS-EXT-SRV-ATTR:host | None | | OS-EXT-SRV-ATTR:hypervisor_hostname | None | | OS-EXT-SRV-ATTR:instance_name | | | OS-EXT-STS:power_state | NOSTATE | | OS-EXT-STS:task_state | scheduling | | OS-EXT-STS:vm_state | building | | OS-SRV-USG:launched_at | None | | OS-SRV-USG:terminated_at | None | | accessIPv4 | | | accessIPv6 | | | addresses | | | adminPass | cM8Z5RXEasSo | | config_drive | | | created | 2019-07-05T14:22:57Z | | flavor | m1.small (2) | | hostId | | | id | b12ebbb0-5235-4fd9-8be1-1d3d4567c789 | | image | bionic (de9db079-6143-465a-8d25-1f8d3d7ee0fa) | | key_name | ganso | | name | ins2 | | progress | 0 | | project_id | af9821c98a1a45c89054a4ae79179148 | | properties | | | security_groups | name='default' | | status | BUILD | | updated | 2019-07-05T14:22:56Z | | user_id | 1db6fef7119c4355b743516e10fe09ab | | volumes_attached | | +-------------------------------------+-----------------------------------------------+ $ openstack server list +--------------------------------------+------+--------+-----------------------+--------+----------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+------+--------+-----------------------+--------+----------+ | b12ebbb0-5235-4fd9-8be1-1d3d4567c789 | ins2 | ACTIVE | private=192.168.21.22 | bionic | m1.small | +--------------------------------------+------+--------+-----------------------+--------+----------+ $ openstack server migrate ins2 $ openstack server list +--------------------------------------+------+---------------+-----------------------+--------+----------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+------+---------------+-----------------------+--------+----------+ | b12ebbb0-5235-4fd9-8be1-1d3d4567c789 | ins2 | VERIFY_RESIZE | private=192.168.21.22 | bionic | m1.small | +--------------------------------------+------+---------------+-----------------------+--------+----------+ $ openstack server resize --confirm ins2 $ openstack server list +--------------------------------------+------+--------+-----------------------+--------+----------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+------+--------+-----------------------+--------+----------+ | b12ebbb0-5235-4fd9-8be1-1d3d4567c789 | ins2 | ERROR | private=192.168.21.22 | bionic | m1.small | +--------------------------------------+------+--------+-----------------------+--------+----------+ $ nova migration-list +----+--------------------------------------+--------------------------------------------+---------------------------------------------+----------------------------------+-----------------------------------+-----------+--------+--------------------------------------+------------+------------+----------------------------+----------------------------+-----------+ | Id | UUID | Source Node | Dest Node | Source Compute | Dest Compute | Dest Host | Status | Instance UUID | Old Flavor | New Flavor | Created At | Updated At | Type | +----+--------------------------------------+--------------------------------------------+---------------------------------------------+----------------------------------+-----------------------------------+-----------+--------+--------------------------------------+------------+------------+----------------------------+----------------------------+-----------+ | 3 | ab7a21f6-6f7f-41f1-b1bd-7cacd98aa785 | juju-4d4b6a-bionic-queens-sru2-7.cloud.sts | juju-4d4b6a-bionic-queens-sru2-10.cloud.sts | juju-4d4b6a-bionic-queens-sru2-7 | juju-4d4b6a-bionic-queens-sru2-10 | 10.5.0.50 | error | b12ebbb0-5235-4fd9-8be1-1d3d4567c789 | 5 | 5 | 2019-07-05T14:23:29.000000 | 2019-07-05T14:25:16.000000 | migration | +----+--------------------------------------+--------------------------------------------+---------------------------------------------+----------------------------------+-----------------------------------+-----------+--------+--------------------------------------+------------+------------+----------------------------+----------------------------+-----------+ $ for id in $(curl -k -s -X GET $ENDPOINT/resource_providers -H "Accept: application/json" -H "X-Auth-Token: $TOKEN" -H "OpenStack-API-Version: placement 1.17" | jq -r .resource_providers[].uuid); do curl -k -s -X GET $ENDPOINT/resource_providers/$id/allocations -H "Accept: application/json" -H "X-Auth-Token: $TOKEN" -H "OpenStack-API-Version: placement 1.17" | jq [.allocations]; done [ {} ] [ { "b12ebbb0-5235-4fd9-8be1-1d3d4567c789": { "resources": { "VCPU": 1, "MEMORY_MB": 2048, "DISK_GB": 20 } } } ] $ openstack server delete ins2 $ openstack server list $