Issue on IP Assignment on newly created VM after deleting old one
Hi Team, We are operating an OpenStack environment managed by Ansible. Openstack Version: Ussuri(21.2.1) OS: CentOS8 We had a volume backed VM named VM01 with IP of 10.10.10.10 for example. We required to delete the VM01 & recreate a VM named VM02 using the same volume. We used the same project & same network what we used for VM01 earlier. VM02 is getting any one available IPs from the given network. Manually i am able to detach the existing IP & attached the specific IP but its not pinging. Query: i) What is the option if i need the same IP(10.10.10.10) will be assigned to VM02 as well autometically? ii) What is fix to get the said old IP(10.10.10.10) working if i do attach manually in GUI through newtwork-interface? BR// Sudeb Ghosh 7044064878 9332034788
You can do by running fixed static ip on new vm also attach same volume with the new vm. On Wed, 21 May 2025, 18:12 sudeb ghosh, <sudeb_ece@yahoo.co.in> wrote:
Hi Team, We are operating an OpenStack environment managed by Ansible. Openstack Version: Ussuri(21.2.1) OS: CentOS8
We had a volume backed VM named VM01 with IP of 10.10.10.10 for example.
We required to delete the VM01 & recreate a VM named VM02 using the same volume.
We used the same project & same network what we used for VM01 earlier.
VM02 is getting any one available IPs from the given network. Manually i am able to detach the existing IP & attached the specific IP but its not pinging.
Query:
i) What is the option if i need the same IP(10.10.10.10) will be assigned to VM02 as well autometically? ii) What is fix to get the said old IP(10.10.10.10) working if i do attach manually in GUI through newtwork-interface?
BR// Sudeb Ghosh 7044064878 9332034788
It's a command for adding fixed ip of first vm to on second vm after deleting of first vm. On Wed, 21 May 2025, 18:25 Gaurav Sharma, <gauravsharmaiim3@gmail.com> wrote:
You can do by running fixed static ip on new vm also attach same volume with the new vm.
On Wed, 21 May 2025, 18:12 sudeb ghosh, <sudeb_ece@yahoo.co.in> wrote:
Hi Team, We are operating an OpenStack environment managed by Ansible. Openstack Version: Ussuri(21.2.1) OS: CentOS8
We had a volume backed VM named VM01 with IP of 10.10.10.10 for example.
We required to delete the VM01 & recreate a VM named VM02 using the same volume.
We used the same project & same network what we used for VM01 earlier.
VM02 is getting any one available IPs from the given network. Manually i am able to detach the existing IP & attached the specific IP but its not pinging.
Query:
i) What is the option if i need the same IP(10.10.10.10) will be assigned to VM02 as well autometically? ii) What is fix to get the said old IP(10.10.10.10) working if i do attach manually in GUI through newtwork-interface?
BR// Sudeb Ghosh 7044064878 9332034788
Hello Sudeb: What does it mean "detach the existing IP & attached the specific IP"? Can you post the commands you are using to replicate the scenario? What backend are you using (ML2/Linux Bridge, ML2/OVS, ML2/OVN? Just if that helps: you can pre-create a port before the VM and use it with the "server create --port <> ..." command. On this port you can enforce (depending on the user and policies) the fixed IP to be used. Regards. On Wed, May 21, 2025 at 2:57 PM Gaurav Sharma <gauravsharmaiim3@gmail.com> wrote:
It's a command for adding fixed ip of first vm to on second vm after deleting of first vm.
On Wed, 21 May 2025, 18:25 Gaurav Sharma, <gauravsharmaiim3@gmail.com> wrote:
You can do by running fixed static ip on new vm also attach same volume with the new vm.
On Wed, 21 May 2025, 18:12 sudeb ghosh, <sudeb_ece@yahoo.co.in> wrote:
Hi Team, We are operating an OpenStack environment managed by Ansible. Openstack Version: Ussuri(21.2.1) OS: CentOS8
We had a volume backed VM named VM01 with IP of 10.10.10.10 for example.
We required to delete the VM01 & recreate a VM named VM02 using the same volume.
We used the same project & same network what we used for VM01 earlier.
VM02 is getting any one available IPs from the given network. Manually i am able to detach the existing IP & attached the specific IP but its not pinging.
Query:
i) What is the option if i need the same IP(10.10.10.10) will be assigned to VM02 as well autometically? ii) What is fix to get the said old IP(10.10.10.10) working if i do attach manually in GUI through newtwork-interface?
BR// Sudeb Ghosh 7044064878 9332034788
participants (3)
-
Gaurav Sharma
-
Rodolfo Alonso Hernandez
-
sudeb ghosh