You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "Valery Ciareszka (JIRA)" <ji...@apache.org> on 2013/10/08 09:17:41 UTC
[jira] [Created] (CLOUDSTACK-4828) remove nic fails if dhcp wasn't
enabled in network offering
Valery Ciareszka created CLOUDSTACK-4828:
--------------------------------------------
Summary: remove nic fails if dhcp wasn't enabled in network offering
Key: CLOUDSTACK-4828
URL: https://issues.apache.org/jira/browse/CLOUDSTACK-4828
Project: CloudStack
Issue Type: Bug
Security Level: Public (Anyone can view this level - this is the default.)
Components: Management Server
Affects Versions: 4.2.0
Environment: KVM (CentOS 6.4) with CloudStack 4.2
Reporter: Valery Ciareszka
Priority: Critical
How to reproduce:
1. create network offering without dhcp
2. add NIC to VM from network created at step 1.
3. try to remove NIC from VM. It should fail.
VM deletion also fails - VM will stay in "Expunging" state forever, unless NIC is deleted manually through mysql:
mysql> delete from nics where state='Deallocating' and ip4_address='10.2.2.226';
error in logs:
2013-10-03 14:24:42,616 WARN [cloud.vm.UserVmManagerImpl] (UserVm-Scavenger-1:null) Unable to expunge VM[User|newIvanVm]
com.cloud.exception.UnsupportedServiceException: Service Dhcp is not supported in the network id=222
at com.cloud.network.dao.NetworkServiceMapDaoImpl.getProviderForServiceInNetwork(NetworkServiceMapDaoImpl.java:127)
at com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
at com.cloud.network.NetworkManagerImpl.getDhcpServiceProvider(NetworkManagerImpl.java:3681)
at com.cloud.network.NetworkManagerImpl.isDhcpAccrossMultipleSubnetsSupported(NetworkManagerImpl.java:2522)
at com.cloud.network.NetworkManagerImpl.removeNic(NetworkManagerImpl.java:2507)
at com.cloud.network.NetworkManagerImpl.cleanupNics(NetworkManagerImpl.java:2463)
at com.cloud.vm.VirtualMachineManagerImpl.advanceExpunge(VirtualMachineManagerImpl.java:475)
at com.cloud.vm.UserVmManagerImpl.expunge(UserVmManagerImpl.java:1600)
at com.cloud.vm.UserVmManagerImpl$ExpungeTask.run(UserVmManagerImpl.java:1769)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:165)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:267)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:679)
--
This message was sent by Atlassian JIRA
(v6.1#6144)