Re: CloudStack hands out IP address of a stopped VM

2015-04-14 Thread Jayapal Reddy Uradi
Hi Kyle, When you delete the VM additional nic (added to vm from UI/API non-default nic) then the nic entry from the nics table get deleted. default nic is not allowed to delete from the CS. When VM is deleted the nic entry from the DB is marked as removed but it won't be deleted. When you depl

RE: CloudStack hands out IP address of a stopped VM

2015-04-14 Thread Kyle Flavin
Thanks Somesh. I added the NIC, verified there was an entry in the "nics" table, and then modified the IP/MAC in vm_instance to match what was in the nics table. Then to test, I deleted the NIC through the Web UI. It completely removed the entry from the "nics" table, and left the IP in the

RE: CloudStack hands out IP address of a stopped VM

2015-04-14 Thread Somesh Naidu
> Correct. The VM was active, but stopped. There was no entry in the "nics" > table for it. This is strange. CS would never delete an entry in the nics table, only set the removed column. I see only two possibilities, 1. The entry was never added for some reason (error condition), 2. It was ma

RE: CloudStack hands out IP address of a stopped VM

2015-04-14 Thread Kyle Flavin
Hi Somesh, >> Are you saying that there was no entry in the nics table for an active VM >> (removed is null)? If so, that is not the correct behavior. Correct. The VM was active, but stopped. There was no entry in the "nics" table for it. >> Also, the output of the query doesn't see right. Th

Re: Best practicies to create full snapshots (block devices + RAM) with cloudstack

2015-04-14 Thread Jeff Moody
After enabling the option, did you restart your cloudstack-management daemon? I'm not familiar with the exact semantics of the virsh command, but I would try restarting the ACS management server process first (or even the whole management server if you felt so inclined) and see if you can create s

Re: Best practicies to create full snapshots (block devices + RAM) with cloudstack

2015-04-14 Thread Vladislav Nazarenko
Guys, Jeff, Lucian, thanx a lot ... really appreciate your help! kvm.snapshot.enabled -> true does not help. Gettting the following error VM snapshot is not enabled for hypervisor type: KVM One more question... I tried to create a live snapshot with virsh command, but I did not manage it

RE: CloudStack hands out IP address of a stopped VM

2015-04-14 Thread Somesh Naidu
> In the WebUI, I saw no NIC associated with the machine (maybe the user > deleted it?) Are you saying that there was no entry in the nics table for an active VM (removed is null)? If so, that is not the correct behavior. Also, the output of the query doesn't see right. The where clause specifi

RE: CloudStack hands out IP address of a stopped VM

2015-04-14 Thread Kyle Flavin
In the WebUI, I saw no NIC associated with the machine (maybe the user deleted it?). So I went ahead and added one: mysql> select * from nics where instance_id='2071'; +--+--+-+---+---+---+--+