cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wei Zhou (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (CLOUDSTACK-4828) remove nic fails if dhcp wasn't enabled in network offering
Date Mon, 21 Oct 2013 12:54:42 GMT

     [ https://issues.apache.org/jira/browse/CLOUDSTACK-4828?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Wei Zhou closed CLOUDSTACK-4828.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 4.2.1
         Assignee: Wei Zhou

This issue duplicated CLOUDSTACK-4698 which has been fixed by Sheng Yang.

> 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
>            Assignee: Wei Zhou
>            Priority: Critical
>             Fix For: 4.2.1
>
>
> 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)

Mime
View raw message