You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by "poli1025 (via GitHub)" <gi...@apache.org> on 2025/12/10 14:11:22 UTC

[I] Remove nic host with id: null [cloudstack]

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

   ### problem
   
   The issue we are experiencing is that when attempting to remove a network interface in KVM while the VM is powered off, the operation fails with the following error: 'Host with id: null not found.' When the VM is running, the interface can be removed without any problems.
   
   ### versions
   
   ACS: 4.20.0
   SO: Ubuntu 24.0.4
   
   ### The steps to reproduce the bug
   
   1.
   2.
   3.
   ...
   
   
   ### What to do about it?
   
   **Steps to reproduce the issue:**
   
   1. Power off the VM in KVM.
   2. Attempt to remove a network interface from the VM configuration.
   3. The operation fails and the following error is returned: "Host with id: null not found".
   4. If the same action is performed while the VM is running, the network interface can be removed successfully.


-- 
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] Remove nic host with id: null [cloudstack]

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

   > 
   > Yes, I have CPU capping enabled. So, if I disable the CPU cap in the service offering, it should work, right?"
   
   Yes @poli1025 
   Please have a try
   


-- 
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] Remove nic host with id: null [cloudstack]

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

   > [@weizhouapache](https://github.com/weizhouapache) Why is this related to [#2482](https://github.com/apache/cloudstack/pull/2482)?
   
   @poli1025 
   the error is thrown by this line
   
   https://github.com/apache/cloudstack/blob/cfe96026dc424e19e9d9ccf941955b8cb41c6717/server/src/main/java/com/cloud/hypervisor/KVMGuru.java#L133-L139
   
   you have enabled `CPU cap` in the service offering, right ?


-- 
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] Remove nic host with id: null [cloudstack]

Posted by "shwstppr (via GitHub)" <gi...@apache.org>.
shwstppr closed issue #12225: Remove nic host with id: null
URL: https://github.com/apache/cloudstack/issues/12225


-- 
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] Remove nic host with id: null [cloudstack]

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

   @weizhouapache Why is this related to #2482?


-- 
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] Remove nic host with id: null [cloudstack]

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

   Fixed by #12232 


-- 
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] Remove nic host with id: null [cloudstack]

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

   this seems to be related to #2482
   cc @nvazquez 


-- 
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] Remove nic host with id: null [cloudstack]

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

   > Yes [@poli1025](https://github.com/poli1025) Please have a try
   
   I tested with CPU CAP disabled and it works correctly.


-- 
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] Remove nic host with id: null [cloudstack]

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

   > > [@weizhouapache](https://github.com/weizhouapache) Why is this related to [#2482](https://github.com/apache/cloudstack/pull/2482)?
   > 
   > [@poli1025](https://github.com/poli1025) the error is thrown by this line
   > 
   > [cloudstack/server/src/main/java/com/cloud/hypervisor/KVMGuru.java](https://github.com/apache/cloudstack/blob/cfe96026dc424e19e9d9ccf941955b8cb41c6717/server/src/main/java/com/cloud/hypervisor/KVMGuru.java#L133-L139)
   > 
   > Lines 133 to 139 in [cfe9602](/apache/cloudstack/commit/cfe96026dc424e19e9d9ccf941955b8cb41c6717)
   > 
   >  if (to.isLimitCpuUse()) { 
   >      VirtualMachine vm = vmProfile.getVirtualMachine(); 
   >      HostVO host = hostDao.findById(vm.getHostId()); 
   >      if (host == null) { 
   >          throw new CloudRuntimeException("Host with id: " + vm.getHostId() + " not found"); 
   >      } 
   >      logger.debug("Limiting CPU usage for VM: {} on host: {}", vm, host); 
   > you have enabled `CPU cap` in the service offering, right ?
   
   Yes, I have CPU capping enabled. So, if I disable the CPU cap in the service offering, it should work, right?"


-- 
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