You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by Lu Heng <h....@anytimechinese.com> on 2012/06/13 18:50:45 UTC

Can not delete network

Hi

I have problem deleting guest network, everytime I tried it always
shows "fail to delete network)

2012-06-13 11:26:14,243 WARN  [cloud.api.ApiDispatcher]
(Job-Executor-52:job-95) class com.cloud.api.ServerApiException :
Failed to delete network

Any idea how it happens?
-- 
--
Kind regards.
Lu

This transmission is intended solely for the addressee(s) shown above.
It may contain information that is privileged, confidential or
otherwise protected from disclosure. Any review, dissemination or use
of this transmission or its contents by persons other than the
intended addressee(s) is strictly prohibited. If you have received
this transmission in error, please notify this office immediately and
e-mail the original at the sender's address above by replying to this
message and including the text of the transmission received.

Re: Can not delete network

Posted by Alena Prokharchyk <Al...@citrix.com>.
On 6/13/12 3:37 PM, "Lu Heng" <h....@anytimechinese.com> wrote:

>Hi
>
>My vendor told me they can not give me any vlan, is that means there
>is no choice left but for us to go for basic network setup?
>
>If answer to this question is yes, is that simpy means I have to start
>over again, so I don't have to modify anything anymore, just simply
>re-install the management server, am I correct? Did I need to
>re-install the host server as well?


Yes, I would advise to use Basic zone and start all over again.
Re-installing the host would make sense to considering the fact you've
done manual modifications (removed volume vhds).

-Alena.


>
>On Wed, Jun 13, 2012 at 11:44 PM, Alena Prokharchyk
><Al...@citrix.com> wrote:
>> On 6/13/12 2:16 PM, "Lu Heng" <h....@anytimechinese.com> wrote:
>>
>>>Hi
>>>
>>>Thanks very much for such detailed reply.
>>>
>>>first one quick question, what vlan it stands for(I know it is virtual
>>>lan), but does it need to be config in the physical router for each
>>>network, or it can just create a "software one" with direct untagged
>>>network by cloudstack?
>>
>>
>> In advance zone you have to enable Vlan support on your physical Switch.
>>
>>
>>>
>>>So you mean I motify the database of the management server, find
>>>remove=id() value?
>>
>>
>> Sorry, I don't get this question. Remove=id() for what exactly?
>>
>>
>>>
>>>Last question will be, if the question's answer is no, is that means I
>>>have to go for basic network setup, I have to delete the entire zone
>>>and re-create it?
>>
>>
>> Yes, you have to start fresh if you want to use the same set of hosts.
>>
>>
>>>
>>>On Wed, Jun 13, 2012 at 11:11 PM, Alena Prokharchyk
>>><Al...@citrix.com> wrote:
>>>> On 6/13/12 2:03 PM, "Lu Heng" <h....@anytimechinese.com> wrote:
>>>>
>>>>>Hi
>>>>>
>>>>>As I said, I have direct attached network to the public network, and I
>>>>>have no vlan, and cloudstack force to enter a vlan ID, so I just
>>>>>entered "tagged1“.
>>>>
>>>>
>>>> In Advance zone Vlan is required for every direct network; and vlan
>>>>has
>>>>to
>>>> have numeric value. We support untagged network only in Basic zone.
>>>>The
>>>> fact UI accepted "tagged1" value as an input - is a UI/API bug, it
>>>>should
>>>> have never reached the backend. Please file a bug against cloudStack
>>>> UI/API.
>>>>
>>>>
>>>>
>>>>>
>>>>>So the first question come, how can I setup direct attached network in
>>>>>advance networking, is that even possible or it is simply impossible?
>>>>
>>>>
>>>> Its possible only with the numeric tag.
>>>>
>>>>
>>>>>
>>>>>On Wed, Jun 13, 2012 at 11:01 PM, Alena Prokharchyk
>>>>><Al...@citrix.com> wrote:
>>>>>> I see 2 different problems in this log fragment:
>>>>>>
>>>>>> 1)job-92 -  i-2-415-VM failed to start because the network vlan was
>>>>>> misconfigured. The number format exception most likely indicates the
>>>>>>vlan
>>>>>> for the network was set incorrectly. Need entire log to confirm.
>>>>>>
>>>>>> 2) job-94 - failed to delete the network as i-2-413-VM was in Error
>>>>>>state
>>>>>> - it failed to start. Notice its different vm from the vm on step
>>>>>>1).
>>>>>>At
>>>>>> the moment deleteNetwork was called, the vm wasnt' expunged yet. Did
>>>>>>you
>>>>>> wait for the vm i-2-413 to be picked up by Expunge thread and moved
>>>>>>to
>>>>>> Expunging state? If yes, was it expunged successfully? If no, you
>>>>>>have
>>>>>>to
>>>>>> find out the references to the vm in the log - search by "to
>>>>>>expunge"
>>>>>> pattern in the management server, it will tell you when vm was
>>>>>>processed
>>>>>> by the expunge thread.
>>>>>>
>>>>>>
>>>>>> -Alena.
>>>>>>
>>>>>>
>>>>>> On 6/13/12 1:51 PM, "Lu Heng" <h....@anytimechinese.com> wrote:
>>>>>>
>>>>>>>Hi
>>>>>>>
>>>>>>>The story start with I try to setup direct attached network to the
>>>>>>>guest network, in which I create a VM with the shared network I
>>>>>>>setup,
>>>>>>>but the VM does not start successfully, so I tried to delete the
>>>>>>>guest
>>>>>>>network I have created, in which I failed because of the vm was not
>>>>>>>destroy, then I try to destroy the VM, but the VM stuck in the
>>>>>>>explunging state:
>>>>>>>
>>>>>>>The network setup was not resolved, I asked in this mailling list
>>>>>>>what
>>>>>>>should I do if I have public network in the access point with
>>>>>>>advanced
>>>>>>>network setup, they said I have to create a shared network offering
>>>>>>>with Vlan, in which the public IP has no vlan setup, so I just typed
>>>>>>>tagged in the vlan section,seems not working.
>>>>>>>
>>>>>>>Below is the full story log start with I added a direct attached
>>>>>>>network:
>>>>>>>
>>>>>>>2012-06-13 08:56:25,401 WARN  [xen.resource.CitrixResourceBase]
>>>>>>>(DirectAgent-45:null) Catch Exception: class
>>>>>>>java.lang.NumberFormatException due to
>>>>>>>java.lang.NumberFormatException: For input string: "tagged1"
>>>>>>>java.lang.NumberFormatException: For input string: "tagged1"
>>>>>>>        at
>>>>>>>java.lang.NumberFormatException.forInputString(NumberFormatException
>>>>>>>.j
>>>>>>>av
>>>>>>>a:
>>>>>>>65)
>>>>>>>2012-06-13 08:56:25,402 WARN  [xen.resource.CitrixResourceBase]
>>>>>>>(DirectAgent-45:null) Unable to start i-2-415-VM due to
>>>>>>>java.lang.NumberFormatException: For input string: "tagged1"
>>>>>>>        at
>>>>>>>java.lang.NumberFormatException.forInputString(NumberFormatException
>>>>>>>.j
>>>>>>>av
>>>>>>>a:
>>>>>>>65)
>>>>>>>2012-06-13 08:56:25,455 WARN  [xen.resource.CitrixResourceBase]
>>>>>>>(DirectAgent-45:null) Unable to clean up VBD due to
>>>>>>>You gave an invalid object reference.  The object may have recently
>>>>>>>been deleted.  The class parameter gives the type of reference
>>>>>>>given,
>>>>>>>and the handle parameter echoes the bad value given.
>>>>>>>        at
>>>>>>>com.cloud.hypervisor.xen.resource.CitrixResourceBase.handleVmStartFa
>>>>>>>il
>>>>>>>ur
>>>>>>>e(
>>>>>>>CitrixResourceBase.java:930)
>>>>>>>2012-06-13 08:56:25,466 WARN  [xen.resource.CitrixResourceBase]
>>>>>>>(DirectAgent-45:null) Unable to clean up VBD due to
>>>>>>>You gave an invalid object reference.  The object may have recently
>>>>>>>been deleted.  The class parameter gives the type of reference
>>>>>>>given,
>>>>>>>and the handle parameter echoes the bad value given.
>>>>>>>        at
>>>>>>>com.cloud.hypervisor.xen.resource.CitrixResourceBase.handleVmStartFa
>>>>>>>il
>>>>>>>ur
>>>>>>>e(
>>>>>>>CitrixResourceBase.java:930)
>>>>>>>2012-06-13 08:56:25,478 WARN  [xen.resource.CitrixResourceBase]
>>>>>>>(DirectAgent-45:null) Unable to clean up VBD due to
>>>>>>>You gave an invalid object reference.  The object may have recently
>>>>>>>been deleted.  The class parameter gives the type of reference
>>>>>>>given,
>>>>>>>and the handle parameter echoes the bad value given.
>>>>>>>        at
>>>>>>>com.cloud.hypervisor.xen.resource.CitrixResourceBase.handleVmStartFa
>>>>>>>il
>>>>>>>ur
>>>>>>>e(
>>>>>>>CitrixResourceBase.java:930)
>>>>>>>2012-06-13 08:56:25,489 WARN  [xen.resource.CitrixResourceBase]
>>>>>>>(DirectAgent-45:null) Unable to cleanup VIF
>>>>>>>You gave an invalid object reference.  The object may have recently
>>>>>>>been deleted.  The class parameter gives the type of reference
>>>>>>>given,
>>>>>>>and the handle parameter echoes the bad value given.
>>>>>>>        at
>>>>>>>com.cloud.hypervisor.xen.resource.CitrixResourceBase.handleVmStartFa
>>>>>>>il
>>>>>>>ur
>>>>>>>e(
>>>>>>>CitrixResourceBase.java:938)
>>>>>>>2012-06-13 08:56:25,515 INFO  [xen.resource.XenServer56Resource]
>>>>>>>(DirectAgent-45:null) Catch com.xensource.xenapi.Types$VifInUse:
>>>>>>>failed to destory VLAN eth2 on host
>>>>>>>b9f6241d-cbd6-49a8-916e-dff524569dd4 due to Network has active VIFs
>>>>>>>2012-06-13 08:56:25,517 DEBUG [agent.transport.Request]
>>>>>>>(DirectAgent-45:null) Seq 6-920389063: Processing:  { Ans: , MgmtId:
>>>>>>>229144658033003, via: 6, Ver: v1, Flags: 110,
>>>>>>>[{"StartAnswer":{"vm":{"id":415,"name":"i-2-415-VM","bootloader":"Py
>>>>>>>Gr
>>>>>>>ub
>>>>>>>",
>>>>>>>"type":"User","cpus":1,"speed":500,"minRam":536870912,"maxRam":53687
>>>>>>>09
>>>>>>>12
>>>>>>>,"
>>>>>>>arch":"x86_64","os":"CentOS
>>>>>>>5.3
>>>>>>>(64-bit)","bootArgs":"","rebootOnCrash":false,"enableHA":false,"limi
>>>>>>>tC
>>>>>>>pu
>>>>>>>Us
>>>>>>>e":false,"vncPassword":"7bad48a63e4b14e7","params":{},"disks":[{"id"
>>>>>>>:4
>>>>>>>19
>>>>>>>,"
>>>>>>>name":"ROOT-415","mountPoint":"/iqn.2006-01.com.openfiler:tsn.2912cb
>>>>>>>92
>>>>>>>f8
>>>>>>>2d
>>>>>>>/0","path":"ff3b7226-fd0b-4d0b-8af4-393496d7ee24","size":21474836480
>>>>>>>,"
>>>>>>>ty
>>>>>>>pe
>>>>>>>":"ROOT","storagePoolType":"IscsiLUN","storagePoolUuid":"f7d6960c-84
>>>>>>>a6
>>>>>>>-3
>>>>>>>32
>>>>>>>f-9068-27ef0f216b31","deviceId":0},{"id":420,"name":"DATA-415","moun
>>>>>>>tP
>>>>>>>oi
>>>>>>>nt
>>>>>>>":"/iqn.2006-01.com.openfiler:tsn.2912cb92f82d/0","path":"202feab0-b
>>>>>>>72
>>>>>>>4-
>>>>>>>4b
>>>>>>>70-b757-32f2b8dfddee","size":5368709120,"type":"DATADISK","storagePo
>>>>>>>ol
>>>>>>>Ty
>>>>>>>pe
>>>>>>>":"IscsiLUN","storagePoolUuid":"f7d6960c-84a6-332f-9068-27ef0f216b31
>>>>>>>",
>>>>>>>"d
>>>>>>>ev
>>>>>>>iceId":1},{"id":415,"name":"CentOS
>>>>>>>5.6(64-bit) no GUI
>>>>>>>(XenServer)","size":0,"type":"ISO","storagePoolType":"ISO","deviceId
>>>>>>>":
>>>>>>>3}
>>>>>>>],
>>>>>>>"nics":[{"deviceId":0,"networkRateMbps":200,"defaultNic":true,"ip":"
>>>>>>>10
>>>>>>>.1
>>>>>>>.1
>>>>>>>.99","netmask":"255.255.255.0","gateway":"10.1.1.1","mac":"02:00:2e:
>>>>>>>ae
>>>>>>>:0
>>>>>>>0:
>>>>>>>04","dns1":"204.13.152.2","broadcastType":"Vlan","type":"Guest","bro
>>>>>>>ad
>>>>>>>ca
>>>>>>>st
>>>>>>>Uri":"vlan://292","isolationUri":"vlan://292","isSecurityGroupEnable
>>>>>>>d"
>>>>>>>:f
>>>>>>>al
>>>>>>>se,"name":"Pool-wide
>>>>>>>network associated with
>>>>>>>eth2"},{"deviceId":1,"networkRateMbps":200,"defaultNic":false,"ip":"
>>>>>>>46
>>>>>>>.1
>>>>>>>36
>>>>>>>.134.86","netmask":"255.255.255.0","gateway":"46.136.134.1","mac":"0
>>>>>>>6:
>>>>>>>4a
>>>>>>>:b
>>>>>>>4:00:08:3d","dns1":"204.13.152.2","broadcastType":"Vlan","type":"Gue
>>>>>>>st
>>>>>>>",
>>>>>>>"b
>>>>>>>roadcastUri":"vlan://tagged1","isolationUri":"vlan://tagged1","isSec
>>>>>>>ur
>>>>>>>it
>>>>>>>yG
>>>>>>>roupEnabled":false,"name":"Pool-wide
>>>>>>>network associated with eth2"}]},"result":false,"details":"Unable to
>>>>>>>start i-2-415-VM due to ","wait":0}}] }
>>>>>>>2012-06-13 08:56:25,517 WARN  [cloud.vm.VirtualMachineManagerImpl]
>>>>>>>(DirectAgent-45:null) Cleanup failed due to Unable to start
>>>>>>>i-2-415-VM
>>>>>>>due to
>>>>>>>2012-06-13 08:56:25,517 WARN  [cloud.vm.VirtualMachineManagerImpl]
>>>>>>>(Job-Executor-47:job-92) Cleanup failed due to Unable to start
>>>>>>>i-2-415-VM due to
>>>>>>>2012-06-13 08:56:25,590 INFO  [cloud.vm.VirtualMachineManagerImpl]
>>>>>>>(Job-Executor-47:job-92) Unable to start VM on Host[-6-Routing] due
>>>>>>>to
>>>>>>>Unable to start i-2-415-VM due to
>>>>>>>2012-06-13 08:56:26,159 DEBUG [cloud.capacity.CapacityManagerImpl]
>>>>>>>(Job-Executor-47:job-92) VM state transitted from :Starting to
>>>>>>>Stopped
>>>>>>>with event: OperationFailedvm's original host id: null new host id:
>>>>>>>null host id before state transition: 6
>>>>>>>2012-06-13 08:56:26,440 DEBUG [cloud.capacity.CapacityManagerImpl]
>>>>>>>(Job-Executor-47:job-92) VM state transitted from :Stopped to Error
>>>>>>>with event: OperationFailedToErrorvm's original host id: null new
>>>>>>>host
>>>>>>>id: null host id before state transition: null
>>>>>>>2012-06-13 08:56:27,209 INFO  [api.commands.DeployVMCmd]
>>>>>>>(Job-Executor-47:job-92)
>>>>>>>com.cloud.exception.InsufficientServerCapacityException: Unable to
>>>>>>>create a deployment for VM[User|i-2-415-VM]Scope=interface
>>>>>>>com.cloud.dc.DataCenter; id=1
>>>>>>>2012-06-13 08:56:27,210 WARN  [cloud.api.ApiDispatcher]
>>>>>>>(Job-Executor-47:job-92) class com.cloud.api.ServerApiException :
>>>>>>>Unable to create a deployment for VM[User|i-2-415-VM]
>>>>>>>2012-06-13 08:56:27,210 DEBUG [cloud.async.AsyncJobManagerImpl]
>>>>>>>(Job-Executor-47:job-92) Complete async job-92, jobStatus: 2,
>>>>>>>resultCode: 530, result:
>>>>>>>com.cloud.api.response.ExceptionResponse@1660d637
>>>>>>>2012-06-13 09:11:08,903 WARN  [cloud.network.NetworkManagerImpl]
>>>>>>>(Job-Executor-50:job-94) Can't delete the network, not all user vms
>>>>>>>are expunged. Vm VM[User|i-2-413-VM] is in Error state
>>>>>>>2012-06-13 09:11:08,993 WARN  [cloud.api.ApiDispatcher]
>>>>>>>(Job-Executor-50:job-94) class com.cloud.api.ServerApiException :
>>>>>>>Failed to delete network
>>>>>>>2012-06-13 09:11:08,993 DEBUG [cloud.async.AsyncJobManagerImpl]
>>>>>>>(Job-Executor-50:job-94) Complete async job-94, jobStatus: 2,
>>>>>>>resultCode: 530, result:
>>>>>>>com.cloud.api.response.ExceptionResponse@2102e538
>>>>>>>2012-06-13 09:11:09,144 WARN  [cloud.async.AsyncJobManagerImpl]
>>>>>>>(Job-Executor-50:job-94) Unable to unregister active job 94 from JMX
>>>>>>>monitoring
>>>>>>>2012-06-13 11:26:14,160 WARN  [cloud.network.NetworkManagerImpl]
>>>>>>>(Job-Executor-52:job-95) Can't delete the network, not all user vms
>>>>>>>are expunged. Vm VM[User|i-2-413-VM] is in Error state
>>>>>>>2012-06-13 11:26:14,243 WARN  [cloud.api.ApiDispatcher]
>>>>>>>(Job-Executor-52:job-95) class com.cloud.api.ServerApiException :
>>>>>>>Failed to delete network
>>>>>>>
>>>>>>>
>>>>>>>On Wed, Jun 13, 2012 at 10:46 PM, Alena Prokharchyk
>>>>>>><Al...@citrix.com> wrote:
>>>>>>>> On 6/13/12 1:38 PM, "Lu Heng" <h....@anytimechinese.com> wrote:
>>>>>>>>
>>>>>>>>>Hi
>>>>>>>>>
>>>>>>>>>And btw, I didn't see the maintainace botton for the 3 shared
>>>>>>>>>storage,
>>>>>>>>> I only see take snapshoot, snapshoot setting, that's it.
>>>>>>>>>
>>>>>>>>>On Wed, Jun 13, 2012 at 10:35 PM, Lu Heng
>>>>>>>>><h....@anytimechinese.com>
>>>>>>>>>wrote:
>>>>>>>>>> Hi
>>>>>>>>>>
>>>>>>>>>> See my reply
>>>>>>>>>>
>>>>>>>>>> On Wed, Jun 13, 2012 at 10:30 PM, Alena Prokharchyk
>>>>>>>>>> <Al...@citrix.com> wrote:
>>>>>>>>>>> On 6/13/12 1:24 PM, "Lu Heng" <h....@anytimechinese.com> wrote:
>>>>>>>>>>>
>>>>>>>>>>>>Hi
>>>>>>>>>>>>
>>>>>>>>>>>>I find the reason, three vm are in state of "Expunging" for 3
>>>>>>>>>>>>hours
>>>>>>>>>>>>now, no process is being made, anyone has idea what should I do
>>>>>>>>>>>>about
>>>>>>>>>>>>these VMs?
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> What is expunge.interval in the setup? If the vms stuck in
>>>>>>>>>>>Expunging
>>>>>>>>>>>state
>>>>>>>>>>> with null Removed field, it indicates some problem happening
>>>>>>>>>>>during
>>>>>>>>>>>the
>>>>>>>>>>> expunge. I suspect it's related with the fact you removed the
>>>>>>>>>>>storage
>>>>>>>>>>>from
>>>>>>>>>>> the xen.
>>>>>>>>>>>
>>>>>>>>>> Vise verse, the situation is, the VM in the expunging state for
>>>>>>>>>>3
>>>>>>>>>> hours, and I find no way to delete them, so I try to delete the
>>>>>>>>>> storage.
>>>>>>>>
>>>>>>>>
>>>>>>>> So you deleted the VHDs per each volume, not the storage itself,
>>>>>>>>please
>>>>>>>> confirm. And we should never do it as there is no volume sync, so
>>>>>>>>if
>>>>>>>>the
>>>>>>>> volume is removed on the backend, cloudStack has no idea it has
>>>>>>>>happened.
>>>>>>>>
>>>>>>>> The original issue is - vm got stuck in Expunging state. We have
>>>>>>>>to
>>>>>>>>figure
>>>>>>>> out this one first. Please send the logs starting from the time
>>>>>>>>the
>>>>>>>> Destroy command was executed for the Vm. And mention the vm name.
>>>>>>>>
>>>>>>>>
>>>>>>>> -Alena.
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> What should I do to fix this now?
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>Another question is, I didn't see the delete botton with shared
>>>>>>>>>>>>storage, so I delete it from the xencenter, but after that I
>>>>>>>>>>>>still
>>>>>>>>>>>>see
>>>>>>>>>>>>the deleted storage exists in the UI, what suppose to be done?
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> Delete storage pool consists of 2 steps:
>>>>>>>>>>>
>>>>>>>>>>> * enable maintenance for the shared storage
>>>>>>>>>>> * after the maintenance is completed, the Delete button will be
>>>>>>>>>>>presented
>>>>>>>>>>> to the admin; and the storage can be removed.
>>>>>>>>>>>
>>>>>>>>>>> You are not supposed to delete primary storage on the backend;
>>>>>>>>>>>cloudStack
>>>>>>>>>>> has no idea if you do things like that, and it expects primary
>>>>>>>>>>>storage
>>>>>>>>>>>to
>>>>>>>>>>> be functioning.
>>>>>>>>>>>
>>>>>>>>>>> So when vm expunge happens, we see that the storage is in UP
>>>>>>>>>>>state,
>>>>>>>>>>>and
>>>>>>>>>>> try to send the destroy volume command to the Xen host. But the
>>>>>>>>>>>command
>>>>>>>>>>> fails there because there is no such primary storage exist.
>>>>>>>>>>>
>>>>>>>>>>> Let me know if its your case.
>>>>>>>>>>>
>>>>>>>>>>> -Alena.
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>On Wed, Jun 13, 2012 at 10:08 PM, Alena Prokharchyk
>>>>>>>>>>>><Al...@citrix.com> wrote:
>>>>>>>>>>>>> On 6/13/12 12:55 PM, "Lu Heng" <h....@anytimechinese.com>
>>>>>>>>>>>>>wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>>>Hi
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>Update:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>The zone has been stoped. all VM has been destoryed , the
>>>>>>>>>>>>>>route
>>>>>>>>>>>>>>vm
>>>>>>>>>>>>>>has
>>>>>>>>>>>>>>been stoped(no option for destory).
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>Still get error fail to delete network.
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> Can you send management server log file for debugging.
>>>>>>>>>>>>>
>>>>>>>>>>>>> Thanks,
>>>>>>>>>>>>> Alena.
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>On Wed, Jun 13, 2012 at 7:23 PM, Alena Prokharchyk
>>>>>>>>>>>>>><Al...@citrix.com> wrote:
>>>>>>>>>>>>>>> On 6/13/12 10:18 AM, "Tamas Monos" <ta...@veber.co.uk>
>>>>>>>>>>>>>>>wrote:
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>Hi,
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>Also I think the problem is when you are trying to delete
>>>>>>>>>>>>>>>>the
>>>>>>>>>>>>>>>>network
>>>>>>>>>>>>>>>>the
>>>>>>>>>>>>>>>>router is powered off.
>>>>>>>>>>>>>>>>Therefore when you click delete it wants to remove the
>>>>>>>>>>>>>>>>firewall
>>>>>>>>>>>>>>>>rules
>>>>>>>>>>>>>>>>for
>>>>>>>>>>>>>>>>that network but the router is not running so the command
>>>>>>>>>>>>>>>>fails
>>>>>>>>>>>>>>>>which
>>>>>>>>>>>>>>>>fails the delet operation.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Also not a problem. The rules can be removed when the
>>>>>>>>>>>>>>>router
>>>>>>>>>>>>>>>is
>>>>>>>>>>>>>>>stopped.
>>>>>>>>>>>>>>> In this case the rules are removed in DB only. When the
>>>>>>>>>>>>>>>router
>>>>>>>>>>>>>>>starts
>>>>>>>>>>>>>>>up,
>>>>>>>>>>>>>>> we start clean (cleanup all the rules) and re-apply all the
>>>>>>>>>>>>>>>rules
>>>>>>>>>>>>>>>from
>>>>>>>>>>>>>>>the
>>>>>>>>>>>>>>> DB. So the removed rules won't exist  on the router.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> -Alena.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>Regards
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>Tamas Monos
>>>>>>>>>>>>>>>>DDI
>>>>>>>>>>>>>>>>+44(0)2034687012
>>>>>>>>>>>>>>>>Chief Technical
>>>>>>>>>>>>>>>>Office
>>>>>>>>>>>>>>>>+44(0)2034687000
>>>>>>>>>>>>>>>>Veber: The Hosting Specialists               Fax
>>>>>>>>>>>>>>>>+44(0)871
>>>>>>>>>>>>>>>>522
>>>>>>>>>>>>>>>>7057
>>>>>>>>>>>>>>>>http://www.veber.co.uk
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>Follow us on Twitter: www.twitter.com/veberhost
>>>>>>>>>>>>>>>>Follow us on Facebook: www.facebook.com/veberhost
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>-----Original Message-----
>>>>>>>>>>>>>>>>From: Tamas Monos [mailto:tamasm@veber.co.uk]
>>>>>>>>>>>>>>>>Sent: 13 June 2012 18:15
>>>>>>>>>>>>>>>>To: cloudstack-dev@incubator.apache.org
>>>>>>>>>>>>>>>>Subject: RE: Can not delete network
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>Hi,
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>I don't think you can delete a network if a router-vm for
>>>>>>>>>>>>>>>>that
>>>>>>>>>>>>>>>>network
>>>>>>>>>>>>>>>>exists.
>>>>>>>>>>>>>>>>If you are trying to delete a network that network should
>>>>>>>>>>>>>>>>not
>>>>>>>>>>>>>>>>have
>>>>>>>>>>>>>>>>any
>>>>>>>>>>>>>>>>VMs.
>>>>>>>>>>>>>>>>Delete the associated router from the management interface
>>>>>>>>>>>>>>>>then
>>>>>>>>>>>>>>>>delete
>>>>>>>>>>>>>>>>the network.
>>>>>>>>>>>>>>>>This method works for me on 3.0.2
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>Regards
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>Tamas Monos
>>>>>>>>>>>>>>>>DDI
>>>>>>>>>>>>>>>>+44(0)2034687012
>>>>>>>>>>>>>>>>Chief Technical
>>>>>>>>>>>>>>>>Office
>>>>>>>>>>>>>>>>+44(0)2034687000
>>>>>>>>>>>>>>>>Veber: The Hosting Specialists               Fax
>>>>>>>>>>>>>>>>+44(0)871
>>>>>>>>>>>>>>>>522
>>>>>>>>>>>>>>>>7057
>>>>>>>>>>>>>>>>http://www.veber.co.uk
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>Follow us on Twitter: www.twitter.com/veberhost Follow us
>>>>>>>>>>>>>>>>on
>>>>>>>>>>>>>>>>Facebook:
>>>>>>>>>>>>>>>>www.facebook.com/veberhost
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>-----Original Message-----
>>>>>>>>>>>>>>>>From: Alena Prokharchyk
>>>>>>>>>>>>>>>>[mailto:Alena.Prokharchyk@citrix.com]
>>>>>>>>>>>>>>>>Sent: 13 June 2012 18:12
>>>>>>>>>>>>>>>>To: cloudstack-dev@incubator.apache.org
>>>>>>>>>>>>>>>>Subject: Re: Can not delete network
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>Can you please check the management server log to see if
>>>>>>>>>>>>>>>>there
>>>>>>>>>>>>>>>>is
>>>>>>>>>>>>>>>>more
>>>>>>>>>>>>>>>>detailed exception in there.
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>-Alena.
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>On 6/13/12 9:50 AM, "Lu Heng" <h....@anytimechinese.com>
>>>>>>>>>>>>>>>>wrote:
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>Hi
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>I have problem deleting guest network, everytime I tried
>>>>>>>>>>>>>>>>>it
>>>>>>>>>>>>>>>>>always
>>>>>>>>>>>>>>>>>shows "fail to delete network)
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>2012-06-13 11:26:14,243 WARN  [cloud.api.ApiDispatcher]
>>>>>>>>>>>>>>>>>(Job-Executor-52:job-95) class
>>>>>>>>>>>>>>>>>com.cloud.api.ServerApiException
>>>>>>>>>>>>>>>>>:
>>>>>>>>>>>>>>>>>Failed to delete network
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>Any idea how it happens?
>>>>>>>>>>>>>>>>>--
>>>>>>>>>>>>>>>>>--
>>>>>>>>>>>>>>>>>Kind regards.
>>>>>>>>>>>>>>>>>Lu
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>This transmission is intended solely for the addressee(s)
>>>>>>>>>>>>>>>>>shown
>>>>>>>>>>>>>>>>>above.
>>>>>>>>>>>>>>>>>It may contain information that is privileged,
>>>>>>>>>>>>>>>>>confidential
>>>>>>>>>>>>>>>>>or
>>>>>>>>>>>>>>>>>otherwise protected from disclosure. Any review,
>>>>>>>>>>>>>>>>>dissemination
>>>>>>>>>>>>>>>>>or
>>>>>>>>>>>>>>>>>use
>>>>>>>>>>>>>>>>>of this transmission or its contents by persons other than
>>>>>>>>>>>>>>>>>the
>>>>>>>>>>>>>>>>>intended
>>>>>>>>>>>>>>>>>addressee(s) is strictly prohibited. If you have received
>>>>>>>>>>>>>>>>>this
>>>>>>>>>>>>>>>>>transmission in error, please notify this office
>>>>>>>>>>>>>>>>>immediately
>>>>>>>>>>>>>>>>>and
>>>>>>>>>>>>>>>>>e-mail
>>>>>>>>>>>>>>>>>the original at the sender's address above by replying to
>>>>>>>>>>>>>>>>>this
>>>>>>>>>>>>>>>>>message
>>>>>>>>>>>>>>>>>and including the text of the transmission received.
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>--
>>>>>>>>>>>>>>--
>>>>>>>>>>>>>>Kind regards.
>>>>>>>>>>>>>>Lu
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>This transmission is intended solely for the addressee(s)
>>>>>>>>>>>>>>shown
>>>>>>>>>>>>>>above.
>>>>>>>>>>>>>>It may contain information that is privileged, confidential
>>>>>>>>>>>>>>or
>>>>>>>>>>>>>>otherwise protected from disclosure. Any review,
>>>>>>>>>>>>>>dissemination
>>>>>>>>>>>>>>or
>>>>>>>>>>>>>>use
>>>>>>>>>>>>>>of this transmission or its contents by persons other than
>>>>>>>>>>>>>>the
>>>>>>>>>>>>>>intended addressee(s) is strictly prohibited. If you have
>>>>>>>>>>>>>>received
>>>>>>>>>>>>>>this transmission in error, please notify this office
>>>>>>>>>>>>>>immediately
>>>>>>>>>>>>>>and
>>>>>>>>>>>>>>e-mail the original at the sender's address above by replying
>>>>>>>>>>>>>>to
>>>>>>>>>>>>>>this
>>>>>>>>>>>>>>message and including the text of the transmission received.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>--
>>>>>>>>>>>>--
>>>>>>>>>>>>Kind regards.
>>>>>>>>>>>>Lu
>>>>>>>>>>>>
>>>>>>>>>>>>This transmission is intended solely for the addressee(s) shown
>>>>>>>>>>>>above.
>>>>>>>>>>>>It may contain information that is privileged, confidential or
>>>>>>>>>>>>otherwise protected from disclosure. Any review, dissemination
>>>>>>>>>>>>or
>>>>>>>>>>>>use
>>>>>>>>>>>>of this transmission or its contents by persons other than the
>>>>>>>>>>>>intended addressee(s) is strictly prohibited. If you have
>>>>>>>>>>>>received
>>>>>>>>>>>>this transmission in error, please notify this office
>>>>>>>>>>>>immediately
>>>>>>>>>>>>and
>>>>>>>>>>>>e-mail the original at the sender's address above by replying
>>>>>>>>>>>>to
>>>>>>>>>>>>this
>>>>>>>>>>>>message and including the text of the transmission received.
>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> --
>>>>>>>>>> --
>>>>>>>>>> Kind regards.
>>>>>>>>>> Lu
>>>>>>>>>>
>>>>>>>>>> This transmission is intended solely for the addressee(s) shown
>>>>>>>>>>above.
>>>>>>>>>> It may contain information that is privileged, confidential or
>>>>>>>>>> otherwise protected from disclosure. Any review, dissemination
>>>>>>>>>>or
>>>>>>>>>>use
>>>>>>>>>> of this transmission or its contents by persons other than the
>>>>>>>>>> intended addressee(s) is strictly prohibited. If you have
>>>>>>>>>>received
>>>>>>>>>> this transmission in error, please notify this office
>>>>>>>>>>immediately
>>>>>>>>>>and
>>>>>>>>>> e-mail the original at the sender's address above by replying to
>>>>>>>>>>this
>>>>>>>>>> message and including the text of the transmission received.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>--
>>>>>>>>>--
>>>>>>>>>Kind regards.
>>>>>>>>>Lu
>>>>>>>>>
>>>>>>>>>This transmission is intended solely for the addressee(s) shown
>>>>>>>>>above.
>>>>>>>>>It may contain information that is privileged, confidential or
>>>>>>>>>otherwise protected from disclosure. Any review, dissemination or
>>>>>>>>>use
>>>>>>>>>of this transmission or its contents by persons other than the
>>>>>>>>>intended addressee(s) is strictly prohibited. If you have received
>>>>>>>>>this transmission in error, please notify this office immediately
>>>>>>>>>and
>>>>>>>>>e-mail the original at the sender's address above by replying to
>>>>>>>>>this
>>>>>>>>>message and including the text of the transmission received.
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>--
>>>>>>>--
>>>>>>>Kind regards.
>>>>>>>Lu
>>>>>>>
>>>>>>>This transmission is intended solely for the addressee(s) shown
>>>>>>>above.
>>>>>>>It may contain information that is privileged, confidential or
>>>>>>>otherwise protected from disclosure. Any review, dissemination or
>>>>>>>use
>>>>>>>of this transmission or its contents by persons other than the
>>>>>>>intended addressee(s) is strictly prohibited. If you have received
>>>>>>>this transmission in error, please notify this office immediately
>>>>>>>and
>>>>>>>e-mail the original at the sender's address above by replying to
>>>>>>>this
>>>>>>>message and including the text of the transmission received.
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>>--
>>>>>--
>>>>>Kind regards.
>>>>>Lu
>>>>>
>>>>>This transmission is intended solely for the addressee(s) shown above.
>>>>>It may contain information that is privileged, confidential or
>>>>>otherwise protected from disclosure. Any review, dissemination or use
>>>>>of this transmission or its contents by persons other than the
>>>>>intended addressee(s) is strictly prohibited. If you have received
>>>>>this transmission in error, please notify this office immediately and
>>>>>e-mail the original at the sender's address above by replying to this
>>>>>message and including the text of the transmission received.
>>>>>
>>>>
>>>>
>>>
>>>
>>>
>>>--
>>>--
>>>Kind regards.
>>>Lu
>>>
>>>This transmission is intended solely for the addressee(s) shown above.
>>>It may contain information that is privileged, confidential or
>>>otherwise protected from disclosure. Any review, dissemination or use
>>>of this transmission or its contents by persons other than the
>>>intended addressee(s) is strictly prohibited. If you have received
>>>this transmission in error, please notify this office immediately and
>>>e-mail the original at the sender's address above by replying to this
>>>message and including the text of the transmission received.
>>>
>>
>>
>
>
>
>--
>--
>Kind regards.
>Lu
>
>This transmission is intended solely for the addressee(s) shown above.
>It may contain information that is privileged, confidential or
>otherwise protected from disclosure. Any review, dissemination or use
>of this transmission or its contents by persons other than the
>intended addressee(s) is strictly prohibited. If you have received
>this transmission in error, please notify this office immediately and
>e-mail the original at the sender's address above by replying to this
>message and including the text of the transmission received.
>



Re: Can not delete network

Posted by Lu Heng <h....@anytimechinese.com>.
Hi

My vendor told me they can not give me any vlan, is that means there
is no choice left but for us to go for basic network setup?

If answer to this question is yes, is that simpy means I have to start
over again, so I don't have to modify anything anymore, just simply
re-install the management server, am I correct? Did I need to
re-install the host server as well?

On Wed, Jun 13, 2012 at 11:44 PM, Alena Prokharchyk
<Al...@citrix.com> wrote:
> On 6/13/12 2:16 PM, "Lu Heng" <h....@anytimechinese.com> wrote:
>
>>Hi
>>
>>Thanks very much for such detailed reply.
>>
>>first one quick question, what vlan it stands for(I know it is virtual
>>lan), but does it need to be config in the physical router for each
>>network, or it can just create a "software one" with direct untagged
>>network by cloudstack?
>
>
> In advance zone you have to enable Vlan support on your physical Switch.
>
>
>>
>>So you mean I motify the database of the management server, find
>>remove=id() value?
>
>
> Sorry, I don't get this question. Remove=id() for what exactly?
>
>
>>
>>Last question will be, if the question's answer is no, is that means I
>>have to go for basic network setup, I have to delete the entire zone
>>and re-create it?
>
>
> Yes, you have to start fresh if you want to use the same set of hosts.
>
>
>>
>>On Wed, Jun 13, 2012 at 11:11 PM, Alena Prokharchyk
>><Al...@citrix.com> wrote:
>>> On 6/13/12 2:03 PM, "Lu Heng" <h....@anytimechinese.com> wrote:
>>>
>>>>Hi
>>>>
>>>>As I said, I have direct attached network to the public network, and I
>>>>have no vlan, and cloudstack force to enter a vlan ID, so I just
>>>>entered "tagged1“.
>>>
>>>
>>> In Advance zone Vlan is required for every direct network; and vlan has
>>>to
>>> have numeric value. We support untagged network only in Basic zone. The
>>> fact UI accepted "tagged1" value as an input - is a UI/API bug, it
>>>should
>>> have never reached the backend. Please file a bug against cloudStack
>>> UI/API.
>>>
>>>
>>>
>>>>
>>>>So the first question come, how can I setup direct attached network in
>>>>advance networking, is that even possible or it is simply impossible?
>>>
>>>
>>> Its possible only with the numeric tag.
>>>
>>>
>>>>
>>>>On Wed, Jun 13, 2012 at 11:01 PM, Alena Prokharchyk
>>>><Al...@citrix.com> wrote:
>>>>> I see 2 different problems in this log fragment:
>>>>>
>>>>> 1)job-92 -  i-2-415-VM failed to start because the network vlan was
>>>>> misconfigured. The number format exception most likely indicates the
>>>>>vlan
>>>>> for the network was set incorrectly. Need entire log to confirm.
>>>>>
>>>>> 2) job-94 - failed to delete the network as i-2-413-VM was in Error
>>>>>state
>>>>> - it failed to start. Notice its different vm from the vm on step 1).
>>>>>At
>>>>> the moment deleteNetwork was called, the vm wasnt' expunged yet. Did
>>>>>you
>>>>> wait for the vm i-2-413 to be picked up by Expunge thread and moved to
>>>>> Expunging state? If yes, was it expunged successfully? If no, you have
>>>>>to
>>>>> find out the references to the vm in the log - search by "to expunge"
>>>>> pattern in the management server, it will tell you when vm was
>>>>>processed
>>>>> by the expunge thread.
>>>>>
>>>>>
>>>>> -Alena.
>>>>>
>>>>>
>>>>> On 6/13/12 1:51 PM, "Lu Heng" <h....@anytimechinese.com> wrote:
>>>>>
>>>>>>Hi
>>>>>>
>>>>>>The story start with I try to setup direct attached network to the
>>>>>>guest network, in which I create a VM with the shared network I setup,
>>>>>>but the VM does not start successfully, so I tried to delete the guest
>>>>>>network I have created, in which I failed because of the vm was not
>>>>>>destroy, then I try to destroy the VM, but the VM stuck in the
>>>>>>explunging state:
>>>>>>
>>>>>>The network setup was not resolved, I asked in this mailling list what
>>>>>>should I do if I have public network in the access point with advanced
>>>>>>network setup, they said I have to create a shared network offering
>>>>>>with Vlan, in which the public IP has no vlan setup, so I just typed
>>>>>>tagged in the vlan section,seems not working.
>>>>>>
>>>>>>Below is the full story log start with I added a direct attached
>>>>>>network:
>>>>>>
>>>>>>2012-06-13 08:56:25,401 WARN  [xen.resource.CitrixResourceBase]
>>>>>>(DirectAgent-45:null) Catch Exception: class
>>>>>>java.lang.NumberFormatException due to
>>>>>>java.lang.NumberFormatException: For input string: "tagged1"
>>>>>>java.lang.NumberFormatException: For input string: "tagged1"
>>>>>>        at
>>>>>>java.lang.NumberFormatException.forInputString(NumberFormatException.j
>>>>>>av
>>>>>>a:
>>>>>>65)
>>>>>>2012-06-13 08:56:25,402 WARN  [xen.resource.CitrixResourceBase]
>>>>>>(DirectAgent-45:null) Unable to start i-2-415-VM due to
>>>>>>java.lang.NumberFormatException: For input string: "tagged1"
>>>>>>        at
>>>>>>java.lang.NumberFormatException.forInputString(NumberFormatException.j
>>>>>>av
>>>>>>a:
>>>>>>65)
>>>>>>2012-06-13 08:56:25,455 WARN  [xen.resource.CitrixResourceBase]
>>>>>>(DirectAgent-45:null) Unable to clean up VBD due to
>>>>>>You gave an invalid object reference.  The object may have recently
>>>>>>been deleted.  The class parameter gives the type of reference given,
>>>>>>and the handle parameter echoes the bad value given.
>>>>>>        at
>>>>>>com.cloud.hypervisor.xen.resource.CitrixResourceBase.handleVmStartFail
>>>>>>ur
>>>>>>e(
>>>>>>CitrixResourceBase.java:930)
>>>>>>2012-06-13 08:56:25,466 WARN  [xen.resource.CitrixResourceBase]
>>>>>>(DirectAgent-45:null) Unable to clean up VBD due to
>>>>>>You gave an invalid object reference.  The object may have recently
>>>>>>been deleted.  The class parameter gives the type of reference given,
>>>>>>and the handle parameter echoes the bad value given.
>>>>>>        at
>>>>>>com.cloud.hypervisor.xen.resource.CitrixResourceBase.handleVmStartFail
>>>>>>ur
>>>>>>e(
>>>>>>CitrixResourceBase.java:930)
>>>>>>2012-06-13 08:56:25,478 WARN  [xen.resource.CitrixResourceBase]
>>>>>>(DirectAgent-45:null) Unable to clean up VBD due to
>>>>>>You gave an invalid object reference.  The object may have recently
>>>>>>been deleted.  The class parameter gives the type of reference given,
>>>>>>and the handle parameter echoes the bad value given.
>>>>>>        at
>>>>>>com.cloud.hypervisor.xen.resource.CitrixResourceBase.handleVmStartFail
>>>>>>ur
>>>>>>e(
>>>>>>CitrixResourceBase.java:930)
>>>>>>2012-06-13 08:56:25,489 WARN  [xen.resource.CitrixResourceBase]
>>>>>>(DirectAgent-45:null) Unable to cleanup VIF
>>>>>>You gave an invalid object reference.  The object may have recently
>>>>>>been deleted.  The class parameter gives the type of reference given,
>>>>>>and the handle parameter echoes the bad value given.
>>>>>>        at
>>>>>>com.cloud.hypervisor.xen.resource.CitrixResourceBase.handleVmStartFail
>>>>>>ur
>>>>>>e(
>>>>>>CitrixResourceBase.java:938)
>>>>>>2012-06-13 08:56:25,515 INFO  [xen.resource.XenServer56Resource]
>>>>>>(DirectAgent-45:null) Catch com.xensource.xenapi.Types$VifInUse:
>>>>>>failed to destory VLAN eth2 on host
>>>>>>b9f6241d-cbd6-49a8-916e-dff524569dd4 due to Network has active VIFs
>>>>>>2012-06-13 08:56:25,517 DEBUG [agent.transport.Request]
>>>>>>(DirectAgent-45:null) Seq 6-920389063: Processing:  { Ans: , MgmtId:
>>>>>>229144658033003, via: 6, Ver: v1, Flags: 110,
>>>>>>[{"StartAnswer":{"vm":{"id":415,"name":"i-2-415-VM","bootloader":"PyGr
>>>>>>ub
>>>>>>",
>>>>>>"type":"User","cpus":1,"speed":500,"minRam":536870912,"maxRam":5368709
>>>>>>12
>>>>>>,"
>>>>>>arch":"x86_64","os":"CentOS
>>>>>>5.3
>>>>>>(64-bit)","bootArgs":"","rebootOnCrash":false,"enableHA":false,"limitC
>>>>>>pu
>>>>>>Us
>>>>>>e":false,"vncPassword":"7bad48a63e4b14e7","params":{},"disks":[{"id":4
>>>>>>19
>>>>>>,"
>>>>>>name":"ROOT-415","mountPoint":"/iqn.2006-01.com.openfiler:tsn.2912cb92
>>>>>>f8
>>>>>>2d
>>>>>>/0","path":"ff3b7226-fd0b-4d0b-8af4-393496d7ee24","size":21474836480,"
>>>>>>ty
>>>>>>pe
>>>>>>":"ROOT","storagePoolType":"IscsiLUN","storagePoolUuid":"f7d6960c-84a6
>>>>>>-3
>>>>>>32
>>>>>>f-9068-27ef0f216b31","deviceId":0},{"id":420,"name":"DATA-415","mountP
>>>>>>oi
>>>>>>nt
>>>>>>":"/iqn.2006-01.com.openfiler:tsn.2912cb92f82d/0","path":"202feab0-b72
>>>>>>4-
>>>>>>4b
>>>>>>70-b757-32f2b8dfddee","size":5368709120,"type":"DATADISK","storagePool
>>>>>>Ty
>>>>>>pe
>>>>>>":"IscsiLUN","storagePoolUuid":"f7d6960c-84a6-332f-9068-27ef0f216b31",
>>>>>>"d
>>>>>>ev
>>>>>>iceId":1},{"id":415,"name":"CentOS
>>>>>>5.6(64-bit) no GUI
>>>>>>(XenServer)","size":0,"type":"ISO","storagePoolType":"ISO","deviceId":
>>>>>>3}
>>>>>>],
>>>>>>"nics":[{"deviceId":0,"networkRateMbps":200,"defaultNic":true,"ip":"10
>>>>>>.1
>>>>>>.1
>>>>>>.99","netmask":"255.255.255.0","gateway":"10.1.1.1","mac":"02:00:2e:ae
>>>>>>:0
>>>>>>0:
>>>>>>04","dns1":"204.13.152.2","broadcastType":"Vlan","type":"Guest","broad
>>>>>>ca
>>>>>>st
>>>>>>Uri":"vlan://292","isolationUri":"vlan://292","isSecurityGroupEnabled"
>>>>>>:f
>>>>>>al
>>>>>>se,"name":"Pool-wide
>>>>>>network associated with
>>>>>>eth2"},{"deviceId":1,"networkRateMbps":200,"defaultNic":false,"ip":"46
>>>>>>.1
>>>>>>36
>>>>>>.134.86","netmask":"255.255.255.0","gateway":"46.136.134.1","mac":"06:
>>>>>>4a
>>>>>>:b
>>>>>>4:00:08:3d","dns1":"204.13.152.2","broadcastType":"Vlan","type":"Guest
>>>>>>",
>>>>>>"b
>>>>>>roadcastUri":"vlan://tagged1","isolationUri":"vlan://tagged1","isSecur
>>>>>>it
>>>>>>yG
>>>>>>roupEnabled":false,"name":"Pool-wide
>>>>>>network associated with eth2"}]},"result":false,"details":"Unable to
>>>>>>start i-2-415-VM due to ","wait":0}}] }
>>>>>>2012-06-13 08:56:25,517 WARN  [cloud.vm.VirtualMachineManagerImpl]
>>>>>>(DirectAgent-45:null) Cleanup failed due to Unable to start i-2-415-VM
>>>>>>due to
>>>>>>2012-06-13 08:56:25,517 WARN  [cloud.vm.VirtualMachineManagerImpl]
>>>>>>(Job-Executor-47:job-92) Cleanup failed due to Unable to start
>>>>>>i-2-415-VM due to
>>>>>>2012-06-13 08:56:25,590 INFO  [cloud.vm.VirtualMachineManagerImpl]
>>>>>>(Job-Executor-47:job-92) Unable to start VM on Host[-6-Routing] due to
>>>>>>Unable to start i-2-415-VM due to
>>>>>>2012-06-13 08:56:26,159 DEBUG [cloud.capacity.CapacityManagerImpl]
>>>>>>(Job-Executor-47:job-92) VM state transitted from :Starting to Stopped
>>>>>>with event: OperationFailedvm's original host id: null new host id:
>>>>>>null host id before state transition: 6
>>>>>>2012-06-13 08:56:26,440 DEBUG [cloud.capacity.CapacityManagerImpl]
>>>>>>(Job-Executor-47:job-92) VM state transitted from :Stopped to Error
>>>>>>with event: OperationFailedToErrorvm's original host id: null new host
>>>>>>id: null host id before state transition: null
>>>>>>2012-06-13 08:56:27,209 INFO  [api.commands.DeployVMCmd]
>>>>>>(Job-Executor-47:job-92)
>>>>>>com.cloud.exception.InsufficientServerCapacityException: Unable to
>>>>>>create a deployment for VM[User|i-2-415-VM]Scope=interface
>>>>>>com.cloud.dc.DataCenter; id=1
>>>>>>2012-06-13 08:56:27,210 WARN  [cloud.api.ApiDispatcher]
>>>>>>(Job-Executor-47:job-92) class com.cloud.api.ServerApiException :
>>>>>>Unable to create a deployment for VM[User|i-2-415-VM]
>>>>>>2012-06-13 08:56:27,210 DEBUG [cloud.async.AsyncJobManagerImpl]
>>>>>>(Job-Executor-47:job-92) Complete async job-92, jobStatus: 2,
>>>>>>resultCode: 530, result:
>>>>>>com.cloud.api.response.ExceptionResponse@1660d637
>>>>>>2012-06-13 09:11:08,903 WARN  [cloud.network.NetworkManagerImpl]
>>>>>>(Job-Executor-50:job-94) Can't delete the network, not all user vms
>>>>>>are expunged. Vm VM[User|i-2-413-VM] is in Error state
>>>>>>2012-06-13 09:11:08,993 WARN  [cloud.api.ApiDispatcher]
>>>>>>(Job-Executor-50:job-94) class com.cloud.api.ServerApiException :
>>>>>>Failed to delete network
>>>>>>2012-06-13 09:11:08,993 DEBUG [cloud.async.AsyncJobManagerImpl]
>>>>>>(Job-Executor-50:job-94) Complete async job-94, jobStatus: 2,
>>>>>>resultCode: 530, result:
>>>>>>com.cloud.api.response.ExceptionResponse@2102e538
>>>>>>2012-06-13 09:11:09,144 WARN  [cloud.async.AsyncJobManagerImpl]
>>>>>>(Job-Executor-50:job-94) Unable to unregister active job 94 from JMX
>>>>>>monitoring
>>>>>>2012-06-13 11:26:14,160 WARN  [cloud.network.NetworkManagerImpl]
>>>>>>(Job-Executor-52:job-95) Can't delete the network, not all user vms
>>>>>>are expunged. Vm VM[User|i-2-413-VM] is in Error state
>>>>>>2012-06-13 11:26:14,243 WARN  [cloud.api.ApiDispatcher]
>>>>>>(Job-Executor-52:job-95) class com.cloud.api.ServerApiException :
>>>>>>Failed to delete network
>>>>>>
>>>>>>
>>>>>>On Wed, Jun 13, 2012 at 10:46 PM, Alena Prokharchyk
>>>>>><Al...@citrix.com> wrote:
>>>>>>> On 6/13/12 1:38 PM, "Lu Heng" <h....@anytimechinese.com> wrote:
>>>>>>>
>>>>>>>>Hi
>>>>>>>>
>>>>>>>>And btw, I didn't see the maintainace botton for the 3 shared
>>>>>>>>storage,
>>>>>>>> I only see take snapshoot, snapshoot setting, that's it.
>>>>>>>>
>>>>>>>>On Wed, Jun 13, 2012 at 10:35 PM, Lu Heng <h....@anytimechinese.com>
>>>>>>>>wrote:
>>>>>>>>> Hi
>>>>>>>>>
>>>>>>>>> See my reply
>>>>>>>>>
>>>>>>>>> On Wed, Jun 13, 2012 at 10:30 PM, Alena Prokharchyk
>>>>>>>>> <Al...@citrix.com> wrote:
>>>>>>>>>> On 6/13/12 1:24 PM, "Lu Heng" <h....@anytimechinese.com> wrote:
>>>>>>>>>>
>>>>>>>>>>>Hi
>>>>>>>>>>>
>>>>>>>>>>>I find the reason, three vm are in state of "Expunging" for 3
>>>>>>>>>>>hours
>>>>>>>>>>>now, no process is being made, anyone has idea what should I do
>>>>>>>>>>>about
>>>>>>>>>>>these VMs?
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> What is expunge.interval in the setup? If the vms stuck in
>>>>>>>>>>Expunging
>>>>>>>>>>state
>>>>>>>>>> with null Removed field, it indicates some problem happening
>>>>>>>>>>during
>>>>>>>>>>the
>>>>>>>>>> expunge. I suspect it's related with the fact you removed the
>>>>>>>>>>storage
>>>>>>>>>>from
>>>>>>>>>> the xen.
>>>>>>>>>>
>>>>>>>>> Vise verse, the situation is, the VM in the expunging state for 3
>>>>>>>>> hours, and I find no way to delete them, so I try to delete the
>>>>>>>>> storage.
>>>>>>>
>>>>>>>
>>>>>>> So you deleted the VHDs per each volume, not the storage itself,
>>>>>>>please
>>>>>>> confirm. And we should never do it as there is no volume sync, so if
>>>>>>>the
>>>>>>> volume is removed on the backend, cloudStack has no idea it has
>>>>>>>happened.
>>>>>>>
>>>>>>> The original issue is - vm got stuck in Expunging state. We have to
>>>>>>>figure
>>>>>>> out this one first. Please send the logs starting from the time the
>>>>>>> Destroy command was executed for the Vm. And mention the vm name.
>>>>>>>
>>>>>>>
>>>>>>> -Alena.
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>>>
>>>>>>>>> What should I do to fix this now?
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>Another question is, I didn't see the delete botton with shared
>>>>>>>>>>>storage, so I delete it from the xencenter, but after that I
>>>>>>>>>>>still
>>>>>>>>>>>see
>>>>>>>>>>>the deleted storage exists in the UI, what suppose to be done?
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Delete storage pool consists of 2 steps:
>>>>>>>>>>
>>>>>>>>>> * enable maintenance for the shared storage
>>>>>>>>>> * after the maintenance is completed, the Delete button will be
>>>>>>>>>>presented
>>>>>>>>>> to the admin; and the storage can be removed.
>>>>>>>>>>
>>>>>>>>>> You are not supposed to delete primary storage on the backend;
>>>>>>>>>>cloudStack
>>>>>>>>>> has no idea if you do things like that, and it expects primary
>>>>>>>>>>storage
>>>>>>>>>>to
>>>>>>>>>> be functioning.
>>>>>>>>>>
>>>>>>>>>> So when vm expunge happens, we see that the storage is in UP
>>>>>>>>>>state,
>>>>>>>>>>and
>>>>>>>>>> try to send the destroy volume command to the Xen host. But the
>>>>>>>>>>command
>>>>>>>>>> fails there because there is no such primary storage exist.
>>>>>>>>>>
>>>>>>>>>> Let me know if its your case.
>>>>>>>>>>
>>>>>>>>>> -Alena.
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>On Wed, Jun 13, 2012 at 10:08 PM, Alena Prokharchyk
>>>>>>>>>>><Al...@citrix.com> wrote:
>>>>>>>>>>>> On 6/13/12 12:55 PM, "Lu Heng" <h....@anytimechinese.com> wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>>Hi
>>>>>>>>>>>>>
>>>>>>>>>>>>>Update:
>>>>>>>>>>>>>
>>>>>>>>>>>>>The zone has been stoped. all VM has been destoryed , the route
>>>>>>>>>>>>>vm
>>>>>>>>>>>>>has
>>>>>>>>>>>>>been stoped(no option for destory).
>>>>>>>>>>>>>
>>>>>>>>>>>>>Still get error fail to delete network.
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> Can you send management server log file for debugging.
>>>>>>>>>>>>
>>>>>>>>>>>> Thanks,
>>>>>>>>>>>> Alena.
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>On Wed, Jun 13, 2012 at 7:23 PM, Alena Prokharchyk
>>>>>>>>>>>>><Al...@citrix.com> wrote:
>>>>>>>>>>>>>> On 6/13/12 10:18 AM, "Tamas Monos" <ta...@veber.co.uk>
>>>>>>>>>>>>>>wrote:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>Hi,
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>Also I think the problem is when you are trying to delete the
>>>>>>>>>>>>>>>network
>>>>>>>>>>>>>>>the
>>>>>>>>>>>>>>>router is powered off.
>>>>>>>>>>>>>>>Therefore when you click delete it wants to remove the
>>>>>>>>>>>>>>>firewall
>>>>>>>>>>>>>>>rules
>>>>>>>>>>>>>>>for
>>>>>>>>>>>>>>>that network but the router is not running so the command
>>>>>>>>>>>>>>>fails
>>>>>>>>>>>>>>>which
>>>>>>>>>>>>>>>fails the delet operation.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Also not a problem. The rules can be removed when the router
>>>>>>>>>>>>>>is
>>>>>>>>>>>>>>stopped.
>>>>>>>>>>>>>> In this case the rules are removed in DB only. When the
>>>>>>>>>>>>>>router
>>>>>>>>>>>>>>starts
>>>>>>>>>>>>>>up,
>>>>>>>>>>>>>> we start clean (cleanup all the rules) and re-apply all the
>>>>>>>>>>>>>>rules
>>>>>>>>>>>>>>from
>>>>>>>>>>>>>>the
>>>>>>>>>>>>>> DB. So the removed rules won't exist  on the router.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> -Alena.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>Regards
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>Tamas Monos                                               DDI
>>>>>>>>>>>>>>>+44(0)2034687012
>>>>>>>>>>>>>>>Chief Technical
>>>>>>>>>>>>>>>Office
>>>>>>>>>>>>>>>+44(0)2034687000
>>>>>>>>>>>>>>>Veber: The Hosting Specialists               Fax
>>>>>>>>>>>>>>>+44(0)871
>>>>>>>>>>>>>>>522
>>>>>>>>>>>>>>>7057
>>>>>>>>>>>>>>>http://www.veber.co.uk
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>Follow us on Twitter: www.twitter.com/veberhost
>>>>>>>>>>>>>>>Follow us on Facebook: www.facebook.com/veberhost
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>-----Original Message-----
>>>>>>>>>>>>>>>From: Tamas Monos [mailto:tamasm@veber.co.uk]
>>>>>>>>>>>>>>>Sent: 13 June 2012 18:15
>>>>>>>>>>>>>>>To: cloudstack-dev@incubator.apache.org
>>>>>>>>>>>>>>>Subject: RE: Can not delete network
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>Hi,
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>I don't think you can delete a network if a router-vm for
>>>>>>>>>>>>>>>that
>>>>>>>>>>>>>>>network
>>>>>>>>>>>>>>>exists.
>>>>>>>>>>>>>>>If you are trying to delete a network that network should not
>>>>>>>>>>>>>>>have
>>>>>>>>>>>>>>>any
>>>>>>>>>>>>>>>VMs.
>>>>>>>>>>>>>>>Delete the associated router from the management interface
>>>>>>>>>>>>>>>then
>>>>>>>>>>>>>>>delete
>>>>>>>>>>>>>>>the network.
>>>>>>>>>>>>>>>This method works for me on 3.0.2
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>Regards
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>Tamas Monos                                               DDI
>>>>>>>>>>>>>>>+44(0)2034687012
>>>>>>>>>>>>>>>Chief Technical
>>>>>>>>>>>>>>>Office
>>>>>>>>>>>>>>>+44(0)2034687000
>>>>>>>>>>>>>>>Veber: The Hosting Specialists               Fax
>>>>>>>>>>>>>>>+44(0)871
>>>>>>>>>>>>>>>522
>>>>>>>>>>>>>>>7057
>>>>>>>>>>>>>>>http://www.veber.co.uk
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>Follow us on Twitter: www.twitter.com/veberhost Follow us on
>>>>>>>>>>>>>>>Facebook:
>>>>>>>>>>>>>>>www.facebook.com/veberhost
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>-----Original Message-----
>>>>>>>>>>>>>>>From: Alena Prokharchyk [mailto:Alena.Prokharchyk@citrix.com]
>>>>>>>>>>>>>>>Sent: 13 June 2012 18:12
>>>>>>>>>>>>>>>To: cloudstack-dev@incubator.apache.org
>>>>>>>>>>>>>>>Subject: Re: Can not delete network
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>Can you please check the management server log to see if
>>>>>>>>>>>>>>>there
>>>>>>>>>>>>>>>is
>>>>>>>>>>>>>>>more
>>>>>>>>>>>>>>>detailed exception in there.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>-Alena.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>On 6/13/12 9:50 AM, "Lu Heng" <h....@anytimechinese.com>
>>>>>>>>>>>>>>>wrote:
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>Hi
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>I have problem deleting guest network, everytime I tried it
>>>>>>>>>>>>>>>>always
>>>>>>>>>>>>>>>>shows "fail to delete network)
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>2012-06-13 11:26:14,243 WARN  [cloud.api.ApiDispatcher]
>>>>>>>>>>>>>>>>(Job-Executor-52:job-95) class
>>>>>>>>>>>>>>>>com.cloud.api.ServerApiException
>>>>>>>>>>>>>>>>:
>>>>>>>>>>>>>>>>Failed to delete network
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>Any idea how it happens?
>>>>>>>>>>>>>>>>--
>>>>>>>>>>>>>>>>--
>>>>>>>>>>>>>>>>Kind regards.
>>>>>>>>>>>>>>>>Lu
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>This transmission is intended solely for the addressee(s)
>>>>>>>>>>>>>>>>shown
>>>>>>>>>>>>>>>>above.
>>>>>>>>>>>>>>>>It may contain information that is privileged, confidential
>>>>>>>>>>>>>>>>or
>>>>>>>>>>>>>>>>otherwise protected from disclosure. Any review,
>>>>>>>>>>>>>>>>dissemination
>>>>>>>>>>>>>>>>or
>>>>>>>>>>>>>>>>use
>>>>>>>>>>>>>>>>of this transmission or its contents by persons other than
>>>>>>>>>>>>>>>>the
>>>>>>>>>>>>>>>>intended
>>>>>>>>>>>>>>>>addressee(s) is strictly prohibited. If you have received
>>>>>>>>>>>>>>>>this
>>>>>>>>>>>>>>>>transmission in error, please notify this office immediately
>>>>>>>>>>>>>>>>and
>>>>>>>>>>>>>>>>e-mail
>>>>>>>>>>>>>>>>the original at the sender's address above by replying to
>>>>>>>>>>>>>>>>this
>>>>>>>>>>>>>>>>message
>>>>>>>>>>>>>>>>and including the text of the transmission received.
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>--
>>>>>>>>>>>>>--
>>>>>>>>>>>>>Kind regards.
>>>>>>>>>>>>>Lu
>>>>>>>>>>>>>
>>>>>>>>>>>>>This transmission is intended solely for the addressee(s) shown
>>>>>>>>>>>>>above.
>>>>>>>>>>>>>It may contain information that is privileged, confidential or
>>>>>>>>>>>>>otherwise protected from disclosure. Any review, dissemination
>>>>>>>>>>>>>or
>>>>>>>>>>>>>use
>>>>>>>>>>>>>of this transmission or its contents by persons other than the
>>>>>>>>>>>>>intended addressee(s) is strictly prohibited. If you have
>>>>>>>>>>>>>received
>>>>>>>>>>>>>this transmission in error, please notify this office
>>>>>>>>>>>>>immediately
>>>>>>>>>>>>>and
>>>>>>>>>>>>>e-mail the original at the sender's address above by replying
>>>>>>>>>>>>>to
>>>>>>>>>>>>>this
>>>>>>>>>>>>>message and including the text of the transmission received.
>>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>--
>>>>>>>>>>>--
>>>>>>>>>>>Kind regards.
>>>>>>>>>>>Lu
>>>>>>>>>>>
>>>>>>>>>>>This transmission is intended solely for the addressee(s) shown
>>>>>>>>>>>above.
>>>>>>>>>>>It may contain information that is privileged, confidential or
>>>>>>>>>>>otherwise protected from disclosure. Any review, dissemination or
>>>>>>>>>>>use
>>>>>>>>>>>of this transmission or its contents by persons other than the
>>>>>>>>>>>intended addressee(s) is strictly prohibited. If you have
>>>>>>>>>>>received
>>>>>>>>>>>this transmission in error, please notify this office immediately
>>>>>>>>>>>and
>>>>>>>>>>>e-mail the original at the sender's address above by replying to
>>>>>>>>>>>this
>>>>>>>>>>>message and including the text of the transmission received.
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> --
>>>>>>>>> Kind regards.
>>>>>>>>> Lu
>>>>>>>>>
>>>>>>>>> This transmission is intended solely for the addressee(s) shown
>>>>>>>>>above.
>>>>>>>>> It may contain information that is privileged, confidential or
>>>>>>>>> otherwise protected from disclosure. Any review, dissemination or
>>>>>>>>>use
>>>>>>>>> of this transmission or its contents by persons other than the
>>>>>>>>> intended addressee(s) is strictly prohibited. If you have received
>>>>>>>>> this transmission in error, please notify this office immediately
>>>>>>>>>and
>>>>>>>>> e-mail the original at the sender's address above by replying to
>>>>>>>>>this
>>>>>>>>> message and including the text of the transmission received.
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>--
>>>>>>>>--
>>>>>>>>Kind regards.
>>>>>>>>Lu
>>>>>>>>
>>>>>>>>This transmission is intended solely for the addressee(s) shown
>>>>>>>>above.
>>>>>>>>It may contain information that is privileged, confidential or
>>>>>>>>otherwise protected from disclosure. Any review, dissemination or
>>>>>>>>use
>>>>>>>>of this transmission or its contents by persons other than the
>>>>>>>>intended addressee(s) is strictly prohibited. If you have received
>>>>>>>>this transmission in error, please notify this office immediately
>>>>>>>>and
>>>>>>>>e-mail the original at the sender's address above by replying to
>>>>>>>>this
>>>>>>>>message and including the text of the transmission received.
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>--
>>>>>>--
>>>>>>Kind regards.
>>>>>>Lu
>>>>>>
>>>>>>This transmission is intended solely for the addressee(s) shown above.
>>>>>>It may contain information that is privileged, confidential or
>>>>>>otherwise protected from disclosure. Any review, dissemination or use
>>>>>>of this transmission or its contents by persons other than the
>>>>>>intended addressee(s) is strictly prohibited. If you have received
>>>>>>this transmission in error, please notify this office immediately and
>>>>>>e-mail the original at the sender's address above by replying to this
>>>>>>message and including the text of the transmission received.
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>>--
>>>>--
>>>>Kind regards.
>>>>Lu
>>>>
>>>>This transmission is intended solely for the addressee(s) shown above.
>>>>It may contain information that is privileged, confidential or
>>>>otherwise protected from disclosure. Any review, dissemination or use
>>>>of this transmission or its contents by persons other than the
>>>>intended addressee(s) is strictly prohibited. If you have received
>>>>this transmission in error, please notify this office immediately and
>>>>e-mail the original at the sender's address above by replying to this
>>>>message and including the text of the transmission received.
>>>>
>>>
>>>
>>
>>
>>
>>--
>>--
>>Kind regards.
>>Lu
>>
>>This transmission is intended solely for the addressee(s) shown above.
>>It may contain information that is privileged, confidential or
>>otherwise protected from disclosure. Any review, dissemination or use
>>of this transmission or its contents by persons other than the
>>intended addressee(s) is strictly prohibited. If you have received
>>this transmission in error, please notify this office immediately and
>>e-mail the original at the sender's address above by replying to this
>>message and including the text of the transmission received.
>>
>
>



-- 
--
Kind regards.
Lu

This transmission is intended solely for the addressee(s) shown above.
It may contain information that is privileged, confidential or
otherwise protected from disclosure. Any review, dissemination or use
of this transmission or its contents by persons other than the
intended addressee(s) is strictly prohibited. If you have received
this transmission in error, please notify this office immediately and
e-mail the original at the sender's address above by replying to this
message and including the text of the transmission received.

Re: Can not delete network

Posted by Alena Prokharchyk <Al...@citrix.com>.
On 6/13/12 2:16 PM, "Lu Heng" <h....@anytimechinese.com> wrote:

>Hi
>
>Thanks very much for such detailed reply.
>
>first one quick question, what vlan it stands for(I know it is virtual
>lan), but does it need to be config in the physical router for each
>network, or it can just create a "software one" with direct untagged
>network by cloudstack?


In advance zone you have to enable Vlan support on your physical Switch.


>
>So you mean I motify the database of the management server, find
>remove=id() value?


Sorry, I don't get this question. Remove=id() for what exactly?


>
>Last question will be, if the question's answer is no, is that means I
>have to go for basic network setup, I have to delete the entire zone
>and re-create it?


Yes, you have to start fresh if you want to use the same set of hosts.


>
>On Wed, Jun 13, 2012 at 11:11 PM, Alena Prokharchyk
><Al...@citrix.com> wrote:
>> On 6/13/12 2:03 PM, "Lu Heng" <h....@anytimechinese.com> wrote:
>>
>>>Hi
>>>
>>>As I said, I have direct attached network to the public network, and I
>>>have no vlan, and cloudstack force to enter a vlan ID, so I just
>>>entered "tagged1“.
>>
>>
>> In Advance zone Vlan is required for every direct network; and vlan has
>>to
>> have numeric value. We support untagged network only in Basic zone. The
>> fact UI accepted "tagged1" value as an input - is a UI/API bug, it
>>should
>> have never reached the backend. Please file a bug against cloudStack
>> UI/API.
>>
>>
>>
>>>
>>>So the first question come, how can I setup direct attached network in
>>>advance networking, is that even possible or it is simply impossible?
>>
>>
>> Its possible only with the numeric tag.
>>
>>
>>>
>>>On Wed, Jun 13, 2012 at 11:01 PM, Alena Prokharchyk
>>><Al...@citrix.com> wrote:
>>>> I see 2 different problems in this log fragment:
>>>>
>>>> 1)job-92 -  i-2-415-VM failed to start because the network vlan was
>>>> misconfigured. The number format exception most likely indicates the
>>>>vlan
>>>> for the network was set incorrectly. Need entire log to confirm.
>>>>
>>>> 2) job-94 - failed to delete the network as i-2-413-VM was in Error
>>>>state
>>>> - it failed to start. Notice its different vm from the vm on step 1).
>>>>At
>>>> the moment deleteNetwork was called, the vm wasnt' expunged yet. Did
>>>>you
>>>> wait for the vm i-2-413 to be picked up by Expunge thread and moved to
>>>> Expunging state? If yes, was it expunged successfully? If no, you have
>>>>to
>>>> find out the references to the vm in the log - search by "to expunge"
>>>> pattern in the management server, it will tell you when vm was
>>>>processed
>>>> by the expunge thread.
>>>>
>>>>
>>>> -Alena.
>>>>
>>>>
>>>> On 6/13/12 1:51 PM, "Lu Heng" <h....@anytimechinese.com> wrote:
>>>>
>>>>>Hi
>>>>>
>>>>>The story start with I try to setup direct attached network to the
>>>>>guest network, in which I create a VM with the shared network I setup,
>>>>>but the VM does not start successfully, so I tried to delete the guest
>>>>>network I have created, in which I failed because of the vm was not
>>>>>destroy, then I try to destroy the VM, but the VM stuck in the
>>>>>explunging state:
>>>>>
>>>>>The network setup was not resolved, I asked in this mailling list what
>>>>>should I do if I have public network in the access point with advanced
>>>>>network setup, they said I have to create a shared network offering
>>>>>with Vlan, in which the public IP has no vlan setup, so I just typed
>>>>>tagged in the vlan section,seems not working.
>>>>>
>>>>>Below is the full story log start with I added a direct attached
>>>>>network:
>>>>>
>>>>>2012-06-13 08:56:25,401 WARN  [xen.resource.CitrixResourceBase]
>>>>>(DirectAgent-45:null) Catch Exception: class
>>>>>java.lang.NumberFormatException due to
>>>>>java.lang.NumberFormatException: For input string: "tagged1"
>>>>>java.lang.NumberFormatException: For input string: "tagged1"
>>>>>        at
>>>>>java.lang.NumberFormatException.forInputString(NumberFormatException.j
>>>>>av
>>>>>a:
>>>>>65)
>>>>>2012-06-13 08:56:25,402 WARN  [xen.resource.CitrixResourceBase]
>>>>>(DirectAgent-45:null) Unable to start i-2-415-VM due to
>>>>>java.lang.NumberFormatException: For input string: "tagged1"
>>>>>        at
>>>>>java.lang.NumberFormatException.forInputString(NumberFormatException.j
>>>>>av
>>>>>a:
>>>>>65)
>>>>>2012-06-13 08:56:25,455 WARN  [xen.resource.CitrixResourceBase]
>>>>>(DirectAgent-45:null) Unable to clean up VBD due to
>>>>>You gave an invalid object reference.  The object may have recently
>>>>>been deleted.  The class parameter gives the type of reference given,
>>>>>and the handle parameter echoes the bad value given.
>>>>>        at
>>>>>com.cloud.hypervisor.xen.resource.CitrixResourceBase.handleVmStartFail
>>>>>ur
>>>>>e(
>>>>>CitrixResourceBase.java:930)
>>>>>2012-06-13 08:56:25,466 WARN  [xen.resource.CitrixResourceBase]
>>>>>(DirectAgent-45:null) Unable to clean up VBD due to
>>>>>You gave an invalid object reference.  The object may have recently
>>>>>been deleted.  The class parameter gives the type of reference given,
>>>>>and the handle parameter echoes the bad value given.
>>>>>        at
>>>>>com.cloud.hypervisor.xen.resource.CitrixResourceBase.handleVmStartFail
>>>>>ur
>>>>>e(
>>>>>CitrixResourceBase.java:930)
>>>>>2012-06-13 08:56:25,478 WARN  [xen.resource.CitrixResourceBase]
>>>>>(DirectAgent-45:null) Unable to clean up VBD due to
>>>>>You gave an invalid object reference.  The object may have recently
>>>>>been deleted.  The class parameter gives the type of reference given,
>>>>>and the handle parameter echoes the bad value given.
>>>>>        at
>>>>>com.cloud.hypervisor.xen.resource.CitrixResourceBase.handleVmStartFail
>>>>>ur
>>>>>e(
>>>>>CitrixResourceBase.java:930)
>>>>>2012-06-13 08:56:25,489 WARN  [xen.resource.CitrixResourceBase]
>>>>>(DirectAgent-45:null) Unable to cleanup VIF
>>>>>You gave an invalid object reference.  The object may have recently
>>>>>been deleted.  The class parameter gives the type of reference given,
>>>>>and the handle parameter echoes the bad value given.
>>>>>        at
>>>>>com.cloud.hypervisor.xen.resource.CitrixResourceBase.handleVmStartFail
>>>>>ur
>>>>>e(
>>>>>CitrixResourceBase.java:938)
>>>>>2012-06-13 08:56:25,515 INFO  [xen.resource.XenServer56Resource]
>>>>>(DirectAgent-45:null) Catch com.xensource.xenapi.Types$VifInUse:
>>>>>failed to destory VLAN eth2 on host
>>>>>b9f6241d-cbd6-49a8-916e-dff524569dd4 due to Network has active VIFs
>>>>>2012-06-13 08:56:25,517 DEBUG [agent.transport.Request]
>>>>>(DirectAgent-45:null) Seq 6-920389063: Processing:  { Ans: , MgmtId:
>>>>>229144658033003, via: 6, Ver: v1, Flags: 110,
>>>>>[{"StartAnswer":{"vm":{"id":415,"name":"i-2-415-VM","bootloader":"PyGr
>>>>>ub
>>>>>",
>>>>>"type":"User","cpus":1,"speed":500,"minRam":536870912,"maxRam":5368709
>>>>>12
>>>>>,"
>>>>>arch":"x86_64","os":"CentOS
>>>>>5.3
>>>>>(64-bit)","bootArgs":"","rebootOnCrash":false,"enableHA":false,"limitC
>>>>>pu
>>>>>Us
>>>>>e":false,"vncPassword":"7bad48a63e4b14e7","params":{},"disks":[{"id":4
>>>>>19
>>>>>,"
>>>>>name":"ROOT-415","mountPoint":"/iqn.2006-01.com.openfiler:tsn.2912cb92
>>>>>f8
>>>>>2d
>>>>>/0","path":"ff3b7226-fd0b-4d0b-8af4-393496d7ee24","size":21474836480,"
>>>>>ty
>>>>>pe
>>>>>":"ROOT","storagePoolType":"IscsiLUN","storagePoolUuid":"f7d6960c-84a6
>>>>>-3
>>>>>32
>>>>>f-9068-27ef0f216b31","deviceId":0},{"id":420,"name":"DATA-415","mountP
>>>>>oi
>>>>>nt
>>>>>":"/iqn.2006-01.com.openfiler:tsn.2912cb92f82d/0","path":"202feab0-b72
>>>>>4-
>>>>>4b
>>>>>70-b757-32f2b8dfddee","size":5368709120,"type":"DATADISK","storagePool
>>>>>Ty
>>>>>pe
>>>>>":"IscsiLUN","storagePoolUuid":"f7d6960c-84a6-332f-9068-27ef0f216b31",
>>>>>"d
>>>>>ev
>>>>>iceId":1},{"id":415,"name":"CentOS
>>>>>5.6(64-bit) no GUI
>>>>>(XenServer)","size":0,"type":"ISO","storagePoolType":"ISO","deviceId":
>>>>>3}
>>>>>],
>>>>>"nics":[{"deviceId":0,"networkRateMbps":200,"defaultNic":true,"ip":"10
>>>>>.1
>>>>>.1
>>>>>.99","netmask":"255.255.255.0","gateway":"10.1.1.1","mac":"02:00:2e:ae
>>>>>:0
>>>>>0:
>>>>>04","dns1":"204.13.152.2","broadcastType":"Vlan","type":"Guest","broad
>>>>>ca
>>>>>st
>>>>>Uri":"vlan://292","isolationUri":"vlan://292","isSecurityGroupEnabled"
>>>>>:f
>>>>>al
>>>>>se,"name":"Pool-wide
>>>>>network associated with
>>>>>eth2"},{"deviceId":1,"networkRateMbps":200,"defaultNic":false,"ip":"46
>>>>>.1
>>>>>36
>>>>>.134.86","netmask":"255.255.255.0","gateway":"46.136.134.1","mac":"06:
>>>>>4a
>>>>>:b
>>>>>4:00:08:3d","dns1":"204.13.152.2","broadcastType":"Vlan","type":"Guest
>>>>>",
>>>>>"b
>>>>>roadcastUri":"vlan://tagged1","isolationUri":"vlan://tagged1","isSecur
>>>>>it
>>>>>yG
>>>>>roupEnabled":false,"name":"Pool-wide
>>>>>network associated with eth2"}]},"result":false,"details":"Unable to
>>>>>start i-2-415-VM due to ","wait":0}}] }
>>>>>2012-06-13 08:56:25,517 WARN  [cloud.vm.VirtualMachineManagerImpl]
>>>>>(DirectAgent-45:null) Cleanup failed due to Unable to start i-2-415-VM
>>>>>due to
>>>>>2012-06-13 08:56:25,517 WARN  [cloud.vm.VirtualMachineManagerImpl]
>>>>>(Job-Executor-47:job-92) Cleanup failed due to Unable to start
>>>>>i-2-415-VM due to
>>>>>2012-06-13 08:56:25,590 INFO  [cloud.vm.VirtualMachineManagerImpl]
>>>>>(Job-Executor-47:job-92) Unable to start VM on Host[-6-Routing] due to
>>>>>Unable to start i-2-415-VM due to
>>>>>2012-06-13 08:56:26,159 DEBUG [cloud.capacity.CapacityManagerImpl]
>>>>>(Job-Executor-47:job-92) VM state transitted from :Starting to Stopped
>>>>>with event: OperationFailedvm's original host id: null new host id:
>>>>>null host id before state transition: 6
>>>>>2012-06-13 08:56:26,440 DEBUG [cloud.capacity.CapacityManagerImpl]
>>>>>(Job-Executor-47:job-92) VM state transitted from :Stopped to Error
>>>>>with event: OperationFailedToErrorvm's original host id: null new host
>>>>>id: null host id before state transition: null
>>>>>2012-06-13 08:56:27,209 INFO  [api.commands.DeployVMCmd]
>>>>>(Job-Executor-47:job-92)
>>>>>com.cloud.exception.InsufficientServerCapacityException: Unable to
>>>>>create a deployment for VM[User|i-2-415-VM]Scope=interface
>>>>>com.cloud.dc.DataCenter; id=1
>>>>>2012-06-13 08:56:27,210 WARN  [cloud.api.ApiDispatcher]
>>>>>(Job-Executor-47:job-92) class com.cloud.api.ServerApiException :
>>>>>Unable to create a deployment for VM[User|i-2-415-VM]
>>>>>2012-06-13 08:56:27,210 DEBUG [cloud.async.AsyncJobManagerImpl]
>>>>>(Job-Executor-47:job-92) Complete async job-92, jobStatus: 2,
>>>>>resultCode: 530, result:
>>>>>com.cloud.api.response.ExceptionResponse@1660d637
>>>>>2012-06-13 09:11:08,903 WARN  [cloud.network.NetworkManagerImpl]
>>>>>(Job-Executor-50:job-94) Can't delete the network, not all user vms
>>>>>are expunged. Vm VM[User|i-2-413-VM] is in Error state
>>>>>2012-06-13 09:11:08,993 WARN  [cloud.api.ApiDispatcher]
>>>>>(Job-Executor-50:job-94) class com.cloud.api.ServerApiException :
>>>>>Failed to delete network
>>>>>2012-06-13 09:11:08,993 DEBUG [cloud.async.AsyncJobManagerImpl]
>>>>>(Job-Executor-50:job-94) Complete async job-94, jobStatus: 2,
>>>>>resultCode: 530, result:
>>>>>com.cloud.api.response.ExceptionResponse@2102e538
>>>>>2012-06-13 09:11:09,144 WARN  [cloud.async.AsyncJobManagerImpl]
>>>>>(Job-Executor-50:job-94) Unable to unregister active job 94 from JMX
>>>>>monitoring
>>>>>2012-06-13 11:26:14,160 WARN  [cloud.network.NetworkManagerImpl]
>>>>>(Job-Executor-52:job-95) Can't delete the network, not all user vms
>>>>>are expunged. Vm VM[User|i-2-413-VM] is in Error state
>>>>>2012-06-13 11:26:14,243 WARN  [cloud.api.ApiDispatcher]
>>>>>(Job-Executor-52:job-95) class com.cloud.api.ServerApiException :
>>>>>Failed to delete network
>>>>>
>>>>>
>>>>>On Wed, Jun 13, 2012 at 10:46 PM, Alena Prokharchyk
>>>>><Al...@citrix.com> wrote:
>>>>>> On 6/13/12 1:38 PM, "Lu Heng" <h....@anytimechinese.com> wrote:
>>>>>>
>>>>>>>Hi
>>>>>>>
>>>>>>>And btw, I didn't see the maintainace botton for the 3 shared
>>>>>>>storage,
>>>>>>> I only see take snapshoot, snapshoot setting, that's it.
>>>>>>>
>>>>>>>On Wed, Jun 13, 2012 at 10:35 PM, Lu Heng <h....@anytimechinese.com>
>>>>>>>wrote:
>>>>>>>> Hi
>>>>>>>>
>>>>>>>> See my reply
>>>>>>>>
>>>>>>>> On Wed, Jun 13, 2012 at 10:30 PM, Alena Prokharchyk
>>>>>>>> <Al...@citrix.com> wrote:
>>>>>>>>> On 6/13/12 1:24 PM, "Lu Heng" <h....@anytimechinese.com> wrote:
>>>>>>>>>
>>>>>>>>>>Hi
>>>>>>>>>>
>>>>>>>>>>I find the reason, three vm are in state of "Expunging" for 3
>>>>>>>>>>hours
>>>>>>>>>>now, no process is being made, anyone has idea what should I do
>>>>>>>>>>about
>>>>>>>>>>these VMs?
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> What is expunge.interval in the setup? If the vms stuck in
>>>>>>>>>Expunging
>>>>>>>>>state
>>>>>>>>> with null Removed field, it indicates some problem happening
>>>>>>>>>during
>>>>>>>>>the
>>>>>>>>> expunge. I suspect it's related with the fact you removed the
>>>>>>>>>storage
>>>>>>>>>from
>>>>>>>>> the xen.
>>>>>>>>>
>>>>>>>> Vise verse, the situation is, the VM in the expunging state for 3
>>>>>>>> hours, and I find no way to delete them, so I try to delete the
>>>>>>>> storage.
>>>>>>
>>>>>>
>>>>>> So you deleted the VHDs per each volume, not the storage itself,
>>>>>>please
>>>>>> confirm. And we should never do it as there is no volume sync, so if
>>>>>>the
>>>>>> volume is removed on the backend, cloudStack has no idea it has
>>>>>>happened.
>>>>>>
>>>>>> The original issue is - vm got stuck in Expunging state. We have to
>>>>>>figure
>>>>>> out this one first. Please send the logs starting from the time the
>>>>>> Destroy command was executed for the Vm. And mention the vm name.
>>>>>>
>>>>>>
>>>>>> -Alena.
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>>>
>>>>>>>> What should I do to fix this now?
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>Another question is, I didn't see the delete botton with shared
>>>>>>>>>>storage, so I delete it from the xencenter, but after that I
>>>>>>>>>>still
>>>>>>>>>>see
>>>>>>>>>>the deleted storage exists in the UI, what suppose to be done?
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Delete storage pool consists of 2 steps:
>>>>>>>>>
>>>>>>>>> * enable maintenance for the shared storage
>>>>>>>>> * after the maintenance is completed, the Delete button will be
>>>>>>>>>presented
>>>>>>>>> to the admin; and the storage can be removed.
>>>>>>>>>
>>>>>>>>> You are not supposed to delete primary storage on the backend;
>>>>>>>>>cloudStack
>>>>>>>>> has no idea if you do things like that, and it expects primary
>>>>>>>>>storage
>>>>>>>>>to
>>>>>>>>> be functioning.
>>>>>>>>>
>>>>>>>>> So when vm expunge happens, we see that the storage is in UP
>>>>>>>>>state,
>>>>>>>>>and
>>>>>>>>> try to send the destroy volume command to the Xen host. But the
>>>>>>>>>command
>>>>>>>>> fails there because there is no such primary storage exist.
>>>>>>>>>
>>>>>>>>> Let me know if its your case.
>>>>>>>>>
>>>>>>>>> -Alena.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>On Wed, Jun 13, 2012 at 10:08 PM, Alena Prokharchyk
>>>>>>>>>><Al...@citrix.com> wrote:
>>>>>>>>>>> On 6/13/12 12:55 PM, "Lu Heng" <h....@anytimechinese.com> wrote:
>>>>>>>>>>>
>>>>>>>>>>>>Hi
>>>>>>>>>>>>
>>>>>>>>>>>>Update:
>>>>>>>>>>>>
>>>>>>>>>>>>The zone has been stoped. all VM has been destoryed , the route
>>>>>>>>>>>>vm
>>>>>>>>>>>>has
>>>>>>>>>>>>been stoped(no option for destory).
>>>>>>>>>>>>
>>>>>>>>>>>>Still get error fail to delete network.
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> Can you send management server log file for debugging.
>>>>>>>>>>>
>>>>>>>>>>> Thanks,
>>>>>>>>>>> Alena.
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>On Wed, Jun 13, 2012 at 7:23 PM, Alena Prokharchyk
>>>>>>>>>>>><Al...@citrix.com> wrote:
>>>>>>>>>>>>> On 6/13/12 10:18 AM, "Tamas Monos" <ta...@veber.co.uk>
>>>>>>>>>>>>>wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>>>Hi,
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>Also I think the problem is when you are trying to delete the
>>>>>>>>>>>>>>network
>>>>>>>>>>>>>>the
>>>>>>>>>>>>>>router is powered off.
>>>>>>>>>>>>>>Therefore when you click delete it wants to remove the
>>>>>>>>>>>>>>firewall
>>>>>>>>>>>>>>rules
>>>>>>>>>>>>>>for
>>>>>>>>>>>>>>that network but the router is not running so the command
>>>>>>>>>>>>>>fails
>>>>>>>>>>>>>>which
>>>>>>>>>>>>>>fails the delet operation.
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> Also not a problem. The rules can be removed when the router
>>>>>>>>>>>>>is
>>>>>>>>>>>>>stopped.
>>>>>>>>>>>>> In this case the rules are removed in DB only. When the
>>>>>>>>>>>>>router
>>>>>>>>>>>>>starts
>>>>>>>>>>>>>up,
>>>>>>>>>>>>> we start clean (cleanup all the rules) and re-apply all the
>>>>>>>>>>>>>rules
>>>>>>>>>>>>>from
>>>>>>>>>>>>>the
>>>>>>>>>>>>> DB. So the removed rules won't exist  on the router.
>>>>>>>>>>>>>
>>>>>>>>>>>>> -Alena.
>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>Regards
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>Tamas Monos                                               DDI
>>>>>>>>>>>>>>+44(0)2034687012
>>>>>>>>>>>>>>Chief Technical
>>>>>>>>>>>>>>Office
>>>>>>>>>>>>>>+44(0)2034687000
>>>>>>>>>>>>>>Veber: The Hosting Specialists               Fax
>>>>>>>>>>>>>>+44(0)871
>>>>>>>>>>>>>>522
>>>>>>>>>>>>>>7057
>>>>>>>>>>>>>>http://www.veber.co.uk
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>Follow us on Twitter: www.twitter.com/veberhost
>>>>>>>>>>>>>>Follow us on Facebook: www.facebook.com/veberhost
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>-----Original Message-----
>>>>>>>>>>>>>>From: Tamas Monos [mailto:tamasm@veber.co.uk]
>>>>>>>>>>>>>>Sent: 13 June 2012 18:15
>>>>>>>>>>>>>>To: cloudstack-dev@incubator.apache.org
>>>>>>>>>>>>>>Subject: RE: Can not delete network
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>Hi,
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>I don't think you can delete a network if a router-vm for
>>>>>>>>>>>>>>that
>>>>>>>>>>>>>>network
>>>>>>>>>>>>>>exists.
>>>>>>>>>>>>>>If you are trying to delete a network that network should not
>>>>>>>>>>>>>>have
>>>>>>>>>>>>>>any
>>>>>>>>>>>>>>VMs.
>>>>>>>>>>>>>>Delete the associated router from the management interface
>>>>>>>>>>>>>>then
>>>>>>>>>>>>>>delete
>>>>>>>>>>>>>>the network.
>>>>>>>>>>>>>>This method works for me on 3.0.2
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>Regards
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>Tamas Monos                                               DDI
>>>>>>>>>>>>>>+44(0)2034687012
>>>>>>>>>>>>>>Chief Technical
>>>>>>>>>>>>>>Office
>>>>>>>>>>>>>>+44(0)2034687000
>>>>>>>>>>>>>>Veber: The Hosting Specialists               Fax
>>>>>>>>>>>>>>+44(0)871
>>>>>>>>>>>>>>522
>>>>>>>>>>>>>>7057
>>>>>>>>>>>>>>http://www.veber.co.uk
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>Follow us on Twitter: www.twitter.com/veberhost Follow us on
>>>>>>>>>>>>>>Facebook:
>>>>>>>>>>>>>>www.facebook.com/veberhost
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>-----Original Message-----
>>>>>>>>>>>>>>From: Alena Prokharchyk [mailto:Alena.Prokharchyk@citrix.com]
>>>>>>>>>>>>>>Sent: 13 June 2012 18:12
>>>>>>>>>>>>>>To: cloudstack-dev@incubator.apache.org
>>>>>>>>>>>>>>Subject: Re: Can not delete network
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>Can you please check the management server log to see if
>>>>>>>>>>>>>>there
>>>>>>>>>>>>>>is
>>>>>>>>>>>>>>more
>>>>>>>>>>>>>>detailed exception in there.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>-Alena.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>On 6/13/12 9:50 AM, "Lu Heng" <h....@anytimechinese.com>
>>>>>>>>>>>>>>wrote:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>Hi
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>I have problem deleting guest network, everytime I tried it
>>>>>>>>>>>>>>>always
>>>>>>>>>>>>>>>shows "fail to delete network)
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>2012-06-13 11:26:14,243 WARN  [cloud.api.ApiDispatcher]
>>>>>>>>>>>>>>>(Job-Executor-52:job-95) class
>>>>>>>>>>>>>>>com.cloud.api.ServerApiException
>>>>>>>>>>>>>>>:
>>>>>>>>>>>>>>>Failed to delete network
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>Any idea how it happens?
>>>>>>>>>>>>>>>--
>>>>>>>>>>>>>>>--
>>>>>>>>>>>>>>>Kind regards.
>>>>>>>>>>>>>>>Lu
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>This transmission is intended solely for the addressee(s)
>>>>>>>>>>>>>>>shown
>>>>>>>>>>>>>>>above.
>>>>>>>>>>>>>>>It may contain information that is privileged, confidential
>>>>>>>>>>>>>>>or
>>>>>>>>>>>>>>>otherwise protected from disclosure. Any review,
>>>>>>>>>>>>>>>dissemination
>>>>>>>>>>>>>>>or
>>>>>>>>>>>>>>>use
>>>>>>>>>>>>>>>of this transmission or its contents by persons other than
>>>>>>>>>>>>>>>the
>>>>>>>>>>>>>>>intended
>>>>>>>>>>>>>>>addressee(s) is strictly prohibited. If you have received
>>>>>>>>>>>>>>>this
>>>>>>>>>>>>>>>transmission in error, please notify this office immediately
>>>>>>>>>>>>>>>and
>>>>>>>>>>>>>>>e-mail
>>>>>>>>>>>>>>>the original at the sender's address above by replying to
>>>>>>>>>>>>>>>this
>>>>>>>>>>>>>>>message
>>>>>>>>>>>>>>>and including the text of the transmission received.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>--
>>>>>>>>>>>>--
>>>>>>>>>>>>Kind regards.
>>>>>>>>>>>>Lu
>>>>>>>>>>>>
>>>>>>>>>>>>This transmission is intended solely for the addressee(s) shown
>>>>>>>>>>>>above.
>>>>>>>>>>>>It may contain information that is privileged, confidential or
>>>>>>>>>>>>otherwise protected from disclosure. Any review, dissemination
>>>>>>>>>>>>or
>>>>>>>>>>>>use
>>>>>>>>>>>>of this transmission or its contents by persons other than the
>>>>>>>>>>>>intended addressee(s) is strictly prohibited. If you have
>>>>>>>>>>>>received
>>>>>>>>>>>>this transmission in error, please notify this office
>>>>>>>>>>>>immediately
>>>>>>>>>>>>and
>>>>>>>>>>>>e-mail the original at the sender's address above by replying
>>>>>>>>>>>>to
>>>>>>>>>>>>this
>>>>>>>>>>>>message and including the text of the transmission received.
>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>--
>>>>>>>>>>--
>>>>>>>>>>Kind regards.
>>>>>>>>>>Lu
>>>>>>>>>>
>>>>>>>>>>This transmission is intended solely for the addressee(s) shown
>>>>>>>>>>above.
>>>>>>>>>>It may contain information that is privileged, confidential or
>>>>>>>>>>otherwise protected from disclosure. Any review, dissemination or
>>>>>>>>>>use
>>>>>>>>>>of this transmission or its contents by persons other than the
>>>>>>>>>>intended addressee(s) is strictly prohibited. If you have
>>>>>>>>>>received
>>>>>>>>>>this transmission in error, please notify this office immediately
>>>>>>>>>>and
>>>>>>>>>>e-mail the original at the sender's address above by replying to
>>>>>>>>>>this
>>>>>>>>>>message and including the text of the transmission received.
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> --
>>>>>>>> Kind regards.
>>>>>>>> Lu
>>>>>>>>
>>>>>>>> This transmission is intended solely for the addressee(s) shown
>>>>>>>>above.
>>>>>>>> It may contain information that is privileged, confidential or
>>>>>>>> otherwise protected from disclosure. Any review, dissemination or
>>>>>>>>use
>>>>>>>> of this transmission or its contents by persons other than the
>>>>>>>> intended addressee(s) is strictly prohibited. If you have received
>>>>>>>> this transmission in error, please notify this office immediately
>>>>>>>>and
>>>>>>>> e-mail the original at the sender's address above by replying to
>>>>>>>>this
>>>>>>>> message and including the text of the transmission received.
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>--
>>>>>>>--
>>>>>>>Kind regards.
>>>>>>>Lu
>>>>>>>
>>>>>>>This transmission is intended solely for the addressee(s) shown
>>>>>>>above.
>>>>>>>It may contain information that is privileged, confidential or
>>>>>>>otherwise protected from disclosure. Any review, dissemination or
>>>>>>>use
>>>>>>>of this transmission or its contents by persons other than the
>>>>>>>intended addressee(s) is strictly prohibited. If you have received
>>>>>>>this transmission in error, please notify this office immediately
>>>>>>>and
>>>>>>>e-mail the original at the sender's address above by replying to
>>>>>>>this
>>>>>>>message and including the text of the transmission received.
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>>--
>>>>>--
>>>>>Kind regards.
>>>>>Lu
>>>>>
>>>>>This transmission is intended solely for the addressee(s) shown above.
>>>>>It may contain information that is privileged, confidential or
>>>>>otherwise protected from disclosure. Any review, dissemination or use
>>>>>of this transmission or its contents by persons other than the
>>>>>intended addressee(s) is strictly prohibited. If you have received
>>>>>this transmission in error, please notify this office immediately and
>>>>>e-mail the original at the sender's address above by replying to this
>>>>>message and including the text of the transmission received.
>>>>>
>>>>
>>>>
>>>
>>>
>>>
>>>--
>>>--
>>>Kind regards.
>>>Lu
>>>
>>>This transmission is intended solely for the addressee(s) shown above.
>>>It may contain information that is privileged, confidential or
>>>otherwise protected from disclosure. Any review, dissemination or use
>>>of this transmission or its contents by persons other than the
>>>intended addressee(s) is strictly prohibited. If you have received
>>>this transmission in error, please notify this office immediately and
>>>e-mail the original at the sender's address above by replying to this
>>>message and including the text of the transmission received.
>>>
>>
>>
>
>
>
>--
>--
>Kind regards.
>Lu
>
>This transmission is intended solely for the addressee(s) shown above.
>It may contain information that is privileged, confidential or
>otherwise protected from disclosure. Any review, dissemination or use
>of this transmission or its contents by persons other than the
>intended addressee(s) is strictly prohibited. If you have received
>this transmission in error, please notify this office immediately and
>e-mail the original at the sender's address above by replying to this
>message and including the text of the transmission received.
>



Re: Can not delete network

Posted by Lu Heng <h....@anytimechinese.com>.
Hi

Thanks very much for such detailed reply.

first one quick question, what vlan it stands for(I know it is virtual
lan), but does it need to be config in the physical router for each
network, or it can just create a "software one" with direct untagged
network by cloudstack?

So you mean I motify the database of the management server, find
remove=id() value?

Last question will be, if the question's answer is no, is that means I
have to go for basic network setup, I have to delete the entire zone
and re-create it?

On Wed, Jun 13, 2012 at 11:11 PM, Alena Prokharchyk
<Al...@citrix.com> wrote:
> On 6/13/12 2:03 PM, "Lu Heng" <h....@anytimechinese.com> wrote:
>
>>Hi
>>
>>As I said, I have direct attached network to the public network, and I
>>have no vlan, and cloudstack force to enter a vlan ID, so I just
>>entered "tagged1“.
>
>
> In Advance zone Vlan is required for every direct network; and vlan has to
> have numeric value. We support untagged network only in Basic zone. The
> fact UI accepted "tagged1" value as an input - is a UI/API bug, it should
> have never reached the backend. Please file a bug against cloudStack
> UI/API.
>
>
>
>>
>>So the first question come, how can I setup direct attached network in
>>advance networking, is that even possible or it is simply impossible?
>
>
> Its possible only with the numeric tag.
>
>
>>
>>On Wed, Jun 13, 2012 at 11:01 PM, Alena Prokharchyk
>><Al...@citrix.com> wrote:
>>> I see 2 different problems in this log fragment:
>>>
>>> 1)job-92 -  i-2-415-VM failed to start because the network vlan was
>>> misconfigured. The number format exception most likely indicates the
>>>vlan
>>> for the network was set incorrectly. Need entire log to confirm.
>>>
>>> 2) job-94 - failed to delete the network as i-2-413-VM was in Error
>>>state
>>> - it failed to start. Notice its different vm from the vm on step 1). At
>>> the moment deleteNetwork was called, the vm wasnt' expunged yet. Did you
>>> wait for the vm i-2-413 to be picked up by Expunge thread and moved to
>>> Expunging state? If yes, was it expunged successfully? If no, you have
>>>to
>>> find out the references to the vm in the log - search by "to expunge"
>>> pattern in the management server, it will tell you when vm was processed
>>> by the expunge thread.
>>>
>>>
>>> -Alena.
>>>
>>>
>>> On 6/13/12 1:51 PM, "Lu Heng" <h....@anytimechinese.com> wrote:
>>>
>>>>Hi
>>>>
>>>>The story start with I try to setup direct attached network to the
>>>>guest network, in which I create a VM with the shared network I setup,
>>>>but the VM does not start successfully, so I tried to delete the guest
>>>>network I have created, in which I failed because of the vm was not
>>>>destroy, then I try to destroy the VM, but the VM stuck in the
>>>>explunging state:
>>>>
>>>>The network setup was not resolved, I asked in this mailling list what
>>>>should I do if I have public network in the access point with advanced
>>>>network setup, they said I have to create a shared network offering
>>>>with Vlan, in which the public IP has no vlan setup, so I just typed
>>>>tagged in the vlan section,seems not working.
>>>>
>>>>Below is the full story log start with I added a direct attached
>>>>network:
>>>>
>>>>2012-06-13 08:56:25,401 WARN  [xen.resource.CitrixResourceBase]
>>>>(DirectAgent-45:null) Catch Exception: class
>>>>java.lang.NumberFormatException due to
>>>>java.lang.NumberFormatException: For input string: "tagged1"
>>>>java.lang.NumberFormatException: For input string: "tagged1"
>>>>        at
>>>>java.lang.NumberFormatException.forInputString(NumberFormatException.jav
>>>>a:
>>>>65)
>>>>2012-06-13 08:56:25,402 WARN  [xen.resource.CitrixResourceBase]
>>>>(DirectAgent-45:null) Unable to start i-2-415-VM due to
>>>>java.lang.NumberFormatException: For input string: "tagged1"
>>>>        at
>>>>java.lang.NumberFormatException.forInputString(NumberFormatException.jav
>>>>a:
>>>>65)
>>>>2012-06-13 08:56:25,455 WARN  [xen.resource.CitrixResourceBase]
>>>>(DirectAgent-45:null) Unable to clean up VBD due to
>>>>You gave an invalid object reference.  The object may have recently
>>>>been deleted.  The class parameter gives the type of reference given,
>>>>and the handle parameter echoes the bad value given.
>>>>        at
>>>>com.cloud.hypervisor.xen.resource.CitrixResourceBase.handleVmStartFailur
>>>>e(
>>>>CitrixResourceBase.java:930)
>>>>2012-06-13 08:56:25,466 WARN  [xen.resource.CitrixResourceBase]
>>>>(DirectAgent-45:null) Unable to clean up VBD due to
>>>>You gave an invalid object reference.  The object may have recently
>>>>been deleted.  The class parameter gives the type of reference given,
>>>>and the handle parameter echoes the bad value given.
>>>>        at
>>>>com.cloud.hypervisor.xen.resource.CitrixResourceBase.handleVmStartFailur
>>>>e(
>>>>CitrixResourceBase.java:930)
>>>>2012-06-13 08:56:25,478 WARN  [xen.resource.CitrixResourceBase]
>>>>(DirectAgent-45:null) Unable to clean up VBD due to
>>>>You gave an invalid object reference.  The object may have recently
>>>>been deleted.  The class parameter gives the type of reference given,
>>>>and the handle parameter echoes the bad value given.
>>>>        at
>>>>com.cloud.hypervisor.xen.resource.CitrixResourceBase.handleVmStartFailur
>>>>e(
>>>>CitrixResourceBase.java:930)
>>>>2012-06-13 08:56:25,489 WARN  [xen.resource.CitrixResourceBase]
>>>>(DirectAgent-45:null) Unable to cleanup VIF
>>>>You gave an invalid object reference.  The object may have recently
>>>>been deleted.  The class parameter gives the type of reference given,
>>>>and the handle parameter echoes the bad value given.
>>>>        at
>>>>com.cloud.hypervisor.xen.resource.CitrixResourceBase.handleVmStartFailur
>>>>e(
>>>>CitrixResourceBase.java:938)
>>>>2012-06-13 08:56:25,515 INFO  [xen.resource.XenServer56Resource]
>>>>(DirectAgent-45:null) Catch com.xensource.xenapi.Types$VifInUse:
>>>>failed to destory VLAN eth2 on host
>>>>b9f6241d-cbd6-49a8-916e-dff524569dd4 due to Network has active VIFs
>>>>2012-06-13 08:56:25,517 DEBUG [agent.transport.Request]
>>>>(DirectAgent-45:null) Seq 6-920389063: Processing:  { Ans: , MgmtId:
>>>>229144658033003, via: 6, Ver: v1, Flags: 110,
>>>>[{"StartAnswer":{"vm":{"id":415,"name":"i-2-415-VM","bootloader":"PyGrub
>>>>",
>>>>"type":"User","cpus":1,"speed":500,"minRam":536870912,"maxRam":536870912
>>>>,"
>>>>arch":"x86_64","os":"CentOS
>>>>5.3
>>>>(64-bit)","bootArgs":"","rebootOnCrash":false,"enableHA":false,"limitCpu
>>>>Us
>>>>e":false,"vncPassword":"7bad48a63e4b14e7","params":{},"disks":[{"id":419
>>>>,"
>>>>name":"ROOT-415","mountPoint":"/iqn.2006-01.com.openfiler:tsn.2912cb92f8
>>>>2d
>>>>/0","path":"ff3b7226-fd0b-4d0b-8af4-393496d7ee24","size":21474836480,"ty
>>>>pe
>>>>":"ROOT","storagePoolType":"IscsiLUN","storagePoolUuid":"f7d6960c-84a6-3
>>>>32
>>>>f-9068-27ef0f216b31","deviceId":0},{"id":420,"name":"DATA-415","mountPoi
>>>>nt
>>>>":"/iqn.2006-01.com.openfiler:tsn.2912cb92f82d/0","path":"202feab0-b724-
>>>>4b
>>>>70-b757-32f2b8dfddee","size":5368709120,"type":"DATADISK","storagePoolTy
>>>>pe
>>>>":"IscsiLUN","storagePoolUuid":"f7d6960c-84a6-332f-9068-27ef0f216b31","d
>>>>ev
>>>>iceId":1},{"id":415,"name":"CentOS
>>>>5.6(64-bit) no GUI
>>>>(XenServer)","size":0,"type":"ISO","storagePoolType":"ISO","deviceId":3}
>>>>],
>>>>"nics":[{"deviceId":0,"networkRateMbps":200,"defaultNic":true,"ip":"10.1
>>>>.1
>>>>.99","netmask":"255.255.255.0","gateway":"10.1.1.1","mac":"02:00:2e:ae:0
>>>>0:
>>>>04","dns1":"204.13.152.2","broadcastType":"Vlan","type":"Guest","broadca
>>>>st
>>>>Uri":"vlan://292","isolationUri":"vlan://292","isSecurityGroupEnabled":f
>>>>al
>>>>se,"name":"Pool-wide
>>>>network associated with
>>>>eth2"},{"deviceId":1,"networkRateMbps":200,"defaultNic":false,"ip":"46.1
>>>>36
>>>>.134.86","netmask":"255.255.255.0","gateway":"46.136.134.1","mac":"06:4a
>>>>:b
>>>>4:00:08:3d","dns1":"204.13.152.2","broadcastType":"Vlan","type":"Guest",
>>>>"b
>>>>roadcastUri":"vlan://tagged1","isolationUri":"vlan://tagged1","isSecurit
>>>>yG
>>>>roupEnabled":false,"name":"Pool-wide
>>>>network associated with eth2"}]},"result":false,"details":"Unable to
>>>>start i-2-415-VM due to ","wait":0}}] }
>>>>2012-06-13 08:56:25,517 WARN  [cloud.vm.VirtualMachineManagerImpl]
>>>>(DirectAgent-45:null) Cleanup failed due to Unable to start i-2-415-VM
>>>>due to
>>>>2012-06-13 08:56:25,517 WARN  [cloud.vm.VirtualMachineManagerImpl]
>>>>(Job-Executor-47:job-92) Cleanup failed due to Unable to start
>>>>i-2-415-VM due to
>>>>2012-06-13 08:56:25,590 INFO  [cloud.vm.VirtualMachineManagerImpl]
>>>>(Job-Executor-47:job-92) Unable to start VM on Host[-6-Routing] due to
>>>>Unable to start i-2-415-VM due to
>>>>2012-06-13 08:56:26,159 DEBUG [cloud.capacity.CapacityManagerImpl]
>>>>(Job-Executor-47:job-92) VM state transitted from :Starting to Stopped
>>>>with event: OperationFailedvm's original host id: null new host id:
>>>>null host id before state transition: 6
>>>>2012-06-13 08:56:26,440 DEBUG [cloud.capacity.CapacityManagerImpl]
>>>>(Job-Executor-47:job-92) VM state transitted from :Stopped to Error
>>>>with event: OperationFailedToErrorvm's original host id: null new host
>>>>id: null host id before state transition: null
>>>>2012-06-13 08:56:27,209 INFO  [api.commands.DeployVMCmd]
>>>>(Job-Executor-47:job-92)
>>>>com.cloud.exception.InsufficientServerCapacityException: Unable to
>>>>create a deployment for VM[User|i-2-415-VM]Scope=interface
>>>>com.cloud.dc.DataCenter; id=1
>>>>2012-06-13 08:56:27,210 WARN  [cloud.api.ApiDispatcher]
>>>>(Job-Executor-47:job-92) class com.cloud.api.ServerApiException :
>>>>Unable to create a deployment for VM[User|i-2-415-VM]
>>>>2012-06-13 08:56:27,210 DEBUG [cloud.async.AsyncJobManagerImpl]
>>>>(Job-Executor-47:job-92) Complete async job-92, jobStatus: 2,
>>>>resultCode: 530, result:
>>>>com.cloud.api.response.ExceptionResponse@1660d637
>>>>2012-06-13 09:11:08,903 WARN  [cloud.network.NetworkManagerImpl]
>>>>(Job-Executor-50:job-94) Can't delete the network, not all user vms
>>>>are expunged. Vm VM[User|i-2-413-VM] is in Error state
>>>>2012-06-13 09:11:08,993 WARN  [cloud.api.ApiDispatcher]
>>>>(Job-Executor-50:job-94) class com.cloud.api.ServerApiException :
>>>>Failed to delete network
>>>>2012-06-13 09:11:08,993 DEBUG [cloud.async.AsyncJobManagerImpl]
>>>>(Job-Executor-50:job-94) Complete async job-94, jobStatus: 2,
>>>>resultCode: 530, result:
>>>>com.cloud.api.response.ExceptionResponse@2102e538
>>>>2012-06-13 09:11:09,144 WARN  [cloud.async.AsyncJobManagerImpl]
>>>>(Job-Executor-50:job-94) Unable to unregister active job 94 from JMX
>>>>monitoring
>>>>2012-06-13 11:26:14,160 WARN  [cloud.network.NetworkManagerImpl]
>>>>(Job-Executor-52:job-95) Can't delete the network, not all user vms
>>>>are expunged. Vm VM[User|i-2-413-VM] is in Error state
>>>>2012-06-13 11:26:14,243 WARN  [cloud.api.ApiDispatcher]
>>>>(Job-Executor-52:job-95) class com.cloud.api.ServerApiException :
>>>>Failed to delete network
>>>>
>>>>
>>>>On Wed, Jun 13, 2012 at 10:46 PM, Alena Prokharchyk
>>>><Al...@citrix.com> wrote:
>>>>> On 6/13/12 1:38 PM, "Lu Heng" <h....@anytimechinese.com> wrote:
>>>>>
>>>>>>Hi
>>>>>>
>>>>>>And btw, I didn't see the maintainace botton for the 3 shared storage,
>>>>>> I only see take snapshoot, snapshoot setting, that's it.
>>>>>>
>>>>>>On Wed, Jun 13, 2012 at 10:35 PM, Lu Heng <h....@anytimechinese.com>
>>>>>>wrote:
>>>>>>> Hi
>>>>>>>
>>>>>>> See my reply
>>>>>>>
>>>>>>> On Wed, Jun 13, 2012 at 10:30 PM, Alena Prokharchyk
>>>>>>> <Al...@citrix.com> wrote:
>>>>>>>> On 6/13/12 1:24 PM, "Lu Heng" <h....@anytimechinese.com> wrote:
>>>>>>>>
>>>>>>>>>Hi
>>>>>>>>>
>>>>>>>>>I find the reason, three vm are in state of "Expunging" for 3 hours
>>>>>>>>>now, no process is being made, anyone has idea what should I do
>>>>>>>>>about
>>>>>>>>>these VMs?
>>>>>>>>
>>>>>>>>
>>>>>>>> What is expunge.interval in the setup? If the vms stuck in
>>>>>>>>Expunging
>>>>>>>>state
>>>>>>>> with null Removed field, it indicates some problem happening during
>>>>>>>>the
>>>>>>>> expunge. I suspect it's related with the fact you removed the
>>>>>>>>storage
>>>>>>>>from
>>>>>>>> the xen.
>>>>>>>>
>>>>>>> Vise verse, the situation is, the VM in the expunging state for 3
>>>>>>> hours, and I find no way to delete them, so I try to delete the
>>>>>>> storage.
>>>>>
>>>>>
>>>>> So you deleted the VHDs per each volume, not the storage itself,
>>>>>please
>>>>> confirm. And we should never do it as there is no volume sync, so if
>>>>>the
>>>>> volume is removed on the backend, cloudStack has no idea it has
>>>>>happened.
>>>>>
>>>>> The original issue is - vm got stuck in Expunging state. We have to
>>>>>figure
>>>>> out this one first. Please send the logs starting from the time the
>>>>> Destroy command was executed for the Vm. And mention the vm name.
>>>>>
>>>>>
>>>>> -Alena.
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>>>
>>>>>>> What should I do to fix this now?
>>>>>>>>
>>>>>>>>
>>>>>>>>>
>>>>>>>>>Another question is, I didn't see the delete botton with shared
>>>>>>>>>storage, so I delete it from the xencenter, but after that I still
>>>>>>>>>see
>>>>>>>>>the deleted storage exists in the UI, what suppose to be done?
>>>>>>>>
>>>>>>>>
>>>>>>>> Delete storage pool consists of 2 steps:
>>>>>>>>
>>>>>>>> * enable maintenance for the shared storage
>>>>>>>> * after the maintenance is completed, the Delete button will be
>>>>>>>>presented
>>>>>>>> to the admin; and the storage can be removed.
>>>>>>>>
>>>>>>>> You are not supposed to delete primary storage on the backend;
>>>>>>>>cloudStack
>>>>>>>> has no idea if you do things like that, and it expects primary
>>>>>>>>storage
>>>>>>>>to
>>>>>>>> be functioning.
>>>>>>>>
>>>>>>>> So when vm expunge happens, we see that the storage is in UP state,
>>>>>>>>and
>>>>>>>> try to send the destroy volume command to the Xen host. But the
>>>>>>>>command
>>>>>>>> fails there because there is no such primary storage exist.
>>>>>>>>
>>>>>>>> Let me know if its your case.
>>>>>>>>
>>>>>>>> -Alena.
>>>>>>>>
>>>>>>>>
>>>>>>>>>
>>>>>>>>>On Wed, Jun 13, 2012 at 10:08 PM, Alena Prokharchyk
>>>>>>>>><Al...@citrix.com> wrote:
>>>>>>>>>> On 6/13/12 12:55 PM, "Lu Heng" <h....@anytimechinese.com> wrote:
>>>>>>>>>>
>>>>>>>>>>>Hi
>>>>>>>>>>>
>>>>>>>>>>>Update:
>>>>>>>>>>>
>>>>>>>>>>>The zone has been stoped. all VM has been destoryed , the route
>>>>>>>>>>>vm
>>>>>>>>>>>has
>>>>>>>>>>>been stoped(no option for destory).
>>>>>>>>>>>
>>>>>>>>>>>Still get error fail to delete network.
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Can you send management server log file for debugging.
>>>>>>>>>>
>>>>>>>>>> Thanks,
>>>>>>>>>> Alena.
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>On Wed, Jun 13, 2012 at 7:23 PM, Alena Prokharchyk
>>>>>>>>>>><Al...@citrix.com> wrote:
>>>>>>>>>>>> On 6/13/12 10:18 AM, "Tamas Monos" <ta...@veber.co.uk> wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>>Hi,
>>>>>>>>>>>>>
>>>>>>>>>>>>>Also I think the problem is when you are trying to delete the
>>>>>>>>>>>>>network
>>>>>>>>>>>>>the
>>>>>>>>>>>>>router is powered off.
>>>>>>>>>>>>>Therefore when you click delete it wants to remove the firewall
>>>>>>>>>>>>>rules
>>>>>>>>>>>>>for
>>>>>>>>>>>>>that network but the router is not running so the command fails
>>>>>>>>>>>>>which
>>>>>>>>>>>>>fails the delet operation.
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> Also not a problem. The rules can be removed when the router is
>>>>>>>>>>>>stopped.
>>>>>>>>>>>> In this case the rules are removed in DB only. When the router
>>>>>>>>>>>>starts
>>>>>>>>>>>>up,
>>>>>>>>>>>> we start clean (cleanup all the rules) and re-apply all the
>>>>>>>>>>>>rules
>>>>>>>>>>>>from
>>>>>>>>>>>>the
>>>>>>>>>>>> DB. So the removed rules won't exist  on the router.
>>>>>>>>>>>>
>>>>>>>>>>>> -Alena.
>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>Regards
>>>>>>>>>>>>>
>>>>>>>>>>>>>Tamas Monos                                               DDI
>>>>>>>>>>>>>+44(0)2034687012
>>>>>>>>>>>>>Chief Technical
>>>>>>>>>>>>>Office
>>>>>>>>>>>>>+44(0)2034687000
>>>>>>>>>>>>>Veber: The Hosting Specialists               Fax
>>>>>>>>>>>>>+44(0)871
>>>>>>>>>>>>>522
>>>>>>>>>>>>>7057
>>>>>>>>>>>>>http://www.veber.co.uk
>>>>>>>>>>>>>
>>>>>>>>>>>>>Follow us on Twitter: www.twitter.com/veberhost
>>>>>>>>>>>>>Follow us on Facebook: www.facebook.com/veberhost
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>-----Original Message-----
>>>>>>>>>>>>>From: Tamas Monos [mailto:tamasm@veber.co.uk]
>>>>>>>>>>>>>Sent: 13 June 2012 18:15
>>>>>>>>>>>>>To: cloudstack-dev@incubator.apache.org
>>>>>>>>>>>>>Subject: RE: Can not delete network
>>>>>>>>>>>>>
>>>>>>>>>>>>>Hi,
>>>>>>>>>>>>>
>>>>>>>>>>>>>I don't think you can delete a network if a router-vm for that
>>>>>>>>>>>>>network
>>>>>>>>>>>>>exists.
>>>>>>>>>>>>>If you are trying to delete a network that network should not
>>>>>>>>>>>>>have
>>>>>>>>>>>>>any
>>>>>>>>>>>>>VMs.
>>>>>>>>>>>>>Delete the associated router from the management interface then
>>>>>>>>>>>>>delete
>>>>>>>>>>>>>the network.
>>>>>>>>>>>>>This method works for me on 3.0.2
>>>>>>>>>>>>>
>>>>>>>>>>>>>Regards
>>>>>>>>>>>>>
>>>>>>>>>>>>>Tamas Monos                                               DDI
>>>>>>>>>>>>>+44(0)2034687012
>>>>>>>>>>>>>Chief Technical
>>>>>>>>>>>>>Office
>>>>>>>>>>>>>+44(0)2034687000
>>>>>>>>>>>>>Veber: The Hosting Specialists               Fax
>>>>>>>>>>>>>+44(0)871
>>>>>>>>>>>>>522
>>>>>>>>>>>>>7057
>>>>>>>>>>>>>http://www.veber.co.uk
>>>>>>>>>>>>>
>>>>>>>>>>>>>Follow us on Twitter: www.twitter.com/veberhost Follow us on
>>>>>>>>>>>>>Facebook:
>>>>>>>>>>>>>www.facebook.com/veberhost
>>>>>>>>>>>>>
>>>>>>>>>>>>>-----Original Message-----
>>>>>>>>>>>>>From: Alena Prokharchyk [mailto:Alena.Prokharchyk@citrix.com]
>>>>>>>>>>>>>Sent: 13 June 2012 18:12
>>>>>>>>>>>>>To: cloudstack-dev@incubator.apache.org
>>>>>>>>>>>>>Subject: Re: Can not delete network
>>>>>>>>>>>>>
>>>>>>>>>>>>>Can you please check the management server log to see if there
>>>>>>>>>>>>>is
>>>>>>>>>>>>>more
>>>>>>>>>>>>>detailed exception in there.
>>>>>>>>>>>>>
>>>>>>>>>>>>>-Alena.
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>On 6/13/12 9:50 AM, "Lu Heng" <h....@anytimechinese.com> wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>>>Hi
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>I have problem deleting guest network, everytime I tried it
>>>>>>>>>>>>>>always
>>>>>>>>>>>>>>shows "fail to delete network)
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>2012-06-13 11:26:14,243 WARN  [cloud.api.ApiDispatcher]
>>>>>>>>>>>>>>(Job-Executor-52:job-95) class
>>>>>>>>>>>>>>com.cloud.api.ServerApiException
>>>>>>>>>>>>>>:
>>>>>>>>>>>>>>Failed to delete network
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>Any idea how it happens?
>>>>>>>>>>>>>>--
>>>>>>>>>>>>>>--
>>>>>>>>>>>>>>Kind regards.
>>>>>>>>>>>>>>Lu
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>This transmission is intended solely for the addressee(s)
>>>>>>>>>>>>>>shown
>>>>>>>>>>>>>>above.
>>>>>>>>>>>>>>It may contain information that is privileged, confidential or
>>>>>>>>>>>>>>otherwise protected from disclosure. Any review, dissemination
>>>>>>>>>>>>>>or
>>>>>>>>>>>>>>use
>>>>>>>>>>>>>>of this transmission or its contents by persons other than the
>>>>>>>>>>>>>>intended
>>>>>>>>>>>>>>addressee(s) is strictly prohibited. If you have received this
>>>>>>>>>>>>>>transmission in error, please notify this office immediately
>>>>>>>>>>>>>>and
>>>>>>>>>>>>>>e-mail
>>>>>>>>>>>>>>the original at the sender's address above by replying to this
>>>>>>>>>>>>>>message
>>>>>>>>>>>>>>and including the text of the transmission received.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>--
>>>>>>>>>>>--
>>>>>>>>>>>Kind regards.
>>>>>>>>>>>Lu
>>>>>>>>>>>
>>>>>>>>>>>This transmission is intended solely for the addressee(s) shown
>>>>>>>>>>>above.
>>>>>>>>>>>It may contain information that is privileged, confidential or
>>>>>>>>>>>otherwise protected from disclosure. Any review, dissemination or
>>>>>>>>>>>use
>>>>>>>>>>>of this transmission or its contents by persons other than the
>>>>>>>>>>>intended addressee(s) is strictly prohibited. If you have
>>>>>>>>>>>received
>>>>>>>>>>>this transmission in error, please notify this office immediately
>>>>>>>>>>>and
>>>>>>>>>>>e-mail the original at the sender's address above by replying to
>>>>>>>>>>>this
>>>>>>>>>>>message and including the text of the transmission received.
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>--
>>>>>>>>>--
>>>>>>>>>Kind regards.
>>>>>>>>>Lu
>>>>>>>>>
>>>>>>>>>This transmission is intended solely for the addressee(s) shown
>>>>>>>>>above.
>>>>>>>>>It may contain information that is privileged, confidential or
>>>>>>>>>otherwise protected from disclosure. Any review, dissemination or
>>>>>>>>>use
>>>>>>>>>of this transmission or its contents by persons other than the
>>>>>>>>>intended addressee(s) is strictly prohibited. If you have received
>>>>>>>>>this transmission in error, please notify this office immediately
>>>>>>>>>and
>>>>>>>>>e-mail the original at the sender's address above by replying to
>>>>>>>>>this
>>>>>>>>>message and including the text of the transmission received.
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> --
>>>>>>> Kind regards.
>>>>>>> Lu
>>>>>>>
>>>>>>> This transmission is intended solely for the addressee(s) shown
>>>>>>>above.
>>>>>>> It may contain information that is privileged, confidential or
>>>>>>> otherwise protected from disclosure. Any review, dissemination or
>>>>>>>use
>>>>>>> of this transmission or its contents by persons other than the
>>>>>>> intended addressee(s) is strictly prohibited. If you have received
>>>>>>> this transmission in error, please notify this office immediately
>>>>>>>and
>>>>>>> e-mail the original at the sender's address above by replying to
>>>>>>>this
>>>>>>> message and including the text of the transmission received.
>>>>>>
>>>>>>
>>>>>>
>>>>>>--
>>>>>>--
>>>>>>Kind regards.
>>>>>>Lu
>>>>>>
>>>>>>This transmission is intended solely for the addressee(s) shown above.
>>>>>>It may contain information that is privileged, confidential or
>>>>>>otherwise protected from disclosure. Any review, dissemination or use
>>>>>>of this transmission or its contents by persons other than the
>>>>>>intended addressee(s) is strictly prohibited. If you have received
>>>>>>this transmission in error, please notify this office immediately and
>>>>>>e-mail the original at the sender's address above by replying to this
>>>>>>message and including the text of the transmission received.
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>>--
>>>>--
>>>>Kind regards.
>>>>Lu
>>>>
>>>>This transmission is intended solely for the addressee(s) shown above.
>>>>It may contain information that is privileged, confidential or
>>>>otherwise protected from disclosure. Any review, dissemination or use
>>>>of this transmission or its contents by persons other than the
>>>>intended addressee(s) is strictly prohibited. If you have received
>>>>this transmission in error, please notify this office immediately and
>>>>e-mail the original at the sender's address above by replying to this
>>>>message and including the text of the transmission received.
>>>>
>>>
>>>
>>
>>
>>
>>--
>>--
>>Kind regards.
>>Lu
>>
>>This transmission is intended solely for the addressee(s) shown above.
>>It may contain information that is privileged, confidential or
>>otherwise protected from disclosure. Any review, dissemination or use
>>of this transmission or its contents by persons other than the
>>intended addressee(s) is strictly prohibited. If you have received
>>this transmission in error, please notify this office immediately and
>>e-mail the original at the sender's address above by replying to this
>>message and including the text of the transmission received.
>>
>
>



-- 
--
Kind regards.
Lu

This transmission is intended solely for the addressee(s) shown above.
It may contain information that is privileged, confidential or
otherwise protected from disclosure. Any review, dissemination or use
of this transmission or its contents by persons other than the
intended addressee(s) is strictly prohibited. If you have received
this transmission in error, please notify this office immediately and
e-mail the original at the sender's address above by replying to this
message and including the text of the transmission received.

Re: Can not delete network

Posted by Alena Prokharchyk <Al...@citrix.com>.
On 6/13/12 2:03 PM, "Lu Heng" <h....@anytimechinese.com> wrote:

>Hi
>
>As I said, I have direct attached network to the public network, and I
>have no vlan, and cloudstack force to enter a vlan ID, so I just
>entered "tagged1“.


In Advance zone Vlan is required for every direct network; and vlan has to
have numeric value. We support untagged network only in Basic zone. The
fact UI accepted "tagged1" value as an input - is a UI/API bug, it should
have never reached the backend. Please file a bug against cloudStack
UI/API.



>
>So the first question come, how can I setup direct attached network in
>advance networking, is that even possible or it is simply impossible?


Its possible only with the numeric tag.


>
>On Wed, Jun 13, 2012 at 11:01 PM, Alena Prokharchyk
><Al...@citrix.com> wrote:
>> I see 2 different problems in this log fragment:
>>
>> 1)job-92 -  i-2-415-VM failed to start because the network vlan was
>> misconfigured. The number format exception most likely indicates the
>>vlan
>> for the network was set incorrectly. Need entire log to confirm.
>>
>> 2) job-94 - failed to delete the network as i-2-413-VM was in Error
>>state
>> - it failed to start. Notice its different vm from the vm on step 1). At
>> the moment deleteNetwork was called, the vm wasnt' expunged yet. Did you
>> wait for the vm i-2-413 to be picked up by Expunge thread and moved to
>> Expunging state? If yes, was it expunged successfully? If no, you have
>>to
>> find out the references to the vm in the log - search by "to expunge"
>> pattern in the management server, it will tell you when vm was processed
>> by the expunge thread.
>>
>>
>> -Alena.
>>
>>
>> On 6/13/12 1:51 PM, "Lu Heng" <h....@anytimechinese.com> wrote:
>>
>>>Hi
>>>
>>>The story start with I try to setup direct attached network to the
>>>guest network, in which I create a VM with the shared network I setup,
>>>but the VM does not start successfully, so I tried to delete the guest
>>>network I have created, in which I failed because of the vm was not
>>>destroy, then I try to destroy the VM, but the VM stuck in the
>>>explunging state:
>>>
>>>The network setup was not resolved, I asked in this mailling list what
>>>should I do if I have public network in the access point with advanced
>>>network setup, they said I have to create a shared network offering
>>>with Vlan, in which the public IP has no vlan setup, so I just typed
>>>tagged in the vlan section,seems not working.
>>>
>>>Below is the full story log start with I added a direct attached
>>>network:
>>>
>>>2012-06-13 08:56:25,401 WARN  [xen.resource.CitrixResourceBase]
>>>(DirectAgent-45:null) Catch Exception: class
>>>java.lang.NumberFormatException due to
>>>java.lang.NumberFormatException: For input string: "tagged1"
>>>java.lang.NumberFormatException: For input string: "tagged1"
>>>        at
>>>java.lang.NumberFormatException.forInputString(NumberFormatException.jav
>>>a:
>>>65)
>>>2012-06-13 08:56:25,402 WARN  [xen.resource.CitrixResourceBase]
>>>(DirectAgent-45:null) Unable to start i-2-415-VM due to
>>>java.lang.NumberFormatException: For input string: "tagged1"
>>>        at
>>>java.lang.NumberFormatException.forInputString(NumberFormatException.jav
>>>a:
>>>65)
>>>2012-06-13 08:56:25,455 WARN  [xen.resource.CitrixResourceBase]
>>>(DirectAgent-45:null) Unable to clean up VBD due to
>>>You gave an invalid object reference.  The object may have recently
>>>been deleted.  The class parameter gives the type of reference given,
>>>and the handle parameter echoes the bad value given.
>>>        at
>>>com.cloud.hypervisor.xen.resource.CitrixResourceBase.handleVmStartFailur
>>>e(
>>>CitrixResourceBase.java:930)
>>>2012-06-13 08:56:25,466 WARN  [xen.resource.CitrixResourceBase]
>>>(DirectAgent-45:null) Unable to clean up VBD due to
>>>You gave an invalid object reference.  The object may have recently
>>>been deleted.  The class parameter gives the type of reference given,
>>>and the handle parameter echoes the bad value given.
>>>        at
>>>com.cloud.hypervisor.xen.resource.CitrixResourceBase.handleVmStartFailur
>>>e(
>>>CitrixResourceBase.java:930)
>>>2012-06-13 08:56:25,478 WARN  [xen.resource.CitrixResourceBase]
>>>(DirectAgent-45:null) Unable to clean up VBD due to
>>>You gave an invalid object reference.  The object may have recently
>>>been deleted.  The class parameter gives the type of reference given,
>>>and the handle parameter echoes the bad value given.
>>>        at
>>>com.cloud.hypervisor.xen.resource.CitrixResourceBase.handleVmStartFailur
>>>e(
>>>CitrixResourceBase.java:930)
>>>2012-06-13 08:56:25,489 WARN  [xen.resource.CitrixResourceBase]
>>>(DirectAgent-45:null) Unable to cleanup VIF
>>>You gave an invalid object reference.  The object may have recently
>>>been deleted.  The class parameter gives the type of reference given,
>>>and the handle parameter echoes the bad value given.
>>>        at
>>>com.cloud.hypervisor.xen.resource.CitrixResourceBase.handleVmStartFailur
>>>e(
>>>CitrixResourceBase.java:938)
>>>2012-06-13 08:56:25,515 INFO  [xen.resource.XenServer56Resource]
>>>(DirectAgent-45:null) Catch com.xensource.xenapi.Types$VifInUse:
>>>failed to destory VLAN eth2 on host
>>>b9f6241d-cbd6-49a8-916e-dff524569dd4 due to Network has active VIFs
>>>2012-06-13 08:56:25,517 DEBUG [agent.transport.Request]
>>>(DirectAgent-45:null) Seq 6-920389063: Processing:  { Ans: , MgmtId:
>>>229144658033003, via: 6, Ver: v1, Flags: 110,
>>>[{"StartAnswer":{"vm":{"id":415,"name":"i-2-415-VM","bootloader":"PyGrub
>>>",
>>>"type":"User","cpus":1,"speed":500,"minRam":536870912,"maxRam":536870912
>>>,"
>>>arch":"x86_64","os":"CentOS
>>>5.3
>>>(64-bit)","bootArgs":"","rebootOnCrash":false,"enableHA":false,"limitCpu
>>>Us
>>>e":false,"vncPassword":"7bad48a63e4b14e7","params":{},"disks":[{"id":419
>>>,"
>>>name":"ROOT-415","mountPoint":"/iqn.2006-01.com.openfiler:tsn.2912cb92f8
>>>2d
>>>/0","path":"ff3b7226-fd0b-4d0b-8af4-393496d7ee24","size":21474836480,"ty
>>>pe
>>>":"ROOT","storagePoolType":"IscsiLUN","storagePoolUuid":"f7d6960c-84a6-3
>>>32
>>>f-9068-27ef0f216b31","deviceId":0},{"id":420,"name":"DATA-415","mountPoi
>>>nt
>>>":"/iqn.2006-01.com.openfiler:tsn.2912cb92f82d/0","path":"202feab0-b724-
>>>4b
>>>70-b757-32f2b8dfddee","size":5368709120,"type":"DATADISK","storagePoolTy
>>>pe
>>>":"IscsiLUN","storagePoolUuid":"f7d6960c-84a6-332f-9068-27ef0f216b31","d
>>>ev
>>>iceId":1},{"id":415,"name":"CentOS
>>>5.6(64-bit) no GUI
>>>(XenServer)","size":0,"type":"ISO","storagePoolType":"ISO","deviceId":3}
>>>],
>>>"nics":[{"deviceId":0,"networkRateMbps":200,"defaultNic":true,"ip":"10.1
>>>.1
>>>.99","netmask":"255.255.255.0","gateway":"10.1.1.1","mac":"02:00:2e:ae:0
>>>0:
>>>04","dns1":"204.13.152.2","broadcastType":"Vlan","type":"Guest","broadca
>>>st
>>>Uri":"vlan://292","isolationUri":"vlan://292","isSecurityGroupEnabled":f
>>>al
>>>se,"name":"Pool-wide
>>>network associated with
>>>eth2"},{"deviceId":1,"networkRateMbps":200,"defaultNic":false,"ip":"46.1
>>>36
>>>.134.86","netmask":"255.255.255.0","gateway":"46.136.134.1","mac":"06:4a
>>>:b
>>>4:00:08:3d","dns1":"204.13.152.2","broadcastType":"Vlan","type":"Guest",
>>>"b
>>>roadcastUri":"vlan://tagged1","isolationUri":"vlan://tagged1","isSecurit
>>>yG
>>>roupEnabled":false,"name":"Pool-wide
>>>network associated with eth2"}]},"result":false,"details":"Unable to
>>>start i-2-415-VM due to ","wait":0}}] }
>>>2012-06-13 08:56:25,517 WARN  [cloud.vm.VirtualMachineManagerImpl]
>>>(DirectAgent-45:null) Cleanup failed due to Unable to start i-2-415-VM
>>>due to
>>>2012-06-13 08:56:25,517 WARN  [cloud.vm.VirtualMachineManagerImpl]
>>>(Job-Executor-47:job-92) Cleanup failed due to Unable to start
>>>i-2-415-VM due to
>>>2012-06-13 08:56:25,590 INFO  [cloud.vm.VirtualMachineManagerImpl]
>>>(Job-Executor-47:job-92) Unable to start VM on Host[-6-Routing] due to
>>>Unable to start i-2-415-VM due to
>>>2012-06-13 08:56:26,159 DEBUG [cloud.capacity.CapacityManagerImpl]
>>>(Job-Executor-47:job-92) VM state transitted from :Starting to Stopped
>>>with event: OperationFailedvm's original host id: null new host id:
>>>null host id before state transition: 6
>>>2012-06-13 08:56:26,440 DEBUG [cloud.capacity.CapacityManagerImpl]
>>>(Job-Executor-47:job-92) VM state transitted from :Stopped to Error
>>>with event: OperationFailedToErrorvm's original host id: null new host
>>>id: null host id before state transition: null
>>>2012-06-13 08:56:27,209 INFO  [api.commands.DeployVMCmd]
>>>(Job-Executor-47:job-92)
>>>com.cloud.exception.InsufficientServerCapacityException: Unable to
>>>create a deployment for VM[User|i-2-415-VM]Scope=interface
>>>com.cloud.dc.DataCenter; id=1
>>>2012-06-13 08:56:27,210 WARN  [cloud.api.ApiDispatcher]
>>>(Job-Executor-47:job-92) class com.cloud.api.ServerApiException :
>>>Unable to create a deployment for VM[User|i-2-415-VM]
>>>2012-06-13 08:56:27,210 DEBUG [cloud.async.AsyncJobManagerImpl]
>>>(Job-Executor-47:job-92) Complete async job-92, jobStatus: 2,
>>>resultCode: 530, result:
>>>com.cloud.api.response.ExceptionResponse@1660d637
>>>2012-06-13 09:11:08,903 WARN  [cloud.network.NetworkManagerImpl]
>>>(Job-Executor-50:job-94) Can't delete the network, not all user vms
>>>are expunged. Vm VM[User|i-2-413-VM] is in Error state
>>>2012-06-13 09:11:08,993 WARN  [cloud.api.ApiDispatcher]
>>>(Job-Executor-50:job-94) class com.cloud.api.ServerApiException :
>>>Failed to delete network
>>>2012-06-13 09:11:08,993 DEBUG [cloud.async.AsyncJobManagerImpl]
>>>(Job-Executor-50:job-94) Complete async job-94, jobStatus: 2,
>>>resultCode: 530, result:
>>>com.cloud.api.response.ExceptionResponse@2102e538
>>>2012-06-13 09:11:09,144 WARN  [cloud.async.AsyncJobManagerImpl]
>>>(Job-Executor-50:job-94) Unable to unregister active job 94 from JMX
>>>monitoring
>>>2012-06-13 11:26:14,160 WARN  [cloud.network.NetworkManagerImpl]
>>>(Job-Executor-52:job-95) Can't delete the network, not all user vms
>>>are expunged. Vm VM[User|i-2-413-VM] is in Error state
>>>2012-06-13 11:26:14,243 WARN  [cloud.api.ApiDispatcher]
>>>(Job-Executor-52:job-95) class com.cloud.api.ServerApiException :
>>>Failed to delete network
>>>
>>>
>>>On Wed, Jun 13, 2012 at 10:46 PM, Alena Prokharchyk
>>><Al...@citrix.com> wrote:
>>>> On 6/13/12 1:38 PM, "Lu Heng" <h....@anytimechinese.com> wrote:
>>>>
>>>>>Hi
>>>>>
>>>>>And btw, I didn't see the maintainace botton for the 3 shared storage,
>>>>> I only see take snapshoot, snapshoot setting, that's it.
>>>>>
>>>>>On Wed, Jun 13, 2012 at 10:35 PM, Lu Heng <h....@anytimechinese.com>
>>>>>wrote:
>>>>>> Hi
>>>>>>
>>>>>> See my reply
>>>>>>
>>>>>> On Wed, Jun 13, 2012 at 10:30 PM, Alena Prokharchyk
>>>>>> <Al...@citrix.com> wrote:
>>>>>>> On 6/13/12 1:24 PM, "Lu Heng" <h....@anytimechinese.com> wrote:
>>>>>>>
>>>>>>>>Hi
>>>>>>>>
>>>>>>>>I find the reason, three vm are in state of "Expunging" for 3 hours
>>>>>>>>now, no process is being made, anyone has idea what should I do
>>>>>>>>about
>>>>>>>>these VMs?
>>>>>>>
>>>>>>>
>>>>>>> What is expunge.interval in the setup? If the vms stuck in
>>>>>>>Expunging
>>>>>>>state
>>>>>>> with null Removed field, it indicates some problem happening during
>>>>>>>the
>>>>>>> expunge. I suspect it's related with the fact you removed the
>>>>>>>storage
>>>>>>>from
>>>>>>> the xen.
>>>>>>>
>>>>>> Vise verse, the situation is, the VM in the expunging state for 3
>>>>>> hours, and I find no way to delete them, so I try to delete the
>>>>>> storage.
>>>>
>>>>
>>>> So you deleted the VHDs per each volume, not the storage itself,
>>>>please
>>>> confirm. And we should never do it as there is no volume sync, so if
>>>>the
>>>> volume is removed on the backend, cloudStack has no idea it has
>>>>happened.
>>>>
>>>> The original issue is - vm got stuck in Expunging state. We have to
>>>>figure
>>>> out this one first. Please send the logs starting from the time the
>>>> Destroy command was executed for the Vm. And mention the vm name.
>>>>
>>>>
>>>> -Alena.
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>>>
>>>>>> What should I do to fix this now?
>>>>>>>
>>>>>>>
>>>>>>>>
>>>>>>>>Another question is, I didn't see the delete botton with shared
>>>>>>>>storage, so I delete it from the xencenter, but after that I still
>>>>>>>>see
>>>>>>>>the deleted storage exists in the UI, what suppose to be done?
>>>>>>>
>>>>>>>
>>>>>>> Delete storage pool consists of 2 steps:
>>>>>>>
>>>>>>> * enable maintenance for the shared storage
>>>>>>> * after the maintenance is completed, the Delete button will be
>>>>>>>presented
>>>>>>> to the admin; and the storage can be removed.
>>>>>>>
>>>>>>> You are not supposed to delete primary storage on the backend;
>>>>>>>cloudStack
>>>>>>> has no idea if you do things like that, and it expects primary
>>>>>>>storage
>>>>>>>to
>>>>>>> be functioning.
>>>>>>>
>>>>>>> So when vm expunge happens, we see that the storage is in UP state,
>>>>>>>and
>>>>>>> try to send the destroy volume command to the Xen host. But the
>>>>>>>command
>>>>>>> fails there because there is no such primary storage exist.
>>>>>>>
>>>>>>> Let me know if its your case.
>>>>>>>
>>>>>>> -Alena.
>>>>>>>
>>>>>>>
>>>>>>>>
>>>>>>>>On Wed, Jun 13, 2012 at 10:08 PM, Alena Prokharchyk
>>>>>>>><Al...@citrix.com> wrote:
>>>>>>>>> On 6/13/12 12:55 PM, "Lu Heng" <h....@anytimechinese.com> wrote:
>>>>>>>>>
>>>>>>>>>>Hi
>>>>>>>>>>
>>>>>>>>>>Update:
>>>>>>>>>>
>>>>>>>>>>The zone has been stoped. all VM has been destoryed , the route
>>>>>>>>>>vm
>>>>>>>>>>has
>>>>>>>>>>been stoped(no option for destory).
>>>>>>>>>>
>>>>>>>>>>Still get error fail to delete network.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Can you send management server log file for debugging.
>>>>>>>>>
>>>>>>>>> Thanks,
>>>>>>>>> Alena.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>On Wed, Jun 13, 2012 at 7:23 PM, Alena Prokharchyk
>>>>>>>>>><Al...@citrix.com> wrote:
>>>>>>>>>>> On 6/13/12 10:18 AM, "Tamas Monos" <ta...@veber.co.uk> wrote:
>>>>>>>>>>>
>>>>>>>>>>>>Hi,
>>>>>>>>>>>>
>>>>>>>>>>>>Also I think the problem is when you are trying to delete the
>>>>>>>>>>>>network
>>>>>>>>>>>>the
>>>>>>>>>>>>router is powered off.
>>>>>>>>>>>>Therefore when you click delete it wants to remove the firewall
>>>>>>>>>>>>rules
>>>>>>>>>>>>for
>>>>>>>>>>>>that network but the router is not running so the command fails
>>>>>>>>>>>>which
>>>>>>>>>>>>fails the delet operation.
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> Also not a problem. The rules can be removed when the router is
>>>>>>>>>>>stopped.
>>>>>>>>>>> In this case the rules are removed in DB only. When the router
>>>>>>>>>>>starts
>>>>>>>>>>>up,
>>>>>>>>>>> we start clean (cleanup all the rules) and re-apply all the
>>>>>>>>>>>rules
>>>>>>>>>>>from
>>>>>>>>>>>the
>>>>>>>>>>> DB. So the removed rules won't exist  on the router.
>>>>>>>>>>>
>>>>>>>>>>> -Alena.
>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>Regards
>>>>>>>>>>>>
>>>>>>>>>>>>Tamas Monos                                               DDI
>>>>>>>>>>>>+44(0)2034687012
>>>>>>>>>>>>Chief Technical
>>>>>>>>>>>>Office
>>>>>>>>>>>>+44(0)2034687000
>>>>>>>>>>>>Veber: The Hosting Specialists               Fax
>>>>>>>>>>>>+44(0)871
>>>>>>>>>>>>522
>>>>>>>>>>>>7057
>>>>>>>>>>>>http://www.veber.co.uk
>>>>>>>>>>>>
>>>>>>>>>>>>Follow us on Twitter: www.twitter.com/veberhost
>>>>>>>>>>>>Follow us on Facebook: www.facebook.com/veberhost
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>-----Original Message-----
>>>>>>>>>>>>From: Tamas Monos [mailto:tamasm@veber.co.uk]
>>>>>>>>>>>>Sent: 13 June 2012 18:15
>>>>>>>>>>>>To: cloudstack-dev@incubator.apache.org
>>>>>>>>>>>>Subject: RE: Can not delete network
>>>>>>>>>>>>
>>>>>>>>>>>>Hi,
>>>>>>>>>>>>
>>>>>>>>>>>>I don't think you can delete a network if a router-vm for that
>>>>>>>>>>>>network
>>>>>>>>>>>>exists.
>>>>>>>>>>>>If you are trying to delete a network that network should not
>>>>>>>>>>>>have
>>>>>>>>>>>>any
>>>>>>>>>>>>VMs.
>>>>>>>>>>>>Delete the associated router from the management interface then
>>>>>>>>>>>>delete
>>>>>>>>>>>>the network.
>>>>>>>>>>>>This method works for me on 3.0.2
>>>>>>>>>>>>
>>>>>>>>>>>>Regards
>>>>>>>>>>>>
>>>>>>>>>>>>Tamas Monos                                               DDI
>>>>>>>>>>>>+44(0)2034687012
>>>>>>>>>>>>Chief Technical
>>>>>>>>>>>>Office
>>>>>>>>>>>>+44(0)2034687000
>>>>>>>>>>>>Veber: The Hosting Specialists               Fax
>>>>>>>>>>>>+44(0)871
>>>>>>>>>>>>522
>>>>>>>>>>>>7057
>>>>>>>>>>>>http://www.veber.co.uk
>>>>>>>>>>>>
>>>>>>>>>>>>Follow us on Twitter: www.twitter.com/veberhost Follow us on
>>>>>>>>>>>>Facebook:
>>>>>>>>>>>>www.facebook.com/veberhost
>>>>>>>>>>>>
>>>>>>>>>>>>-----Original Message-----
>>>>>>>>>>>>From: Alena Prokharchyk [mailto:Alena.Prokharchyk@citrix.com]
>>>>>>>>>>>>Sent: 13 June 2012 18:12
>>>>>>>>>>>>To: cloudstack-dev@incubator.apache.org
>>>>>>>>>>>>Subject: Re: Can not delete network
>>>>>>>>>>>>
>>>>>>>>>>>>Can you please check the management server log to see if there
>>>>>>>>>>>>is
>>>>>>>>>>>>more
>>>>>>>>>>>>detailed exception in there.
>>>>>>>>>>>>
>>>>>>>>>>>>-Alena.
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>On 6/13/12 9:50 AM, "Lu Heng" <h....@anytimechinese.com> wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>>Hi
>>>>>>>>>>>>>
>>>>>>>>>>>>>I have problem deleting guest network, everytime I tried it
>>>>>>>>>>>>>always
>>>>>>>>>>>>>shows "fail to delete network)
>>>>>>>>>>>>>
>>>>>>>>>>>>>2012-06-13 11:26:14,243 WARN  [cloud.api.ApiDispatcher]
>>>>>>>>>>>>>(Job-Executor-52:job-95) class
>>>>>>>>>>>>>com.cloud.api.ServerApiException
>>>>>>>>>>>>>:
>>>>>>>>>>>>>Failed to delete network
>>>>>>>>>>>>>
>>>>>>>>>>>>>Any idea how it happens?
>>>>>>>>>>>>>--
>>>>>>>>>>>>>--
>>>>>>>>>>>>>Kind regards.
>>>>>>>>>>>>>Lu
>>>>>>>>>>>>>
>>>>>>>>>>>>>This transmission is intended solely for the addressee(s)
>>>>>>>>>>>>>shown
>>>>>>>>>>>>>above.
>>>>>>>>>>>>>It may contain information that is privileged, confidential or
>>>>>>>>>>>>>otherwise protected from disclosure. Any review, dissemination
>>>>>>>>>>>>>or
>>>>>>>>>>>>>use
>>>>>>>>>>>>>of this transmission or its contents by persons other than the
>>>>>>>>>>>>>intended
>>>>>>>>>>>>>addressee(s) is strictly prohibited. If you have received this
>>>>>>>>>>>>>transmission in error, please notify this office immediately
>>>>>>>>>>>>>and
>>>>>>>>>>>>>e-mail
>>>>>>>>>>>>>the original at the sender's address above by replying to this
>>>>>>>>>>>>>message
>>>>>>>>>>>>>and including the text of the transmission received.
>>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>--
>>>>>>>>>>--
>>>>>>>>>>Kind regards.
>>>>>>>>>>Lu
>>>>>>>>>>
>>>>>>>>>>This transmission is intended solely for the addressee(s) shown
>>>>>>>>>>above.
>>>>>>>>>>It may contain information that is privileged, confidential or
>>>>>>>>>>otherwise protected from disclosure. Any review, dissemination or
>>>>>>>>>>use
>>>>>>>>>>of this transmission or its contents by persons other than the
>>>>>>>>>>intended addressee(s) is strictly prohibited. If you have
>>>>>>>>>>received
>>>>>>>>>>this transmission in error, please notify this office immediately
>>>>>>>>>>and
>>>>>>>>>>e-mail the original at the sender's address above by replying to
>>>>>>>>>>this
>>>>>>>>>>message and including the text of the transmission received.
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>--
>>>>>>>>--
>>>>>>>>Kind regards.
>>>>>>>>Lu
>>>>>>>>
>>>>>>>>This transmission is intended solely for the addressee(s) shown
>>>>>>>>above.
>>>>>>>>It may contain information that is privileged, confidential or
>>>>>>>>otherwise protected from disclosure. Any review, dissemination or
>>>>>>>>use
>>>>>>>>of this transmission or its contents by persons other than the
>>>>>>>>intended addressee(s) is strictly prohibited. If you have received
>>>>>>>>this transmission in error, please notify this office immediately
>>>>>>>>and
>>>>>>>>e-mail the original at the sender's address above by replying to
>>>>>>>>this
>>>>>>>>message and including the text of the transmission received.
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> --
>>>>>> Kind regards.
>>>>>> Lu
>>>>>>
>>>>>> This transmission is intended solely for the addressee(s) shown
>>>>>>above.
>>>>>> It may contain information that is privileged, confidential or
>>>>>> otherwise protected from disclosure. Any review, dissemination or
>>>>>>use
>>>>>> of this transmission or its contents by persons other than the
>>>>>> intended addressee(s) is strictly prohibited. If you have received
>>>>>> this transmission in error, please notify this office immediately
>>>>>>and
>>>>>> e-mail the original at the sender's address above by replying to
>>>>>>this
>>>>>> message and including the text of the transmission received.
>>>>>
>>>>>
>>>>>
>>>>>--
>>>>>--
>>>>>Kind regards.
>>>>>Lu
>>>>>
>>>>>This transmission is intended solely for the addressee(s) shown above.
>>>>>It may contain information that is privileged, confidential or
>>>>>otherwise protected from disclosure. Any review, dissemination or use
>>>>>of this transmission or its contents by persons other than the
>>>>>intended addressee(s) is strictly prohibited. If you have received
>>>>>this transmission in error, please notify this office immediately and
>>>>>e-mail the original at the sender's address above by replying to this
>>>>>message and including the text of the transmission received.
>>>>>
>>>>
>>>>
>>>
>>>
>>>
>>>--
>>>--
>>>Kind regards.
>>>Lu
>>>
>>>This transmission is intended solely for the addressee(s) shown above.
>>>It may contain information that is privileged, confidential or
>>>otherwise protected from disclosure. Any review, dissemination or use
>>>of this transmission or its contents by persons other than the
>>>intended addressee(s) is strictly prohibited. If you have received
>>>this transmission in error, please notify this office immediately and
>>>e-mail the original at the sender's address above by replying to this
>>>message and including the text of the transmission received.
>>>
>>
>>
>
>
>
>--
>--
>Kind regards.
>Lu
>
>This transmission is intended solely for the addressee(s) shown above.
>It may contain information that is privileged, confidential or
>otherwise protected from disclosure. Any review, dissemination or use
>of this transmission or its contents by persons other than the
>intended addressee(s) is strictly prohibited. If you have received
>this transmission in error, please notify this office immediately and
>e-mail the original at the sender's address above by replying to this
>message and including the text of the transmission received.
>



Re: Can not delete network

Posted by Lu Heng <h....@anytimechinese.com>.
Hi

As I said, I have direct attached network to the public network, and I
have no vlan, and cloudstack force to enter a vlan ID, so I just
entered "tagged1“.

So the first question come, how can I setup direct attached network in
advance networking, is that even possible or it is simply impossible?

On Wed, Jun 13, 2012 at 11:01 PM, Alena Prokharchyk
<Al...@citrix.com> wrote:
> I see 2 different problems in this log fragment:
>
> 1)job-92 -  i-2-415-VM failed to start because the network vlan was
> misconfigured. The number format exception most likely indicates the vlan
> for the network was set incorrectly. Need entire log to confirm.
>
> 2) job-94 - failed to delete the network as i-2-413-VM was in Error state
> - it failed to start. Notice its different vm from the vm on step 1). At
> the moment deleteNetwork was called, the vm wasnt' expunged yet. Did you
> wait for the vm i-2-413 to be picked up by Expunge thread and moved to
> Expunging state? If yes, was it expunged successfully? If no, you have to
> find out the references to the vm in the log - search by "to expunge"
> pattern in the management server, it will tell you when vm was processed
> by the expunge thread.
>
>
> -Alena.
>
>
> On 6/13/12 1:51 PM, "Lu Heng" <h....@anytimechinese.com> wrote:
>
>>Hi
>>
>>The story start with I try to setup direct attached network to the
>>guest network, in which I create a VM with the shared network I setup,
>>but the VM does not start successfully, so I tried to delete the guest
>>network I have created, in which I failed because of the vm was not
>>destroy, then I try to destroy the VM, but the VM stuck in the
>>explunging state:
>>
>>The network setup was not resolved, I asked in this mailling list what
>>should I do if I have public network in the access point with advanced
>>network setup, they said I have to create a shared network offering
>>with Vlan, in which the public IP has no vlan setup, so I just typed
>>tagged in the vlan section,seems not working.
>>
>>Below is the full story log start with I added a direct attached network:
>>
>>2012-06-13 08:56:25,401 WARN  [xen.resource.CitrixResourceBase]
>>(DirectAgent-45:null) Catch Exception: class
>>java.lang.NumberFormatException due to
>>java.lang.NumberFormatException: For input string: "tagged1"
>>java.lang.NumberFormatException: For input string: "tagged1"
>>        at
>>java.lang.NumberFormatException.forInputString(NumberFormatException.java:
>>65)
>>2012-06-13 08:56:25,402 WARN  [xen.resource.CitrixResourceBase]
>>(DirectAgent-45:null) Unable to start i-2-415-VM due to
>>java.lang.NumberFormatException: For input string: "tagged1"
>>        at
>>java.lang.NumberFormatException.forInputString(NumberFormatException.java:
>>65)
>>2012-06-13 08:56:25,455 WARN  [xen.resource.CitrixResourceBase]
>>(DirectAgent-45:null) Unable to clean up VBD due to
>>You gave an invalid object reference.  The object may have recently
>>been deleted.  The class parameter gives the type of reference given,
>>and the handle parameter echoes the bad value given.
>>        at
>>com.cloud.hypervisor.xen.resource.CitrixResourceBase.handleVmStartFailure(
>>CitrixResourceBase.java:930)
>>2012-06-13 08:56:25,466 WARN  [xen.resource.CitrixResourceBase]
>>(DirectAgent-45:null) Unable to clean up VBD due to
>>You gave an invalid object reference.  The object may have recently
>>been deleted.  The class parameter gives the type of reference given,
>>and the handle parameter echoes the bad value given.
>>        at
>>com.cloud.hypervisor.xen.resource.CitrixResourceBase.handleVmStartFailure(
>>CitrixResourceBase.java:930)
>>2012-06-13 08:56:25,478 WARN  [xen.resource.CitrixResourceBase]
>>(DirectAgent-45:null) Unable to clean up VBD due to
>>You gave an invalid object reference.  The object may have recently
>>been deleted.  The class parameter gives the type of reference given,
>>and the handle parameter echoes the bad value given.
>>        at
>>com.cloud.hypervisor.xen.resource.CitrixResourceBase.handleVmStartFailure(
>>CitrixResourceBase.java:930)
>>2012-06-13 08:56:25,489 WARN  [xen.resource.CitrixResourceBase]
>>(DirectAgent-45:null) Unable to cleanup VIF
>>You gave an invalid object reference.  The object may have recently
>>been deleted.  The class parameter gives the type of reference given,
>>and the handle parameter echoes the bad value given.
>>        at
>>com.cloud.hypervisor.xen.resource.CitrixResourceBase.handleVmStartFailure(
>>CitrixResourceBase.java:938)
>>2012-06-13 08:56:25,515 INFO  [xen.resource.XenServer56Resource]
>>(DirectAgent-45:null) Catch com.xensource.xenapi.Types$VifInUse:
>>failed to destory VLAN eth2 on host
>>b9f6241d-cbd6-49a8-916e-dff524569dd4 due to Network has active VIFs
>>2012-06-13 08:56:25,517 DEBUG [agent.transport.Request]
>>(DirectAgent-45:null) Seq 6-920389063: Processing:  { Ans: , MgmtId:
>>229144658033003, via: 6, Ver: v1, Flags: 110,
>>[{"StartAnswer":{"vm":{"id":415,"name":"i-2-415-VM","bootloader":"PyGrub",
>>"type":"User","cpus":1,"speed":500,"minRam":536870912,"maxRam":536870912,"
>>arch":"x86_64","os":"CentOS
>>5.3
>>(64-bit)","bootArgs":"","rebootOnCrash":false,"enableHA":false,"limitCpuUs
>>e":false,"vncPassword":"7bad48a63e4b14e7","params":{},"disks":[{"id":419,"
>>name":"ROOT-415","mountPoint":"/iqn.2006-01.com.openfiler:tsn.2912cb92f82d
>>/0","path":"ff3b7226-fd0b-4d0b-8af4-393496d7ee24","size":21474836480,"type
>>":"ROOT","storagePoolType":"IscsiLUN","storagePoolUuid":"f7d6960c-84a6-332
>>f-9068-27ef0f216b31","deviceId":0},{"id":420,"name":"DATA-415","mountPoint
>>":"/iqn.2006-01.com.openfiler:tsn.2912cb92f82d/0","path":"202feab0-b724-4b
>>70-b757-32f2b8dfddee","size":5368709120,"type":"DATADISK","storagePoolType
>>":"IscsiLUN","storagePoolUuid":"f7d6960c-84a6-332f-9068-27ef0f216b31","dev
>>iceId":1},{"id":415,"name":"CentOS
>>5.6(64-bit) no GUI
>>(XenServer)","size":0,"type":"ISO","storagePoolType":"ISO","deviceId":3}],
>>"nics":[{"deviceId":0,"networkRateMbps":200,"defaultNic":true,"ip":"10.1.1
>>.99","netmask":"255.255.255.0","gateway":"10.1.1.1","mac":"02:00:2e:ae:00:
>>04","dns1":"204.13.152.2","broadcastType":"Vlan","type":"Guest","broadcast
>>Uri":"vlan://292","isolationUri":"vlan://292","isSecurityGroupEnabled":fal
>>se,"name":"Pool-wide
>>network associated with
>>eth2"},{"deviceId":1,"networkRateMbps":200,"defaultNic":false,"ip":"46.136
>>.134.86","netmask":"255.255.255.0","gateway":"46.136.134.1","mac":"06:4a:b
>>4:00:08:3d","dns1":"204.13.152.2","broadcastType":"Vlan","type":"Guest","b
>>roadcastUri":"vlan://tagged1","isolationUri":"vlan://tagged1","isSecurityG
>>roupEnabled":false,"name":"Pool-wide
>>network associated with eth2"}]},"result":false,"details":"Unable to
>>start i-2-415-VM due to ","wait":0}}] }
>>2012-06-13 08:56:25,517 WARN  [cloud.vm.VirtualMachineManagerImpl]
>>(DirectAgent-45:null) Cleanup failed due to Unable to start i-2-415-VM
>>due to
>>2012-06-13 08:56:25,517 WARN  [cloud.vm.VirtualMachineManagerImpl]
>>(Job-Executor-47:job-92) Cleanup failed due to Unable to start
>>i-2-415-VM due to
>>2012-06-13 08:56:25,590 INFO  [cloud.vm.VirtualMachineManagerImpl]
>>(Job-Executor-47:job-92) Unable to start VM on Host[-6-Routing] due to
>>Unable to start i-2-415-VM due to
>>2012-06-13 08:56:26,159 DEBUG [cloud.capacity.CapacityManagerImpl]
>>(Job-Executor-47:job-92) VM state transitted from :Starting to Stopped
>>with event: OperationFailedvm's original host id: null new host id:
>>null host id before state transition: 6
>>2012-06-13 08:56:26,440 DEBUG [cloud.capacity.CapacityManagerImpl]
>>(Job-Executor-47:job-92) VM state transitted from :Stopped to Error
>>with event: OperationFailedToErrorvm's original host id: null new host
>>id: null host id before state transition: null
>>2012-06-13 08:56:27,209 INFO  [api.commands.DeployVMCmd]
>>(Job-Executor-47:job-92)
>>com.cloud.exception.InsufficientServerCapacityException: Unable to
>>create a deployment for VM[User|i-2-415-VM]Scope=interface
>>com.cloud.dc.DataCenter; id=1
>>2012-06-13 08:56:27,210 WARN  [cloud.api.ApiDispatcher]
>>(Job-Executor-47:job-92) class com.cloud.api.ServerApiException :
>>Unable to create a deployment for VM[User|i-2-415-VM]
>>2012-06-13 08:56:27,210 DEBUG [cloud.async.AsyncJobManagerImpl]
>>(Job-Executor-47:job-92) Complete async job-92, jobStatus: 2,
>>resultCode: 530, result:
>>com.cloud.api.response.ExceptionResponse@1660d637
>>2012-06-13 09:11:08,903 WARN  [cloud.network.NetworkManagerImpl]
>>(Job-Executor-50:job-94) Can't delete the network, not all user vms
>>are expunged. Vm VM[User|i-2-413-VM] is in Error state
>>2012-06-13 09:11:08,993 WARN  [cloud.api.ApiDispatcher]
>>(Job-Executor-50:job-94) class com.cloud.api.ServerApiException :
>>Failed to delete network
>>2012-06-13 09:11:08,993 DEBUG [cloud.async.AsyncJobManagerImpl]
>>(Job-Executor-50:job-94) Complete async job-94, jobStatus: 2,
>>resultCode: 530, result:
>>com.cloud.api.response.ExceptionResponse@2102e538
>>2012-06-13 09:11:09,144 WARN  [cloud.async.AsyncJobManagerImpl]
>>(Job-Executor-50:job-94) Unable to unregister active job 94 from JMX
>>monitoring
>>2012-06-13 11:26:14,160 WARN  [cloud.network.NetworkManagerImpl]
>>(Job-Executor-52:job-95) Can't delete the network, not all user vms
>>are expunged. Vm VM[User|i-2-413-VM] is in Error state
>>2012-06-13 11:26:14,243 WARN  [cloud.api.ApiDispatcher]
>>(Job-Executor-52:job-95) class com.cloud.api.ServerApiException :
>>Failed to delete network
>>
>>
>>On Wed, Jun 13, 2012 at 10:46 PM, Alena Prokharchyk
>><Al...@citrix.com> wrote:
>>> On 6/13/12 1:38 PM, "Lu Heng" <h....@anytimechinese.com> wrote:
>>>
>>>>Hi
>>>>
>>>>And btw, I didn't see the maintainace botton for the 3 shared storage,
>>>> I only see take snapshoot, snapshoot setting, that's it.
>>>>
>>>>On Wed, Jun 13, 2012 at 10:35 PM, Lu Heng <h....@anytimechinese.com>
>>>>wrote:
>>>>> Hi
>>>>>
>>>>> See my reply
>>>>>
>>>>> On Wed, Jun 13, 2012 at 10:30 PM, Alena Prokharchyk
>>>>> <Al...@citrix.com> wrote:
>>>>>> On 6/13/12 1:24 PM, "Lu Heng" <h....@anytimechinese.com> wrote:
>>>>>>
>>>>>>>Hi
>>>>>>>
>>>>>>>I find the reason, three vm are in state of "Expunging" for 3 hours
>>>>>>>now, no process is being made, anyone has idea what should I do about
>>>>>>>these VMs?
>>>>>>
>>>>>>
>>>>>> What is expunge.interval in the setup? If the vms stuck in Expunging
>>>>>>state
>>>>>> with null Removed field, it indicates some problem happening during
>>>>>>the
>>>>>> expunge. I suspect it's related with the fact you removed the storage
>>>>>>from
>>>>>> the xen.
>>>>>>
>>>>> Vise verse, the situation is, the VM in the expunging state for 3
>>>>> hours, and I find no way to delete them, so I try to delete the
>>>>> storage.
>>>
>>>
>>> So you deleted the VHDs per each volume, not the storage itself, please
>>> confirm. And we should never do it as there is no volume sync, so if the
>>> volume is removed on the backend, cloudStack has no idea it has
>>>happened.
>>>
>>> The original issue is - vm got stuck in Expunging state. We have to
>>>figure
>>> out this one first. Please send the logs starting from the time the
>>> Destroy command was executed for the Vm. And mention the vm name.
>>>
>>>
>>> -Alena.
>>>
>>>
>>>
>>>
>>>
>>>>>
>>>>> What should I do to fix this now?
>>>>>>
>>>>>>
>>>>>>>
>>>>>>>Another question is, I didn't see the delete botton with shared
>>>>>>>storage, so I delete it from the xencenter, but after that I still
>>>>>>>see
>>>>>>>the deleted storage exists in the UI, what suppose to be done?
>>>>>>
>>>>>>
>>>>>> Delete storage pool consists of 2 steps:
>>>>>>
>>>>>> * enable maintenance for the shared storage
>>>>>> * after the maintenance is completed, the Delete button will be
>>>>>>presented
>>>>>> to the admin; and the storage can be removed.
>>>>>>
>>>>>> You are not supposed to delete primary storage on the backend;
>>>>>>cloudStack
>>>>>> has no idea if you do things like that, and it expects primary
>>>>>>storage
>>>>>>to
>>>>>> be functioning.
>>>>>>
>>>>>> So when vm expunge happens, we see that the storage is in UP state,
>>>>>>and
>>>>>> try to send the destroy volume command to the Xen host. But the
>>>>>>command
>>>>>> fails there because there is no such primary storage exist.
>>>>>>
>>>>>> Let me know if its your case.
>>>>>>
>>>>>> -Alena.
>>>>>>
>>>>>>
>>>>>>>
>>>>>>>On Wed, Jun 13, 2012 at 10:08 PM, Alena Prokharchyk
>>>>>>><Al...@citrix.com> wrote:
>>>>>>>> On 6/13/12 12:55 PM, "Lu Heng" <h....@anytimechinese.com> wrote:
>>>>>>>>
>>>>>>>>>Hi
>>>>>>>>>
>>>>>>>>>Update:
>>>>>>>>>
>>>>>>>>>The zone has been stoped. all VM has been destoryed , the route vm
>>>>>>>>>has
>>>>>>>>>been stoped(no option for destory).
>>>>>>>>>
>>>>>>>>>Still get error fail to delete network.
>>>>>>>>
>>>>>>>>
>>>>>>>> Can you send management server log file for debugging.
>>>>>>>>
>>>>>>>> Thanks,
>>>>>>>> Alena.
>>>>>>>>
>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>On Wed, Jun 13, 2012 at 7:23 PM, Alena Prokharchyk
>>>>>>>>><Al...@citrix.com> wrote:
>>>>>>>>>> On 6/13/12 10:18 AM, "Tamas Monos" <ta...@veber.co.uk> wrote:
>>>>>>>>>>
>>>>>>>>>>>Hi,
>>>>>>>>>>>
>>>>>>>>>>>Also I think the problem is when you are trying to delete the
>>>>>>>>>>>network
>>>>>>>>>>>the
>>>>>>>>>>>router is powered off.
>>>>>>>>>>>Therefore when you click delete it wants to remove the firewall
>>>>>>>>>>>rules
>>>>>>>>>>>for
>>>>>>>>>>>that network but the router is not running so the command fails
>>>>>>>>>>>which
>>>>>>>>>>>fails the delet operation.
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Also not a problem. The rules can be removed when the router is
>>>>>>>>>>stopped.
>>>>>>>>>> In this case the rules are removed in DB only. When the router
>>>>>>>>>>starts
>>>>>>>>>>up,
>>>>>>>>>> we start clean (cleanup all the rules) and re-apply all the rules
>>>>>>>>>>from
>>>>>>>>>>the
>>>>>>>>>> DB. So the removed rules won't exist  on the router.
>>>>>>>>>>
>>>>>>>>>> -Alena.
>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>Regards
>>>>>>>>>>>
>>>>>>>>>>>Tamas Monos                                               DDI
>>>>>>>>>>>+44(0)2034687012
>>>>>>>>>>>Chief Technical
>>>>>>>>>>>Office
>>>>>>>>>>>+44(0)2034687000
>>>>>>>>>>>Veber: The Hosting Specialists               Fax
>>>>>>>>>>>+44(0)871
>>>>>>>>>>>522
>>>>>>>>>>>7057
>>>>>>>>>>>http://www.veber.co.uk
>>>>>>>>>>>
>>>>>>>>>>>Follow us on Twitter: www.twitter.com/veberhost
>>>>>>>>>>>Follow us on Facebook: www.facebook.com/veberhost
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>-----Original Message-----
>>>>>>>>>>>From: Tamas Monos [mailto:tamasm@veber.co.uk]
>>>>>>>>>>>Sent: 13 June 2012 18:15
>>>>>>>>>>>To: cloudstack-dev@incubator.apache.org
>>>>>>>>>>>Subject: RE: Can not delete network
>>>>>>>>>>>
>>>>>>>>>>>Hi,
>>>>>>>>>>>
>>>>>>>>>>>I don't think you can delete a network if a router-vm for that
>>>>>>>>>>>network
>>>>>>>>>>>exists.
>>>>>>>>>>>If you are trying to delete a network that network should not
>>>>>>>>>>>have
>>>>>>>>>>>any
>>>>>>>>>>>VMs.
>>>>>>>>>>>Delete the associated router from the management interface then
>>>>>>>>>>>delete
>>>>>>>>>>>the network.
>>>>>>>>>>>This method works for me on 3.0.2
>>>>>>>>>>>
>>>>>>>>>>>Regards
>>>>>>>>>>>
>>>>>>>>>>>Tamas Monos                                               DDI
>>>>>>>>>>>+44(0)2034687012
>>>>>>>>>>>Chief Technical
>>>>>>>>>>>Office
>>>>>>>>>>>+44(0)2034687000
>>>>>>>>>>>Veber: The Hosting Specialists               Fax
>>>>>>>>>>>+44(0)871
>>>>>>>>>>>522
>>>>>>>>>>>7057
>>>>>>>>>>>http://www.veber.co.uk
>>>>>>>>>>>
>>>>>>>>>>>Follow us on Twitter: www.twitter.com/veberhost Follow us on
>>>>>>>>>>>Facebook:
>>>>>>>>>>>www.facebook.com/veberhost
>>>>>>>>>>>
>>>>>>>>>>>-----Original Message-----
>>>>>>>>>>>From: Alena Prokharchyk [mailto:Alena.Prokharchyk@citrix.com]
>>>>>>>>>>>Sent: 13 June 2012 18:12
>>>>>>>>>>>To: cloudstack-dev@incubator.apache.org
>>>>>>>>>>>Subject: Re: Can not delete network
>>>>>>>>>>>
>>>>>>>>>>>Can you please check the management server log to see if there is
>>>>>>>>>>>more
>>>>>>>>>>>detailed exception in there.
>>>>>>>>>>>
>>>>>>>>>>>-Alena.
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>On 6/13/12 9:50 AM, "Lu Heng" <h....@anytimechinese.com> wrote:
>>>>>>>>>>>
>>>>>>>>>>>>Hi
>>>>>>>>>>>>
>>>>>>>>>>>>I have problem deleting guest network, everytime I tried it
>>>>>>>>>>>>always
>>>>>>>>>>>>shows "fail to delete network)
>>>>>>>>>>>>
>>>>>>>>>>>>2012-06-13 11:26:14,243 WARN  [cloud.api.ApiDispatcher]
>>>>>>>>>>>>(Job-Executor-52:job-95) class com.cloud.api.ServerApiException
>>>>>>>>>>>>:
>>>>>>>>>>>>Failed to delete network
>>>>>>>>>>>>
>>>>>>>>>>>>Any idea how it happens?
>>>>>>>>>>>>--
>>>>>>>>>>>>--
>>>>>>>>>>>>Kind regards.
>>>>>>>>>>>>Lu
>>>>>>>>>>>>
>>>>>>>>>>>>This transmission is intended solely for the addressee(s) shown
>>>>>>>>>>>>above.
>>>>>>>>>>>>It may contain information that is privileged, confidential or
>>>>>>>>>>>>otherwise protected from disclosure. Any review, dissemination
>>>>>>>>>>>>or
>>>>>>>>>>>>use
>>>>>>>>>>>>of this transmission or its contents by persons other than the
>>>>>>>>>>>>intended
>>>>>>>>>>>>addressee(s) is strictly prohibited. If you have received this
>>>>>>>>>>>>transmission in error, please notify this office immediately and
>>>>>>>>>>>>e-mail
>>>>>>>>>>>>the original at the sender's address above by replying to this
>>>>>>>>>>>>message
>>>>>>>>>>>>and including the text of the transmission received.
>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>--
>>>>>>>>>--
>>>>>>>>>Kind regards.
>>>>>>>>>Lu
>>>>>>>>>
>>>>>>>>>This transmission is intended solely for the addressee(s) shown
>>>>>>>>>above.
>>>>>>>>>It may contain information that is privileged, confidential or
>>>>>>>>>otherwise protected from disclosure. Any review, dissemination or
>>>>>>>>>use
>>>>>>>>>of this transmission or its contents by persons other than the
>>>>>>>>>intended addressee(s) is strictly prohibited. If you have received
>>>>>>>>>this transmission in error, please notify this office immediately
>>>>>>>>>and
>>>>>>>>>e-mail the original at the sender's address above by replying to
>>>>>>>>>this
>>>>>>>>>message and including the text of the transmission received.
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>--
>>>>>>>--
>>>>>>>Kind regards.
>>>>>>>Lu
>>>>>>>
>>>>>>>This transmission is intended solely for the addressee(s) shown
>>>>>>>above.
>>>>>>>It may contain information that is privileged, confidential or
>>>>>>>otherwise protected from disclosure. Any review, dissemination or use
>>>>>>>of this transmission or its contents by persons other than the
>>>>>>>intended addressee(s) is strictly prohibited. If you have received
>>>>>>>this transmission in error, please notify this office immediately and
>>>>>>>e-mail the original at the sender's address above by replying to this
>>>>>>>message and including the text of the transmission received.
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> --
>>>>> Kind regards.
>>>>> Lu
>>>>>
>>>>> This transmission is intended solely for the addressee(s) shown above.
>>>>> It may contain information that is privileged, confidential or
>>>>> otherwise protected from disclosure. Any review, dissemination or use
>>>>> of this transmission or its contents by persons other than the
>>>>> intended addressee(s) is strictly prohibited. If you have received
>>>>> this transmission in error, please notify this office immediately and
>>>>> e-mail the original at the sender's address above by replying to this
>>>>> message and including the text of the transmission received.
>>>>
>>>>
>>>>
>>>>--
>>>>--
>>>>Kind regards.
>>>>Lu
>>>>
>>>>This transmission is intended solely for the addressee(s) shown above.
>>>>It may contain information that is privileged, confidential or
>>>>otherwise protected from disclosure. Any review, dissemination or use
>>>>of this transmission or its contents by persons other than the
>>>>intended addressee(s) is strictly prohibited. If you have received
>>>>this transmission in error, please notify this office immediately and
>>>>e-mail the original at the sender's address above by replying to this
>>>>message and including the text of the transmission received.
>>>>
>>>
>>>
>>
>>
>>
>>--
>>--
>>Kind regards.
>>Lu
>>
>>This transmission is intended solely for the addressee(s) shown above.
>>It may contain information that is privileged, confidential or
>>otherwise protected from disclosure. Any review, dissemination or use
>>of this transmission or its contents by persons other than the
>>intended addressee(s) is strictly prohibited. If you have received
>>this transmission in error, please notify this office immediately and
>>e-mail the original at the sender's address above by replying to this
>>message and including the text of the transmission received.
>>
>
>



-- 
--
Kind regards.
Lu

This transmission is intended solely for the addressee(s) shown above.
It may contain information that is privileged, confidential or
otherwise protected from disclosure. Any review, dissemination or use
of this transmission or its contents by persons other than the
intended addressee(s) is strictly prohibited. If you have received
this transmission in error, please notify this office immediately and
e-mail the original at the sender's address above by replying to this
message and including the text of the transmission received.

Re: Can not delete network

Posted by Alena Prokharchyk <Al...@citrix.com>.
I see 2 different problems in this log fragment:

1)job-92 -  i-2-415-VM failed to start because the network vlan was
misconfigured. The number format exception most likely indicates the vlan
for the network was set incorrectly. Need entire log to confirm.

2) job-94 - failed to delete the network as i-2-413-VM was in Error state
- it failed to start. Notice its different vm from the vm on step 1). At
the moment deleteNetwork was called, the vm wasnt' expunged yet. Did you
wait for the vm i-2-413 to be picked up by Expunge thread and moved to
Expunging state? If yes, was it expunged successfully? If no, you have to
find out the references to the vm in the log - search by "to expunge"
pattern in the management server, it will tell you when vm was processed
by the expunge thread.


-Alena.


On 6/13/12 1:51 PM, "Lu Heng" <h....@anytimechinese.com> wrote:

>Hi
>
>The story start with I try to setup direct attached network to the
>guest network, in which I create a VM with the shared network I setup,
>but the VM does not start successfully, so I tried to delete the guest
>network I have created, in which I failed because of the vm was not
>destroy, then I try to destroy the VM, but the VM stuck in the
>explunging state:
>
>The network setup was not resolved, I asked in this mailling list what
>should I do if I have public network in the access point with advanced
>network setup, they said I have to create a shared network offering
>with Vlan, in which the public IP has no vlan setup, so I just typed
>tagged in the vlan section,seems not working.
>
>Below is the full story log start with I added a direct attached network:
>
>2012-06-13 08:56:25,401 WARN  [xen.resource.CitrixResourceBase]
>(DirectAgent-45:null) Catch Exception: class
>java.lang.NumberFormatException due to
>java.lang.NumberFormatException: For input string: "tagged1"
>java.lang.NumberFormatException: For input string: "tagged1"
>        at
>java.lang.NumberFormatException.forInputString(NumberFormatException.java:
>65)
>2012-06-13 08:56:25,402 WARN  [xen.resource.CitrixResourceBase]
>(DirectAgent-45:null) Unable to start i-2-415-VM due to
>java.lang.NumberFormatException: For input string: "tagged1"
>        at
>java.lang.NumberFormatException.forInputString(NumberFormatException.java:
>65)
>2012-06-13 08:56:25,455 WARN  [xen.resource.CitrixResourceBase]
>(DirectAgent-45:null) Unable to clean up VBD due to
>You gave an invalid object reference.  The object may have recently
>been deleted.  The class parameter gives the type of reference given,
>and the handle parameter echoes the bad value given.
>        at
>com.cloud.hypervisor.xen.resource.CitrixResourceBase.handleVmStartFailure(
>CitrixResourceBase.java:930)
>2012-06-13 08:56:25,466 WARN  [xen.resource.CitrixResourceBase]
>(DirectAgent-45:null) Unable to clean up VBD due to
>You gave an invalid object reference.  The object may have recently
>been deleted.  The class parameter gives the type of reference given,
>and the handle parameter echoes the bad value given.
>        at
>com.cloud.hypervisor.xen.resource.CitrixResourceBase.handleVmStartFailure(
>CitrixResourceBase.java:930)
>2012-06-13 08:56:25,478 WARN  [xen.resource.CitrixResourceBase]
>(DirectAgent-45:null) Unable to clean up VBD due to
>You gave an invalid object reference.  The object may have recently
>been deleted.  The class parameter gives the type of reference given,
>and the handle parameter echoes the bad value given.
>        at
>com.cloud.hypervisor.xen.resource.CitrixResourceBase.handleVmStartFailure(
>CitrixResourceBase.java:930)
>2012-06-13 08:56:25,489 WARN  [xen.resource.CitrixResourceBase]
>(DirectAgent-45:null) Unable to cleanup VIF
>You gave an invalid object reference.  The object may have recently
>been deleted.  The class parameter gives the type of reference given,
>and the handle parameter echoes the bad value given.
>        at
>com.cloud.hypervisor.xen.resource.CitrixResourceBase.handleVmStartFailure(
>CitrixResourceBase.java:938)
>2012-06-13 08:56:25,515 INFO  [xen.resource.XenServer56Resource]
>(DirectAgent-45:null) Catch com.xensource.xenapi.Types$VifInUse:
>failed to destory VLAN eth2 on host
>b9f6241d-cbd6-49a8-916e-dff524569dd4 due to Network has active VIFs
>2012-06-13 08:56:25,517 DEBUG [agent.transport.Request]
>(DirectAgent-45:null) Seq 6-920389063: Processing:  { Ans: , MgmtId:
>229144658033003, via: 6, Ver: v1, Flags: 110,
>[{"StartAnswer":{"vm":{"id":415,"name":"i-2-415-VM","bootloader":"PyGrub",
>"type":"User","cpus":1,"speed":500,"minRam":536870912,"maxRam":536870912,"
>arch":"x86_64","os":"CentOS
>5.3
>(64-bit)","bootArgs":"","rebootOnCrash":false,"enableHA":false,"limitCpuUs
>e":false,"vncPassword":"7bad48a63e4b14e7","params":{},"disks":[{"id":419,"
>name":"ROOT-415","mountPoint":"/iqn.2006-01.com.openfiler:tsn.2912cb92f82d
>/0","path":"ff3b7226-fd0b-4d0b-8af4-393496d7ee24","size":21474836480,"type
>":"ROOT","storagePoolType":"IscsiLUN","storagePoolUuid":"f7d6960c-84a6-332
>f-9068-27ef0f216b31","deviceId":0},{"id":420,"name":"DATA-415","mountPoint
>":"/iqn.2006-01.com.openfiler:tsn.2912cb92f82d/0","path":"202feab0-b724-4b
>70-b757-32f2b8dfddee","size":5368709120,"type":"DATADISK","storagePoolType
>":"IscsiLUN","storagePoolUuid":"f7d6960c-84a6-332f-9068-27ef0f216b31","dev
>iceId":1},{"id":415,"name":"CentOS
>5.6(64-bit) no GUI
>(XenServer)","size":0,"type":"ISO","storagePoolType":"ISO","deviceId":3}],
>"nics":[{"deviceId":0,"networkRateMbps":200,"defaultNic":true,"ip":"10.1.1
>.99","netmask":"255.255.255.0","gateway":"10.1.1.1","mac":"02:00:2e:ae:00:
>04","dns1":"204.13.152.2","broadcastType":"Vlan","type":"Guest","broadcast
>Uri":"vlan://292","isolationUri":"vlan://292","isSecurityGroupEnabled":fal
>se,"name":"Pool-wide
>network associated with
>eth2"},{"deviceId":1,"networkRateMbps":200,"defaultNic":false,"ip":"46.136
>.134.86","netmask":"255.255.255.0","gateway":"46.136.134.1","mac":"06:4a:b
>4:00:08:3d","dns1":"204.13.152.2","broadcastType":"Vlan","type":"Guest","b
>roadcastUri":"vlan://tagged1","isolationUri":"vlan://tagged1","isSecurityG
>roupEnabled":false,"name":"Pool-wide
>network associated with eth2"}]},"result":false,"details":"Unable to
>start i-2-415-VM due to ","wait":0}}] }
>2012-06-13 08:56:25,517 WARN  [cloud.vm.VirtualMachineManagerImpl]
>(DirectAgent-45:null) Cleanup failed due to Unable to start i-2-415-VM
>due to
>2012-06-13 08:56:25,517 WARN  [cloud.vm.VirtualMachineManagerImpl]
>(Job-Executor-47:job-92) Cleanup failed due to Unable to start
>i-2-415-VM due to
>2012-06-13 08:56:25,590 INFO  [cloud.vm.VirtualMachineManagerImpl]
>(Job-Executor-47:job-92) Unable to start VM on Host[-6-Routing] due to
>Unable to start i-2-415-VM due to
>2012-06-13 08:56:26,159 DEBUG [cloud.capacity.CapacityManagerImpl]
>(Job-Executor-47:job-92) VM state transitted from :Starting to Stopped
>with event: OperationFailedvm's original host id: null new host id:
>null host id before state transition: 6
>2012-06-13 08:56:26,440 DEBUG [cloud.capacity.CapacityManagerImpl]
>(Job-Executor-47:job-92) VM state transitted from :Stopped to Error
>with event: OperationFailedToErrorvm's original host id: null new host
>id: null host id before state transition: null
>2012-06-13 08:56:27,209 INFO  [api.commands.DeployVMCmd]
>(Job-Executor-47:job-92)
>com.cloud.exception.InsufficientServerCapacityException: Unable to
>create a deployment for VM[User|i-2-415-VM]Scope=interface
>com.cloud.dc.DataCenter; id=1
>2012-06-13 08:56:27,210 WARN  [cloud.api.ApiDispatcher]
>(Job-Executor-47:job-92) class com.cloud.api.ServerApiException :
>Unable to create a deployment for VM[User|i-2-415-VM]
>2012-06-13 08:56:27,210 DEBUG [cloud.async.AsyncJobManagerImpl]
>(Job-Executor-47:job-92) Complete async job-92, jobStatus: 2,
>resultCode: 530, result:
>com.cloud.api.response.ExceptionResponse@1660d637
>2012-06-13 09:11:08,903 WARN  [cloud.network.NetworkManagerImpl]
>(Job-Executor-50:job-94) Can't delete the network, not all user vms
>are expunged. Vm VM[User|i-2-413-VM] is in Error state
>2012-06-13 09:11:08,993 WARN  [cloud.api.ApiDispatcher]
>(Job-Executor-50:job-94) class com.cloud.api.ServerApiException :
>Failed to delete network
>2012-06-13 09:11:08,993 DEBUG [cloud.async.AsyncJobManagerImpl]
>(Job-Executor-50:job-94) Complete async job-94, jobStatus: 2,
>resultCode: 530, result:
>com.cloud.api.response.ExceptionResponse@2102e538
>2012-06-13 09:11:09,144 WARN  [cloud.async.AsyncJobManagerImpl]
>(Job-Executor-50:job-94) Unable to unregister active job 94 from JMX
>monitoring
>2012-06-13 11:26:14,160 WARN  [cloud.network.NetworkManagerImpl]
>(Job-Executor-52:job-95) Can't delete the network, not all user vms
>are expunged. Vm VM[User|i-2-413-VM] is in Error state
>2012-06-13 11:26:14,243 WARN  [cloud.api.ApiDispatcher]
>(Job-Executor-52:job-95) class com.cloud.api.ServerApiException :
>Failed to delete network
>
>
>On Wed, Jun 13, 2012 at 10:46 PM, Alena Prokharchyk
><Al...@citrix.com> wrote:
>> On 6/13/12 1:38 PM, "Lu Heng" <h....@anytimechinese.com> wrote:
>>
>>>Hi
>>>
>>>And btw, I didn't see the maintainace botton for the 3 shared storage,
>>> I only see take snapshoot, snapshoot setting, that's it.
>>>
>>>On Wed, Jun 13, 2012 at 10:35 PM, Lu Heng <h....@anytimechinese.com>
>>>wrote:
>>>> Hi
>>>>
>>>> See my reply
>>>>
>>>> On Wed, Jun 13, 2012 at 10:30 PM, Alena Prokharchyk
>>>> <Al...@citrix.com> wrote:
>>>>> On 6/13/12 1:24 PM, "Lu Heng" <h....@anytimechinese.com> wrote:
>>>>>
>>>>>>Hi
>>>>>>
>>>>>>I find the reason, three vm are in state of "Expunging" for 3 hours
>>>>>>now, no process is being made, anyone has idea what should I do about
>>>>>>these VMs?
>>>>>
>>>>>
>>>>> What is expunge.interval in the setup? If the vms stuck in Expunging
>>>>>state
>>>>> with null Removed field, it indicates some problem happening during
>>>>>the
>>>>> expunge. I suspect it's related with the fact you removed the storage
>>>>>from
>>>>> the xen.
>>>>>
>>>> Vise verse, the situation is, the VM in the expunging state for 3
>>>> hours, and I find no way to delete them, so I try to delete the
>>>> storage.
>>
>>
>> So you deleted the VHDs per each volume, not the storage itself, please
>> confirm. And we should never do it as there is no volume sync, so if the
>> volume is removed on the backend, cloudStack has no idea it has
>>happened.
>>
>> The original issue is - vm got stuck in Expunging state. We have to
>>figure
>> out this one first. Please send the logs starting from the time the
>> Destroy command was executed for the Vm. And mention the vm name.
>>
>>
>> -Alena.
>>
>>
>>
>>
>>
>>>>
>>>> What should I do to fix this now?
>>>>>
>>>>>
>>>>>>
>>>>>>Another question is, I didn't see the delete botton with shared
>>>>>>storage, so I delete it from the xencenter, but after that I still
>>>>>>see
>>>>>>the deleted storage exists in the UI, what suppose to be done?
>>>>>
>>>>>
>>>>> Delete storage pool consists of 2 steps:
>>>>>
>>>>> * enable maintenance for the shared storage
>>>>> * after the maintenance is completed, the Delete button will be
>>>>>presented
>>>>> to the admin; and the storage can be removed.
>>>>>
>>>>> You are not supposed to delete primary storage on the backend;
>>>>>cloudStack
>>>>> has no idea if you do things like that, and it expects primary
>>>>>storage
>>>>>to
>>>>> be functioning.
>>>>>
>>>>> So when vm expunge happens, we see that the storage is in UP state,
>>>>>and
>>>>> try to send the destroy volume command to the Xen host. But the
>>>>>command
>>>>> fails there because there is no such primary storage exist.
>>>>>
>>>>> Let me know if its your case.
>>>>>
>>>>> -Alena.
>>>>>
>>>>>
>>>>>>
>>>>>>On Wed, Jun 13, 2012 at 10:08 PM, Alena Prokharchyk
>>>>>><Al...@citrix.com> wrote:
>>>>>>> On 6/13/12 12:55 PM, "Lu Heng" <h....@anytimechinese.com> wrote:
>>>>>>>
>>>>>>>>Hi
>>>>>>>>
>>>>>>>>Update:
>>>>>>>>
>>>>>>>>The zone has been stoped. all VM has been destoryed , the route vm
>>>>>>>>has
>>>>>>>>been stoped(no option for destory).
>>>>>>>>
>>>>>>>>Still get error fail to delete network.
>>>>>>>
>>>>>>>
>>>>>>> Can you send management server log file for debugging.
>>>>>>>
>>>>>>> Thanks,
>>>>>>> Alena.
>>>>>>>
>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>On Wed, Jun 13, 2012 at 7:23 PM, Alena Prokharchyk
>>>>>>>><Al...@citrix.com> wrote:
>>>>>>>>> On 6/13/12 10:18 AM, "Tamas Monos" <ta...@veber.co.uk> wrote:
>>>>>>>>>
>>>>>>>>>>Hi,
>>>>>>>>>>
>>>>>>>>>>Also I think the problem is when you are trying to delete the
>>>>>>>>>>network
>>>>>>>>>>the
>>>>>>>>>>router is powered off.
>>>>>>>>>>Therefore when you click delete it wants to remove the firewall
>>>>>>>>>>rules
>>>>>>>>>>for
>>>>>>>>>>that network but the router is not running so the command fails
>>>>>>>>>>which
>>>>>>>>>>fails the delet operation.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Also not a problem. The rules can be removed when the router is
>>>>>>>>>stopped.
>>>>>>>>> In this case the rules are removed in DB only. When the router
>>>>>>>>>starts
>>>>>>>>>up,
>>>>>>>>> we start clean (cleanup all the rules) and re-apply all the rules
>>>>>>>>>from
>>>>>>>>>the
>>>>>>>>> DB. So the removed rules won't exist  on the router.
>>>>>>>>>
>>>>>>>>> -Alena.
>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>Regards
>>>>>>>>>>
>>>>>>>>>>Tamas Monos                                               DDI
>>>>>>>>>>+44(0)2034687012
>>>>>>>>>>Chief Technical
>>>>>>>>>>Office
>>>>>>>>>>+44(0)2034687000
>>>>>>>>>>Veber: The Hosting Specialists               Fax
>>>>>>>>>>+44(0)871
>>>>>>>>>>522
>>>>>>>>>>7057
>>>>>>>>>>http://www.veber.co.uk
>>>>>>>>>>
>>>>>>>>>>Follow us on Twitter: www.twitter.com/veberhost
>>>>>>>>>>Follow us on Facebook: www.facebook.com/veberhost
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>-----Original Message-----
>>>>>>>>>>From: Tamas Monos [mailto:tamasm@veber.co.uk]
>>>>>>>>>>Sent: 13 June 2012 18:15
>>>>>>>>>>To: cloudstack-dev@incubator.apache.org
>>>>>>>>>>Subject: RE: Can not delete network
>>>>>>>>>>
>>>>>>>>>>Hi,
>>>>>>>>>>
>>>>>>>>>>I don't think you can delete a network if a router-vm for that
>>>>>>>>>>network
>>>>>>>>>>exists.
>>>>>>>>>>If you are trying to delete a network that network should not
>>>>>>>>>>have
>>>>>>>>>>any
>>>>>>>>>>VMs.
>>>>>>>>>>Delete the associated router from the management interface then
>>>>>>>>>>delete
>>>>>>>>>>the network.
>>>>>>>>>>This method works for me on 3.0.2
>>>>>>>>>>
>>>>>>>>>>Regards
>>>>>>>>>>
>>>>>>>>>>Tamas Monos                                               DDI
>>>>>>>>>>+44(0)2034687012
>>>>>>>>>>Chief Technical
>>>>>>>>>>Office
>>>>>>>>>>+44(0)2034687000
>>>>>>>>>>Veber: The Hosting Specialists               Fax
>>>>>>>>>>+44(0)871
>>>>>>>>>>522
>>>>>>>>>>7057
>>>>>>>>>>http://www.veber.co.uk
>>>>>>>>>>
>>>>>>>>>>Follow us on Twitter: www.twitter.com/veberhost Follow us on
>>>>>>>>>>Facebook:
>>>>>>>>>>www.facebook.com/veberhost
>>>>>>>>>>
>>>>>>>>>>-----Original Message-----
>>>>>>>>>>From: Alena Prokharchyk [mailto:Alena.Prokharchyk@citrix.com]
>>>>>>>>>>Sent: 13 June 2012 18:12
>>>>>>>>>>To: cloudstack-dev@incubator.apache.org
>>>>>>>>>>Subject: Re: Can not delete network
>>>>>>>>>>
>>>>>>>>>>Can you please check the management server log to see if there is
>>>>>>>>>>more
>>>>>>>>>>detailed exception in there.
>>>>>>>>>>
>>>>>>>>>>-Alena.
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>On 6/13/12 9:50 AM, "Lu Heng" <h....@anytimechinese.com> wrote:
>>>>>>>>>>
>>>>>>>>>>>Hi
>>>>>>>>>>>
>>>>>>>>>>>I have problem deleting guest network, everytime I tried it
>>>>>>>>>>>always
>>>>>>>>>>>shows "fail to delete network)
>>>>>>>>>>>
>>>>>>>>>>>2012-06-13 11:26:14,243 WARN  [cloud.api.ApiDispatcher]
>>>>>>>>>>>(Job-Executor-52:job-95) class com.cloud.api.ServerApiException
>>>>>>>>>>>:
>>>>>>>>>>>Failed to delete network
>>>>>>>>>>>
>>>>>>>>>>>Any idea how it happens?
>>>>>>>>>>>--
>>>>>>>>>>>--
>>>>>>>>>>>Kind regards.
>>>>>>>>>>>Lu
>>>>>>>>>>>
>>>>>>>>>>>This transmission is intended solely for the addressee(s) shown
>>>>>>>>>>>above.
>>>>>>>>>>>It may contain information that is privileged, confidential or
>>>>>>>>>>>otherwise protected from disclosure. Any review, dissemination
>>>>>>>>>>>or
>>>>>>>>>>>use
>>>>>>>>>>>of this transmission or its contents by persons other than the
>>>>>>>>>>>intended
>>>>>>>>>>>addressee(s) is strictly prohibited. If you have received this
>>>>>>>>>>>transmission in error, please notify this office immediately and
>>>>>>>>>>>e-mail
>>>>>>>>>>>the original at the sender's address above by replying to this
>>>>>>>>>>>message
>>>>>>>>>>>and including the text of the transmission received.
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>--
>>>>>>>>--
>>>>>>>>Kind regards.
>>>>>>>>Lu
>>>>>>>>
>>>>>>>>This transmission is intended solely for the addressee(s) shown
>>>>>>>>above.
>>>>>>>>It may contain information that is privileged, confidential or
>>>>>>>>otherwise protected from disclosure. Any review, dissemination or
>>>>>>>>use
>>>>>>>>of this transmission or its contents by persons other than the
>>>>>>>>intended addressee(s) is strictly prohibited. If you have received
>>>>>>>>this transmission in error, please notify this office immediately
>>>>>>>>and
>>>>>>>>e-mail the original at the sender's address above by replying to
>>>>>>>>this
>>>>>>>>message and including the text of the transmission received.
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>--
>>>>>>--
>>>>>>Kind regards.
>>>>>>Lu
>>>>>>
>>>>>>This transmission is intended solely for the addressee(s) shown
>>>>>>above.
>>>>>>It may contain information that is privileged, confidential or
>>>>>>otherwise protected from disclosure. Any review, dissemination or use
>>>>>>of this transmission or its contents by persons other than the
>>>>>>intended addressee(s) is strictly prohibited. If you have received
>>>>>>this transmission in error, please notify this office immediately and
>>>>>>e-mail the original at the sender's address above by replying to this
>>>>>>message and including the text of the transmission received.
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> --
>>>> Kind regards.
>>>> Lu
>>>>
>>>> This transmission is intended solely for the addressee(s) shown above.
>>>> It may contain information that is privileged, confidential or
>>>> otherwise protected from disclosure. Any review, dissemination or use
>>>> of this transmission or its contents by persons other than the
>>>> intended addressee(s) is strictly prohibited. If you have received
>>>> this transmission in error, please notify this office immediately and
>>>> e-mail the original at the sender's address above by replying to this
>>>> message and including the text of the transmission received.
>>>
>>>
>>>
>>>--
>>>--
>>>Kind regards.
>>>Lu
>>>
>>>This transmission is intended solely for the addressee(s) shown above.
>>>It may contain information that is privileged, confidential or
>>>otherwise protected from disclosure. Any review, dissemination or use
>>>of this transmission or its contents by persons other than the
>>>intended addressee(s) is strictly prohibited. If you have received
>>>this transmission in error, please notify this office immediately and
>>>e-mail the original at the sender's address above by replying to this
>>>message and including the text of the transmission received.
>>>
>>
>>
>
>
>
>--
>--
>Kind regards.
>Lu
>
>This transmission is intended solely for the addressee(s) shown above.
>It may contain information that is privileged, confidential or
>otherwise protected from disclosure. Any review, dissemination or use
>of this transmission or its contents by persons other than the
>intended addressee(s) is strictly prohibited. If you have received
>this transmission in error, please notify this office immediately and
>e-mail the original at the sender's address above by replying to this
>message and including the text of the transmission received.
>



Re: Can not delete network

Posted by Lu Heng <h....@anytimechinese.com>.
Hi

The story start with I try to setup direct attached network to the
guest network, in which I create a VM with the shared network I setup,
but the VM does not start successfully, so I tried to delete the guest
network I have created, in which I failed because of the vm was not
destroy, then I try to destroy the VM, but the VM stuck in the
explunging state:

The network setup was not resolved, I asked in this mailling list what
should I do if I have public network in the access point with advanced
network setup, they said I have to create a shared network offering
with Vlan, in which the public IP has no vlan setup, so I just typed
tagged in the vlan section,seems not working.

Below is the full story log start with I added a direct attached network:

2012-06-13 08:56:25,401 WARN  [xen.resource.CitrixResourceBase]
(DirectAgent-45:null) Catch Exception: class
java.lang.NumberFormatException due to
java.lang.NumberFormatException: For input string: "tagged1"
java.lang.NumberFormatException: For input string: "tagged1"
        at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
2012-06-13 08:56:25,402 WARN  [xen.resource.CitrixResourceBase]
(DirectAgent-45:null) Unable to start i-2-415-VM due to
java.lang.NumberFormatException: For input string: "tagged1"
        at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
2012-06-13 08:56:25,455 WARN  [xen.resource.CitrixResourceBase]
(DirectAgent-45:null) Unable to clean up VBD due to
You gave an invalid object reference.  The object may have recently
been deleted.  The class parameter gives the type of reference given,
and the handle parameter echoes the bad value given.
        at com.cloud.hypervisor.xen.resource.CitrixResourceBase.handleVmStartFailure(CitrixResourceBase.java:930)
2012-06-13 08:56:25,466 WARN  [xen.resource.CitrixResourceBase]
(DirectAgent-45:null) Unable to clean up VBD due to
You gave an invalid object reference.  The object may have recently
been deleted.  The class parameter gives the type of reference given,
and the handle parameter echoes the bad value given.
        at com.cloud.hypervisor.xen.resource.CitrixResourceBase.handleVmStartFailure(CitrixResourceBase.java:930)
2012-06-13 08:56:25,478 WARN  [xen.resource.CitrixResourceBase]
(DirectAgent-45:null) Unable to clean up VBD due to
You gave an invalid object reference.  The object may have recently
been deleted.  The class parameter gives the type of reference given,
and the handle parameter echoes the bad value given.
        at com.cloud.hypervisor.xen.resource.CitrixResourceBase.handleVmStartFailure(CitrixResourceBase.java:930)
2012-06-13 08:56:25,489 WARN  [xen.resource.CitrixResourceBase]
(DirectAgent-45:null) Unable to cleanup VIF
You gave an invalid object reference.  The object may have recently
been deleted.  The class parameter gives the type of reference given,
and the handle parameter echoes the bad value given.
        at com.cloud.hypervisor.xen.resource.CitrixResourceBase.handleVmStartFailure(CitrixResourceBase.java:938)
2012-06-13 08:56:25,515 INFO  [xen.resource.XenServer56Resource]
(DirectAgent-45:null) Catch com.xensource.xenapi.Types$VifInUse:
failed to destory VLAN eth2 on host
b9f6241d-cbd6-49a8-916e-dff524569dd4 due to Network has active VIFs
2012-06-13 08:56:25,517 DEBUG [agent.transport.Request]
(DirectAgent-45:null) Seq 6-920389063: Processing:  { Ans: , MgmtId:
229144658033003, via: 6, Ver: v1, Flags: 110,
[{"StartAnswer":{"vm":{"id":415,"name":"i-2-415-VM","bootloader":"PyGrub","type":"User","cpus":1,"speed":500,"minRam":536870912,"maxRam":536870912,"arch":"x86_64","os":"CentOS
5.3 (64-bit)","bootArgs":"","rebootOnCrash":false,"enableHA":false,"limitCpuUse":false,"vncPassword":"7bad48a63e4b14e7","params":{},"disks":[{"id":419,"name":"ROOT-415","mountPoint":"/iqn.2006-01.com.openfiler:tsn.2912cb92f82d/0","path":"ff3b7226-fd0b-4d0b-8af4-393496d7ee24","size":21474836480,"type":"ROOT","storagePoolType":"IscsiLUN","storagePoolUuid":"f7d6960c-84a6-332f-9068-27ef0f216b31","deviceId":0},{"id":420,"name":"DATA-415","mountPoint":"/iqn.2006-01.com.openfiler:tsn.2912cb92f82d/0","path":"202feab0-b724-4b70-b757-32f2b8dfddee","size":5368709120,"type":"DATADISK","storagePoolType":"IscsiLUN","storagePoolUuid":"f7d6960c-84a6-332f-9068-27ef0f216b31","deviceId":1},{"id":415,"name":"CentOS
5.6(64-bit) no GUI
(XenServer)","size":0,"type":"ISO","storagePoolType":"ISO","deviceId":3}],"nics":[{"deviceId":0,"networkRateMbps":200,"defaultNic":true,"ip":"10.1.1.99","netmask":"255.255.255.0","gateway":"10.1.1.1","mac":"02:00:2e:ae:00:04","dns1":"204.13.152.2","broadcastType":"Vlan","type":"Guest","broadcastUri":"vlan://292","isolationUri":"vlan://292","isSecurityGroupEnabled":false,"name":"Pool-wide
network associated with
eth2"},{"deviceId":1,"networkRateMbps":200,"defaultNic":false,"ip":"46.136.134.86","netmask":"255.255.255.0","gateway":"46.136.134.1","mac":"06:4a:b4:00:08:3d","dns1":"204.13.152.2","broadcastType":"Vlan","type":"Guest","broadcastUri":"vlan://tagged1","isolationUri":"vlan://tagged1","isSecurityGroupEnabled":false,"name":"Pool-wide
network associated with eth2"}]},"result":false,"details":"Unable to
start i-2-415-VM due to ","wait":0}}] }
2012-06-13 08:56:25,517 WARN  [cloud.vm.VirtualMachineManagerImpl]
(DirectAgent-45:null) Cleanup failed due to Unable to start i-2-415-VM
due to
2012-06-13 08:56:25,517 WARN  [cloud.vm.VirtualMachineManagerImpl]
(Job-Executor-47:job-92) Cleanup failed due to Unable to start
i-2-415-VM due to
2012-06-13 08:56:25,590 INFO  [cloud.vm.VirtualMachineManagerImpl]
(Job-Executor-47:job-92) Unable to start VM on Host[-6-Routing] due to
Unable to start i-2-415-VM due to
2012-06-13 08:56:26,159 DEBUG [cloud.capacity.CapacityManagerImpl]
(Job-Executor-47:job-92) VM state transitted from :Starting to Stopped
with event: OperationFailedvm's original host id: null new host id:
null host id before state transition: 6
2012-06-13 08:56:26,440 DEBUG [cloud.capacity.CapacityManagerImpl]
(Job-Executor-47:job-92) VM state transitted from :Stopped to Error
with event: OperationFailedToErrorvm's original host id: null new host
id: null host id before state transition: null
2012-06-13 08:56:27,209 INFO  [api.commands.DeployVMCmd]
(Job-Executor-47:job-92)
com.cloud.exception.InsufficientServerCapacityException: Unable to
create a deployment for VM[User|i-2-415-VM]Scope=interface
com.cloud.dc.DataCenter; id=1
2012-06-13 08:56:27,210 WARN  [cloud.api.ApiDispatcher]
(Job-Executor-47:job-92) class com.cloud.api.ServerApiException :
Unable to create a deployment for VM[User|i-2-415-VM]
2012-06-13 08:56:27,210 DEBUG [cloud.async.AsyncJobManagerImpl]
(Job-Executor-47:job-92) Complete async job-92, jobStatus: 2,
resultCode: 530, result:
com.cloud.api.response.ExceptionResponse@1660d637
2012-06-13 09:11:08,903 WARN  [cloud.network.NetworkManagerImpl]
(Job-Executor-50:job-94) Can't delete the network, not all user vms
are expunged. Vm VM[User|i-2-413-VM] is in Error state
2012-06-13 09:11:08,993 WARN  [cloud.api.ApiDispatcher]
(Job-Executor-50:job-94) class com.cloud.api.ServerApiException :
Failed to delete network
2012-06-13 09:11:08,993 DEBUG [cloud.async.AsyncJobManagerImpl]
(Job-Executor-50:job-94) Complete async job-94, jobStatus: 2,
resultCode: 530, result:
com.cloud.api.response.ExceptionResponse@2102e538
2012-06-13 09:11:09,144 WARN  [cloud.async.AsyncJobManagerImpl]
(Job-Executor-50:job-94) Unable to unregister active job 94 from JMX
monitoring
2012-06-13 11:26:14,160 WARN  [cloud.network.NetworkManagerImpl]
(Job-Executor-52:job-95) Can't delete the network, not all user vms
are expunged. Vm VM[User|i-2-413-VM] is in Error state
2012-06-13 11:26:14,243 WARN  [cloud.api.ApiDispatcher]
(Job-Executor-52:job-95) class com.cloud.api.ServerApiException :
Failed to delete network


On Wed, Jun 13, 2012 at 10:46 PM, Alena Prokharchyk
<Al...@citrix.com> wrote:
> On 6/13/12 1:38 PM, "Lu Heng" <h....@anytimechinese.com> wrote:
>
>>Hi
>>
>>And btw, I didn't see the maintainace botton for the 3 shared storage,
>> I only see take snapshoot, snapshoot setting, that's it.
>>
>>On Wed, Jun 13, 2012 at 10:35 PM, Lu Heng <h....@anytimechinese.com> wrote:
>>> Hi
>>>
>>> See my reply
>>>
>>> On Wed, Jun 13, 2012 at 10:30 PM, Alena Prokharchyk
>>> <Al...@citrix.com> wrote:
>>>> On 6/13/12 1:24 PM, "Lu Heng" <h....@anytimechinese.com> wrote:
>>>>
>>>>>Hi
>>>>>
>>>>>I find the reason, three vm are in state of "Expunging" for 3 hours
>>>>>now, no process is being made, anyone has idea what should I do about
>>>>>these VMs?
>>>>
>>>>
>>>> What is expunge.interval in the setup? If the vms stuck in Expunging
>>>>state
>>>> with null Removed field, it indicates some problem happening during the
>>>> expunge. I suspect it's related with the fact you removed the storage
>>>>from
>>>> the xen.
>>>>
>>> Vise verse, the situation is, the VM in the expunging state for 3
>>> hours, and I find no way to delete them, so I try to delete the
>>> storage.
>
>
> So you deleted the VHDs per each volume, not the storage itself, please
> confirm. And we should never do it as there is no volume sync, so if the
> volume is removed on the backend, cloudStack has no idea it has happened.
>
> The original issue is - vm got stuck in Expunging state. We have to figure
> out this one first. Please send the logs starting from the time the
> Destroy command was executed for the Vm. And mention the vm name.
>
>
> -Alena.
>
>
>
>
>
>>>
>>> What should I do to fix this now?
>>>>
>>>>
>>>>>
>>>>>Another question is, I didn't see the delete botton with shared
>>>>>storage, so I delete it from the xencenter, but after that I still see
>>>>>the deleted storage exists in the UI, what suppose to be done?
>>>>
>>>>
>>>> Delete storage pool consists of 2 steps:
>>>>
>>>> * enable maintenance for the shared storage
>>>> * after the maintenance is completed, the Delete button will be
>>>>presented
>>>> to the admin; and the storage can be removed.
>>>>
>>>> You are not supposed to delete primary storage on the backend;
>>>>cloudStack
>>>> has no idea if you do things like that, and it expects primary storage
>>>>to
>>>> be functioning.
>>>>
>>>> So when vm expunge happens, we see that the storage is in UP state, and
>>>> try to send the destroy volume command to the Xen host. But the command
>>>> fails there because there is no such primary storage exist.
>>>>
>>>> Let me know if its your case.
>>>>
>>>> -Alena.
>>>>
>>>>
>>>>>
>>>>>On Wed, Jun 13, 2012 at 10:08 PM, Alena Prokharchyk
>>>>><Al...@citrix.com> wrote:
>>>>>> On 6/13/12 12:55 PM, "Lu Heng" <h....@anytimechinese.com> wrote:
>>>>>>
>>>>>>>Hi
>>>>>>>
>>>>>>>Update:
>>>>>>>
>>>>>>>The zone has been stoped. all VM has been destoryed , the route vm
>>>>>>>has
>>>>>>>been stoped(no option for destory).
>>>>>>>
>>>>>>>Still get error fail to delete network.
>>>>>>
>>>>>>
>>>>>> Can you send management server log file for debugging.
>>>>>>
>>>>>> Thanks,
>>>>>> Alena.
>>>>>>
>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>On Wed, Jun 13, 2012 at 7:23 PM, Alena Prokharchyk
>>>>>>><Al...@citrix.com> wrote:
>>>>>>>> On 6/13/12 10:18 AM, "Tamas Monos" <ta...@veber.co.uk> wrote:
>>>>>>>>
>>>>>>>>>Hi,
>>>>>>>>>
>>>>>>>>>Also I think the problem is when you are trying to delete the
>>>>>>>>>network
>>>>>>>>>the
>>>>>>>>>router is powered off.
>>>>>>>>>Therefore when you click delete it wants to remove the firewall
>>>>>>>>>rules
>>>>>>>>>for
>>>>>>>>>that network but the router is not running so the command fails
>>>>>>>>>which
>>>>>>>>>fails the delet operation.
>>>>>>>>
>>>>>>>>
>>>>>>>> Also not a problem. The rules can be removed when the router is
>>>>>>>>stopped.
>>>>>>>> In this case the rules are removed in DB only. When the router
>>>>>>>>starts
>>>>>>>>up,
>>>>>>>> we start clean (cleanup all the rules) and re-apply all the rules
>>>>>>>>from
>>>>>>>>the
>>>>>>>> DB. So the removed rules won't exist  on the router.
>>>>>>>>
>>>>>>>> -Alena.
>>>>>>>>
>>>>>>>>>
>>>>>>>>>Regards
>>>>>>>>>
>>>>>>>>>Tamas Monos                                               DDI
>>>>>>>>>+44(0)2034687012
>>>>>>>>>Chief Technical                                             Office
>>>>>>>>>+44(0)2034687000
>>>>>>>>>Veber: The Hosting Specialists               Fax         +44(0)871
>>>>>>>>>522
>>>>>>>>>7057
>>>>>>>>>http://www.veber.co.uk
>>>>>>>>>
>>>>>>>>>Follow us on Twitter: www.twitter.com/veberhost
>>>>>>>>>Follow us on Facebook: www.facebook.com/veberhost
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>-----Original Message-----
>>>>>>>>>From: Tamas Monos [mailto:tamasm@veber.co.uk]
>>>>>>>>>Sent: 13 June 2012 18:15
>>>>>>>>>To: cloudstack-dev@incubator.apache.org
>>>>>>>>>Subject: RE: Can not delete network
>>>>>>>>>
>>>>>>>>>Hi,
>>>>>>>>>
>>>>>>>>>I don't think you can delete a network if a router-vm for that
>>>>>>>>>network
>>>>>>>>>exists.
>>>>>>>>>If you are trying to delete a network that network should not have
>>>>>>>>>any
>>>>>>>>>VMs.
>>>>>>>>>Delete the associated router from the management interface then
>>>>>>>>>delete
>>>>>>>>>the network.
>>>>>>>>>This method works for me on 3.0.2
>>>>>>>>>
>>>>>>>>>Regards
>>>>>>>>>
>>>>>>>>>Tamas Monos                                               DDI
>>>>>>>>>+44(0)2034687012
>>>>>>>>>Chief Technical                                             Office
>>>>>>>>>+44(0)2034687000
>>>>>>>>>Veber: The Hosting Specialists               Fax         +44(0)871
>>>>>>>>>522
>>>>>>>>>7057
>>>>>>>>>http://www.veber.co.uk
>>>>>>>>>
>>>>>>>>>Follow us on Twitter: www.twitter.com/veberhost Follow us on
>>>>>>>>>Facebook:
>>>>>>>>>www.facebook.com/veberhost
>>>>>>>>>
>>>>>>>>>-----Original Message-----
>>>>>>>>>From: Alena Prokharchyk [mailto:Alena.Prokharchyk@citrix.com]
>>>>>>>>>Sent: 13 June 2012 18:12
>>>>>>>>>To: cloudstack-dev@incubator.apache.org
>>>>>>>>>Subject: Re: Can not delete network
>>>>>>>>>
>>>>>>>>>Can you please check the management server log to see if there is
>>>>>>>>>more
>>>>>>>>>detailed exception in there.
>>>>>>>>>
>>>>>>>>>-Alena.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>On 6/13/12 9:50 AM, "Lu Heng" <h....@anytimechinese.com> wrote:
>>>>>>>>>
>>>>>>>>>>Hi
>>>>>>>>>>
>>>>>>>>>>I have problem deleting guest network, everytime I tried it always
>>>>>>>>>>shows "fail to delete network)
>>>>>>>>>>
>>>>>>>>>>2012-06-13 11:26:14,243 WARN  [cloud.api.ApiDispatcher]
>>>>>>>>>>(Job-Executor-52:job-95) class com.cloud.api.ServerApiException :
>>>>>>>>>>Failed to delete network
>>>>>>>>>>
>>>>>>>>>>Any idea how it happens?
>>>>>>>>>>--
>>>>>>>>>>--
>>>>>>>>>>Kind regards.
>>>>>>>>>>Lu
>>>>>>>>>>
>>>>>>>>>>This transmission is intended solely for the addressee(s) shown
>>>>>>>>>>above.
>>>>>>>>>>It may contain information that is privileged, confidential or
>>>>>>>>>>otherwise protected from disclosure. Any review, dissemination or
>>>>>>>>>>use
>>>>>>>>>>of this transmission or its contents by persons other than the
>>>>>>>>>>intended
>>>>>>>>>>addressee(s) is strictly prohibited. If you have received this
>>>>>>>>>>transmission in error, please notify this office immediately and
>>>>>>>>>>e-mail
>>>>>>>>>>the original at the sender's address above by replying to this
>>>>>>>>>>message
>>>>>>>>>>and including the text of the transmission received.
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>--
>>>>>>>--
>>>>>>>Kind regards.
>>>>>>>Lu
>>>>>>>
>>>>>>>This transmission is intended solely for the addressee(s) shown
>>>>>>>above.
>>>>>>>It may contain information that is privileged, confidential or
>>>>>>>otherwise protected from disclosure. Any review, dissemination or use
>>>>>>>of this transmission or its contents by persons other than the
>>>>>>>intended addressee(s) is strictly prohibited. If you have received
>>>>>>>this transmission in error, please notify this office immediately and
>>>>>>>e-mail the original at the sender's address above by replying to this
>>>>>>>message and including the text of the transmission received.
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>>--
>>>>>--
>>>>>Kind regards.
>>>>>Lu
>>>>>
>>>>>This transmission is intended solely for the addressee(s) shown above.
>>>>>It may contain information that is privileged, confidential or
>>>>>otherwise protected from disclosure. Any review, dissemination or use
>>>>>of this transmission or its contents by persons other than the
>>>>>intended addressee(s) is strictly prohibited. If you have received
>>>>>this transmission in error, please notify this office immediately and
>>>>>e-mail the original at the sender's address above by replying to this
>>>>>message and including the text of the transmission received.
>>>>>
>>>>
>>>>
>>>
>>>
>>>
>>> --
>>> --
>>> Kind regards.
>>> Lu
>>>
>>> This transmission is intended solely for the addressee(s) shown above.
>>> It may contain information that is privileged, confidential or
>>> otherwise protected from disclosure. Any review, dissemination or use
>>> of this transmission or its contents by persons other than the
>>> intended addressee(s) is strictly prohibited. If you have received
>>> this transmission in error, please notify this office immediately and
>>> e-mail the original at the sender's address above by replying to this
>>> message and including the text of the transmission received.
>>
>>
>>
>>--
>>--
>>Kind regards.
>>Lu
>>
>>This transmission is intended solely for the addressee(s) shown above.
>>It may contain information that is privileged, confidential or
>>otherwise protected from disclosure. Any review, dissemination or use
>>of this transmission or its contents by persons other than the
>>intended addressee(s) is strictly prohibited. If you have received
>>this transmission in error, please notify this office immediately and
>>e-mail the original at the sender's address above by replying to this
>>message and including the text of the transmission received.
>>
>
>



-- 
--
Kind regards.
Lu

This transmission is intended solely for the addressee(s) shown above.
It may contain information that is privileged, confidential or
otherwise protected from disclosure. Any review, dissemination or use
of this transmission or its contents by persons other than the
intended addressee(s) is strictly prohibited. If you have received
this transmission in error, please notify this office immediately and
e-mail the original at the sender's address above by replying to this
message and including the text of the transmission received.

Re: Can not delete network

Posted by Alena Prokharchyk <Al...@citrix.com>.
See inline.



On 6/13/12 2:00 PM, "Lu Heng" <h....@anytimechinese.com> wrote:

>Hi
>
>On Wed, Jun 13, 2012 at 10:52 PM, Alena Prokharchyk
><Al...@citrix.com> wrote:
>> On 6/13/12 1:45 PM, "Lu Heng" <h....@anytimechinese.com> wrote:
>>
>>>Hi
>>>
>>>I was talking about volume.
>>>
>>>So here is the full story:
>>>
>>>I saw three vm are in the Expunging state for 3 hours(even now), I try
>>>to delete storage in wish it will delete the VM, but I didn't find the
>>>delete bottom, so I go to xencenter delete these three volume in the
>>>primary storage.
>>>
>>>Now, the three vm is still in the Expunging states, what should I do
>>>now?
>>
>>
>> The workaround would be:
>>
>> * Get all volumes you removed, and update their removed field to not
>>null
>
>How can I "get" all volume I have removed, it is not exsits anymore.


You need to know which volumes you removed on the backend, and what volume
ids they correspond to in cloudStack. If you don't remember that, do:

Select id from volumes where instance_id in (select id from vm_instance
where state='Expunging' and removed is null)

Mark those


>> value:
>>
>> Update volumes set removed=now() where id in (id1, id2…idn)
>Where to set this value?



Volumes table in mysql DB - the statement clearly says it.



>>
>> * Wait for the next expunge thread to kick in, it should expunge the vms
>> without any problems now.
>>
>The expunge of the VM has nothing to do with the storage, it was stuck
>in the first place because of network setup.


It has everything to do with that. Network can be deleted only when all
user vms are in Expunging state in this network. And if vm fails to start,
it goes to Error state, then Expunge thread tries to Expunge the vm. In
your case the expunge might have failed.

>
>And I just find out, I have 6 VMs, 3 destroyed, and 3 in the explung
>states, the 3 shared storage accturelly belong to the destroyed VMs,
>so it has nothing to do with the explunged VM.



If you see vm in Expunging state, and it's Removed field is null, it means
that the vm failed to expunge.


>
>So I think we have two problem here:
>
>1. I tried to delete the destroyed VM's shared storage, but I can not,
>I didn't find a delete bottom in the cloudstack UI for that., so I
>deleted the storage in the primary storage via xencenter.


Again, you can't remove RooT volume for the vm. It can be removed only as
a part of vm expunge.


>As well as I see the VM has been destoryed in the UI, but it always
>has a round bottom say you can restore it, how can I destroy a VM
>permanently?



Expunge thread does it for you; end user can't do it. It's a periodic
thread that runs every expunge.interval (configurable via global settings)


>
>2. because of incorrect network setup for the other 3 VM, I have
>deleted their storage from the cloudstack UI, but they are still
>showing expunging now, what should I do?



How did you remove their storage in the UI? You can't expunge the Root
volumes. Vms that fail to start go to Error state, and then they go
through the same expunge process as vms in Destroyed state.



>>
>> We still have to figure out the original issue - why vms got stuck in
>> Expunging state in the very beginning. Next time you see this kind of
>> problem, it's better to find out the root cause and fix it if possible.
>> Deleting things on the backend can cause multiple problems on the
>> cloudStack side.
>>
>> -Alena.
>>
>>
>>
>>>
>>>On Wed, Jun 13, 2012 at 10:44 PM, Alena Prokharchyk
>>><Al...@citrix.com> wrote:
>>>> On 6/13/12 1:38 PM, "Lu Heng" <h....@anytimechinese.com> wrote:
>>>>
>>>>>Hi
>>>>>
>>>>>And btw, I didn't see the maintainace botton for the 3 shared storage,
>>>>> I only see take snapshoot, snapshoot setting, that's it.
>>>>
>>>>
>>>> Are you talking about storage pool or volume on the storage pool? You
>>>>can
>>>> take snapshot of the volume only…
>>>>
>>>> To see Shared storage pools, go to Infrastructure->Zones->select the
>>>> zone->Primary Storage -> Select primary storage. For each primary
>>>>storage
>>>> we show 2 buttons: "Edit" and "Enable Maintenance mode"
>>>>
>>>> As for the volume, ROOT volume of the vm can be deleted only as a part
>>>>of
>>>> vm expunge, never on its own.
>>>>
>>>>
>>>>>
>>>>>On Wed, Jun 13, 2012 at 10:35 PM, Lu Heng <h....@anytimechinese.com>
>>>>>wrote:
>>>>>> Hi
>>>>>>
>>>>>> See my reply
>>>>>>
>>>>>> On Wed, Jun 13, 2012 at 10:30 PM, Alena Prokharchyk
>>>>>> <Al...@citrix.com> wrote:
>>>>>>> On 6/13/12 1:24 PM, "Lu Heng" <h....@anytimechinese.com> wrote:
>>>>>>>
>>>>>>>>Hi
>>>>>>>>
>>>>>>>>I find the reason, three vm are in state of "Expunging" for 3 hours
>>>>>>>>now, no process is being made, anyone has idea what should I do
>>>>>>>>about
>>>>>>>>these VMs?
>>>>>>>
>>>>>>>
>>>>>>> What is expunge.interval in the setup? If the vms stuck in
>>>>>>>Expunging
>>>>>>>state
>>>>>>> with null Removed field, it indicates some problem happening during
>>>>>>>the
>>>>>>> expunge. I suspect it's related with the fact you removed the
>>>>>>>storage
>>>>>>>from
>>>>>>> the xen.
>>>>>>>
>>>>>> Vise verse, the situation is, the VM in the expunging state for 3
>>>>>> hours, and I find no way to delete them, so I try to delete the
>>>>>> storage.
>>>>>>
>>>>>> What should I do to fix this now?
>>>>>>>
>>>>>>>
>>>>>>>>
>>>>>>>>Another question is, I didn't see the delete botton with shared
>>>>>>>>storage, so I delete it from the xencenter, but after that I still
>>>>>>>>see
>>>>>>>>the deleted storage exists in the UI, what suppose to be done?
>>>>>>>
>>>>>>>
>>>>>>> Delete storage pool consists of 2 steps:
>>>>>>>
>>>>>>> * enable maintenance for the shared storage
>>>>>>> * after the maintenance is completed, the Delete button will be
>>>>>>>presented
>>>>>>> to the admin; and the storage can be removed.
>>>>>>>
>>>>>>> You are not supposed to delete primary storage on the backend;
>>>>>>>cloudStack
>>>>>>> has no idea if you do things like that, and it expects primary
>>>>>>>storage
>>>>>>>to
>>>>>>> be functioning.
>>>>>>>
>>>>>>> So when vm expunge happens, we see that the storage is in UP state,
>>>>>>>and
>>>>>>> try to send the destroy volume command to the Xen host. But the
>>>>>>>command
>>>>>>> fails there because there is no such primary storage exist.
>>>>>>>
>>>>>>> Let me know if its your case.
>>>>>>>
>>>>>>> -Alena.
>>>>>>>
>>>>>>>
>>>>>>>>
>>>>>>>>On Wed, Jun 13, 2012 at 10:08 PM, Alena Prokharchyk
>>>>>>>><Al...@citrix.com> wrote:
>>>>>>>>> On 6/13/12 12:55 PM, "Lu Heng" <h....@anytimechinese.com> wrote:
>>>>>>>>>
>>>>>>>>>>Hi
>>>>>>>>>>
>>>>>>>>>>Update:
>>>>>>>>>>
>>>>>>>>>>The zone has been stoped. all VM has been destoryed , the route
>>>>>>>>>>vm
>>>>>>>>>>has
>>>>>>>>>>been stoped(no option for destory).
>>>>>>>>>>
>>>>>>>>>>Still get error fail to delete network.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Can you send management server log file for debugging.
>>>>>>>>>
>>>>>>>>> Thanks,
>>>>>>>>> Alena.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>On Wed, Jun 13, 2012 at 7:23 PM, Alena Prokharchyk
>>>>>>>>>><Al...@citrix.com> wrote:
>>>>>>>>>>> On 6/13/12 10:18 AM, "Tamas Monos" <ta...@veber.co.uk> wrote:
>>>>>>>>>>>
>>>>>>>>>>>>Hi,
>>>>>>>>>>>>
>>>>>>>>>>>>Also I think the problem is when you are trying to delete the
>>>>>>>>>>>>network
>>>>>>>>>>>>the
>>>>>>>>>>>>router is powered off.
>>>>>>>>>>>>Therefore when you click delete it wants to remove the firewall
>>>>>>>>>>>>rules
>>>>>>>>>>>>for
>>>>>>>>>>>>that network but the router is not running so the command fails
>>>>>>>>>>>>which
>>>>>>>>>>>>fails the delet operation.
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> Also not a problem. The rules can be removed when the router is
>>>>>>>>>>>stopped.
>>>>>>>>>>> In this case the rules are removed in DB only. When the router
>>>>>>>>>>>starts
>>>>>>>>>>>up,
>>>>>>>>>>> we start clean (cleanup all the rules) and re-apply all the
>>>>>>>>>>>rules
>>>>>>>>>>>from
>>>>>>>>>>>the
>>>>>>>>>>> DB. So the removed rules won't exist  on the router.
>>>>>>>>>>>
>>>>>>>>>>> -Alena.
>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>Regards
>>>>>>>>>>>>
>>>>>>>>>>>>Tamas Monos                                               DDI
>>>>>>>>>>>>+44(0)2034687012
>>>>>>>>>>>>Chief Technical
>>>>>>>>>>>>Office
>>>>>>>>>>>>+44(0)2034687000
>>>>>>>>>>>>Veber: The Hosting Specialists               Fax
>>>>>>>>>>>>+44(0)871
>>>>>>>>>>>>522
>>>>>>>>>>>>7057
>>>>>>>>>>>>http://www.veber.co.uk
>>>>>>>>>>>>
>>>>>>>>>>>>Follow us on Twitter: www.twitter.com/veberhost
>>>>>>>>>>>>Follow us on Facebook: www.facebook.com/veberhost
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>-----Original Message-----
>>>>>>>>>>>>From: Tamas Monos [mailto:tamasm@veber.co.uk]
>>>>>>>>>>>>Sent: 13 June 2012 18:15
>>>>>>>>>>>>To: cloudstack-dev@incubator.apache.org
>>>>>>>>>>>>Subject: RE: Can not delete network
>>>>>>>>>>>>
>>>>>>>>>>>>Hi,
>>>>>>>>>>>>
>>>>>>>>>>>>I don't think you can delete a network if a router-vm for that
>>>>>>>>>>>>network
>>>>>>>>>>>>exists.
>>>>>>>>>>>>If you are trying to delete a network that network should not
>>>>>>>>>>>>have
>>>>>>>>>>>>any
>>>>>>>>>>>>VMs.
>>>>>>>>>>>>Delete the associated router from the management interface then
>>>>>>>>>>>>delete
>>>>>>>>>>>>the network.
>>>>>>>>>>>>This method works for me on 3.0.2
>>>>>>>>>>>>
>>>>>>>>>>>>Regards
>>>>>>>>>>>>
>>>>>>>>>>>>Tamas Monos                                               DDI
>>>>>>>>>>>>+44(0)2034687012
>>>>>>>>>>>>Chief Technical
>>>>>>>>>>>>Office
>>>>>>>>>>>>+44(0)2034687000
>>>>>>>>>>>>Veber: The Hosting Specialists               Fax
>>>>>>>>>>>>+44(0)871
>>>>>>>>>>>>522
>>>>>>>>>>>>7057
>>>>>>>>>>>>http://www.veber.co.uk
>>>>>>>>>>>>
>>>>>>>>>>>>Follow us on Twitter: www.twitter.com/veberhost Follow us on
>>>>>>>>>>>>Facebook:
>>>>>>>>>>>>www.facebook.com/veberhost
>>>>>>>>>>>>
>>>>>>>>>>>>-----Original Message-----
>>>>>>>>>>>>From: Alena Prokharchyk [mailto:Alena.Prokharchyk@citrix.com]
>>>>>>>>>>>>Sent: 13 June 2012 18:12
>>>>>>>>>>>>To: cloudstack-dev@incubator.apache.org
>>>>>>>>>>>>Subject: Re: Can not delete network
>>>>>>>>>>>>
>>>>>>>>>>>>Can you please check the management server log to see if there
>>>>>>>>>>>>is
>>>>>>>>>>>>more
>>>>>>>>>>>>detailed exception in there.
>>>>>>>>>>>>
>>>>>>>>>>>>-Alena.
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>On 6/13/12 9:50 AM, "Lu Heng" <h....@anytimechinese.com> wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>>Hi
>>>>>>>>>>>>>
>>>>>>>>>>>>>I have problem deleting guest network, everytime I tried it
>>>>>>>>>>>>>always
>>>>>>>>>>>>>shows "fail to delete network)
>>>>>>>>>>>>>
>>>>>>>>>>>>>2012-06-13 11:26:14,243 WARN  [cloud.api.ApiDispatcher]
>>>>>>>>>>>>>(Job-Executor-52:job-95) class
>>>>>>>>>>>>>com.cloud.api.ServerApiException
>>>>>>>>>>>>>:
>>>>>>>>>>>>>Failed to delete network
>>>>>>>>>>>>>
>>>>>>>>>>>>>Any idea how it happens?
>>>>>>>>>>>>>--
>>>>>>>>>>>>>--
>>>>>>>>>>>>>Kind regards.
>>>>>>>>>>>>>Lu
>>>>>>>>>>>>>
>>>>>>>>>>>>>This transmission is intended solely for the addressee(s)
>>>>>>>>>>>>>shown
>>>>>>>>>>>>>above.
>>>>>>>>>>>>>It may contain information that is privileged, confidential or
>>>>>>>>>>>>>otherwise protected from disclosure. Any review, dissemination
>>>>>>>>>>>>>or
>>>>>>>>>>>>>use
>>>>>>>>>>>>>of this transmission or its contents by persons other than the
>>>>>>>>>>>>>intended
>>>>>>>>>>>>>addressee(s) is strictly prohibited. If you have received this
>>>>>>>>>>>>>transmission in error, please notify this office immediately
>>>>>>>>>>>>>and
>>>>>>>>>>>>>e-mail
>>>>>>>>>>>>>the original at the sender's address above by replying to this
>>>>>>>>>>>>>message
>>>>>>>>>>>>>and including the text of the transmission received.
>>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>--
>>>>>>>>>>--
>>>>>>>>>>Kind regards.
>>>>>>>>>>Lu
>>>>>>>>>>
>>>>>>>>>>This transmission is intended solely for the addressee(s) shown
>>>>>>>>>>above.
>>>>>>>>>>It may contain information that is privileged, confidential or
>>>>>>>>>>otherwise protected from disclosure. Any review, dissemination or
>>>>>>>>>>use
>>>>>>>>>>of this transmission or its contents by persons other than the
>>>>>>>>>>intended addressee(s) is strictly prohibited. If you have
>>>>>>>>>>received
>>>>>>>>>>this transmission in error, please notify this office immediately
>>>>>>>>>>and
>>>>>>>>>>e-mail the original at the sender's address above by replying to
>>>>>>>>>>this
>>>>>>>>>>message and including the text of the transmission received.
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>--
>>>>>>>>--
>>>>>>>>Kind regards.
>>>>>>>>Lu
>>>>>>>>
>>>>>>>>This transmission is intended solely for the addressee(s) shown
>>>>>>>>above.
>>>>>>>>It may contain information that is privileged, confidential or
>>>>>>>>otherwise protected from disclosure. Any review, dissemination or
>>>>>>>>use
>>>>>>>>of this transmission or its contents by persons other than the
>>>>>>>>intended addressee(s) is strictly prohibited. If you have received
>>>>>>>>this transmission in error, please notify this office immediately
>>>>>>>>and
>>>>>>>>e-mail the original at the sender's address above by replying to
>>>>>>>>this
>>>>>>>>message and including the text of the transmission received.
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> --
>>>>>> Kind regards.
>>>>>> Lu
>>>>>>
>>>>>> This transmission is intended solely for the addressee(s) shown
>>>>>>above.
>>>>>> It may contain information that is privileged, confidential or
>>>>>> otherwise protected from disclosure. Any review, dissemination or
>>>>>>use
>>>>>> of this transmission or its contents by persons other than the
>>>>>> intended addressee(s) is strictly prohibited. If you have received
>>>>>> this transmission in error, please notify this office immediately
>>>>>>and
>>>>>> e-mail the original at the sender's address above by replying to
>>>>>>this
>>>>>> message and including the text of the transmission received.
>>>>>
>>>>>
>>>>>
>>>>>--
>>>>>--
>>>>>Kind regards.
>>>>>Lu
>>>>>
>>>>>This transmission is intended solely for the addressee(s) shown above.
>>>>>It may contain information that is privileged, confidential or
>>>>>otherwise protected from disclosure. Any review, dissemination or use
>>>>>of this transmission or its contents by persons other than the
>>>>>intended addressee(s) is strictly prohibited. If you have received
>>>>>this transmission in error, please notify this office immediately and
>>>>>e-mail the original at the sender's address above by replying to this
>>>>>message and including the text of the transmission received.
>>>>>
>>>>
>>>>
>>>
>>>
>>>
>>>--
>>>--
>>>Kind regards.
>>>Lu
>>>
>>>This transmission is intended solely for the addressee(s) shown above.
>>>It may contain information that is privileged, confidential or
>>>otherwise protected from disclosure. Any review, dissemination or use
>>>of this transmission or its contents by persons other than the
>>>intended addressee(s) is strictly prohibited. If you have received
>>>this transmission in error, please notify this office immediately and
>>>e-mail the original at the sender's address above by replying to this
>>>message and including the text of the transmission received.
>>>
>>
>>
>
>
>
>--
>--
>Kind regards.
>Lu
>
>This transmission is intended solely for the addressee(s) shown above.
>It may contain information that is privileged, confidential or
>otherwise protected from disclosure. Any review, dissemination or use
>of this transmission or its contents by persons other than the
>intended addressee(s) is strictly prohibited. If you have received
>this transmission in error, please notify this office immediately and
>e-mail the original at the sender's address above by replying to this
>message and including the text of the transmission received.
>



Re: Can not delete network

Posted by Lu Heng <h....@anytimechinese.com>.
Hi

On Wed, Jun 13, 2012 at 10:52 PM, Alena Prokharchyk
<Al...@citrix.com> wrote:
> On 6/13/12 1:45 PM, "Lu Heng" <h....@anytimechinese.com> wrote:
>
>>Hi
>>
>>I was talking about volume.
>>
>>So here is the full story:
>>
>>I saw three vm are in the Expunging state for 3 hours(even now), I try
>>to delete storage in wish it will delete the VM, but I didn't find the
>>delete bottom, so I go to xencenter delete these three volume in the
>>primary storage.
>>
>>Now, the three vm is still in the Expunging states, what should I do now?
>
>
> The workaround would be:
>
> * Get all volumes you removed, and update their removed field to not null

How can I "get" all volume I have removed, it is not exsits anymore.
> value:
>
> Update volumes set removed=now() where id in (id1, id2…idn)
Where to set this value?
>
> * Wait for the next expunge thread to kick in, it should expunge the vms
> without any problems now.
>
The expunge of the VM has nothing to do with the storage, it was stuck
in the first place because of network setup.

And I just find out, I have 6 VMs, 3 destroyed, and 3 in the explung
states, the 3 shared storage accturelly belong to the destroyed VMs,
so it has nothing to do with the explunged VM.

So I think we have two problem here:

1. I tried to delete the destroyed VM's shared storage, but I can not,
I didn't find a delete bottom in the cloudstack UI for that., so I
deleted the storage in the primary storage via xencenter.
As well as I see the VM has been destoryed in the UI, but it always
has a round bottom say you can restore it, how can I destroy a VM
permanently?

2. because of incorrect network setup for the other 3 VM, I have
deleted their storage from the cloudstack UI, but they are still
showing expunging now, what should I do?
>
> We still have to figure out the original issue - why vms got stuck in
> Expunging state in the very beginning. Next time you see this kind of
> problem, it's better to find out the root cause and fix it if possible.
> Deleting things on the backend can cause multiple problems on the
> cloudStack side.
>
> -Alena.
>
>
>
>>
>>On Wed, Jun 13, 2012 at 10:44 PM, Alena Prokharchyk
>><Al...@citrix.com> wrote:
>>> On 6/13/12 1:38 PM, "Lu Heng" <h....@anytimechinese.com> wrote:
>>>
>>>>Hi
>>>>
>>>>And btw, I didn't see the maintainace botton for the 3 shared storage,
>>>> I only see take snapshoot, snapshoot setting, that's it.
>>>
>>>
>>> Are you talking about storage pool or volume on the storage pool? You
>>>can
>>> take snapshot of the volume only…
>>>
>>> To see Shared storage pools, go to Infrastructure->Zones->select the
>>> zone->Primary Storage -> Select primary storage. For each primary
>>>storage
>>> we show 2 buttons: "Edit" and "Enable Maintenance mode"
>>>
>>> As for the volume, ROOT volume of the vm can be deleted only as a part
>>>of
>>> vm expunge, never on its own.
>>>
>>>
>>>>
>>>>On Wed, Jun 13, 2012 at 10:35 PM, Lu Heng <h....@anytimechinese.com>
>>>>wrote:
>>>>> Hi
>>>>>
>>>>> See my reply
>>>>>
>>>>> On Wed, Jun 13, 2012 at 10:30 PM, Alena Prokharchyk
>>>>> <Al...@citrix.com> wrote:
>>>>>> On 6/13/12 1:24 PM, "Lu Heng" <h....@anytimechinese.com> wrote:
>>>>>>
>>>>>>>Hi
>>>>>>>
>>>>>>>I find the reason, three vm are in state of "Expunging" for 3 hours
>>>>>>>now, no process is being made, anyone has idea what should I do about
>>>>>>>these VMs?
>>>>>>
>>>>>>
>>>>>> What is expunge.interval in the setup? If the vms stuck in Expunging
>>>>>>state
>>>>>> with null Removed field, it indicates some problem happening during
>>>>>>the
>>>>>> expunge. I suspect it's related with the fact you removed the storage
>>>>>>from
>>>>>> the xen.
>>>>>>
>>>>> Vise verse, the situation is, the VM in the expunging state for 3
>>>>> hours, and I find no way to delete them, so I try to delete the
>>>>> storage.
>>>>>
>>>>> What should I do to fix this now?
>>>>>>
>>>>>>
>>>>>>>
>>>>>>>Another question is, I didn't see the delete botton with shared
>>>>>>>storage, so I delete it from the xencenter, but after that I still
>>>>>>>see
>>>>>>>the deleted storage exists in the UI, what suppose to be done?
>>>>>>
>>>>>>
>>>>>> Delete storage pool consists of 2 steps:
>>>>>>
>>>>>> * enable maintenance for the shared storage
>>>>>> * after the maintenance is completed, the Delete button will be
>>>>>>presented
>>>>>> to the admin; and the storage can be removed.
>>>>>>
>>>>>> You are not supposed to delete primary storage on the backend;
>>>>>>cloudStack
>>>>>> has no idea if you do things like that, and it expects primary
>>>>>>storage
>>>>>>to
>>>>>> be functioning.
>>>>>>
>>>>>> So when vm expunge happens, we see that the storage is in UP state,
>>>>>>and
>>>>>> try to send the destroy volume command to the Xen host. But the
>>>>>>command
>>>>>> fails there because there is no such primary storage exist.
>>>>>>
>>>>>> Let me know if its your case.
>>>>>>
>>>>>> -Alena.
>>>>>>
>>>>>>
>>>>>>>
>>>>>>>On Wed, Jun 13, 2012 at 10:08 PM, Alena Prokharchyk
>>>>>>><Al...@citrix.com> wrote:
>>>>>>>> On 6/13/12 12:55 PM, "Lu Heng" <h....@anytimechinese.com> wrote:
>>>>>>>>
>>>>>>>>>Hi
>>>>>>>>>
>>>>>>>>>Update:
>>>>>>>>>
>>>>>>>>>The zone has been stoped. all VM has been destoryed , the route vm
>>>>>>>>>has
>>>>>>>>>been stoped(no option for destory).
>>>>>>>>>
>>>>>>>>>Still get error fail to delete network.
>>>>>>>>
>>>>>>>>
>>>>>>>> Can you send management server log file for debugging.
>>>>>>>>
>>>>>>>> Thanks,
>>>>>>>> Alena.
>>>>>>>>
>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>On Wed, Jun 13, 2012 at 7:23 PM, Alena Prokharchyk
>>>>>>>>><Al...@citrix.com> wrote:
>>>>>>>>>> On 6/13/12 10:18 AM, "Tamas Monos" <ta...@veber.co.uk> wrote:
>>>>>>>>>>
>>>>>>>>>>>Hi,
>>>>>>>>>>>
>>>>>>>>>>>Also I think the problem is when you are trying to delete the
>>>>>>>>>>>network
>>>>>>>>>>>the
>>>>>>>>>>>router is powered off.
>>>>>>>>>>>Therefore when you click delete it wants to remove the firewall
>>>>>>>>>>>rules
>>>>>>>>>>>for
>>>>>>>>>>>that network but the router is not running so the command fails
>>>>>>>>>>>which
>>>>>>>>>>>fails the delet operation.
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Also not a problem. The rules can be removed when the router is
>>>>>>>>>>stopped.
>>>>>>>>>> In this case the rules are removed in DB only. When the router
>>>>>>>>>>starts
>>>>>>>>>>up,
>>>>>>>>>> we start clean (cleanup all the rules) and re-apply all the rules
>>>>>>>>>>from
>>>>>>>>>>the
>>>>>>>>>> DB. So the removed rules won't exist  on the router.
>>>>>>>>>>
>>>>>>>>>> -Alena.
>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>Regards
>>>>>>>>>>>
>>>>>>>>>>>Tamas Monos                                               DDI
>>>>>>>>>>>+44(0)2034687012
>>>>>>>>>>>Chief Technical
>>>>>>>>>>>Office
>>>>>>>>>>>+44(0)2034687000
>>>>>>>>>>>Veber: The Hosting Specialists               Fax
>>>>>>>>>>>+44(0)871
>>>>>>>>>>>522
>>>>>>>>>>>7057
>>>>>>>>>>>http://www.veber.co.uk
>>>>>>>>>>>
>>>>>>>>>>>Follow us on Twitter: www.twitter.com/veberhost
>>>>>>>>>>>Follow us on Facebook: www.facebook.com/veberhost
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>-----Original Message-----
>>>>>>>>>>>From: Tamas Monos [mailto:tamasm@veber.co.uk]
>>>>>>>>>>>Sent: 13 June 2012 18:15
>>>>>>>>>>>To: cloudstack-dev@incubator.apache.org
>>>>>>>>>>>Subject: RE: Can not delete network
>>>>>>>>>>>
>>>>>>>>>>>Hi,
>>>>>>>>>>>
>>>>>>>>>>>I don't think you can delete a network if a router-vm for that
>>>>>>>>>>>network
>>>>>>>>>>>exists.
>>>>>>>>>>>If you are trying to delete a network that network should not
>>>>>>>>>>>have
>>>>>>>>>>>any
>>>>>>>>>>>VMs.
>>>>>>>>>>>Delete the associated router from the management interface then
>>>>>>>>>>>delete
>>>>>>>>>>>the network.
>>>>>>>>>>>This method works for me on 3.0.2
>>>>>>>>>>>
>>>>>>>>>>>Regards
>>>>>>>>>>>
>>>>>>>>>>>Tamas Monos                                               DDI
>>>>>>>>>>>+44(0)2034687012
>>>>>>>>>>>Chief Technical
>>>>>>>>>>>Office
>>>>>>>>>>>+44(0)2034687000
>>>>>>>>>>>Veber: The Hosting Specialists               Fax
>>>>>>>>>>>+44(0)871
>>>>>>>>>>>522
>>>>>>>>>>>7057
>>>>>>>>>>>http://www.veber.co.uk
>>>>>>>>>>>
>>>>>>>>>>>Follow us on Twitter: www.twitter.com/veberhost Follow us on
>>>>>>>>>>>Facebook:
>>>>>>>>>>>www.facebook.com/veberhost
>>>>>>>>>>>
>>>>>>>>>>>-----Original Message-----
>>>>>>>>>>>From: Alena Prokharchyk [mailto:Alena.Prokharchyk@citrix.com]
>>>>>>>>>>>Sent: 13 June 2012 18:12
>>>>>>>>>>>To: cloudstack-dev@incubator.apache.org
>>>>>>>>>>>Subject: Re: Can not delete network
>>>>>>>>>>>
>>>>>>>>>>>Can you please check the management server log to see if there is
>>>>>>>>>>>more
>>>>>>>>>>>detailed exception in there.
>>>>>>>>>>>
>>>>>>>>>>>-Alena.
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>On 6/13/12 9:50 AM, "Lu Heng" <h....@anytimechinese.com> wrote:
>>>>>>>>>>>
>>>>>>>>>>>>Hi
>>>>>>>>>>>>
>>>>>>>>>>>>I have problem deleting guest network, everytime I tried it
>>>>>>>>>>>>always
>>>>>>>>>>>>shows "fail to delete network)
>>>>>>>>>>>>
>>>>>>>>>>>>2012-06-13 11:26:14,243 WARN  [cloud.api.ApiDispatcher]
>>>>>>>>>>>>(Job-Executor-52:job-95) class com.cloud.api.ServerApiException
>>>>>>>>>>>>:
>>>>>>>>>>>>Failed to delete network
>>>>>>>>>>>>
>>>>>>>>>>>>Any idea how it happens?
>>>>>>>>>>>>--
>>>>>>>>>>>>--
>>>>>>>>>>>>Kind regards.
>>>>>>>>>>>>Lu
>>>>>>>>>>>>
>>>>>>>>>>>>This transmission is intended solely for the addressee(s) shown
>>>>>>>>>>>>above.
>>>>>>>>>>>>It may contain information that is privileged, confidential or
>>>>>>>>>>>>otherwise protected from disclosure. Any review, dissemination
>>>>>>>>>>>>or
>>>>>>>>>>>>use
>>>>>>>>>>>>of this transmission or its contents by persons other than the
>>>>>>>>>>>>intended
>>>>>>>>>>>>addressee(s) is strictly prohibited. If you have received this
>>>>>>>>>>>>transmission in error, please notify this office immediately and
>>>>>>>>>>>>e-mail
>>>>>>>>>>>>the original at the sender's address above by replying to this
>>>>>>>>>>>>message
>>>>>>>>>>>>and including the text of the transmission received.
>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>--
>>>>>>>>>--
>>>>>>>>>Kind regards.
>>>>>>>>>Lu
>>>>>>>>>
>>>>>>>>>This transmission is intended solely for the addressee(s) shown
>>>>>>>>>above.
>>>>>>>>>It may contain information that is privileged, confidential or
>>>>>>>>>otherwise protected from disclosure. Any review, dissemination or
>>>>>>>>>use
>>>>>>>>>of this transmission or its contents by persons other than the
>>>>>>>>>intended addressee(s) is strictly prohibited. If you have received
>>>>>>>>>this transmission in error, please notify this office immediately
>>>>>>>>>and
>>>>>>>>>e-mail the original at the sender's address above by replying to
>>>>>>>>>this
>>>>>>>>>message and including the text of the transmission received.
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>--
>>>>>>>--
>>>>>>>Kind regards.
>>>>>>>Lu
>>>>>>>
>>>>>>>This transmission is intended solely for the addressee(s) shown
>>>>>>>above.
>>>>>>>It may contain information that is privileged, confidential or
>>>>>>>otherwise protected from disclosure. Any review, dissemination or use
>>>>>>>of this transmission or its contents by persons other than the
>>>>>>>intended addressee(s) is strictly prohibited. If you have received
>>>>>>>this transmission in error, please notify this office immediately and
>>>>>>>e-mail the original at the sender's address above by replying to this
>>>>>>>message and including the text of the transmission received.
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> --
>>>>> Kind regards.
>>>>> Lu
>>>>>
>>>>> This transmission is intended solely for the addressee(s) shown above.
>>>>> It may contain information that is privileged, confidential or
>>>>> otherwise protected from disclosure. Any review, dissemination or use
>>>>> of this transmission or its contents by persons other than the
>>>>> intended addressee(s) is strictly prohibited. If you have received
>>>>> this transmission in error, please notify this office immediately and
>>>>> e-mail the original at the sender's address above by replying to this
>>>>> message and including the text of the transmission received.
>>>>
>>>>
>>>>
>>>>--
>>>>--
>>>>Kind regards.
>>>>Lu
>>>>
>>>>This transmission is intended solely for the addressee(s) shown above.
>>>>It may contain information that is privileged, confidential or
>>>>otherwise protected from disclosure. Any review, dissemination or use
>>>>of this transmission or its contents by persons other than the
>>>>intended addressee(s) is strictly prohibited. If you have received
>>>>this transmission in error, please notify this office immediately and
>>>>e-mail the original at the sender's address above by replying to this
>>>>message and including the text of the transmission received.
>>>>
>>>
>>>
>>
>>
>>
>>--
>>--
>>Kind regards.
>>Lu
>>
>>This transmission is intended solely for the addressee(s) shown above.
>>It may contain information that is privileged, confidential or
>>otherwise protected from disclosure. Any review, dissemination or use
>>of this transmission or its contents by persons other than the
>>intended addressee(s) is strictly prohibited. If you have received
>>this transmission in error, please notify this office immediately and
>>e-mail the original at the sender's address above by replying to this
>>message and including the text of the transmission received.
>>
>
>



-- 
--
Kind regards.
Lu

This transmission is intended solely for the addressee(s) shown above.
It may contain information that is privileged, confidential or
otherwise protected from disclosure. Any review, dissemination or use
of this transmission or its contents by persons other than the
intended addressee(s) is strictly prohibited. If you have received
this transmission in error, please notify this office immediately and
e-mail the original at the sender's address above by replying to this
message and including the text of the transmission received.

Re: Can not delete network

Posted by Alena Prokharchyk <Al...@citrix.com>.
On 6/13/12 1:45 PM, "Lu Heng" <h....@anytimechinese.com> wrote:

>Hi
>
>I was talking about volume.
>
>So here is the full story:
>
>I saw three vm are in the Expunging state for 3 hours(even now), I try
>to delete storage in wish it will delete the VM, but I didn't find the
>delete bottom, so I go to xencenter delete these three volume in the
>primary storage.
>
>Now, the three vm is still in the Expunging states, what should I do now?


The workaround would be:

* Get all volumes you removed, and update their removed field to not null
value:

Update volumes set removed=now() where id in (id1, id2…idn)

* Wait for the next expunge thread to kick in, it should expunge the vms
without any problems now.


We still have to figure out the original issue - why vms got stuck in
Expunging state in the very beginning. Next time you see this kind of
problem, it's better to find out the root cause and fix it if possible.
Deleting things on the backend can cause multiple problems on the
cloudStack side.

-Alena.



>
>On Wed, Jun 13, 2012 at 10:44 PM, Alena Prokharchyk
><Al...@citrix.com> wrote:
>> On 6/13/12 1:38 PM, "Lu Heng" <h....@anytimechinese.com> wrote:
>>
>>>Hi
>>>
>>>And btw, I didn't see the maintainace botton for the 3 shared storage,
>>> I only see take snapshoot, snapshoot setting, that's it.
>>
>>
>> Are you talking about storage pool or volume on the storage pool? You
>>can
>> take snapshot of the volume only…
>>
>> To see Shared storage pools, go to Infrastructure->Zones->select the
>> zone->Primary Storage -> Select primary storage. For each primary
>>storage
>> we show 2 buttons: "Edit" and "Enable Maintenance mode"
>>
>> As for the volume, ROOT volume of the vm can be deleted only as a part
>>of
>> vm expunge, never on its own.
>>
>>
>>>
>>>On Wed, Jun 13, 2012 at 10:35 PM, Lu Heng <h....@anytimechinese.com>
>>>wrote:
>>>> Hi
>>>>
>>>> See my reply
>>>>
>>>> On Wed, Jun 13, 2012 at 10:30 PM, Alena Prokharchyk
>>>> <Al...@citrix.com> wrote:
>>>>> On 6/13/12 1:24 PM, "Lu Heng" <h....@anytimechinese.com> wrote:
>>>>>
>>>>>>Hi
>>>>>>
>>>>>>I find the reason, three vm are in state of "Expunging" for 3 hours
>>>>>>now, no process is being made, anyone has idea what should I do about
>>>>>>these VMs?
>>>>>
>>>>>
>>>>> What is expunge.interval in the setup? If the vms stuck in Expunging
>>>>>state
>>>>> with null Removed field, it indicates some problem happening during
>>>>>the
>>>>> expunge. I suspect it's related with the fact you removed the storage
>>>>>from
>>>>> the xen.
>>>>>
>>>> Vise verse, the situation is, the VM in the expunging state for 3
>>>> hours, and I find no way to delete them, so I try to delete the
>>>> storage.
>>>>
>>>> What should I do to fix this now?
>>>>>
>>>>>
>>>>>>
>>>>>>Another question is, I didn't see the delete botton with shared
>>>>>>storage, so I delete it from the xencenter, but after that I still
>>>>>>see
>>>>>>the deleted storage exists in the UI, what suppose to be done?
>>>>>
>>>>>
>>>>> Delete storage pool consists of 2 steps:
>>>>>
>>>>> * enable maintenance for the shared storage
>>>>> * after the maintenance is completed, the Delete button will be
>>>>>presented
>>>>> to the admin; and the storage can be removed.
>>>>>
>>>>> You are not supposed to delete primary storage on the backend;
>>>>>cloudStack
>>>>> has no idea if you do things like that, and it expects primary
>>>>>storage
>>>>>to
>>>>> be functioning.
>>>>>
>>>>> So when vm expunge happens, we see that the storage is in UP state,
>>>>>and
>>>>> try to send the destroy volume command to the Xen host. But the
>>>>>command
>>>>> fails there because there is no such primary storage exist.
>>>>>
>>>>> Let me know if its your case.
>>>>>
>>>>> -Alena.
>>>>>
>>>>>
>>>>>>
>>>>>>On Wed, Jun 13, 2012 at 10:08 PM, Alena Prokharchyk
>>>>>><Al...@citrix.com> wrote:
>>>>>>> On 6/13/12 12:55 PM, "Lu Heng" <h....@anytimechinese.com> wrote:
>>>>>>>
>>>>>>>>Hi
>>>>>>>>
>>>>>>>>Update:
>>>>>>>>
>>>>>>>>The zone has been stoped. all VM has been destoryed , the route vm
>>>>>>>>has
>>>>>>>>been stoped(no option for destory).
>>>>>>>>
>>>>>>>>Still get error fail to delete network.
>>>>>>>
>>>>>>>
>>>>>>> Can you send management server log file for debugging.
>>>>>>>
>>>>>>> Thanks,
>>>>>>> Alena.
>>>>>>>
>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>On Wed, Jun 13, 2012 at 7:23 PM, Alena Prokharchyk
>>>>>>>><Al...@citrix.com> wrote:
>>>>>>>>> On 6/13/12 10:18 AM, "Tamas Monos" <ta...@veber.co.uk> wrote:
>>>>>>>>>
>>>>>>>>>>Hi,
>>>>>>>>>>
>>>>>>>>>>Also I think the problem is when you are trying to delete the
>>>>>>>>>>network
>>>>>>>>>>the
>>>>>>>>>>router is powered off.
>>>>>>>>>>Therefore when you click delete it wants to remove the firewall
>>>>>>>>>>rules
>>>>>>>>>>for
>>>>>>>>>>that network but the router is not running so the command fails
>>>>>>>>>>which
>>>>>>>>>>fails the delet operation.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Also not a problem. The rules can be removed when the router is
>>>>>>>>>stopped.
>>>>>>>>> In this case the rules are removed in DB only. When the router
>>>>>>>>>starts
>>>>>>>>>up,
>>>>>>>>> we start clean (cleanup all the rules) and re-apply all the rules
>>>>>>>>>from
>>>>>>>>>the
>>>>>>>>> DB. So the removed rules won't exist  on the router.
>>>>>>>>>
>>>>>>>>> -Alena.
>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>Regards
>>>>>>>>>>
>>>>>>>>>>Tamas Monos                                               DDI
>>>>>>>>>>+44(0)2034687012
>>>>>>>>>>Chief Technical
>>>>>>>>>>Office
>>>>>>>>>>+44(0)2034687000
>>>>>>>>>>Veber: The Hosting Specialists               Fax
>>>>>>>>>>+44(0)871
>>>>>>>>>>522
>>>>>>>>>>7057
>>>>>>>>>>http://www.veber.co.uk
>>>>>>>>>>
>>>>>>>>>>Follow us on Twitter: www.twitter.com/veberhost
>>>>>>>>>>Follow us on Facebook: www.facebook.com/veberhost
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>-----Original Message-----
>>>>>>>>>>From: Tamas Monos [mailto:tamasm@veber.co.uk]
>>>>>>>>>>Sent: 13 June 2012 18:15
>>>>>>>>>>To: cloudstack-dev@incubator.apache.org
>>>>>>>>>>Subject: RE: Can not delete network
>>>>>>>>>>
>>>>>>>>>>Hi,
>>>>>>>>>>
>>>>>>>>>>I don't think you can delete a network if a router-vm for that
>>>>>>>>>>network
>>>>>>>>>>exists.
>>>>>>>>>>If you are trying to delete a network that network should not
>>>>>>>>>>have
>>>>>>>>>>any
>>>>>>>>>>VMs.
>>>>>>>>>>Delete the associated router from the management interface then
>>>>>>>>>>delete
>>>>>>>>>>the network.
>>>>>>>>>>This method works for me on 3.0.2
>>>>>>>>>>
>>>>>>>>>>Regards
>>>>>>>>>>
>>>>>>>>>>Tamas Monos                                               DDI
>>>>>>>>>>+44(0)2034687012
>>>>>>>>>>Chief Technical
>>>>>>>>>>Office
>>>>>>>>>>+44(0)2034687000
>>>>>>>>>>Veber: The Hosting Specialists               Fax
>>>>>>>>>>+44(0)871
>>>>>>>>>>522
>>>>>>>>>>7057
>>>>>>>>>>http://www.veber.co.uk
>>>>>>>>>>
>>>>>>>>>>Follow us on Twitter: www.twitter.com/veberhost Follow us on
>>>>>>>>>>Facebook:
>>>>>>>>>>www.facebook.com/veberhost
>>>>>>>>>>
>>>>>>>>>>-----Original Message-----
>>>>>>>>>>From: Alena Prokharchyk [mailto:Alena.Prokharchyk@citrix.com]
>>>>>>>>>>Sent: 13 June 2012 18:12
>>>>>>>>>>To: cloudstack-dev@incubator.apache.org
>>>>>>>>>>Subject: Re: Can not delete network
>>>>>>>>>>
>>>>>>>>>>Can you please check the management server log to see if there is
>>>>>>>>>>more
>>>>>>>>>>detailed exception in there.
>>>>>>>>>>
>>>>>>>>>>-Alena.
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>On 6/13/12 9:50 AM, "Lu Heng" <h....@anytimechinese.com> wrote:
>>>>>>>>>>
>>>>>>>>>>>Hi
>>>>>>>>>>>
>>>>>>>>>>>I have problem deleting guest network, everytime I tried it
>>>>>>>>>>>always
>>>>>>>>>>>shows "fail to delete network)
>>>>>>>>>>>
>>>>>>>>>>>2012-06-13 11:26:14,243 WARN  [cloud.api.ApiDispatcher]
>>>>>>>>>>>(Job-Executor-52:job-95) class com.cloud.api.ServerApiException
>>>>>>>>>>>:
>>>>>>>>>>>Failed to delete network
>>>>>>>>>>>
>>>>>>>>>>>Any idea how it happens?
>>>>>>>>>>>--
>>>>>>>>>>>--
>>>>>>>>>>>Kind regards.
>>>>>>>>>>>Lu
>>>>>>>>>>>
>>>>>>>>>>>This transmission is intended solely for the addressee(s) shown
>>>>>>>>>>>above.
>>>>>>>>>>>It may contain information that is privileged, confidential or
>>>>>>>>>>>otherwise protected from disclosure. Any review, dissemination
>>>>>>>>>>>or
>>>>>>>>>>>use
>>>>>>>>>>>of this transmission or its contents by persons other than the
>>>>>>>>>>>intended
>>>>>>>>>>>addressee(s) is strictly prohibited. If you have received this
>>>>>>>>>>>transmission in error, please notify this office immediately and
>>>>>>>>>>>e-mail
>>>>>>>>>>>the original at the sender's address above by replying to this
>>>>>>>>>>>message
>>>>>>>>>>>and including the text of the transmission received.
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>--
>>>>>>>>--
>>>>>>>>Kind regards.
>>>>>>>>Lu
>>>>>>>>
>>>>>>>>This transmission is intended solely for the addressee(s) shown
>>>>>>>>above.
>>>>>>>>It may contain information that is privileged, confidential or
>>>>>>>>otherwise protected from disclosure. Any review, dissemination or
>>>>>>>>use
>>>>>>>>of this transmission or its contents by persons other than the
>>>>>>>>intended addressee(s) is strictly prohibited. If you have received
>>>>>>>>this transmission in error, please notify this office immediately
>>>>>>>>and
>>>>>>>>e-mail the original at the sender's address above by replying to
>>>>>>>>this
>>>>>>>>message and including the text of the transmission received.
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>--
>>>>>>--
>>>>>>Kind regards.
>>>>>>Lu
>>>>>>
>>>>>>This transmission is intended solely for the addressee(s) shown
>>>>>>above.
>>>>>>It may contain information that is privileged, confidential or
>>>>>>otherwise protected from disclosure. Any review, dissemination or use
>>>>>>of this transmission or its contents by persons other than the
>>>>>>intended addressee(s) is strictly prohibited. If you have received
>>>>>>this transmission in error, please notify this office immediately and
>>>>>>e-mail the original at the sender's address above by replying to this
>>>>>>message and including the text of the transmission received.
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> --
>>>> Kind regards.
>>>> Lu
>>>>
>>>> This transmission is intended solely for the addressee(s) shown above.
>>>> It may contain information that is privileged, confidential or
>>>> otherwise protected from disclosure. Any review, dissemination or use
>>>> of this transmission or its contents by persons other than the
>>>> intended addressee(s) is strictly prohibited. If you have received
>>>> this transmission in error, please notify this office immediately and
>>>> e-mail the original at the sender's address above by replying to this
>>>> message and including the text of the transmission received.
>>>
>>>
>>>
>>>--
>>>--
>>>Kind regards.
>>>Lu
>>>
>>>This transmission is intended solely for the addressee(s) shown above.
>>>It may contain information that is privileged, confidential or
>>>otherwise protected from disclosure. Any review, dissemination or use
>>>of this transmission or its contents by persons other than the
>>>intended addressee(s) is strictly prohibited. If you have received
>>>this transmission in error, please notify this office immediately and
>>>e-mail the original at the sender's address above by replying to this
>>>message and including the text of the transmission received.
>>>
>>
>>
>
>
>
>-- 
>--
>Kind regards.
>Lu
>
>This transmission is intended solely for the addressee(s) shown above.
>It may contain information that is privileged, confidential or
>otherwise protected from disclosure. Any review, dissemination or use
>of this transmission or its contents by persons other than the
>intended addressee(s) is strictly prohibited. If you have received
>this transmission in error, please notify this office immediately and
>e-mail the original at the sender's address above by replying to this
>message and including the text of the transmission received.
>



Re: Can not delete network

Posted by Lu Heng <h....@anytimechinese.com>.
Hi

I was talking about volume.

So here is the full story:

I saw three vm are in the Expunging state for 3 hours(even now), I try
to delete storage in wish it will delete the VM, but I didn't find the
delete bottom, so I go to xencenter delete these three volume in the
primary storage.

Now, the three vm is still in the Expunging states, what should I do now?

On Wed, Jun 13, 2012 at 10:44 PM, Alena Prokharchyk
<Al...@citrix.com> wrote:
> On 6/13/12 1:38 PM, "Lu Heng" <h....@anytimechinese.com> wrote:
>
>>Hi
>>
>>And btw, I didn't see the maintainace botton for the 3 shared storage,
>> I only see take snapshoot, snapshoot setting, that's it.
>
>
> Are you talking about storage pool or volume on the storage pool? You can
> take snapshot of the volume only…
>
> To see Shared storage pools, go to Infrastructure->Zones->select the
> zone->Primary Storage -> Select primary storage. For each primary storage
> we show 2 buttons: "Edit" and "Enable Maintenance mode"
>
> As for the volume, ROOT volume of the vm can be deleted only as a part of
> vm expunge, never on its own.
>
>
>>
>>On Wed, Jun 13, 2012 at 10:35 PM, Lu Heng <h....@anytimechinese.com> wrote:
>>> Hi
>>>
>>> See my reply
>>>
>>> On Wed, Jun 13, 2012 at 10:30 PM, Alena Prokharchyk
>>> <Al...@citrix.com> wrote:
>>>> On 6/13/12 1:24 PM, "Lu Heng" <h....@anytimechinese.com> wrote:
>>>>
>>>>>Hi
>>>>>
>>>>>I find the reason, three vm are in state of "Expunging" for 3 hours
>>>>>now, no process is being made, anyone has idea what should I do about
>>>>>these VMs?
>>>>
>>>>
>>>> What is expunge.interval in the setup? If the vms stuck in Expunging
>>>>state
>>>> with null Removed field, it indicates some problem happening during the
>>>> expunge. I suspect it's related with the fact you removed the storage
>>>>from
>>>> the xen.
>>>>
>>> Vise verse, the situation is, the VM in the expunging state for 3
>>> hours, and I find no way to delete them, so I try to delete the
>>> storage.
>>>
>>> What should I do to fix this now?
>>>>
>>>>
>>>>>
>>>>>Another question is, I didn't see the delete botton with shared
>>>>>storage, so I delete it from the xencenter, but after that I still see
>>>>>the deleted storage exists in the UI, what suppose to be done?
>>>>
>>>>
>>>> Delete storage pool consists of 2 steps:
>>>>
>>>> * enable maintenance for the shared storage
>>>> * after the maintenance is completed, the Delete button will be
>>>>presented
>>>> to the admin; and the storage can be removed.
>>>>
>>>> You are not supposed to delete primary storage on the backend;
>>>>cloudStack
>>>> has no idea if you do things like that, and it expects primary storage
>>>>to
>>>> be functioning.
>>>>
>>>> So when vm expunge happens, we see that the storage is in UP state, and
>>>> try to send the destroy volume command to the Xen host. But the command
>>>> fails there because there is no such primary storage exist.
>>>>
>>>> Let me know if its your case.
>>>>
>>>> -Alena.
>>>>
>>>>
>>>>>
>>>>>On Wed, Jun 13, 2012 at 10:08 PM, Alena Prokharchyk
>>>>><Al...@citrix.com> wrote:
>>>>>> On 6/13/12 12:55 PM, "Lu Heng" <h....@anytimechinese.com> wrote:
>>>>>>
>>>>>>>Hi
>>>>>>>
>>>>>>>Update:
>>>>>>>
>>>>>>>The zone has been stoped. all VM has been destoryed , the route vm
>>>>>>>has
>>>>>>>been stoped(no option for destory).
>>>>>>>
>>>>>>>Still get error fail to delete network.
>>>>>>
>>>>>>
>>>>>> Can you send management server log file for debugging.
>>>>>>
>>>>>> Thanks,
>>>>>> Alena.
>>>>>>
>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>On Wed, Jun 13, 2012 at 7:23 PM, Alena Prokharchyk
>>>>>>><Al...@citrix.com> wrote:
>>>>>>>> On 6/13/12 10:18 AM, "Tamas Monos" <ta...@veber.co.uk> wrote:
>>>>>>>>
>>>>>>>>>Hi,
>>>>>>>>>
>>>>>>>>>Also I think the problem is when you are trying to delete the
>>>>>>>>>network
>>>>>>>>>the
>>>>>>>>>router is powered off.
>>>>>>>>>Therefore when you click delete it wants to remove the firewall
>>>>>>>>>rules
>>>>>>>>>for
>>>>>>>>>that network but the router is not running so the command fails
>>>>>>>>>which
>>>>>>>>>fails the delet operation.
>>>>>>>>
>>>>>>>>
>>>>>>>> Also not a problem. The rules can be removed when the router is
>>>>>>>>stopped.
>>>>>>>> In this case the rules are removed in DB only. When the router
>>>>>>>>starts
>>>>>>>>up,
>>>>>>>> we start clean (cleanup all the rules) and re-apply all the rules
>>>>>>>>from
>>>>>>>>the
>>>>>>>> DB. So the removed rules won't exist  on the router.
>>>>>>>>
>>>>>>>> -Alena.
>>>>>>>>
>>>>>>>>>
>>>>>>>>>Regards
>>>>>>>>>
>>>>>>>>>Tamas Monos                                               DDI
>>>>>>>>>+44(0)2034687012
>>>>>>>>>Chief Technical                                             Office
>>>>>>>>>+44(0)2034687000
>>>>>>>>>Veber: The Hosting Specialists               Fax         +44(0)871
>>>>>>>>>522
>>>>>>>>>7057
>>>>>>>>>http://www.veber.co.uk
>>>>>>>>>
>>>>>>>>>Follow us on Twitter: www.twitter.com/veberhost
>>>>>>>>>Follow us on Facebook: www.facebook.com/veberhost
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>-----Original Message-----
>>>>>>>>>From: Tamas Monos [mailto:tamasm@veber.co.uk]
>>>>>>>>>Sent: 13 June 2012 18:15
>>>>>>>>>To: cloudstack-dev@incubator.apache.org
>>>>>>>>>Subject: RE: Can not delete network
>>>>>>>>>
>>>>>>>>>Hi,
>>>>>>>>>
>>>>>>>>>I don't think you can delete a network if a router-vm for that
>>>>>>>>>network
>>>>>>>>>exists.
>>>>>>>>>If you are trying to delete a network that network should not have
>>>>>>>>>any
>>>>>>>>>VMs.
>>>>>>>>>Delete the associated router from the management interface then
>>>>>>>>>delete
>>>>>>>>>the network.
>>>>>>>>>This method works for me on 3.0.2
>>>>>>>>>
>>>>>>>>>Regards
>>>>>>>>>
>>>>>>>>>Tamas Monos                                               DDI
>>>>>>>>>+44(0)2034687012
>>>>>>>>>Chief Technical                                             Office
>>>>>>>>>+44(0)2034687000
>>>>>>>>>Veber: The Hosting Specialists               Fax         +44(0)871
>>>>>>>>>522
>>>>>>>>>7057
>>>>>>>>>http://www.veber.co.uk
>>>>>>>>>
>>>>>>>>>Follow us on Twitter: www.twitter.com/veberhost Follow us on
>>>>>>>>>Facebook:
>>>>>>>>>www.facebook.com/veberhost
>>>>>>>>>
>>>>>>>>>-----Original Message-----
>>>>>>>>>From: Alena Prokharchyk [mailto:Alena.Prokharchyk@citrix.com]
>>>>>>>>>Sent: 13 June 2012 18:12
>>>>>>>>>To: cloudstack-dev@incubator.apache.org
>>>>>>>>>Subject: Re: Can not delete network
>>>>>>>>>
>>>>>>>>>Can you please check the management server log to see if there is
>>>>>>>>>more
>>>>>>>>>detailed exception in there.
>>>>>>>>>
>>>>>>>>>-Alena.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>On 6/13/12 9:50 AM, "Lu Heng" <h....@anytimechinese.com> wrote:
>>>>>>>>>
>>>>>>>>>>Hi
>>>>>>>>>>
>>>>>>>>>>I have problem deleting guest network, everytime I tried it always
>>>>>>>>>>shows "fail to delete network)
>>>>>>>>>>
>>>>>>>>>>2012-06-13 11:26:14,243 WARN  [cloud.api.ApiDispatcher]
>>>>>>>>>>(Job-Executor-52:job-95) class com.cloud.api.ServerApiException :
>>>>>>>>>>Failed to delete network
>>>>>>>>>>
>>>>>>>>>>Any idea how it happens?
>>>>>>>>>>--
>>>>>>>>>>--
>>>>>>>>>>Kind regards.
>>>>>>>>>>Lu
>>>>>>>>>>
>>>>>>>>>>This transmission is intended solely for the addressee(s) shown
>>>>>>>>>>above.
>>>>>>>>>>It may contain information that is privileged, confidential or
>>>>>>>>>>otherwise protected from disclosure. Any review, dissemination or
>>>>>>>>>>use
>>>>>>>>>>of this transmission or its contents by persons other than the
>>>>>>>>>>intended
>>>>>>>>>>addressee(s) is strictly prohibited. If you have received this
>>>>>>>>>>transmission in error, please notify this office immediately and
>>>>>>>>>>e-mail
>>>>>>>>>>the original at the sender's address above by replying to this
>>>>>>>>>>message
>>>>>>>>>>and including the text of the transmission received.
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>--
>>>>>>>--
>>>>>>>Kind regards.
>>>>>>>Lu
>>>>>>>
>>>>>>>This transmission is intended solely for the addressee(s) shown
>>>>>>>above.
>>>>>>>It may contain information that is privileged, confidential or
>>>>>>>otherwise protected from disclosure. Any review, dissemination or use
>>>>>>>of this transmission or its contents by persons other than the
>>>>>>>intended addressee(s) is strictly prohibited. If you have received
>>>>>>>this transmission in error, please notify this office immediately and
>>>>>>>e-mail the original at the sender's address above by replying to this
>>>>>>>message and including the text of the transmission received.
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>>--
>>>>>--
>>>>>Kind regards.
>>>>>Lu
>>>>>
>>>>>This transmission is intended solely for the addressee(s) shown above.
>>>>>It may contain information that is privileged, confidential or
>>>>>otherwise protected from disclosure. Any review, dissemination or use
>>>>>of this transmission or its contents by persons other than the
>>>>>intended addressee(s) is strictly prohibited. If you have received
>>>>>this transmission in error, please notify this office immediately and
>>>>>e-mail the original at the sender's address above by replying to this
>>>>>message and including the text of the transmission received.
>>>>>
>>>>
>>>>
>>>
>>>
>>>
>>> --
>>> --
>>> Kind regards.
>>> Lu
>>>
>>> This transmission is intended solely for the addressee(s) shown above.
>>> It may contain information that is privileged, confidential or
>>> otherwise protected from disclosure. Any review, dissemination or use
>>> of this transmission or its contents by persons other than the
>>> intended addressee(s) is strictly prohibited. If you have received
>>> this transmission in error, please notify this office immediately and
>>> e-mail the original at the sender's address above by replying to this
>>> message and including the text of the transmission received.
>>
>>
>>
>>--
>>--
>>Kind regards.
>>Lu
>>
>>This transmission is intended solely for the addressee(s) shown above.
>>It may contain information that is privileged, confidential or
>>otherwise protected from disclosure. Any review, dissemination or use
>>of this transmission or its contents by persons other than the
>>intended addressee(s) is strictly prohibited. If you have received
>>this transmission in error, please notify this office immediately and
>>e-mail the original at the sender's address above by replying to this
>>message and including the text of the transmission received.
>>
>
>



-- 
--
Kind regards.
Lu

This transmission is intended solely for the addressee(s) shown above.
It may contain information that is privileged, confidential or
otherwise protected from disclosure. Any review, dissemination or use
of this transmission or its contents by persons other than the
intended addressee(s) is strictly prohibited. If you have received
this transmission in error, please notify this office immediately and
e-mail the original at the sender's address above by replying to this
message and including the text of the transmission received.

Re: Can not delete network

Posted by Alena Prokharchyk <Al...@citrix.com>.
On 6/13/12 1:38 PM, "Lu Heng" <h....@anytimechinese.com> wrote:

>Hi
>
>And btw, I didn't see the maintainace botton for the 3 shared storage,
> I only see take snapshoot, snapshoot setting, that's it.


Are you talking about storage pool or volume on the storage pool? You can
take snapshot of the volume only…

To see Shared storage pools, go to Infrastructure->Zones->select the
zone->Primary Storage -> Select primary storage. For each primary storage
we show 2 buttons: "Edit" and "Enable Maintenance mode"

As for the volume, ROOT volume of the vm can be deleted only as a part of
vm expunge, never on its own.


>
>On Wed, Jun 13, 2012 at 10:35 PM, Lu Heng <h....@anytimechinese.com> wrote:
>> Hi
>>
>> See my reply
>>
>> On Wed, Jun 13, 2012 at 10:30 PM, Alena Prokharchyk
>> <Al...@citrix.com> wrote:
>>> On 6/13/12 1:24 PM, "Lu Heng" <h....@anytimechinese.com> wrote:
>>>
>>>>Hi
>>>>
>>>>I find the reason, three vm are in state of "Expunging" for 3 hours
>>>>now, no process is being made, anyone has idea what should I do about
>>>>these VMs?
>>>
>>>
>>> What is expunge.interval in the setup? If the vms stuck in Expunging
>>>state
>>> with null Removed field, it indicates some problem happening during the
>>> expunge. I suspect it's related with the fact you removed the storage
>>>from
>>> the xen.
>>>
>> Vise verse, the situation is, the VM in the expunging state for 3
>> hours, and I find no way to delete them, so I try to delete the
>> storage.
>>
>> What should I do to fix this now?
>>>
>>>
>>>>
>>>>Another question is, I didn't see the delete botton with shared
>>>>storage, so I delete it from the xencenter, but after that I still see
>>>>the deleted storage exists in the UI, what suppose to be done?
>>>
>>>
>>> Delete storage pool consists of 2 steps:
>>>
>>> * enable maintenance for the shared storage
>>> * after the maintenance is completed, the Delete button will be
>>>presented
>>> to the admin; and the storage can be removed.
>>>
>>> You are not supposed to delete primary storage on the backend;
>>>cloudStack
>>> has no idea if you do things like that, and it expects primary storage
>>>to
>>> be functioning.
>>>
>>> So when vm expunge happens, we see that the storage is in UP state, and
>>> try to send the destroy volume command to the Xen host. But the command
>>> fails there because there is no such primary storage exist.
>>>
>>> Let me know if its your case.
>>>
>>> -Alena.
>>>
>>>
>>>>
>>>>On Wed, Jun 13, 2012 at 10:08 PM, Alena Prokharchyk
>>>><Al...@citrix.com> wrote:
>>>>> On 6/13/12 12:55 PM, "Lu Heng" <h....@anytimechinese.com> wrote:
>>>>>
>>>>>>Hi
>>>>>>
>>>>>>Update:
>>>>>>
>>>>>>The zone has been stoped. all VM has been destoryed , the route vm
>>>>>>has
>>>>>>been stoped(no option for destory).
>>>>>>
>>>>>>Still get error fail to delete network.
>>>>>
>>>>>
>>>>> Can you send management server log file for debugging.
>>>>>
>>>>> Thanks,
>>>>> Alena.
>>>>>
>>>>>
>>>>>>
>>>>>>
>>>>>>On Wed, Jun 13, 2012 at 7:23 PM, Alena Prokharchyk
>>>>>><Al...@citrix.com> wrote:
>>>>>>> On 6/13/12 10:18 AM, "Tamas Monos" <ta...@veber.co.uk> wrote:
>>>>>>>
>>>>>>>>Hi,
>>>>>>>>
>>>>>>>>Also I think the problem is when you are trying to delete the
>>>>>>>>network
>>>>>>>>the
>>>>>>>>router is powered off.
>>>>>>>>Therefore when you click delete it wants to remove the firewall
>>>>>>>>rules
>>>>>>>>for
>>>>>>>>that network but the router is not running so the command fails
>>>>>>>>which
>>>>>>>>fails the delet operation.
>>>>>>>
>>>>>>>
>>>>>>> Also not a problem. The rules can be removed when the router is
>>>>>>>stopped.
>>>>>>> In this case the rules are removed in DB only. When the router
>>>>>>>starts
>>>>>>>up,
>>>>>>> we start clean (cleanup all the rules) and re-apply all the rules
>>>>>>>from
>>>>>>>the
>>>>>>> DB. So the removed rules won't exist  on the router.
>>>>>>>
>>>>>>> -Alena.
>>>>>>>
>>>>>>>>
>>>>>>>>Regards
>>>>>>>>
>>>>>>>>Tamas Monos                                               DDI
>>>>>>>>+44(0)2034687012
>>>>>>>>Chief Technical                                             Office
>>>>>>>>+44(0)2034687000
>>>>>>>>Veber: The Hosting Specialists               Fax         +44(0)871
>>>>>>>>522
>>>>>>>>7057
>>>>>>>>http://www.veber.co.uk
>>>>>>>>
>>>>>>>>Follow us on Twitter: www.twitter.com/veberhost
>>>>>>>>Follow us on Facebook: www.facebook.com/veberhost
>>>>>>>>
>>>>>>>>
>>>>>>>>-----Original Message-----
>>>>>>>>From: Tamas Monos [mailto:tamasm@veber.co.uk]
>>>>>>>>Sent: 13 June 2012 18:15
>>>>>>>>To: cloudstack-dev@incubator.apache.org
>>>>>>>>Subject: RE: Can not delete network
>>>>>>>>
>>>>>>>>Hi,
>>>>>>>>
>>>>>>>>I don't think you can delete a network if a router-vm for that
>>>>>>>>network
>>>>>>>>exists.
>>>>>>>>If you are trying to delete a network that network should not have
>>>>>>>>any
>>>>>>>>VMs.
>>>>>>>>Delete the associated router from the management interface then
>>>>>>>>delete
>>>>>>>>the network.
>>>>>>>>This method works for me on 3.0.2
>>>>>>>>
>>>>>>>>Regards
>>>>>>>>
>>>>>>>>Tamas Monos                                               DDI
>>>>>>>>+44(0)2034687012
>>>>>>>>Chief Technical                                             Office
>>>>>>>>+44(0)2034687000
>>>>>>>>Veber: The Hosting Specialists               Fax         +44(0)871
>>>>>>>>522
>>>>>>>>7057
>>>>>>>>http://www.veber.co.uk
>>>>>>>>
>>>>>>>>Follow us on Twitter: www.twitter.com/veberhost Follow us on
>>>>>>>>Facebook:
>>>>>>>>www.facebook.com/veberhost
>>>>>>>>
>>>>>>>>-----Original Message-----
>>>>>>>>From: Alena Prokharchyk [mailto:Alena.Prokharchyk@citrix.com]
>>>>>>>>Sent: 13 June 2012 18:12
>>>>>>>>To: cloudstack-dev@incubator.apache.org
>>>>>>>>Subject: Re: Can not delete network
>>>>>>>>
>>>>>>>>Can you please check the management server log to see if there is
>>>>>>>>more
>>>>>>>>detailed exception in there.
>>>>>>>>
>>>>>>>>-Alena.
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>On 6/13/12 9:50 AM, "Lu Heng" <h....@anytimechinese.com> wrote:
>>>>>>>>
>>>>>>>>>Hi
>>>>>>>>>
>>>>>>>>>I have problem deleting guest network, everytime I tried it always
>>>>>>>>>shows "fail to delete network)
>>>>>>>>>
>>>>>>>>>2012-06-13 11:26:14,243 WARN  [cloud.api.ApiDispatcher]
>>>>>>>>>(Job-Executor-52:job-95) class com.cloud.api.ServerApiException :
>>>>>>>>>Failed to delete network
>>>>>>>>>
>>>>>>>>>Any idea how it happens?
>>>>>>>>>--
>>>>>>>>>--
>>>>>>>>>Kind regards.
>>>>>>>>>Lu
>>>>>>>>>
>>>>>>>>>This transmission is intended solely for the addressee(s) shown
>>>>>>>>>above.
>>>>>>>>>It may contain information that is privileged, confidential or
>>>>>>>>>otherwise protected from disclosure. Any review, dissemination or
>>>>>>>>>use
>>>>>>>>>of this transmission or its contents by persons other than the
>>>>>>>>>intended
>>>>>>>>>addressee(s) is strictly prohibited. If you have received this
>>>>>>>>>transmission in error, please notify this office immediately and
>>>>>>>>>e-mail
>>>>>>>>>the original at the sender's address above by replying to this
>>>>>>>>>message
>>>>>>>>>and including the text of the transmission received.
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>--
>>>>>>--
>>>>>>Kind regards.
>>>>>>Lu
>>>>>>
>>>>>>This transmission is intended solely for the addressee(s) shown
>>>>>>above.
>>>>>>It may contain information that is privileged, confidential or
>>>>>>otherwise protected from disclosure. Any review, dissemination or use
>>>>>>of this transmission or its contents by persons other than the
>>>>>>intended addressee(s) is strictly prohibited. If you have received
>>>>>>this transmission in error, please notify this office immediately and
>>>>>>e-mail the original at the sender's address above by replying to this
>>>>>>message and including the text of the transmission received.
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>>--
>>>>--
>>>>Kind regards.
>>>>Lu
>>>>
>>>>This transmission is intended solely for the addressee(s) shown above.
>>>>It may contain information that is privileged, confidential or
>>>>otherwise protected from disclosure. Any review, dissemination or use
>>>>of this transmission or its contents by persons other than the
>>>>intended addressee(s) is strictly prohibited. If you have received
>>>>this transmission in error, please notify this office immediately and
>>>>e-mail the original at the sender's address above by replying to this
>>>>message and including the text of the transmission received.
>>>>
>>>
>>>
>>
>>
>>
>> --
>> --
>> Kind regards.
>> Lu
>>
>> This transmission is intended solely for the addressee(s) shown above.
>> It may contain information that is privileged, confidential or
>> otherwise protected from disclosure. Any review, dissemination or use
>> of this transmission or its contents by persons other than the
>> intended addressee(s) is strictly prohibited. If you have received
>> this transmission in error, please notify this office immediately and
>> e-mail the original at the sender's address above by replying to this
>> message and including the text of the transmission received.
>
>
>
>-- 
>--
>Kind regards.
>Lu
>
>This transmission is intended solely for the addressee(s) shown above.
>It may contain information that is privileged, confidential or
>otherwise protected from disclosure. Any review, dissemination or use
>of this transmission or its contents by persons other than the
>intended addressee(s) is strictly prohibited. If you have received
>this transmission in error, please notify this office immediately and
>e-mail the original at the sender's address above by replying to this
>message and including the text of the transmission received.
>



Re: Can not delete network

Posted by Alena Prokharchyk <Al...@citrix.com>.
On 6/13/12 1:38 PM, "Lu Heng" <h....@anytimechinese.com> wrote:

>Hi
>
>And btw, I didn't see the maintainace botton for the 3 shared storage,
> I only see take snapshoot, snapshoot setting, that's it.
>
>On Wed, Jun 13, 2012 at 10:35 PM, Lu Heng <h....@anytimechinese.com> wrote:
>> Hi
>>
>> See my reply
>>
>> On Wed, Jun 13, 2012 at 10:30 PM, Alena Prokharchyk
>> <Al...@citrix.com> wrote:
>>> On 6/13/12 1:24 PM, "Lu Heng" <h....@anytimechinese.com> wrote:
>>>
>>>>Hi
>>>>
>>>>I find the reason, three vm are in state of "Expunging" for 3 hours
>>>>now, no process is being made, anyone has idea what should I do about
>>>>these VMs?
>>>
>>>
>>> What is expunge.interval in the setup? If the vms stuck in Expunging
>>>state
>>> with null Removed field, it indicates some problem happening during the
>>> expunge. I suspect it's related with the fact you removed the storage
>>>from
>>> the xen.
>>>
>> Vise verse, the situation is, the VM in the expunging state for 3
>> hours, and I find no way to delete them, so I try to delete the
>> storage.


So you deleted the VHDs per each volume, not the storage itself, please
confirm. And we should never do it as there is no volume sync, so if the
volume is removed on the backend, cloudStack has no idea it has happened.

The original issue is - vm got stuck in Expunging state. We have to figure
out this one first. Please send the logs starting from the time the
Destroy command was executed for the Vm. And mention the vm name.


-Alena.





>>
>> What should I do to fix this now?
>>>
>>>
>>>>
>>>>Another question is, I didn't see the delete botton with shared
>>>>storage, so I delete it from the xencenter, but after that I still see
>>>>the deleted storage exists in the UI, what suppose to be done?
>>>
>>>
>>> Delete storage pool consists of 2 steps:
>>>
>>> * enable maintenance for the shared storage
>>> * after the maintenance is completed, the Delete button will be
>>>presented
>>> to the admin; and the storage can be removed.
>>>
>>> You are not supposed to delete primary storage on the backend;
>>>cloudStack
>>> has no idea if you do things like that, and it expects primary storage
>>>to
>>> be functioning.
>>>
>>> So when vm expunge happens, we see that the storage is in UP state, and
>>> try to send the destroy volume command to the Xen host. But the command
>>> fails there because there is no such primary storage exist.
>>>
>>> Let me know if its your case.
>>>
>>> -Alena.
>>>
>>>
>>>>
>>>>On Wed, Jun 13, 2012 at 10:08 PM, Alena Prokharchyk
>>>><Al...@citrix.com> wrote:
>>>>> On 6/13/12 12:55 PM, "Lu Heng" <h....@anytimechinese.com> wrote:
>>>>>
>>>>>>Hi
>>>>>>
>>>>>>Update:
>>>>>>
>>>>>>The zone has been stoped. all VM has been destoryed , the route vm
>>>>>>has
>>>>>>been stoped(no option for destory).
>>>>>>
>>>>>>Still get error fail to delete network.
>>>>>
>>>>>
>>>>> Can you send management server log file for debugging.
>>>>>
>>>>> Thanks,
>>>>> Alena.
>>>>>
>>>>>
>>>>>>
>>>>>>
>>>>>>On Wed, Jun 13, 2012 at 7:23 PM, Alena Prokharchyk
>>>>>><Al...@citrix.com> wrote:
>>>>>>> On 6/13/12 10:18 AM, "Tamas Monos" <ta...@veber.co.uk> wrote:
>>>>>>>
>>>>>>>>Hi,
>>>>>>>>
>>>>>>>>Also I think the problem is when you are trying to delete the
>>>>>>>>network
>>>>>>>>the
>>>>>>>>router is powered off.
>>>>>>>>Therefore when you click delete it wants to remove the firewall
>>>>>>>>rules
>>>>>>>>for
>>>>>>>>that network but the router is not running so the command fails
>>>>>>>>which
>>>>>>>>fails the delet operation.
>>>>>>>
>>>>>>>
>>>>>>> Also not a problem. The rules can be removed when the router is
>>>>>>>stopped.
>>>>>>> In this case the rules are removed in DB only. When the router
>>>>>>>starts
>>>>>>>up,
>>>>>>> we start clean (cleanup all the rules) and re-apply all the rules
>>>>>>>from
>>>>>>>the
>>>>>>> DB. So the removed rules won't exist  on the router.
>>>>>>>
>>>>>>> -Alena.
>>>>>>>
>>>>>>>>
>>>>>>>>Regards
>>>>>>>>
>>>>>>>>Tamas Monos                                               DDI
>>>>>>>>+44(0)2034687012
>>>>>>>>Chief Technical                                             Office
>>>>>>>>+44(0)2034687000
>>>>>>>>Veber: The Hosting Specialists               Fax         +44(0)871
>>>>>>>>522
>>>>>>>>7057
>>>>>>>>http://www.veber.co.uk
>>>>>>>>
>>>>>>>>Follow us on Twitter: www.twitter.com/veberhost
>>>>>>>>Follow us on Facebook: www.facebook.com/veberhost
>>>>>>>>
>>>>>>>>
>>>>>>>>-----Original Message-----
>>>>>>>>From: Tamas Monos [mailto:tamasm@veber.co.uk]
>>>>>>>>Sent: 13 June 2012 18:15
>>>>>>>>To: cloudstack-dev@incubator.apache.org
>>>>>>>>Subject: RE: Can not delete network
>>>>>>>>
>>>>>>>>Hi,
>>>>>>>>
>>>>>>>>I don't think you can delete a network if a router-vm for that
>>>>>>>>network
>>>>>>>>exists.
>>>>>>>>If you are trying to delete a network that network should not have
>>>>>>>>any
>>>>>>>>VMs.
>>>>>>>>Delete the associated router from the management interface then
>>>>>>>>delete
>>>>>>>>the network.
>>>>>>>>This method works for me on 3.0.2
>>>>>>>>
>>>>>>>>Regards
>>>>>>>>
>>>>>>>>Tamas Monos                                               DDI
>>>>>>>>+44(0)2034687012
>>>>>>>>Chief Technical                                             Office
>>>>>>>>+44(0)2034687000
>>>>>>>>Veber: The Hosting Specialists               Fax         +44(0)871
>>>>>>>>522
>>>>>>>>7057
>>>>>>>>http://www.veber.co.uk
>>>>>>>>
>>>>>>>>Follow us on Twitter: www.twitter.com/veberhost Follow us on
>>>>>>>>Facebook:
>>>>>>>>www.facebook.com/veberhost
>>>>>>>>
>>>>>>>>-----Original Message-----
>>>>>>>>From: Alena Prokharchyk [mailto:Alena.Prokharchyk@citrix.com]
>>>>>>>>Sent: 13 June 2012 18:12
>>>>>>>>To: cloudstack-dev@incubator.apache.org
>>>>>>>>Subject: Re: Can not delete network
>>>>>>>>
>>>>>>>>Can you please check the management server log to see if there is
>>>>>>>>more
>>>>>>>>detailed exception in there.
>>>>>>>>
>>>>>>>>-Alena.
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>On 6/13/12 9:50 AM, "Lu Heng" <h....@anytimechinese.com> wrote:
>>>>>>>>
>>>>>>>>>Hi
>>>>>>>>>
>>>>>>>>>I have problem deleting guest network, everytime I tried it always
>>>>>>>>>shows "fail to delete network)
>>>>>>>>>
>>>>>>>>>2012-06-13 11:26:14,243 WARN  [cloud.api.ApiDispatcher]
>>>>>>>>>(Job-Executor-52:job-95) class com.cloud.api.ServerApiException :
>>>>>>>>>Failed to delete network
>>>>>>>>>
>>>>>>>>>Any idea how it happens?
>>>>>>>>>--
>>>>>>>>>--
>>>>>>>>>Kind regards.
>>>>>>>>>Lu
>>>>>>>>>
>>>>>>>>>This transmission is intended solely for the addressee(s) shown
>>>>>>>>>above.
>>>>>>>>>It may contain information that is privileged, confidential or
>>>>>>>>>otherwise protected from disclosure. Any review, dissemination or
>>>>>>>>>use
>>>>>>>>>of this transmission or its contents by persons other than the
>>>>>>>>>intended
>>>>>>>>>addressee(s) is strictly prohibited. If you have received this
>>>>>>>>>transmission in error, please notify this office immediately and
>>>>>>>>>e-mail
>>>>>>>>>the original at the sender's address above by replying to this
>>>>>>>>>message
>>>>>>>>>and including the text of the transmission received.
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>--
>>>>>>--
>>>>>>Kind regards.
>>>>>>Lu
>>>>>>
>>>>>>This transmission is intended solely for the addressee(s) shown
>>>>>>above.
>>>>>>It may contain information that is privileged, confidential or
>>>>>>otherwise protected from disclosure. Any review, dissemination or use
>>>>>>of this transmission or its contents by persons other than the
>>>>>>intended addressee(s) is strictly prohibited. If you have received
>>>>>>this transmission in error, please notify this office immediately and
>>>>>>e-mail the original at the sender's address above by replying to this
>>>>>>message and including the text of the transmission received.
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>>--
>>>>--
>>>>Kind regards.
>>>>Lu
>>>>
>>>>This transmission is intended solely for the addressee(s) shown above.
>>>>It may contain information that is privileged, confidential or
>>>>otherwise protected from disclosure. Any review, dissemination or use
>>>>of this transmission or its contents by persons other than the
>>>>intended addressee(s) is strictly prohibited. If you have received
>>>>this transmission in error, please notify this office immediately and
>>>>e-mail the original at the sender's address above by replying to this
>>>>message and including the text of the transmission received.
>>>>
>>>
>>>
>>
>>
>>
>> --
>> --
>> Kind regards.
>> Lu
>>
>> This transmission is intended solely for the addressee(s) shown above.
>> It may contain information that is privileged, confidential or
>> otherwise protected from disclosure. Any review, dissemination or use
>> of this transmission or its contents by persons other than the
>> intended addressee(s) is strictly prohibited. If you have received
>> this transmission in error, please notify this office immediately and
>> e-mail the original at the sender's address above by replying to this
>> message and including the text of the transmission received.
>
>
>
>-- 
>--
>Kind regards.
>Lu
>
>This transmission is intended solely for the addressee(s) shown above.
>It may contain information that is privileged, confidential or
>otherwise protected from disclosure. Any review, dissemination or use
>of this transmission or its contents by persons other than the
>intended addressee(s) is strictly prohibited. If you have received
>this transmission in error, please notify this office immediately and
>e-mail the original at the sender's address above by replying to this
>message and including the text of the transmission received.
>



Re: Can not delete network

Posted by Lu Heng <h....@anytimechinese.com>.
Hi

And btw, I didn't see the maintainace botton for the 3 shared storage,
 I only see take snapshoot, snapshoot setting, that's it.

On Wed, Jun 13, 2012 at 10:35 PM, Lu Heng <h....@anytimechinese.com> wrote:
> Hi
>
> See my reply
>
> On Wed, Jun 13, 2012 at 10:30 PM, Alena Prokharchyk
> <Al...@citrix.com> wrote:
>> On 6/13/12 1:24 PM, "Lu Heng" <h....@anytimechinese.com> wrote:
>>
>>>Hi
>>>
>>>I find the reason, three vm are in state of "Expunging" for 3 hours
>>>now, no process is being made, anyone has idea what should I do about
>>>these VMs?
>>
>>
>> What is expunge.interval in the setup? If the vms stuck in Expunging state
>> with null Removed field, it indicates some problem happening during the
>> expunge. I suspect it's related with the fact you removed the storage from
>> the xen.
>>
> Vise verse, the situation is, the VM in the expunging state for 3
> hours, and I find no way to delete them, so I try to delete the
> storage.
>
> What should I do to fix this now?
>>
>>
>>>
>>>Another question is, I didn't see the delete botton with shared
>>>storage, so I delete it from the xencenter, but after that I still see
>>>the deleted storage exists in the UI, what suppose to be done?
>>
>>
>> Delete storage pool consists of 2 steps:
>>
>> * enable maintenance for the shared storage
>> * after the maintenance is completed, the Delete button will be presented
>> to the admin; and the storage can be removed.
>>
>> You are not supposed to delete primary storage on the backend; cloudStack
>> has no idea if you do things like that, and it expects primary storage to
>> be functioning.
>>
>> So when vm expunge happens, we see that the storage is in UP state, and
>> try to send the destroy volume command to the Xen host. But the command
>> fails there because there is no such primary storage exist.
>>
>> Let me know if its your case.
>>
>> -Alena.
>>
>>
>>>
>>>On Wed, Jun 13, 2012 at 10:08 PM, Alena Prokharchyk
>>><Al...@citrix.com> wrote:
>>>> On 6/13/12 12:55 PM, "Lu Heng" <h....@anytimechinese.com> wrote:
>>>>
>>>>>Hi
>>>>>
>>>>>Update:
>>>>>
>>>>>The zone has been stoped. all VM has been destoryed , the route vm has
>>>>>been stoped(no option for destory).
>>>>>
>>>>>Still get error fail to delete network.
>>>>
>>>>
>>>> Can you send management server log file for debugging.
>>>>
>>>> Thanks,
>>>> Alena.
>>>>
>>>>
>>>>>
>>>>>
>>>>>On Wed, Jun 13, 2012 at 7:23 PM, Alena Prokharchyk
>>>>><Al...@citrix.com> wrote:
>>>>>> On 6/13/12 10:18 AM, "Tamas Monos" <ta...@veber.co.uk> wrote:
>>>>>>
>>>>>>>Hi,
>>>>>>>
>>>>>>>Also I think the problem is when you are trying to delete the network
>>>>>>>the
>>>>>>>router is powered off.
>>>>>>>Therefore when you click delete it wants to remove the firewall rules
>>>>>>>for
>>>>>>>that network but the router is not running so the command fails which
>>>>>>>fails the delet operation.
>>>>>>
>>>>>>
>>>>>> Also not a problem. The rules can be removed when the router is
>>>>>>stopped.
>>>>>> In this case the rules are removed in DB only. When the router starts
>>>>>>up,
>>>>>> we start clean (cleanup all the rules) and re-apply all the rules from
>>>>>>the
>>>>>> DB. So the removed rules won't exist  on the router.
>>>>>>
>>>>>> -Alena.
>>>>>>
>>>>>>>
>>>>>>>Regards
>>>>>>>
>>>>>>>Tamas Monos                                               DDI
>>>>>>>+44(0)2034687012
>>>>>>>Chief Technical                                             Office
>>>>>>>+44(0)2034687000
>>>>>>>Veber: The Hosting Specialists               Fax         +44(0)871 522
>>>>>>>7057
>>>>>>>http://www.veber.co.uk
>>>>>>>
>>>>>>>Follow us on Twitter: www.twitter.com/veberhost
>>>>>>>Follow us on Facebook: www.facebook.com/veberhost
>>>>>>>
>>>>>>>
>>>>>>>-----Original Message-----
>>>>>>>From: Tamas Monos [mailto:tamasm@veber.co.uk]
>>>>>>>Sent: 13 June 2012 18:15
>>>>>>>To: cloudstack-dev@incubator.apache.org
>>>>>>>Subject: RE: Can not delete network
>>>>>>>
>>>>>>>Hi,
>>>>>>>
>>>>>>>I don't think you can delete a network if a router-vm for that network
>>>>>>>exists.
>>>>>>>If you are trying to delete a network that network should not have any
>>>>>>>VMs.
>>>>>>>Delete the associated router from the management interface then delete
>>>>>>>the network.
>>>>>>>This method works for me on 3.0.2
>>>>>>>
>>>>>>>Regards
>>>>>>>
>>>>>>>Tamas Monos                                               DDI
>>>>>>>+44(0)2034687012
>>>>>>>Chief Technical                                             Office
>>>>>>>+44(0)2034687000
>>>>>>>Veber: The Hosting Specialists               Fax         +44(0)871 522
>>>>>>>7057
>>>>>>>http://www.veber.co.uk
>>>>>>>
>>>>>>>Follow us on Twitter: www.twitter.com/veberhost Follow us on Facebook:
>>>>>>>www.facebook.com/veberhost
>>>>>>>
>>>>>>>-----Original Message-----
>>>>>>>From: Alena Prokharchyk [mailto:Alena.Prokharchyk@citrix.com]
>>>>>>>Sent: 13 June 2012 18:12
>>>>>>>To: cloudstack-dev@incubator.apache.org
>>>>>>>Subject: Re: Can not delete network
>>>>>>>
>>>>>>>Can you please check the management server log to see if there is more
>>>>>>>detailed exception in there.
>>>>>>>
>>>>>>>-Alena.
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>On 6/13/12 9:50 AM, "Lu Heng" <h....@anytimechinese.com> wrote:
>>>>>>>
>>>>>>>>Hi
>>>>>>>>
>>>>>>>>I have problem deleting guest network, everytime I tried it always
>>>>>>>>shows "fail to delete network)
>>>>>>>>
>>>>>>>>2012-06-13 11:26:14,243 WARN  [cloud.api.ApiDispatcher]
>>>>>>>>(Job-Executor-52:job-95) class com.cloud.api.ServerApiException :
>>>>>>>>Failed to delete network
>>>>>>>>
>>>>>>>>Any idea how it happens?
>>>>>>>>--
>>>>>>>>--
>>>>>>>>Kind regards.
>>>>>>>>Lu
>>>>>>>>
>>>>>>>>This transmission is intended solely for the addressee(s) shown
>>>>>>>>above.
>>>>>>>>It may contain information that is privileged, confidential or
>>>>>>>>otherwise protected from disclosure. Any review, dissemination or use
>>>>>>>>of this transmission or its contents by persons other than the
>>>>>>>>intended
>>>>>>>>addressee(s) is strictly prohibited. If you have received this
>>>>>>>>transmission in error, please notify this office immediately and
>>>>>>>>e-mail
>>>>>>>>the original at the sender's address above by replying to this
>>>>>>>>message
>>>>>>>>and including the text of the transmission received.
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>>--
>>>>>--
>>>>>Kind regards.
>>>>>Lu
>>>>>
>>>>>This transmission is intended solely for the addressee(s) shown above.
>>>>>It may contain information that is privileged, confidential or
>>>>>otherwise protected from disclosure. Any review, dissemination or use
>>>>>of this transmission or its contents by persons other than the
>>>>>intended addressee(s) is strictly prohibited. If you have received
>>>>>this transmission in error, please notify this office immediately and
>>>>>e-mail the original at the sender's address above by replying to this
>>>>>message and including the text of the transmission received.
>>>>>
>>>>
>>>>
>>>
>>>
>>>
>>>--
>>>--
>>>Kind regards.
>>>Lu
>>>
>>>This transmission is intended solely for the addressee(s) shown above.
>>>It may contain information that is privileged, confidential or
>>>otherwise protected from disclosure. Any review, dissemination or use
>>>of this transmission or its contents by persons other than the
>>>intended addressee(s) is strictly prohibited. If you have received
>>>this transmission in error, please notify this office immediately and
>>>e-mail the original at the sender's address above by replying to this
>>>message and including the text of the transmission received.
>>>
>>
>>
>
>
>
> --
> --
> Kind regards.
> Lu
>
> This transmission is intended solely for the addressee(s) shown above.
> It may contain information that is privileged, confidential or
> otherwise protected from disclosure. Any review, dissemination or use
> of this transmission or its contents by persons other than the
> intended addressee(s) is strictly prohibited. If you have received
> this transmission in error, please notify this office immediately and
> e-mail the original at the sender's address above by replying to this
> message and including the text of the transmission received.



-- 
--
Kind regards.
Lu

This transmission is intended solely for the addressee(s) shown above.
It may contain information that is privileged, confidential or
otherwise protected from disclosure. Any review, dissemination or use
of this transmission or its contents by persons other than the
intended addressee(s) is strictly prohibited. If you have received
this transmission in error, please notify this office immediately and
e-mail the original at the sender's address above by replying to this
message and including the text of the transmission received.

Re: Can not delete network

Posted by Lu Heng <h....@anytimechinese.com>.
Hi

See my reply

On Wed, Jun 13, 2012 at 10:30 PM, Alena Prokharchyk
<Al...@citrix.com> wrote:
> On 6/13/12 1:24 PM, "Lu Heng" <h....@anytimechinese.com> wrote:
>
>>Hi
>>
>>I find the reason, three vm are in state of "Expunging" for 3 hours
>>now, no process is being made, anyone has idea what should I do about
>>these VMs?
>
>
> What is expunge.interval in the setup? If the vms stuck in Expunging state
> with null Removed field, it indicates some problem happening during the
> expunge. I suspect it's related with the fact you removed the storage from
> the xen.
>
Vise verse, the situation is, the VM in the expunging state for 3
hours, and I find no way to delete them, so I try to delete the
storage.

What should I do to fix this now?
>
>
>>
>>Another question is, I didn't see the delete botton with shared
>>storage, so I delete it from the xencenter, but after that I still see
>>the deleted storage exists in the UI, what suppose to be done?
>
>
> Delete storage pool consists of 2 steps:
>
> * enable maintenance for the shared storage
> * after the maintenance is completed, the Delete button will be presented
> to the admin; and the storage can be removed.
>
> You are not supposed to delete primary storage on the backend; cloudStack
> has no idea if you do things like that, and it expects primary storage to
> be functioning.
>
> So when vm expunge happens, we see that the storage is in UP state, and
> try to send the destroy volume command to the Xen host. But the command
> fails there because there is no such primary storage exist.
>
> Let me know if its your case.
>
> -Alena.
>
>
>>
>>On Wed, Jun 13, 2012 at 10:08 PM, Alena Prokharchyk
>><Al...@citrix.com> wrote:
>>> On 6/13/12 12:55 PM, "Lu Heng" <h....@anytimechinese.com> wrote:
>>>
>>>>Hi
>>>>
>>>>Update:
>>>>
>>>>The zone has been stoped. all VM has been destoryed , the route vm has
>>>>been stoped(no option for destory).
>>>>
>>>>Still get error fail to delete network.
>>>
>>>
>>> Can you send management server log file for debugging.
>>>
>>> Thanks,
>>> Alena.
>>>
>>>
>>>>
>>>>
>>>>On Wed, Jun 13, 2012 at 7:23 PM, Alena Prokharchyk
>>>><Al...@citrix.com> wrote:
>>>>> On 6/13/12 10:18 AM, "Tamas Monos" <ta...@veber.co.uk> wrote:
>>>>>
>>>>>>Hi,
>>>>>>
>>>>>>Also I think the problem is when you are trying to delete the network
>>>>>>the
>>>>>>router is powered off.
>>>>>>Therefore when you click delete it wants to remove the firewall rules
>>>>>>for
>>>>>>that network but the router is not running so the command fails which
>>>>>>fails the delet operation.
>>>>>
>>>>>
>>>>> Also not a problem. The rules can be removed when the router is
>>>>>stopped.
>>>>> In this case the rules are removed in DB only. When the router starts
>>>>>up,
>>>>> we start clean (cleanup all the rules) and re-apply all the rules from
>>>>>the
>>>>> DB. So the removed rules won't exist  on the router.
>>>>>
>>>>> -Alena.
>>>>>
>>>>>>
>>>>>>Regards
>>>>>>
>>>>>>Tamas Monos                                               DDI
>>>>>>+44(0)2034687012
>>>>>>Chief Technical                                             Office
>>>>>>+44(0)2034687000
>>>>>>Veber: The Hosting Specialists               Fax         +44(0)871 522
>>>>>>7057
>>>>>>http://www.veber.co.uk
>>>>>>
>>>>>>Follow us on Twitter: www.twitter.com/veberhost
>>>>>>Follow us on Facebook: www.facebook.com/veberhost
>>>>>>
>>>>>>
>>>>>>-----Original Message-----
>>>>>>From: Tamas Monos [mailto:tamasm@veber.co.uk]
>>>>>>Sent: 13 June 2012 18:15
>>>>>>To: cloudstack-dev@incubator.apache.org
>>>>>>Subject: RE: Can not delete network
>>>>>>
>>>>>>Hi,
>>>>>>
>>>>>>I don't think you can delete a network if a router-vm for that network
>>>>>>exists.
>>>>>>If you are trying to delete a network that network should not have any
>>>>>>VMs.
>>>>>>Delete the associated router from the management interface then delete
>>>>>>the network.
>>>>>>This method works for me on 3.0.2
>>>>>>
>>>>>>Regards
>>>>>>
>>>>>>Tamas Monos                                               DDI
>>>>>>+44(0)2034687012
>>>>>>Chief Technical                                             Office
>>>>>>+44(0)2034687000
>>>>>>Veber: The Hosting Specialists               Fax         +44(0)871 522
>>>>>>7057
>>>>>>http://www.veber.co.uk
>>>>>>
>>>>>>Follow us on Twitter: www.twitter.com/veberhost Follow us on Facebook:
>>>>>>www.facebook.com/veberhost
>>>>>>
>>>>>>-----Original Message-----
>>>>>>From: Alena Prokharchyk [mailto:Alena.Prokharchyk@citrix.com]
>>>>>>Sent: 13 June 2012 18:12
>>>>>>To: cloudstack-dev@incubator.apache.org
>>>>>>Subject: Re: Can not delete network
>>>>>>
>>>>>>Can you please check the management server log to see if there is more
>>>>>>detailed exception in there.
>>>>>>
>>>>>>-Alena.
>>>>>>
>>>>>>
>>>>>>
>>>>>>On 6/13/12 9:50 AM, "Lu Heng" <h....@anytimechinese.com> wrote:
>>>>>>
>>>>>>>Hi
>>>>>>>
>>>>>>>I have problem deleting guest network, everytime I tried it always
>>>>>>>shows "fail to delete network)
>>>>>>>
>>>>>>>2012-06-13 11:26:14,243 WARN  [cloud.api.ApiDispatcher]
>>>>>>>(Job-Executor-52:job-95) class com.cloud.api.ServerApiException :
>>>>>>>Failed to delete network
>>>>>>>
>>>>>>>Any idea how it happens?
>>>>>>>--
>>>>>>>--
>>>>>>>Kind regards.
>>>>>>>Lu
>>>>>>>
>>>>>>>This transmission is intended solely for the addressee(s) shown
>>>>>>>above.
>>>>>>>It may contain information that is privileged, confidential or
>>>>>>>otherwise protected from disclosure. Any review, dissemination or use
>>>>>>>of this transmission or its contents by persons other than the
>>>>>>>intended
>>>>>>>addressee(s) is strictly prohibited. If you have received this
>>>>>>>transmission in error, please notify this office immediately and
>>>>>>>e-mail
>>>>>>>the original at the sender's address above by replying to this
>>>>>>>message
>>>>>>>and including the text of the transmission received.
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>>--
>>>>--
>>>>Kind regards.
>>>>Lu
>>>>
>>>>This transmission is intended solely for the addressee(s) shown above.
>>>>It may contain information that is privileged, confidential or
>>>>otherwise protected from disclosure. Any review, dissemination or use
>>>>of this transmission or its contents by persons other than the
>>>>intended addressee(s) is strictly prohibited. If you have received
>>>>this transmission in error, please notify this office immediately and
>>>>e-mail the original at the sender's address above by replying to this
>>>>message and including the text of the transmission received.
>>>>
>>>
>>>
>>
>>
>>
>>--
>>--
>>Kind regards.
>>Lu
>>
>>This transmission is intended solely for the addressee(s) shown above.
>>It may contain information that is privileged, confidential or
>>otherwise protected from disclosure. Any review, dissemination or use
>>of this transmission or its contents by persons other than the
>>intended addressee(s) is strictly prohibited. If you have received
>>this transmission in error, please notify this office immediately and
>>e-mail the original at the sender's address above by replying to this
>>message and including the text of the transmission received.
>>
>
>



-- 
--
Kind regards.
Lu

This transmission is intended solely for the addressee(s) shown above.
It may contain information that is privileged, confidential or
otherwise protected from disclosure. Any review, dissemination or use
of this transmission or its contents by persons other than the
intended addressee(s) is strictly prohibited. If you have received
this transmission in error, please notify this office immediately and
e-mail the original at the sender's address above by replying to this
message and including the text of the transmission received.

Re: Can not delete network

Posted by Alena Prokharchyk <Al...@citrix.com>.
On 6/13/12 1:24 PM, "Lu Heng" <h....@anytimechinese.com> wrote:

>Hi
>
>I find the reason, three vm are in state of "Expunging" for 3 hours
>now, no process is being made, anyone has idea what should I do about
>these VMs?


What is expunge.interval in the setup? If the vms stuck in Expunging state
with null Removed field, it indicates some problem happening during the
expunge. I suspect it's related with the fact you removed the storage from
the xen.



>
>Another question is, I didn't see the delete botton with shared
>storage, so I delete it from the xencenter, but after that I still see
>the deleted storage exists in the UI, what suppose to be done?


Delete storage pool consists of 2 steps:

* enable maintenance for the shared storage
* after the maintenance is completed, the Delete button will be presented
to the admin; and the storage can be removed.

You are not supposed to delete primary storage on the backend; cloudStack
has no idea if you do things like that, and it expects primary storage to
be functioning.

So when vm expunge happens, we see that the storage is in UP state, and
try to send the destroy volume command to the Xen host. But the command
fails there because there is no such primary storage exist.

Let me know if its your case.

-Alena.


>
>On Wed, Jun 13, 2012 at 10:08 PM, Alena Prokharchyk
><Al...@citrix.com> wrote:
>> On 6/13/12 12:55 PM, "Lu Heng" <h....@anytimechinese.com> wrote:
>>
>>>Hi
>>>
>>>Update:
>>>
>>>The zone has been stoped. all VM has been destoryed , the route vm has
>>>been stoped(no option for destory).
>>>
>>>Still get error fail to delete network.
>>
>>
>> Can you send management server log file for debugging.
>>
>> Thanks,
>> Alena.
>>
>>
>>>
>>>
>>>On Wed, Jun 13, 2012 at 7:23 PM, Alena Prokharchyk
>>><Al...@citrix.com> wrote:
>>>> On 6/13/12 10:18 AM, "Tamas Monos" <ta...@veber.co.uk> wrote:
>>>>
>>>>>Hi,
>>>>>
>>>>>Also I think the problem is when you are trying to delete the network
>>>>>the
>>>>>router is powered off.
>>>>>Therefore when you click delete it wants to remove the firewall rules
>>>>>for
>>>>>that network but the router is not running so the command fails which
>>>>>fails the delet operation.
>>>>
>>>>
>>>> Also not a problem. The rules can be removed when the router is
>>>>stopped.
>>>> In this case the rules are removed in DB only. When the router starts
>>>>up,
>>>> we start clean (cleanup all the rules) and re-apply all the rules from
>>>>the
>>>> DB. So the removed rules won't exist  on the router.
>>>>
>>>> -Alena.
>>>>
>>>>>
>>>>>Regards
>>>>>
>>>>>Tamas Monos                                               DDI
>>>>>+44(0)2034687012
>>>>>Chief Technical                                             Office
>>>>>+44(0)2034687000
>>>>>Veber: The Hosting Specialists               Fax         +44(0)871 522
>>>>>7057
>>>>>http://www.veber.co.uk
>>>>>
>>>>>Follow us on Twitter: www.twitter.com/veberhost
>>>>>Follow us on Facebook: www.facebook.com/veberhost
>>>>>
>>>>>
>>>>>-----Original Message-----
>>>>>From: Tamas Monos [mailto:tamasm@veber.co.uk]
>>>>>Sent: 13 June 2012 18:15
>>>>>To: cloudstack-dev@incubator.apache.org
>>>>>Subject: RE: Can not delete network
>>>>>
>>>>>Hi,
>>>>>
>>>>>I don't think you can delete a network if a router-vm for that network
>>>>>exists.
>>>>>If you are trying to delete a network that network should not have any
>>>>>VMs.
>>>>>Delete the associated router from the management interface then delete
>>>>>the network.
>>>>>This method works for me on 3.0.2
>>>>>
>>>>>Regards
>>>>>
>>>>>Tamas Monos                                               DDI
>>>>>+44(0)2034687012
>>>>>Chief Technical                                             Office
>>>>>+44(0)2034687000
>>>>>Veber: The Hosting Specialists               Fax         +44(0)871 522
>>>>>7057
>>>>>http://www.veber.co.uk
>>>>>
>>>>>Follow us on Twitter: www.twitter.com/veberhost Follow us on Facebook:
>>>>>www.facebook.com/veberhost
>>>>>
>>>>>-----Original Message-----
>>>>>From: Alena Prokharchyk [mailto:Alena.Prokharchyk@citrix.com]
>>>>>Sent: 13 June 2012 18:12
>>>>>To: cloudstack-dev@incubator.apache.org
>>>>>Subject: Re: Can not delete network
>>>>>
>>>>>Can you please check the management server log to see if there is more
>>>>>detailed exception in there.
>>>>>
>>>>>-Alena.
>>>>>
>>>>>
>>>>>
>>>>>On 6/13/12 9:50 AM, "Lu Heng" <h....@anytimechinese.com> wrote:
>>>>>
>>>>>>Hi
>>>>>>
>>>>>>I have problem deleting guest network, everytime I tried it always
>>>>>>shows "fail to delete network)
>>>>>>
>>>>>>2012-06-13 11:26:14,243 WARN  [cloud.api.ApiDispatcher]
>>>>>>(Job-Executor-52:job-95) class com.cloud.api.ServerApiException :
>>>>>>Failed to delete network
>>>>>>
>>>>>>Any idea how it happens?
>>>>>>--
>>>>>>--
>>>>>>Kind regards.
>>>>>>Lu
>>>>>>
>>>>>>This transmission is intended solely for the addressee(s) shown
>>>>>>above.
>>>>>>It may contain information that is privileged, confidential or
>>>>>>otherwise protected from disclosure. Any review, dissemination or use
>>>>>>of this transmission or its contents by persons other than the
>>>>>>intended
>>>>>>addressee(s) is strictly prohibited. If you have received this
>>>>>>transmission in error, please notify this office immediately and
>>>>>>e-mail
>>>>>>the original at the sender's address above by replying to this
>>>>>>message
>>>>>>and including the text of the transmission received.
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>>
>>>--
>>>--
>>>Kind regards.
>>>Lu
>>>
>>>This transmission is intended solely for the addressee(s) shown above.
>>>It may contain information that is privileged, confidential or
>>>otherwise protected from disclosure. Any review, dissemination or use
>>>of this transmission or its contents by persons other than the
>>>intended addressee(s) is strictly prohibited. If you have received
>>>this transmission in error, please notify this office immediately and
>>>e-mail the original at the sender's address above by replying to this
>>>message and including the text of the transmission received.
>>>
>>
>>
>
>
>
>-- 
>--
>Kind regards.
>Lu
>
>This transmission is intended solely for the addressee(s) shown above.
>It may contain information that is privileged, confidential or
>otherwise protected from disclosure. Any review, dissemination or use
>of this transmission or its contents by persons other than the
>intended addressee(s) is strictly prohibited. If you have received
>this transmission in error, please notify this office immediately and
>e-mail the original at the sender's address above by replying to this
>message and including the text of the transmission received.
>



Re: Can not delete network

Posted by Lu Heng <h....@anytimechinese.com>.
Hi

I find the reason, three vm are in state of "Expunging" for 3 hours
now, no process is being made, anyone has idea what should I do about
these VMs?

Another question is, I didn't see the delete botton with shared
storage, so I delete it from the xencenter, but after that I still see
the deleted storage exists in the UI, what suppose to be done?

On Wed, Jun 13, 2012 at 10:08 PM, Alena Prokharchyk
<Al...@citrix.com> wrote:
> On 6/13/12 12:55 PM, "Lu Heng" <h....@anytimechinese.com> wrote:
>
>>Hi
>>
>>Update:
>>
>>The zone has been stoped. all VM has been destoryed , the route vm has
>>been stoped(no option for destory).
>>
>>Still get error fail to delete network.
>
>
> Can you send management server log file for debugging.
>
> Thanks,
> Alena.
>
>
>>
>>
>>On Wed, Jun 13, 2012 at 7:23 PM, Alena Prokharchyk
>><Al...@citrix.com> wrote:
>>> On 6/13/12 10:18 AM, "Tamas Monos" <ta...@veber.co.uk> wrote:
>>>
>>>>Hi,
>>>>
>>>>Also I think the problem is when you are trying to delete the network
>>>>the
>>>>router is powered off.
>>>>Therefore when you click delete it wants to remove the firewall rules
>>>>for
>>>>that network but the router is not running so the command fails which
>>>>fails the delet operation.
>>>
>>>
>>> Also not a problem. The rules can be removed when the router is stopped.
>>> In this case the rules are removed in DB only. When the router starts
>>>up,
>>> we start clean (cleanup all the rules) and re-apply all the rules from
>>>the
>>> DB. So the removed rules won't exist  on the router.
>>>
>>> -Alena.
>>>
>>>>
>>>>Regards
>>>>
>>>>Tamas Monos                                               DDI
>>>>+44(0)2034687012
>>>>Chief Technical                                             Office
>>>>+44(0)2034687000
>>>>Veber: The Hosting Specialists               Fax         +44(0)871 522
>>>>7057
>>>>http://www.veber.co.uk
>>>>
>>>>Follow us on Twitter: www.twitter.com/veberhost
>>>>Follow us on Facebook: www.facebook.com/veberhost
>>>>
>>>>
>>>>-----Original Message-----
>>>>From: Tamas Monos [mailto:tamasm@veber.co.uk]
>>>>Sent: 13 June 2012 18:15
>>>>To: cloudstack-dev@incubator.apache.org
>>>>Subject: RE: Can not delete network
>>>>
>>>>Hi,
>>>>
>>>>I don't think you can delete a network if a router-vm for that network
>>>>exists.
>>>>If you are trying to delete a network that network should not have any
>>>>VMs.
>>>>Delete the associated router from the management interface then delete
>>>>the network.
>>>>This method works for me on 3.0.2
>>>>
>>>>Regards
>>>>
>>>>Tamas Monos                                               DDI
>>>>+44(0)2034687012
>>>>Chief Technical                                             Office
>>>>+44(0)2034687000
>>>>Veber: The Hosting Specialists               Fax         +44(0)871 522
>>>>7057
>>>>http://www.veber.co.uk
>>>>
>>>>Follow us on Twitter: www.twitter.com/veberhost Follow us on Facebook:
>>>>www.facebook.com/veberhost
>>>>
>>>>-----Original Message-----
>>>>From: Alena Prokharchyk [mailto:Alena.Prokharchyk@citrix.com]
>>>>Sent: 13 June 2012 18:12
>>>>To: cloudstack-dev@incubator.apache.org
>>>>Subject: Re: Can not delete network
>>>>
>>>>Can you please check the management server log to see if there is more
>>>>detailed exception in there.
>>>>
>>>>-Alena.
>>>>
>>>>
>>>>
>>>>On 6/13/12 9:50 AM, "Lu Heng" <h....@anytimechinese.com> wrote:
>>>>
>>>>>Hi
>>>>>
>>>>>I have problem deleting guest network, everytime I tried it always
>>>>>shows "fail to delete network)
>>>>>
>>>>>2012-06-13 11:26:14,243 WARN  [cloud.api.ApiDispatcher]
>>>>>(Job-Executor-52:job-95) class com.cloud.api.ServerApiException :
>>>>>Failed to delete network
>>>>>
>>>>>Any idea how it happens?
>>>>>--
>>>>>--
>>>>>Kind regards.
>>>>>Lu
>>>>>
>>>>>This transmission is intended solely for the addressee(s) shown above.
>>>>>It may contain information that is privileged, confidential or
>>>>>otherwise protected from disclosure. Any review, dissemination or use
>>>>>of this transmission or its contents by persons other than the intended
>>>>>addressee(s) is strictly prohibited. If you have received this
>>>>>transmission in error, please notify this office immediately and e-mail
>>>>>the original at the sender's address above by replying to this message
>>>>>and including the text of the transmission received.
>>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>>
>>--
>>--
>>Kind regards.
>>Lu
>>
>>This transmission is intended solely for the addressee(s) shown above.
>>It may contain information that is privileged, confidential or
>>otherwise protected from disclosure. Any review, dissemination or use
>>of this transmission or its contents by persons other than the
>>intended addressee(s) is strictly prohibited. If you have received
>>this transmission in error, please notify this office immediately and
>>e-mail the original at the sender's address above by replying to this
>>message and including the text of the transmission received.
>>
>
>



-- 
--
Kind regards.
Lu

This transmission is intended solely for the addressee(s) shown above.
It may contain information that is privileged, confidential or
otherwise protected from disclosure. Any review, dissemination or use
of this transmission or its contents by persons other than the
intended addressee(s) is strictly prohibited. If you have received
this transmission in error, please notify this office immediately and
e-mail the original at the sender's address above by replying to this
message and including the text of the transmission received.

Re: Can not delete network

Posted by Alena Prokharchyk <Al...@citrix.com>.
On 6/13/12 12:55 PM, "Lu Heng" <h....@anytimechinese.com> wrote:

>Hi
>
>Update:
>
>The zone has been stoped. all VM has been destoryed , the route vm has
>been stoped(no option for destory).
>
>Still get error fail to delete network.


Can you send management server log file for debugging.

Thanks,
Alena.


>
>
>On Wed, Jun 13, 2012 at 7:23 PM, Alena Prokharchyk
><Al...@citrix.com> wrote:
>> On 6/13/12 10:18 AM, "Tamas Monos" <ta...@veber.co.uk> wrote:
>>
>>>Hi,
>>>
>>>Also I think the problem is when you are trying to delete the network
>>>the
>>>router is powered off.
>>>Therefore when you click delete it wants to remove the firewall rules
>>>for
>>>that network but the router is not running so the command fails which
>>>fails the delet operation.
>>
>>
>> Also not a problem. The rules can be removed when the router is stopped.
>> In this case the rules are removed in DB only. When the router starts
>>up,
>> we start clean (cleanup all the rules) and re-apply all the rules from
>>the
>> DB. So the removed rules won't exist  on the router.
>>
>> -Alena.
>>
>>>
>>>Regards
>>>
>>>Tamas Monos                                               DDI
>>>+44(0)2034687012
>>>Chief Technical                                             Office
>>>+44(0)2034687000
>>>Veber: The Hosting Specialists               Fax         +44(0)871 522
>>>7057
>>>http://www.veber.co.uk
>>>
>>>Follow us on Twitter: www.twitter.com/veberhost
>>>Follow us on Facebook: www.facebook.com/veberhost
>>>
>>>
>>>-----Original Message-----
>>>From: Tamas Monos [mailto:tamasm@veber.co.uk]
>>>Sent: 13 June 2012 18:15
>>>To: cloudstack-dev@incubator.apache.org
>>>Subject: RE: Can not delete network
>>>
>>>Hi,
>>>
>>>I don't think you can delete a network if a router-vm for that network
>>>exists.
>>>If you are trying to delete a network that network should not have any
>>>VMs.
>>>Delete the associated router from the management interface then delete
>>>the network.
>>>This method works for me on 3.0.2
>>>
>>>Regards
>>>
>>>Tamas Monos                                               DDI
>>>+44(0)2034687012
>>>Chief Technical                                             Office
>>>+44(0)2034687000
>>>Veber: The Hosting Specialists               Fax         +44(0)871 522
>>>7057
>>>http://www.veber.co.uk
>>>
>>>Follow us on Twitter: www.twitter.com/veberhost Follow us on Facebook:
>>>www.facebook.com/veberhost
>>>
>>>-----Original Message-----
>>>From: Alena Prokharchyk [mailto:Alena.Prokharchyk@citrix.com]
>>>Sent: 13 June 2012 18:12
>>>To: cloudstack-dev@incubator.apache.org
>>>Subject: Re: Can not delete network
>>>
>>>Can you please check the management server log to see if there is more
>>>detailed exception in there.
>>>
>>>-Alena.
>>>
>>>
>>>
>>>On 6/13/12 9:50 AM, "Lu Heng" <h....@anytimechinese.com> wrote:
>>>
>>>>Hi
>>>>
>>>>I have problem deleting guest network, everytime I tried it always
>>>>shows "fail to delete network)
>>>>
>>>>2012-06-13 11:26:14,243 WARN  [cloud.api.ApiDispatcher]
>>>>(Job-Executor-52:job-95) class com.cloud.api.ServerApiException :
>>>>Failed to delete network
>>>>
>>>>Any idea how it happens?
>>>>--
>>>>--
>>>>Kind regards.
>>>>Lu
>>>>
>>>>This transmission is intended solely for the addressee(s) shown above.
>>>>It may contain information that is privileged, confidential or
>>>>otherwise protected from disclosure. Any review, dissemination or use
>>>>of this transmission or its contents by persons other than the intended
>>>>addressee(s) is strictly prohibited. If you have received this
>>>>transmission in error, please notify this office immediately and e-mail
>>>>the original at the sender's address above by replying to this message
>>>>and including the text of the transmission received.
>>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>
>>
>
>
>
>-- 
>--
>Kind regards.
>Lu
>
>This transmission is intended solely for the addressee(s) shown above.
>It may contain information that is privileged, confidential or
>otherwise protected from disclosure. Any review, dissemination or use
>of this transmission or its contents by persons other than the
>intended addressee(s) is strictly prohibited. If you have received
>this transmission in error, please notify this office immediately and
>e-mail the original at the sender's address above by replying to this
>message and including the text of the transmission received.
>



Re: Can not delete network

Posted by Lu Heng <h....@anytimechinese.com>.
Hi

Update:

The zone has been stoped. all VM has been destoryed , the route vm has
been stoped(no option for destory).

Still get error fail to delete network.


On Wed, Jun 13, 2012 at 7:23 PM, Alena Prokharchyk
<Al...@citrix.com> wrote:
> On 6/13/12 10:18 AM, "Tamas Monos" <ta...@veber.co.uk> wrote:
>
>>Hi,
>>
>>Also I think the problem is when you are trying to delete the network the
>>router is powered off.
>>Therefore when you click delete it wants to remove the firewall rules for
>>that network but the router is not running so the command fails which
>>fails the delet operation.
>
>
> Also not a problem. The rules can be removed when the router is stopped.
> In this case the rules are removed in DB only. When the router starts up,
> we start clean (cleanup all the rules) and re-apply all the rules from the
> DB. So the removed rules won't exist  on the router.
>
> -Alena.
>
>>
>>Regards
>>
>>Tamas Monos                                               DDI
>>+44(0)2034687012
>>Chief Technical                                             Office
>>+44(0)2034687000
>>Veber: The Hosting Specialists               Fax         +44(0)871 522
>>7057
>>http://www.veber.co.uk
>>
>>Follow us on Twitter: www.twitter.com/veberhost
>>Follow us on Facebook: www.facebook.com/veberhost
>>
>>
>>-----Original Message-----
>>From: Tamas Monos [mailto:tamasm@veber.co.uk]
>>Sent: 13 June 2012 18:15
>>To: cloudstack-dev@incubator.apache.org
>>Subject: RE: Can not delete network
>>
>>Hi,
>>
>>I don't think you can delete a network if a router-vm for that network
>>exists.
>>If you are trying to delete a network that network should not have any
>>VMs.
>>Delete the associated router from the management interface then delete
>>the network.
>>This method works for me on 3.0.2
>>
>>Regards
>>
>>Tamas Monos                                               DDI
>>+44(0)2034687012
>>Chief Technical                                             Office
>>+44(0)2034687000
>>Veber: The Hosting Specialists               Fax         +44(0)871 522
>>7057
>>http://www.veber.co.uk
>>
>>Follow us on Twitter: www.twitter.com/veberhost Follow us on Facebook:
>>www.facebook.com/veberhost
>>
>>-----Original Message-----
>>From: Alena Prokharchyk [mailto:Alena.Prokharchyk@citrix.com]
>>Sent: 13 June 2012 18:12
>>To: cloudstack-dev@incubator.apache.org
>>Subject: Re: Can not delete network
>>
>>Can you please check the management server log to see if there is more
>>detailed exception in there.
>>
>>-Alena.
>>
>>
>>
>>On 6/13/12 9:50 AM, "Lu Heng" <h....@anytimechinese.com> wrote:
>>
>>>Hi
>>>
>>>I have problem deleting guest network, everytime I tried it always
>>>shows "fail to delete network)
>>>
>>>2012-06-13 11:26:14,243 WARN  [cloud.api.ApiDispatcher]
>>>(Job-Executor-52:job-95) class com.cloud.api.ServerApiException :
>>>Failed to delete network
>>>
>>>Any idea how it happens?
>>>--
>>>--
>>>Kind regards.
>>>Lu
>>>
>>>This transmission is intended solely for the addressee(s) shown above.
>>>It may contain information that is privileged, confidential or
>>>otherwise protected from disclosure. Any review, dissemination or use
>>>of this transmission or its contents by persons other than the intended
>>>addressee(s) is strictly prohibited. If you have received this
>>>transmission in error, please notify this office immediately and e-mail
>>>the original at the sender's address above by replying to this message
>>>and including the text of the transmission received.
>>>
>>
>>
>>
>>
>>
>>
>>
>
>



-- 
--
Kind regards.
Lu

This transmission is intended solely for the addressee(s) shown above.
It may contain information that is privileged, confidential or
otherwise protected from disclosure. Any review, dissemination or use
of this transmission or its contents by persons other than the
intended addressee(s) is strictly prohibited. If you have received
this transmission in error, please notify this office immediately and
e-mail the original at the sender's address above by replying to this
message and including the text of the transmission received.

Re: Can not delete network

Posted by Alena Prokharchyk <Al...@citrix.com>.
On 6/13/12 10:18 AM, "Tamas Monos" <ta...@veber.co.uk> wrote:

>Hi,
>
>Also I think the problem is when you are trying to delete the network the
>router is powered off.
>Therefore when you click delete it wants to remove the firewall rules for
>that network but the router is not running so the command fails which
>fails the delet operation.


Also not a problem. The rules can be removed when the router is stopped.
In this case the rules are removed in DB only. When the router starts up,
we start clean (cleanup all the rules) and re-apply all the rules from the
DB. So the removed rules won't exist  on the router.

-Alena.

>
>Regards
>
>Tamas Monos                                               DDI
>+44(0)2034687012
>Chief Technical                                             Office
>+44(0)2034687000
>Veber: The Hosting Specialists               Fax         +44(0)871 522
>7057
>http://www.veber.co.uk
>
>Follow us on Twitter: www.twitter.com/veberhost
>Follow us on Facebook: www.facebook.com/veberhost
>
>
>-----Original Message-----
>From: Tamas Monos [mailto:tamasm@veber.co.uk]
>Sent: 13 June 2012 18:15
>To: cloudstack-dev@incubator.apache.org
>Subject: RE: Can not delete network
>
>Hi,
>
>I don't think you can delete a network if a router-vm for that network
>exists.
>If you are trying to delete a network that network should not have any
>VMs.
>Delete the associated router from the management interface then delete
>the network.
>This method works for me on 3.0.2
>
>Regards
>
>Tamas Monos                                               DDI
>+44(0)2034687012
>Chief Technical                                             Office
>+44(0)2034687000
>Veber: The Hosting Specialists               Fax         +44(0)871 522
>7057
>http://www.veber.co.uk
>
>Follow us on Twitter: www.twitter.com/veberhost Follow us on Facebook:
>www.facebook.com/veberhost
>
>-----Original Message-----
>From: Alena Prokharchyk [mailto:Alena.Prokharchyk@citrix.com]
>Sent: 13 June 2012 18:12
>To: cloudstack-dev@incubator.apache.org
>Subject: Re: Can not delete network
>
>Can you please check the management server log to see if there is more
>detailed exception in there.
>
>-Alena.
>
>
>
>On 6/13/12 9:50 AM, "Lu Heng" <h....@anytimechinese.com> wrote:
>
>>Hi
>>
>>I have problem deleting guest network, everytime I tried it always
>>shows "fail to delete network)
>>
>>2012-06-13 11:26:14,243 WARN  [cloud.api.ApiDispatcher]
>>(Job-Executor-52:job-95) class com.cloud.api.ServerApiException :
>>Failed to delete network
>>
>>Any idea how it happens?
>>--
>>--
>>Kind regards.
>>Lu
>>
>>This transmission is intended solely for the addressee(s) shown above.
>>It may contain information that is privileged, confidential or
>>otherwise protected from disclosure. Any review, dissemination or use
>>of this transmission or its contents by persons other than the intended
>>addressee(s) is strictly prohibited. If you have received this
>>transmission in error, please notify this office immediately and e-mail
>>the original at the sender's address above by replying to this message
>>and including the text of the transmission received.
>>
>
>
>
>
>
>
>



RE: Can not delete network

Posted by Tamas Monos <ta...@veber.co.uk>.
Hi,

Also I think the problem is when you are trying to delete the network the router is powered off.
Therefore when you click delete it wants to remove the firewall rules for that network but the router is not running so the command fails which fails the delet operation.

Regards

Tamas Monos                                               DDI         +44(0)2034687012
Chief Technical                                             Office    +44(0)2034687000
Veber: The Hosting Specialists               Fax         +44(0)871 522 7057
http://www.veber.co.uk

Follow us on Twitter: www.twitter.com/veberhost
Follow us on Facebook: www.facebook.com/veberhost


-----Original Message-----
From: Tamas Monos [mailto:tamasm@veber.co.uk] 
Sent: 13 June 2012 18:15
To: cloudstack-dev@incubator.apache.org
Subject: RE: Can not delete network

Hi,

I don't think you can delete a network if a router-vm for that network exists.
If you are trying to delete a network that network should not have any VMs.
Delete the associated router from the management interface then delete the network.
This method works for me on 3.0.2

Regards

Tamas Monos                                               DDI         +44(0)2034687012
Chief Technical                                             Office    +44(0)2034687000
Veber: The Hosting Specialists               Fax         +44(0)871 522 7057
http://www.veber.co.uk

Follow us on Twitter: www.twitter.com/veberhost Follow us on Facebook: www.facebook.com/veberhost

-----Original Message-----
From: Alena Prokharchyk [mailto:Alena.Prokharchyk@citrix.com]
Sent: 13 June 2012 18:12
To: cloudstack-dev@incubator.apache.org
Subject: Re: Can not delete network

Can you please check the management server log to see if there is more detailed exception in there.

-Alena.



On 6/13/12 9:50 AM, "Lu Heng" <h....@anytimechinese.com> wrote:

>Hi
>
>I have problem deleting guest network, everytime I tried it always 
>shows "fail to delete network)
>
>2012-06-13 11:26:14,243 WARN  [cloud.api.ApiDispatcher]
>(Job-Executor-52:job-95) class com.cloud.api.ServerApiException :
>Failed to delete network
>
>Any idea how it happens?
>--
>--
>Kind regards.
>Lu
>
>This transmission is intended solely for the addressee(s) shown above.
>It may contain information that is privileged, confidential or 
>otherwise protected from disclosure. Any review, dissemination or use 
>of this transmission or its contents by persons other than the intended
>addressee(s) is strictly prohibited. If you have received this 
>transmission in error, please notify this office immediately and e-mail 
>the original at the sender's address above by replying to this message 
>and including the text of the transmission received.
>







Re: Can not delete network

Posted by Alena Prokharchyk <Al...@citrix.com>.
On 6/13/12 10:15 AM, "Tamas Monos" <ta...@veber.co.uk> wrote:

>Hi,
>
>I don't think you can delete a network if a router-vm for that network
>exists.
>If you are trying to delete a network that network should not have any
>VMs.
>Delete the associated router from the management interface then delete
>the network.
>This method works for me on 3.0.2


You can, router is just the network element; the router is being expunged
as a part of network destroy. But you can't delete the network when there
are non-expunged User vms using in this network. The vms have to be
Destroyed, and Expunged.

-Alena.



>
>Regards
>
>Tamas Monos                                               DDI
>+44(0)2034687012
>Chief Technical                                             Office
>+44(0)2034687000
>Veber: The Hosting Specialists               Fax         +44(0)871 522
>7057
>http://www.veber.co.uk
>
>Follow us on Twitter: www.twitter.com/veberhost
>Follow us on Facebook: www.facebook.com/veberhost
>
>-----Original Message-----
>From: Alena Prokharchyk [mailto:Alena.Prokharchyk@citrix.com]
>Sent: 13 June 2012 18:12
>To: cloudstack-dev@incubator.apache.org
>Subject: Re: Can not delete network
>
>Can you please check the management server log to see if there is more
>detailed exception in there.
>
>-Alena.
>
>
>
>On 6/13/12 9:50 AM, "Lu Heng" <h....@anytimechinese.com> wrote:
>
>>Hi
>>
>>I have problem deleting guest network, everytime I tried it always
>>shows "fail to delete network)
>>
>>2012-06-13 11:26:14,243 WARN  [cloud.api.ApiDispatcher]
>>(Job-Executor-52:job-95) class com.cloud.api.ServerApiException :
>>Failed to delete network
>>
>>Any idea how it happens?
>>--
>>--
>>Kind regards.
>>Lu
>>
>>This transmission is intended solely for the addressee(s) shown above.
>>It may contain information that is privileged, confidential or
>>otherwise protected from disclosure. Any review, dissemination or use
>>of this transmission or its contents by persons other than the intended
>>addressee(s) is strictly prohibited. If you have received this
>>transmission in error, please notify this office immediately and e-mail
>>the original at the sender's address above by replying to this message
>>and including the text of the transmission received.
>>
>
>
>
>
>



RE: Can not delete network

Posted by Tamas Monos <ta...@veber.co.uk>.
Hi,

I don't think you can delete a network if a router-vm for that network exists.
If you are trying to delete a network that network should not have any VMs.
Delete the associated router from the management interface then delete the network.
This method works for me on 3.0.2

Regards

Tamas Monos                                               DDI         +44(0)2034687012
Chief Technical                                             Office    +44(0)2034687000
Veber: The Hosting Specialists               Fax         +44(0)871 522 7057
http://www.veber.co.uk

Follow us on Twitter: www.twitter.com/veberhost
Follow us on Facebook: www.facebook.com/veberhost

-----Original Message-----
From: Alena Prokharchyk [mailto:Alena.Prokharchyk@citrix.com] 
Sent: 13 June 2012 18:12
To: cloudstack-dev@incubator.apache.org
Subject: Re: Can not delete network

Can you please check the management server log to see if there is more detailed exception in there.

-Alena.



On 6/13/12 9:50 AM, "Lu Heng" <h....@anytimechinese.com> wrote:

>Hi
>
>I have problem deleting guest network, everytime I tried it always 
>shows "fail to delete network)
>
>2012-06-13 11:26:14,243 WARN  [cloud.api.ApiDispatcher]
>(Job-Executor-52:job-95) class com.cloud.api.ServerApiException :
>Failed to delete network
>
>Any idea how it happens?
>--
>--
>Kind regards.
>Lu
>
>This transmission is intended solely for the addressee(s) shown above.
>It may contain information that is privileged, confidential or 
>otherwise protected from disclosure. Any review, dissemination or use 
>of this transmission or its contents by persons other than the intended 
>addressee(s) is strictly prohibited. If you have received this 
>transmission in error, please notify this office immediately and e-mail 
>the original at the sender's address above by replying to this message 
>and including the text of the transmission received.
>





Re: Can not delete network

Posted by Alena Prokharchyk <Al...@citrix.com>.
Can you please check the management server log to see if there is more
detailed exception in there.

-Alena.



On 6/13/12 9:50 AM, "Lu Heng" <h....@anytimechinese.com> wrote:

>Hi
>
>I have problem deleting guest network, everytime I tried it always
>shows "fail to delete network)
>
>2012-06-13 11:26:14,243 WARN  [cloud.api.ApiDispatcher]
>(Job-Executor-52:job-95) class com.cloud.api.ServerApiException :
>Failed to delete network
>
>Any idea how it happens?
>-- 
>--
>Kind regards.
>Lu
>
>This transmission is intended solely for the addressee(s) shown above.
>It may contain information that is privileged, confidential or
>otherwise protected from disclosure. Any review, dissemination or use
>of this transmission or its contents by persons other than the
>intended addressee(s) is strictly prohibited. If you have received
>this transmission in error, please notify this office immediately and
>e-mail the original at the sender's address above by replying to this
>message and including the text of the transmission received.
>