kolla-ansible -i bootstrap-servers [--limit ]
kolla-ansible -i pull [--limit ]
kolla-ansible -i deploy [--limit ]
kolla-ansible -i bootstrap-servers [--limit ]
kolla-ansible -i pull [--limit ]
kolla-ansible -i deploy [--limit ]
openstack server migrate --live-migration --host --os-compute-api-version 2.30
L3 agent
l3_id=$(openstack network agent list --host --agent-type l3 -f value -c ID)
target_l3_id=$(openstack network agent list --host --agent-type l3 -f value -c ID)
openstack router list --agent $l3_id -f value -c ID | while read router;do
openstack network agent remove router $l3_id $router --l3
openstack network agent add router $ $target_l3_id $router --l3
done
openstack network agent set $l3_id --disable
DHCP agents
dhcp_id=$(openstack network agent list --host --agent-type dhcp -f value -c ID)
target_dhcp_id=$(openstack network agent list --host --agent-type dhcp -f value -c ID)
openstack network list --agent $dhcp_id -f value -c ID | while read network;do
openstack network agent remove network $dhcp_id $network --dhcp
openstack network agent add network $target_dhcp_id $network --dhcp
done
kolla-ansible -i stop --yes-i-really-really-mean-it --limit
kolla-ansible -i deploy [--limit ]
openstack network agent list --host -f value -c ID | while read id;do
openstack network agent delete $id
done
openstack compute service list --os-compute-api-version 2.53 --host -f value -c ID | while read id;do
openstack compute service delete --os-compute-api-version 2.53 $id
done
openstack compute service set nova-compute --disable
openstack server list --host -f value -c ID | while read server;do
openstack server migrate --live-migration $server
done
kolla-ansible -i stop --yes-i-really-really-mean-it [--limit ]
openstack network agent list --host -f value -c ID|while read id;do
openstack network agent delete $id
done
openstack compute service list --os-compute-api-version 2.53 --host -f value -c ID |while read id;do
openstack compute service delete --os-compute-api-version 2.53 $id
done