-
Story
-
Resolution: Done-Errata
-
Undefined
-
None
-
None
-
None
-
False
-
None
-
False
-
-
Got:
Result: Failed migration with the error: “admission webhook "mutatevirtualmachines.kubemacpool.io"denied the request: Failed to create virtual machine allocation error: Failed to allocate mac to the vm object: failed to allocate requested mac address”
When migrating a VM with floating IP:
export OS_CLOUD=standalone export GATEWAY=172.22.0.1 export PUBLIC_NETWORK_CIDR=172.22.0.0/24 export PRIVATE_NETWORK_CIDR=192.168.100.0/24 export PUBLIC_NET_START=172.22.0.200 export PUBLIC_NET_END=172.22.0.210 export DNS_SERVER=1.1.1.1 openstack flavor create --ram 512 --disk 1 --vcpu 1 --public tiny wget https://download.cirros-cloud.net/0.4.0/cirros-0.4.0-x86_64-disk.img openstack image create cirros --container-format bare --disk-format qcow2 --public --file cirros-0.4.0-x86_64-disk.img ssh-keygen -m PEM -t rsa -b 2048 -f ~/.ssh/id_rsa_pem openstack keypair create --public-key ~/.ssh/id_rsa_pem.pub default openstack security group create basic openstack security group rule create basic --protocol tcp --dst-port 22:22 --remote-ip 0.0.0.0/0 openstack security group rule create --protocol icmp basic openstack security group rule create --protocol udp --dst-port 53:53 basic openstack network create --external --provider-physical-network datacentre --provider-network-type flat public openstack network create --internal private openstack subnet create public-net \ --subnet-range $PUBLIC_NETWORK_CIDR \ --no-dhcp \ --gateway $GATEWAY \ --allocation-pool start=$PUBLIC_NET_START,end=$PUBLIC_NET_END \ --network public openstack subnet create private-net \ --subnet-range $PRIVATE_NETWORK_CIDR \ --network private openstack router create vrouter openstack router set vrouter --external-gateway public openstack router add subnet vrouter private-net openstack server create \ --flavor tiny --key-name default --network private --security-group basic \ --image cirros --boot-from-volume 2 \ --wait test-server openstack floating ip create public openstack server add floating ip test-server <FLOATING_IP>