Public bug reported: We want a way to change a VM port’s network when the VM’s operating system does not support online removal and addition of devices.
These are the steps to accomplish this: Given a running VM. We want to change the network of <vm-port-id>. No floating IP is associated with the VM. # openstack port set –no-fixed-ip <vm-port-id> # openstack port set –network-id <new-net-id> <vm-port-id> # openstack port set –fixed-ip subnet=<new-subnet> <vm-port-id> Neutron-server succeeds with changing the port’s network-id if: 1. The new network belongs to the same project as the original network. 2. The port has no fixed-ip addresses on it. 3. The port’s mac address is unused on the new network. 4. The new network’s MTU is greater than or equal to the old network’s. Some operating systems may be unable to handle online addition and deletion of devices. We want a way of changing a VM’s port’s network that does not rely on the guest operating system supporting these capabilities. The change is done by making the port’s network-id attribute to allow PUT requests. Neutron api server checks whether the 4 criteria are met. Then it will proceed with updating the port. When the new fixed-ip is set, the user will have to login to the VM’s console and manually change the guest OS’s configuration to make use of the new IP address. ** Affects: neutron Importance: Undecided Status: New -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to neutron. https://bugs.launchpad.net/bugs/1861529 Title: [RFE] A port's network should be changable Status in neutron: New Bug description: We want a way to change a VM port’s network when the VM’s operating system does not support online removal and addition of devices. These are the steps to accomplish this: Given a running VM. We want to change the network of <vm-port-id>. No floating IP is associated with the VM. # openstack port set –no-fixed-ip <vm-port-id> # openstack port set –network-id <new-net-id> <vm-port-id> # openstack port set –fixed-ip subnet=<new-subnet> <vm-port-id> Neutron-server succeeds with changing the port’s network-id if: 1. The new network belongs to the same project as the original network. 2. The port has no fixed-ip addresses on it. 3. The port’s mac address is unused on the new network. 4. The new network’s MTU is greater than or equal to the old network’s. Some operating systems may be unable to handle online addition and deletion of devices. We want a way of changing a VM’s port’s network that does not rely on the guest operating system supporting these capabilities. The change is done by making the port’s network-id attribute to allow PUT requests. Neutron api server checks whether the 4 criteria are met. Then it will proceed with updating the port. When the new fixed- ip is set, the user will have to login to the VM’s console and manually change the guest OS’s configuration to make use of the new IP address. To manage notifications about this bug go to: https://bugs.launchpad.net/neutron/+bug/1861529/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp