Ah, I see, so I am not going mad, it is actually a known issue )) Anyway, I should probably wait for 4.3 to be out as 4.2.1 is still utterly broken when it comes to S3 Secondary storage which is what i am after.
Andrei ----- Original Message ----- From: "Andrija Panic" <andrija.pa...@gmail.com> To: users@cloudstack.apache.org Sent: Thursday, 19 December, 2013 3:24:19 PM Subject: Re: Change of guest IP address My "workarround" is to wait for 4.2.1, and have bunch of VMs that can not be deleted, just waisting my disk space... And yes, that is true, the logs you sent, I have that very issue. Bug here: https://issues.apache.org/jira/browse/CLOUDSTACK-4828 Andrija On 19 December 2013 16:14, Domenico De Monte < d.demo...@netsons.com > wrote: So if i understand correctly: if we create a vm with offering network WITHOUT dhcp ( like QuickCloudNoService ) and we want terminate it, we can not because there is a bug that NEED to remove dhcp service from virtual nic assigned to this network. If it's case, following log show exact error? 2013-12-19 16:08:01,332 DEBUG [cloud.vm.VirtualMachineManagerImpl] (UserVm-Scavenger-1:null) Stopped called on VM[User|Test01] but the state is Expunging 2013-12-19 16:08:01,339 DEBUG [cloud.capacity.CapacityManagerImpl] (UserVm-Scavenger-1:null) VM state transitted from :Expunging to Expunging with event: ExpungeOperationvm's original host id: null new host id: null host id before state transition: null 2013-12-19 16:08:01,339 DEBUG [cloud.vm.VirtualMachineManagerImpl] (UserVm-Scavenger-1:null) Destroying vm VM[User|Test01] 2013-12-19 16:08:01,339 DEBUG [cloud.vm.VirtualMachineManagerImpl] (UserVm-Scavenger-1:null) Cleaning up NICS 2013-12-19 16:08:01,341 DEBUG [cloud.network.NetworkManagerImpl] (UserVm-Scavenger-1:null) Cleaning network for vm: 8 2013-12-19 16:08:01,346 DEBUG [cloud.network.NetworkModelImpl] (UserVm-Scavenger-1:null) Service SecurityGroup is not supported in the network id=207 2013-12-19 16:08:01,349 WARN [cloud.vm.UserVmManagerImpl] (UserVm-Scavenger-1:null) Unable to expunge VM[User|Test01] com.cloud.exception.UnsupportedServiceException: Service Dhcp is not supported in the network id=207 at com.cloud.network.dao.NetworkServiceMapDaoImpl.getProviderForServiceInNetwork(NetworkServiceMapDaoImpl.java:127) at com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125) at com.cloud.network.NetworkManagerImpl.getDhcpServiceProvider(NetworkManagerImpl.java:3681) at com.cloud.network.NetworkManagerImpl.isDhcpAccrossMultipleSubnetsSupported(NetworkManagerImpl.java:2522) at com.cloud.network.NetworkManagerImpl.removeNic(NetworkManagerImpl.java:2507) at com.cloud.network.NetworkManagerImpl.cleanupNics(NetworkManagerImpl.java:2463) at com.cloud.vm.VirtualMachineManagerImpl.advanceExpunge(VirtualMachineManagerImpl.java:475) at com.cloud.vm.UserVmManagerImpl.expunge(UserVmManagerImpl.java:1600) at com.cloud.vm.UserVmManagerImpl$ExpungeTask.run(UserVmManagerImpl.java:1769) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351) at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:165) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:267) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:701) Which is a possible solution or workaround for this bug ? Waiting for your reply Regards Il 19/12/2013 15:40, Andrija Panic ha scritto: Due to the bug, you are unable to remove netowrk from VM, if that network's network offering does not have DHCP as the service. And you will not be possible to delete such VMs, that are connected to the netowrk without DHCP service in it's offering. This is 4.2 bug... On 19 December 2013 15:36, Andrei Mikhailovsky <and...@arhont.com> wrote: Geoff, Thanks for your reply. This is the first route i tried to take, but it didn't work for me. When I tried to remove the NIC from the guest i had an error message complaining that the network offering does not have dhcp service or something like that. I did not take a note of the actual message. This was after i've changed the default NIC to a temporary nic. The NIC that I have is from a service offering called QuickCloudNoService. I guess it's a bug... I will try the db route and see if it works. Thanks for your help guys Andrei ----- Original Message ----- From: "Geoff Higginbottom" <geoff.higginbot...@shapeblue.com> To: users@cloudstack.apache.org Sent: Thursday, 19 December, 2013 12:19:40 PM Subject: RE: Change of guest IP address Andrei, You could use the addNicToVirtualMachine API command (assuming you are running 4.1 or 4.2) 1. Assign the VM a new 'temp' NIC on an alternate network 2. Set this new NIC to default 3. Remove original NIC 4. Assign a NIC on the original Network, but also set the required IP (hence using API and not UI) 5. Set this new NIC to default 6. Remove the temp NIC API commands required are addNicToVirtualMachine http://cloudstack.apache.org/docs/api/apidocs-4.2/root_admin/addNicToVirtualMachine.html updateDefaultNicForVirtualMachine http://cloudstack.apache.org/docs/api/apidocs-4.2/root_admin/updateDefaultNicForVirtualMachine.html removeNicFromVirtualMachine http://cloudstack.apache.org/docs/api/apidocs-4.2/root_admin/removeNicFromVirtualMachine.html Whilst there are 6 steps, a simple CloudMonkey Script could complete this process in around 30 secs Regards Geoff Higginbottom D: +44 20 3603 0542 | S: +44 20 3603 0540 | M: +447968161581 geoff.higginbot...@shapeblue.com -----Original Message----- From: Jayapal Reddy Uradi [ mailto:jayapalreddy.ur...@citrix.com ] Sent: 19 December 2013 11:27 To: <users@cloudstack.apache.org> Subject: Re: Change of guest IP address Hi, There is no other way to change the ip. If you want specific IP for the VM, you can get secondary ip in vm NICs page and configure it on the VM. Thanks, Jayapal On 19-Dec-2013, at 3:58 PM, Andrei Mikhailovsky <and...@arhont.com> wrote: Do you know if there is an easier way? Like via the api calls or the cloudmonkey command? Or is it currently the only way? ----- Original Message ----- From: "Jayapal Reddy Uradi" <jayapalreddy.ur...@citrix.com> To: " <users@cloudstack.apache.org> " <users@cloudstack.apache.org> Sent: Thursday, 19 December, 2013 9:25:05 AM Subject: Re: Change of guest IP address Hi, If your VM is in isolated network please do the following 1. edit the nics table ip4_address column for your instance_id to new ip. 2. login to the router corresponds to the network and replace old ip with new ip in below files. a. /var/lib/misc/dnsmasq.leases b. /etc/dhcphosts.txt 3. restart the dnsmasq in router (service dnsmasq restart) 4. Reboot the VM or restart the network service in Vm so that VM gets the new ip from the dhcp. Thanks, Jayapal On 19-Dec-2013, at 2:27 PM, Andrei Mikhailovsky <and...@arhont.com> wrote: Hello guys, Could some one tell me how to change the IP address of a guest vm? It has been assigned by default by dhcp router and I would like to change it. I know how to create a new vm with a specified IP address using cloudmonkey, but I couldn't find a way of changing the IP for the existing vm. Cheers Andrei This email and any attachments to it may be confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions expressed are solely those of the author and do not necessarily represent those of Shape Blue Ltd or related companies. If you are not the intended recipient of this email, you must neither take any action based upon its contents, nor copy or show it to anyone. Please contact the sender if you believe you have received this email in error. Shape Blue Ltd is a company incorporated in England & Wales. ShapeBlue Services India LLP is a company incorporated in India and is operated under license from Shape Blue Ltd. Shape Blue Brasil Consultoria Ltda is a company incorporated in Brasil and is operated under license from Shape Blue Ltd. ShapeBlue is a registered trademark. -- Supernova s.r.l. Via G. Misiticoni, 3 65126 - Pescara ITALY www.netsons.com Domenico De Monte CEO t. (+39) 085 45 100 52 m. (+39) 339 79 033 98 e. d.demo...@netsons.com View Domenico De Monte's profile on LinkedIn Netsons® è un marchio registrato dalla Supernova s.r.l. Le informazioni trasmesse sono riservate alla persona o alla società indicata come destinatario, e possono includere contenuti considerati confidenziali. Ogni elaborazione, comunicazione, trasmissione o altro utilizzo, anche azioni conseguenti alla conoscenza di queste informazioni da parte di chiunque non sia espressamente indicato come destinatario è proibita. Nel caso abbiate ricevuto per errore questa comunicazione, siete pregati di darne avviso a info [at] netsons.com ed eliminare ogni stampa ed ogni traccia informatica. Il ricevente dovrà inoltre accertarsi che gli eventuali allegati non contengano virus prima di aprirli. Qualunque opinione o affermazione presentata in questo messaggio è da ritenersi propria dell'autore e non rappresenta necessariamente la posizione della Società. The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact: info [at] netsons.com and delete the material from any computer. If this email contains attachments you should ensure they are checked for viruses before opening them. Any views or opinions presented are solely those of the author and do not necessarily represent those of the company. -- Andrija Panić -------------------------------------- http://admintweets.com --------------------------------------