You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@vcl.apache.org by James Patrick Sigmon <jp...@ncsu.edu> on 2011/03/31 19:15:54 UTC

unnecessary reload

Hey Guys,

My reservations will always reload at the beginning of the reservation processes even if the vmguest is currently loaded with the desired image.  Looking at the output from the vcld.log, it appears that the issue is with a file it can't find called currentimage.txt.  Any ideas on how to fix this?

Thanks,

Patrick Sigmon

|20552|417:417|new| ---- WARNING ---- 
|20552|417:417|new| 2011-03-31 12:42:40|20552|417:417|new|OS.pm:get_currentimage_txt_contents(161)|failed to retrieve currentimage.txt from vmguest-10, exit status: 1, output:
|20552|417:417|new| cat: /home/root/currentimage.txt: No such file or directory
|20552|417:417|new| ( 0) OS.pm, get_currentimage_txt_contents (line: 161)
|20552|417:417|new| (-1) OS.pm, get_current_image_name (line: 197)
|20552|417:417|new| (-2) VMware.pm, node_status (line: 941)
|20552|417:417|new| (-3) new.pm, reload_image (line: 533)
|20552|417:417|new| (-4) new.pm, process (line: 282)
|20552|417:417|new| (-5) vcld, make_new_child (line: 568)


|20552|417:417|new| ---- WARNING ---- 
|20552|417:417|new| 2011-03-31 12:42:40|20552|417:417|new|OS.pm:get_current_image_name(201)|failed to retrieve currentimage.txt contents from vmguest-10
|20552|417:417|new| ( 0) OS.pm, get_current_image_name (line: 201)
|20552|417:417|new| (-1) VMware.pm, node_status (line: 941)
|20552|417:417|new| (-2) new.pm, reload_image (line: 533)
|20552|417:417|new| (-3) new.pm, process (line: 282)
|20552|417:417|new| (-4) vcld, make_new_child (line: 568)
|20552|417:417|new| (-5) vcld, main (line: 346)

2011-03-31 12:42:40|20552|417:417|new|VMware.pm:node_status(945)|unable to retrieve image name from currentimage.txt on VM vmguest-10, returning 'RELOAD'
2011-03-31 12:42:40|20552|417:417|new|new.pm:reload_image(544)|node_status returned a hash reference
2011-03-31 12:42:40|20552|417:417|new|new.pm:reload_image(549)|node_status hash reference contains key {status}=RELOAD
2011-03-31 12:42:40|20552|417:417|new|new.pm:reload_image(624)|node status is RELOAD, vmguest-10 will be reloaded


RE: unnecessary reload

Posted by "Hartl, Gerhard L." <GH...@odu.edu>.
Since upgrading to 2.2, when a user browses to the 'connect' page, I've noticed that the clients ip is captured and the management node then ssh's to the vm and opens up the port for the clients ip on 3389.   While I understand this is best practice, I have noticed that if they user is to quick clicking through the page that they sometimes have to click the "Get RDP File" twice since the first time tries to connect prior to the port being opened up.  Is there any way around this?

- Gerhard Hartl
Old Dominion University
Norfolk, VA


Re: unnecessary reload

Posted by James Patrick Sigmon <jp...@ncsu.edu>.
Thanks Gerhard,

That was my problem.  I put the image into VCL the manual way, like you would for version 2.1 so that file never got created.  I made a new image from the base image and it put the file in it for me.

Thanks again,

-Patrick

On Mar 31, 2011, at 1:30 PM, Hartl, Gerhard L. wrote:

> I would suggest looking at your image capture log to see why it couldn't create\append the currentimage.txt file.
> 
> I've been in the habit of doing a 'touch /home/root/currentimage.txt' within Cygwin to create a blank currentimage.txt before I perform a capture. The capture process then appends with the image name and version.  This is then read in when a reservation is made to check if it's the appropriate image and version.
> 
> - Gerhard Hartl
> Old Dominion University
> Norfolk, VA
> 
> -----Original Message-----
> From: James Patrick Sigmon [mailto:jpsigmon@ncsu.edu] 
> Sent: Thursday, March 31, 2011 1:16 PM
> To: vcl-user@incubator.apache.org
> Subject: unnecessary reload
> 
> Hey Guys,
> 
> My reservations will always reload at the beginning of the reservation processes even if the vmguest is currently loaded with the desired image.  Looking at the output from the vcld.log, it appears that the issue is with a file it can't find called currentimage.txt.  Any ideas on how to fix this?
> 
> Thanks,
> 
> Patrick Sigmon
> 
> |20552|417:417|new| ---- WARNING ----
> |20552|417:417|new| 2011-03-31 12:42:40|20552|417:417|new|OS.pm:get_currentimage_txt_contents(161)|failed to retrieve currentimage.txt from vmguest-10, exit status: 1, output:
> |20552|417:417|new| cat: /home/root/currentimage.txt: No such file or 
> |20552|directory 417:417|new| ( 0) OS.pm, get_currentimage_txt_contents 
> |20552|(line: 161) 417:417|new| (-1) OS.pm, get_current_image_name 
> |20552|(line: 197) 417:417|new| (-2) VMware.pm, node_status (line: 941) 
> |20552|417:417|new| (-3) new.pm, reload_image (line: 533) 417:417|new| 
> |20552|(-4) new.pm, process (line: 282) 417:417|new| (-5) vcld, 
> |20552|make_new_child (line: 568)
> 
> 
> |20552|417:417|new| ---- WARNING ----
> |20552|417:417|new| 2011-03-31 
> |20552|12:42:40|20552|417:417|new|OS.pm:get_current_image_name(201)|fail
> |20552|ed to retrieve currentimage.txt contents from vmguest-10 
> |20552|417:417|new| ( 0) OS.pm, get_current_image_name (line: 201) 
> |20552|417:417|new| (-1) VMware.pm, node_status (line: 941) 417:417|new| 
> |20552|(-2) new.pm, reload_image (line: 533) 417:417|new| (-3) new.pm, 
> |20552|process (line: 282) 417:417|new| (-4) vcld, make_new_child (line: 
> |20552|568) 417:417|new| (-5) vcld, main (line: 346)
> 
> 2011-03-31 12:42:40|20552|417:417|new|VMware.pm:node_status(945)|unable to retrieve image name from currentimage.txt on VM vmguest-10, returning 'RELOAD'
> 2011-03-31 12:42:40|20552|417:417|new|new.pm:reload_image(544)|node_status returned a hash reference
> 2011-03-31 12:42:40|20552|417:417|new|new.pm:reload_image(549)|node_status hash reference contains key {status}=RELOAD
> 2011-03-31 12:42:40|20552|417:417|new|new.pm:reload_image(624)|node status is RELOAD, vmguest-10 will be reloaded
> 
> 
> 
> --
> BEGIN-ANTISPAM-VOTING-LINKS
> ------------------------------------------------------
> 
> Teach CanIt if this mail (ID 463983168) is spam:
> Spam:        https://www.spamtrap.odu.edu/b.php?i=463983168&m=2c7a8ed93b2c&t=20110331&c=s
> Not spam:    https://www.spamtrap.odu.edu/b.php?i=463983168&m=2c7a8ed93b2c&t=20110331&c=n
> Forget vote: https://www.spamtrap.odu.edu/b.php?i=463983168&m=2c7a8ed93b2c&t=20110331&c=f
> ------------------------------------------------------
> END-ANTISPAM-VOTING-LINKS
> 


RE: unnecessary reload

Posted by "Hartl, Gerhard L." <GH...@odu.edu>.
I would suggest looking at your image capture log to see why it couldn't create\append the currentimage.txt file.

I've been in the habit of doing a 'touch /home/root/currentimage.txt' within Cygwin to create a blank currentimage.txt before I perform a capture. The capture process then appends with the image name and version.  This is then read in when a reservation is made to check if it's the appropriate image and version.

- Gerhard Hartl
Old Dominion University
Norfolk, VA

-----Original Message-----
From: James Patrick Sigmon [mailto:jpsigmon@ncsu.edu] 
Sent: Thursday, March 31, 2011 1:16 PM
To: vcl-user@incubator.apache.org
Subject: unnecessary reload

Hey Guys,

My reservations will always reload at the beginning of the reservation processes even if the vmguest is currently loaded with the desired image.  Looking at the output from the vcld.log, it appears that the issue is with a file it can't find called currentimage.txt.  Any ideas on how to fix this?

Thanks,

Patrick Sigmon

|20552|417:417|new| ---- WARNING ----
|20552|417:417|new| 2011-03-31 12:42:40|20552|417:417|new|OS.pm:get_currentimage_txt_contents(161)|failed to retrieve currentimage.txt from vmguest-10, exit status: 1, output:
|20552|417:417|new| cat: /home/root/currentimage.txt: No such file or 
|20552|directory 417:417|new| ( 0) OS.pm, get_currentimage_txt_contents 
|20552|(line: 161) 417:417|new| (-1) OS.pm, get_current_image_name 
|20552|(line: 197) 417:417|new| (-2) VMware.pm, node_status (line: 941) 
|20552|417:417|new| (-3) new.pm, reload_image (line: 533) 417:417|new| 
|20552|(-4) new.pm, process (line: 282) 417:417|new| (-5) vcld, 
|20552|make_new_child (line: 568)


|20552|417:417|new| ---- WARNING ----
|20552|417:417|new| 2011-03-31 
|20552|12:42:40|20552|417:417|new|OS.pm:get_current_image_name(201)|fail
|20552|ed to retrieve currentimage.txt contents from vmguest-10 
|20552|417:417|new| ( 0) OS.pm, get_current_image_name (line: 201) 
|20552|417:417|new| (-1) VMware.pm, node_status (line: 941) 417:417|new| 
|20552|(-2) new.pm, reload_image (line: 533) 417:417|new| (-3) new.pm, 
|20552|process (line: 282) 417:417|new| (-4) vcld, make_new_child (line: 
|20552|568) 417:417|new| (-5) vcld, main (line: 346)

2011-03-31 12:42:40|20552|417:417|new|VMware.pm:node_status(945)|unable to retrieve image name from currentimage.txt on VM vmguest-10, returning 'RELOAD'
2011-03-31 12:42:40|20552|417:417|new|new.pm:reload_image(544)|node_status returned a hash reference
2011-03-31 12:42:40|20552|417:417|new|new.pm:reload_image(549)|node_status hash reference contains key {status}=RELOAD
2011-03-31 12:42:40|20552|417:417|new|new.pm:reload_image(624)|node status is RELOAD, vmguest-10 will be reloaded



--
BEGIN-ANTISPAM-VOTING-LINKS
------------------------------------------------------

Teach CanIt if this mail (ID 463983168) is spam:
Spam:        https://www.spamtrap.odu.edu/b.php?i=463983168&m=2c7a8ed93b2c&t=20110331&c=s
Not spam:    https://www.spamtrap.odu.edu/b.php?i=463983168&m=2c7a8ed93b2c&t=20110331&c=n
Forget vote: https://www.spamtrap.odu.edu/b.php?i=463983168&m=2c7a8ed93b2c&t=20110331&c=f
------------------------------------------------------
END-ANTISPAM-VOTING-LINKS