You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@vcl.apache.org by Christopher Wolfe <ch...@vt.edu> on 2013/11/07 16:24:58 UTC

RE: unable to unassign VM from VM host : solved

Josh, All,
	Just after I sent the prior email out, I discovered the culprit; the
image's provisioning module had been changed inadvertently, so the
tomaintenance process broke when trying to initialize (the provisioner).
Switched the provisioning module back to the correct one, and the process
completed successfully.

Regards,
Chris Wolfe

-----Original Message-----
From: Wolfe Christopher [mailto:chwolfe2@vt.edu] 
Sent: Thursday, November 07, 2013 9:05 AM
To: user@vcl.apache.org
Subject: Re: unable to unassign VM from VM host

On 11/05/2013 09:37 AM, Josh Thompson wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Christopher,
>
> Removing a VM through the process you specified (which is the correct 
> way) actually just inserts a "reservation" into the database to notify 
> vcld to remove the VM from the host.  Sometimes it can take several 
> seconds for this to happen.  The code used to keep the VMs in the box 
> at the top stating that they would be removed when the page is 
> reloaded, but something has changed since I wrote it that needs to get 
> fixed.  If the VMs are not being removed after a few minutes, the 
> "reservations" are failing.  You'll need to look in your vcld.log file to
find the problem.
>
> Josh
>
> On Friday, November 01, 2013 7:03:44 PM Christopher Wolfe wrote:
>> All,
>>
>>                  I'm having trouble removing vm computers from a vm 
>> host. On the "Virtual Hosts" panel (mode=editVMInfo), after clicking
"configure host"
>> and selecting a virtual machine computer previously assigned to the 
>> host, clicking on "remove" causes the vm to appear in a combobox with 
>> caption "The following VM(s) will removed from this host at the 
>> listed time(s):", and "(immediately)" as the designated removal time. 
>> A cancel button appears, as well. However, there is no "submit" or 
>> similar button, and navigating away and back again resets the 
>> assignment state of the virtual computers. Note: VCL version is 2.3.2 
>> on  CentOs 6.2 (vm) w/ Ubuntu12.04
>> x86_64 & libvirt (KVM).
>>
>>
>>
>> Regards,
>>
>> Christopher Wolfe
>>
>>
>>
>> Graduate Research Assistant
>>
>> Bradley Department of Electrical and Computer Engineering
>>
>> Virginia Polytechnic Institute & State University
>>
>> 456 Durham Hall
>>
>> Blacksburg, Va 24061
> - --
> - -------------------------------
> Josh Thompson
> VCL Developer
> North Carolina State University
>
> my GPG/PGP key can be found at pgp.mit.edu
>
> All electronic mail messages in connection with State business which 
> are sent to or received by this account are subject to the NC Public 
> Records Law and may be disclosed to third parties.
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.19 (GNU/Linux)
>
> iEYEARECAAYFAlJ5AsUACgkQV/LQcNdtPQMIogCeLpJuCYkI73QLZyS51hMGCVww
> WsQAnRPjMSBvYE6h3Qp1kDukBSxPofVG
> =O2zj
> -----END PGP SIGNATURE-----
>
Josh,
     The portion of the log file associated with the failed disassociation
is copied below. I'm not sure what to make of it, perhaps you have a better
handle on it?
Regards,
Chris Wolfe

2013-11-07
08:58:59|18708|15:15|tomaintenance|utils.pm:delete_computerloadlog_reservati
on(6396)|removing
computerloadlog entries matching loadstate = begin
2013-11-07
08:58:59|18708|15:15|tomaintenance|utils.pm:delete_computerloadlog_reservati
on(6443)|deleted
rows from computerloadlog for reservation id=15
2013-11-07
08:58:59|18708|15:15|tomaintenance|State.pm:DESTROY(929)|VCL::new
process duration: 1 seconds
2013-11-07
08:58:59|18708|15:15|tomaintenance|DataStructure.pm:get_computer_private_ip_
address(1617)|returning
private IP address previously retrieved: 192.168.85.102
2013-11-07
08:58:59|18708|15:15|tomaintenance|utils.pm:getnewdbh(2474)|unable to use
database handle stored in $ENV{dbh}
2013-11-07
08:58:59|18708|15:15|tomaintenance|utils.pm:getnewdbh(2531)|database
handle stored in $ENV{dbh}
2013-11-07
08:58:59|18708|15:15|tomaintenance|utils.pm:is_inblockrequest(5760)|zero
rows were returned from database select
2013-11-07
08:58:59|18708|15:15|tomaintenance|DataStructure.pm:get_image_affiliation_na
me(2121)|image
owner id: 1
2013-11-07
08:58:59|18708|15:15|tomaintenance|DataStructure.pm:retrieve_user_data(1412)
|attempting
to retrieve and store data for user: user.id = '1'
2013-11-07
08:58:59|18708|15:15|tomaintenance|DataStructure.pm:retrieve_user_data(1475)
|data
has been retrieved for user: admin (id: 1)
2013-11-07
08:58:59|18708|15:15|tomaintenance|utils.pm:mail(1253)|SUCCESS -- Sending
mail To: chwolfe2@vt.edu, PROBLEM -- 
ascedvm1|15:15|tomaintenance|vcld|ascedvm3>dtn1.arc.vt.edu|noimage|vclre
ascedvm1|load

|18708|15:15|tomaintenance| ---- CRITICAL ---- 15:15|tomaintenance| 
|18708|2013-11-07
08:58:59|18708|15:15|tomaintenance|vcld:make_new_child(574)|VCL::new
object could not be created and initialized
|18708|15:15|tomaintenance| ( 0) vcld, make_new_child (line: 574) 
|18708|15:15|tomaintenance| (-1) vcld, main (line: 350)

2013-11-07
08:58:59|18708|15:15|tomaintenance|utils.pm:switch_state(6906)|called
from VCL::vcld::make_new_child(575)
2013-11-07
08:58:59|18708|15:15|tomaintenance|utils.pm:switch_state(6942)|parent: 
parent reservation ID for this request: 15
2013-11-07
08:58:59|18708|15:15|tomaintenance|utils.pm:insertloadlog(3665)|inserted
computer=3, info, VCL::vcld: switching request state to failed
2013-11-07
08:58:59|18708|15:15|tomaintenance|utils.pm:update_request_state(1545)|reque
st
15 state updated to: failed, laststate to: tomaintenance
2013-11-07
08:58:59|18708|15:15|tomaintenance|utils.pm:switch_state(6977)|request
state changed: tomaintenance->failed, laststate: 
tomaintenance->tomaintenance
2013-11-07
08:58:59|18708|15:15|tomaintenance|utils.pm:insertloadlog(3665)|inserted
computer=3, info, VCL::vcld: request state changed to failed, laststate to
tomaintenance
2013-11-07
08:58:59|18708|15:15|tomaintenance|utils.pm:switch_state(6987)|computer
state not specified, ascedvm3 state not changed
2013-11-07
08:58:59|18708|15:15|tomaintenance|utils.pm:switch_state(7005)|log table
id=0, ending set to failed
2013-11-07
08:58:59|18708|15:15|tomaintenance|utils.pm:insertloadlog(3665)|inserted
computer=3, info, VCL::vcld: process exiting
2013-11-07
08:58:59|18708|15:15|tomaintenance|utils.pm:switch_state(7021)|process
exiting
2013-11-07 08:58:59|5815|vcld:REAPER(721)|VCL process exited for reservation
15, PID: 18708, signal: CHLD
2013-11-07 08:58:59|5815|vcld:main(167)|lastcheckin time updated for
management node 1: 2013-11-07 08:58:59
2013-11-07 08:58:59|5815|15:15|failed|vcld:main(256)|request deleted