You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by "Ankit1999Raikwar (via GitHub)" <gi...@apache.org> on 2023/04/24 08:52:25 UTC

[GitHub] [cloudstack] Ankit1999Raikwar opened a new issue, #7457: L2 Virtual Network - vNIC issues on Guests "Static IP disappears"

Ankit1999Raikwar opened a new issue, #7457:
URL: https://github.com/apache/cloudstack/issues/7457

   ##### ISSUE TYPE
    * Bug Report
   
   ##### COMPONENT NAME
   ~~~
   * Networking
   * Virtual Machine
   ~~~
   
   ##### CLOUDSTACK VERSION
   ~~~
    4.16.1.0
   ~~~
   
   ##### CONFIGURATION
   ~~~
   Controller Nodes: 3
   Compute Nodes: 4
   Cloudstack Version: 4.16.1.0
   Hypervisor: KVM
   Network backend: VLAN
   ~~~
   
   
   ##### OS / ENVIRONMENT
   ~~~
    Ubuntu Server 20.04 LTS on both Management and Compute Hosts
   ~~~
   
   
   ##### SUMMARY
   We are created the L2-Network nic  and attach that nic to the Vm then assign the static ip to the nic inside the vm . for the backup purpose  but when the VM got reboot or start/stop from the cloudstack . after that l2 nic is completely go into the disbale state and new nic comes up with the blank ip.
   
   This affects Virtual Networks of type "L2". The vNIC from the L2 network "vNIC" actually gets replaced with a new one everytime the VM is stopped and started from the WebUI or API.
   
   ##### STEPS TO REPRODUCE
   ~~~
   1. Create L2 network offering as per the infrastructure networking.
   2. Create an L2 virtual network from that offering.
   3. The L2 network will be successfully created.
   4. Attach the L2 network to the Virtual Machine.
   5. From inside the Virtual Machine, configure a Static IP for that NIC.
   6. Stop the Virtual Machine from WebUI / API.
   7. Start the Virtual Machine from WebUI / API.
   8. The IP address configured on the VM's NIC is gone.
   9. If we show "hidden devices", the NIC appears to be in "disabled" state with the IP address configured, but is in "disabled" state.
   10. On Linux-based Virtual Machines, the new NIC appears.
   
   This is affected the most when this L2 network is a non-default NIC of the Virtual Machine.
   ~~~
   
   
   
   ##### EXPECTED RESULTS
   <!-- What did you expect to happen when running the steps above? -->
   ~~~
   The Static IP address should be present even after reboots.
   
   ~~~
   
   ##### ACTUAL RESULTS
   ~~~
   The older NIC disappears, but the new NIC comes online.
   ~~~
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] L2 Virtual Network - vNIC issues on Guests "Static IP disappears" [cloudstack]

Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
DaanHoogland closed issue #7457: L2 Virtual Network - vNIC issues on Guests "Static IP disappears"
URL: https://github.com/apache/cloudstack/issues/7457


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [cloudstack] zap51 commented on issue #7457: L2 Virtual Network - vNIC issues on Guests "Static IP disappears"

Posted by "zap51 (via GitHub)" <gi...@apache.org>.
zap51 commented on issue #7457:
URL: https://github.com/apache/cloudstack/issues/7457#issuecomment-1647156615

   > > @weizhouapache It affects linux-based distributions as well. Every time the VM is rebooted / stop & start from WebUI or API, the L2 NIC appears as a new device and hence the IP address configured is lost as the interface is no longer known to the kernel of the guest. It occurs only when the L2 NIC is attached as non-default one.
   > 
   > @zap51 if vm is a linux machine, can you remove /etc/udev/rules.d/70-persistent-net.rules and retry ?
   
   @weizhouapache Sure, will try and update here.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [cloudstack] weizhouapache commented on issue #7457: L2 Virtual Network - vNIC issues on Guests "Static IP disappears"

Posted by "weizhouapache (via GitHub)" <gi...@apache.org>.
weizhouapache commented on issue #7457:
URL: https://github.com/apache/cloudstack/issues/7457#issuecomment-1691228100

   moved to 4.18.2.0


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [cloudstack] DaanHoogland commented on issue #7457: L2 Virtual Network - vNIC issues on Guests "Static IP disappears"

Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
DaanHoogland commented on issue #7457:
URL: https://github.com/apache/cloudstack/issues/7457#issuecomment-1731013105

   Any update @zap51 ?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [cloudstack] zap51 commented on issue #7457: L2 Virtual Network - vNIC issues on Guests "Static IP disappears"

Posted by "zap51 (via GitHub)" <gi...@apache.org>.
zap51 commented on issue #7457:
URL: https://github.com/apache/cloudstack/issues/7457#issuecomment-1646738786

   @weizhouapache It affects linux-based distributions as well. Every time the VM is rebooted / stop & start from WebUI or API, the L2 NIC appears as a new device and hence the IP address configured is lost as the interface is no longer known to the kernel of the guest.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [cloudstack] Ankit1999Raikwar commented on issue #7457: L2 Virtual Network - vNIC issues on Guests "Static IP disappears"

Posted by "Ankit1999Raikwar (via GitHub)" <gi...@apache.org>.
Ankit1999Raikwar commented on issue #7457:
URL: https://github.com/apache/cloudstack/issues/7457#issuecomment-1535678818

   @weizhouapache  Yes, virtio drivers are installed. The OS type is "Windows PV".


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [cloudstack] Ankit1999Raikwar commented on issue #7457: L2 Virtual Network - vNIC issues on Guests "Static IP disappears"

Posted by "Ankit1999Raikwar (via GitHub)" <gi...@apache.org>.
Ankit1999Raikwar commented on issue #7457:
URL: https://github.com/apache/cloudstack/issues/7457#issuecomment-1521610537

   @weizhouapache Yes, virtio drivers are installed. The OS type is "Windows PV".


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] L2 Virtual Network - vNIC issues on Guests "Static IP disappears" [cloudstack]

Posted by "weizhouapache (via GitHub)" <gi...@apache.org>.
weizhouapache commented on issue #7457:
URL: https://github.com/apache/cloudstack/issues/7457#issuecomment-1804396584

   > Hi @DaanHoogland, Unfortunately even under multiple attempts I'm unable to reproduce this issue. I'll keep you updated with my other test cases.
   
   maybe an issue with the template or guest OS ?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] L2 Virtual Network - vNIC issues on Guests "Static IP disappears" [cloudstack]

Posted by "zap51 (via GitHub)" <gi...@apache.org>.
zap51 commented on issue #7457:
URL: https://github.com/apache/cloudstack/issues/7457#issuecomment-1806009178

   > > Hi @DaanHoogland, Unfortunately even under multiple attempts I'm unable to reproduce this issue. I'll keep you updated with my other test cases.
   > 
   > maybe an issue with the template or guest OS ?
   
   Could be, @weizhouapache. We can close this issue then.
   
   Regards,
   Jayanth Reddy


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] L2 Virtual Network - vNIC issues on Guests "Static IP disappears" [cloudstack]

Posted by "zap51 (via GitHub)" <gi...@apache.org>.
zap51 commented on issue #7457:
URL: https://github.com/apache/cloudstack/issues/7457#issuecomment-1751942009

   Hi @DaanHoogland I'm sorry for the delay. I'll test this out this week and let you know.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [cloudstack] weizhouapache commented on issue #7457: L2 Virtual Network - vNIC issues on Guests "Static IP disappears"

Posted by "weizhouapache (via GitHub)" <gi...@apache.org>.
weizhouapache commented on issue #7457:
URL: https://github.com/apache/cloudstack/issues/7457#issuecomment-1535854294

   @zap51 
   do you also use windows vm with virtio drivers and same OS type ?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [cloudstack] weizhouapache commented on issue #7457: L2 Virtual Network - vNIC issues on Guests "Static IP disappears"

Posted by "weizhouapache (via GitHub)" <gi...@apache.org>.
weizhouapache commented on issue #7457:
URL: https://github.com/apache/cloudstack/issues/7457#issuecomment-1521234945

   > @weizhouapache Thanks for response . we are using several different OS distribution,but the Windows operating system is most affected.
   
   @Ankit1999Raikwar 
   in case of Windows vm, is virtio-win installed in the vm ? What's the OS type of the vm (check it in the vm details page) ?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] L2 Virtual Network - vNIC issues on Guests "Static IP disappears" [cloudstack]

Posted by "zap51 (via GitHub)" <gi...@apache.org>.
zap51 commented on issue #7457:
URL: https://github.com/apache/cloudstack/issues/7457#issuecomment-1804288130

   Hi @DaanHoogland, Unfortunately even under multiple attempts I'm unable to reproduce this issue. I'll keep you updated with my other test cases.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [cloudstack] weizhouapache commented on issue #7457: L2 Virtual Network - vNIC issues on Guests "Static IP disappears"

Posted by "weizhouapache (via GitHub)" <gi...@apache.org>.
weizhouapache commented on issue #7457:
URL: https://github.com/apache/cloudstack/issues/7457#issuecomment-1647146410

   > @weizhouapache It affects linux-based distributions as well. Every time the VM is rebooted / stop & start from WebUI or API, the L2 NIC appears as a new device and hence the IP address configured is lost as the interface is no longer known to the kernel of the guest. It occurs only when the L2 NIC is attached as non-default one.
   
   @zap51 
   if vm is a linux machine, can you remove  /etc/udev/rules.d/70-persistent-net.rules and retry ?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [cloudstack] Ankit1999Raikwar commented on issue #7457: L2 Virtual Network - vNIC issues on Guests "Static IP disappears"

Posted by "Ankit1999Raikwar (via GitHub)" <gi...@apache.org>.
Ankit1999Raikwar commented on issue #7457:
URL: https://github.com/apache/cloudstack/issues/7457#issuecomment-1521140207

   @weizhouapache Thanks for response .  we are using several different OS distribution,but the Windows operating system is most affected. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [cloudstack] weizhouapache commented on issue #7457: L2 Virtual Network - vNIC issues on Guests "Static IP disappears"

Posted by "weizhouapache (via GitHub)" <gi...@apache.org>.
weizhouapache commented on issue #7457:
URL: https://github.com/apache/cloudstack/issues/7457#issuecomment-1520057445

   @Ankit1999Raikwar 
   what's the OS distribution and version (vm)?
   
   It seems to be related to udev
   please remove /etc/udev/rules.d/70-persistent-net.rules and retry
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [cloudstack] zap51 commented on issue #7457: L2 Virtual Network - vNIC issues on Guests "Static IP disappears"

Posted by "zap51 (via GitHub)" <gi...@apache.org>.
zap51 commented on issue #7457:
URL: https://github.com/apache/cloudstack/issues/7457#issuecomment-1537438963

   > @zap51 do you also use windows vm with virtio drivers and same OS type ?
   
   @weizhouapache Yes, I do. Have installed VirtIO stable drivers. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [cloudstack] zap51 commented on issue #7457: L2 Virtual Network - vNIC issues on Guests "Static IP disappears"

Posted by "zap51 (via GitHub)" <gi...@apache.org>.
zap51 commented on issue #7457:
URL: https://github.com/apache/cloudstack/issues/7457#issuecomment-1535727990

   @weizhouapache It looks like I'm able to reproduce this behaviour.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org