Re: How to Change time out time in VCL code?
Hello, I have made both changes and restarted vcld Here is a log of one of the VM's that are stilling timing out after 15 minutes. |21690|29445:29181|new| VCL Admin, |21690|29445:29181|new| The resources for your VCL request have been successfully reserved. |21690|29445:29181|new| Reservation Information: |21690|29445:29181|new| Image Name: CSUEB SPSS PASW Statistics & Amos 18 |21690|29445:29181|new| IP Address: 137.145.57.81 |21690|29445:29181|new| Connection will not be allowed until you acknowledge using the VCL web interface. You must acknowledge the reservation within the next 15 minutes or the resources will be reclaimed for other VCL users. |21690|29445:29181|new| -Visit http://cwiki.apache.org/VCL |21690|29445:29181|new| -Select "Current Reservations" |21690|29445:29181|new| -Click the "Connect" button |21690|29445:29181|new| Upon acknowledgement, all of the remaining connection details will be displayed. |21690|29445:29181|new| Thank You, |21690|29445:29181|new| VCL Team |21690|29445:29181|new| ** |21690|29445:29181|new| This is an automated notice. If you need assistance please respond |21690|29445:29181|new| with detailed information on the issue and a help ticket will be |21690|29445:29181|new| generated. |21690|29445:29181|new| To disable email notices |21690|29445:29181|new| -Visit http://cwiki.apache.org/VCL |21690|29445:29181|new| -Select User Preferences |21690|29445:29181|new| -Select General Preferences |21690|29445:29181|new| ** 2010-11-30 09:13:44|21690|29445:29181|new|new.pm:reserve_computer(1170)|IMTYPE_name= none calling notify_via 2010-11-30 09:13:44|21690|29445:29181|new|new.pm:reserve_computer(1240)|updated sublog 9483 for node vmguest-92 IPaddress 137.145.57.81 2010-11-30 09:13:44|21690|29445:29181|new|new.pm:process(381)|vmguest-92 with vmwarewinxp-SPSSPASWStatisticsAmos1844-v4 successfully reserved 2010-11-30 09:13:44|21690|29445:29181|new|utils.pm:insertloadlog(4710)|inserted computer=95, reserved, vmguest-92 successfully reserved with vmwarewinxp-SPSSPASWStatisticsAmos1844-v4 2010-11-30 09:13:44|21690|29445:29181|new|new.pm:process(393)|inserted computerloadlog entry, load state=reserved 2010-11-30 09:13:44|21690|29445:29181|new|utils.pm:update_computer_state(2228)|computer 95 state updated to: reserved 2010-11-30 09:13:44|21690|29445:29181|new|new.pm:process(417)|vmguest-92 state set to 'reserved' 2010-11-30 09:13:44|21690|29445:29181|new|utils.pm:update_request_state(2186)|request 29445 state updated to: reserved, laststate to: new 2010-11-30 09:13:44|21690|29445:29181|new|new.pm:process(426)|request state set to 'reserved'/'new' 2010-11-30 09:13:44|21690|29445:29181|new|utils.pm:insertloadlog(4710)|inserted computer=95, info, vmguest-92 successfully set to reserved with vmwarewinxp-SPSSPASWStatisticsAmos1844-v4 2010-11-30 09:13:44|21690|29445:29181|new|new.pm:process(439)|inserted computerloadlog entry: vmguest-92 successfully set to reserved with vmwarewinxp-SPSSPASWStatisticsAmos1844-v4 2010-11-30 09:13:44|21690|29445:29181|new|new.pm:process(446)|exiting 2010-11-30 09:13:44|21690|29445:29181|new|State.pm:DESTROY(905)|destructor called, ref($self)=VCL::new 2010-11-30 09:13:44|21690|29445:29181|new|utils.pm:delete_computerloadlog_reservation(7551)|removing computerloadlog entries matching loadstate = begin 2010-11-30 09:13:44|21690|29445:29181|new|utils.pm:delete_computerloadlog_reservation(7598)|deleted rows from computerloadlog for reservation id=29181 2010-11-30 09:13:44|21690|29445:29181|new|State.pm:DESTROY(912)|removed computerloadlog rows with loadstate=begin for reservation 2010-11-30 09:13:44|21690|29445:29181|new|State.pm:DESTROY(924)|number of database handles state process created: 1 2010-11-30 09:13:44|21690|29445:29181|new|State.pm:DESTROY(933)|process has a database handle stored in $ENV{dbh}, attempting disconnect 2010-11-30 09:13:44|21690|29445:29181|new|State.pm:DESTROY(935)|$ENV{dbh}: database disconnect successful 2010-11-30 09:13:44|21690|29445:29181|new|State.pm:DESTROY(949)|VCL::new process 21690 exiting 2010-11-30 09:13:44|31869|29445:29181|reserved|utils.pm:reservation_being_processed(9634)|computerloadlog 'begin' entry does NOT exist for reservation 29181 2010-11-30 09:13:44|31869|29445:29181|reserved|utils.pm:reservation_being_processed(9686)|reservation is NOT currently being processed 2010-11-30 09:13:44|31869|29445:29181|reserved|vcld:main(276)|reservation 29181 is NOT already being processed 2010-11-30 09:13:44|31869|29445:29181|reserved|utils.pm:get_request_info(5354)|standalone affiliation found: Local 2010-11-30 09:13:44|31869|29445:29181|reserved|utils.pm:get_management_node_info(6815)|management node info retrieved from database for vclnfs01 2010-11-30 09:13:44|31869|29445:29181|reserved|vcld:main(281)|retrieved request information from database 2010-11-30 09:13:44|31869|29445:29181|reserved|Data
Re: How to Change time out time in VCL code?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > I need to setup a time to restart vcld, I have a bunch of users currently > on the system. You can restart vcld any time. It forks a new process to handle each reservation and restarting it only restarts the parent process. All of the child process continue to run. Josh - -- - --- Josh Thompson VCL Developer North Carolina State University my GPG/PGP key can be found at pgp.mit.edu -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.16 (GNU/Linux) iEYEARECAAYFAkz0GagACgkQV/LQcNdtPQNi9wCfbtyghlk3snUG4UIFAVB1cuig g5EAniyj7foNYJweE20nf8RQ6daj5TZj =g7is -END PGP SIGNATURE-
Re: How to Change time out time in VCL code?
Hi Alex, Could you send the out of grep '29165:28901' on the log file? This will provide the complete flow of the reservation. Aaron On 11/29/10 3:59 PM, Alexander Patterson wrote: Hello, David I went ahead and applied your change to the inuse.pm I did a Grep command on Vmware-48 the vmware guest I was testing |23072|29165:28901|new| /usr/bin/ssh -i /etc/vcl/vcl.key -l root -p 22 -x vmguest-48 'net user "sd8454" "zJxvFh" /ADD /EXPIRES:NEVER /COMMENT:"Account created by VCL"&& net localgroup "Remote Desktop Users" "sd8454" /ADD&& net localgroup "Administrators" "sd8454" /ADD' 2>&1 2010-11-29 12:26:59|23072|29165:28901|new|Windows.pm:create_user(1463)|added user sd8454 (zJxvFh) to vmguest-48 2010-11-29 12:26:59|23072|29165:28901|new|Windows.pm:add_users(1293)|added 1 users to vmguest-48 2010-11-29 12:26:59|23072|29165:28901|new|new.pm:reserve_computer(1240)|updated sublog 9400 for node vmguest-48 IPaddress 137.145.58.240 2010-11-29 12:26:59|23072|29165:28901|new|new.pm:process(381)|vmguest-48 with vmwarewinxp-SPSSPASWStatisticsAmos1844-v4 successfully reserved 2010-11-29 12:26:59|23072|29165:28901|new|utils.pm:insertloadlog(4710)|inserted computer=52, reserved, vmguest-48 successfully reserved with vmwarewinxp-SPSSPASWStatisticsAmos1844-v4 2010-11-29 12:26:59|23072|29165:28901|new|new.pm:process(417)|vmguest-48 state set to 'reserved' 2010-11-29 12:26:59|23072|29165:28901|new|utils.pm:insertloadlog(4710)|inserted computer=52, info, vmguest-48 successfully set to reserved with vmwarewinxp-SPSSPASWStatisticsAmos1844-v4 2010-11-29 12:26:59|23072|29165:28901|new|new.pm:process(439)|inserted computerloadlog entry: vmguest-48 successfully set to reserved with vmwarewinxp-SPSSPASWStatisticsAmos1844-v4 2010-11-29 12:26:59|24402|29165:28901|reserved|reserved.pm:process(158)|computer info: id=52, type=virtualmachine, hostname=vmguest-48 |24434|29168:28904|reload| vmwarewinxp-CSUNWinXPOffice200791-v0vmguest-48 |24434|29168:28904|reload| vmwarewinxp-MicrosoftOffice201075-v3vmguest-48 |24434|29168:28904|reload| vmwarewinxp-SPSSPASWStatisticsAmos1844-v4vmguest-48 2010-11-29 12:41:55|27854|29165:28901|timeout|DataStructure.pm:get_computer_state_name(1946)|attempting to retrieve current state of computer vmguest-48 from the database 2010-11-29 12:41:55|27854|29165:28901|timeout|DataStructure.pm:get_computer_state_name(1977)|retrieved current state of computer vmguest-48 from the database: timeout 2010-11-29 12:41:55|27854|29165:28901|timeout|utils.pm:run_ssh_command(6180)|executing SSH command on vmguest-48: |27854|29165:28901|timeout| /usr/bin/ssh -i /etc/vcl/vcl.key -l root -p 22 -x vmguest-48 'cat ~/currentimage.txt' 2>&1 2010-11-29 12:42:00|27854|29165:28901|timeout|utils.pm:run_ssh_command(6276)|SSH command executed on vmguest-48, returning (0, "vmwarewinxp-SPSSPASWStatistics...") 2010-11-29 12:42:00|27854|29165:28901|timeout|Windows.pm:get_currentimage_txt_contents(3885)|retrieved currentimage.txt from vmguest-48 2010-11-29 12:42:00|27854|29165:28901|timeout|Windows.pm:get_currentimage_txt_contents(3897)|found 7 lines in currentimage.txt on vmguest-48 2010-11-29 12:42:00|27854|29165:28901|timeout|Windows.pm:get_current_image_name(3923)|retrieved currentimage.txt contents from vmguest-48 2010-11-29 12:42:00|27854|29165:28901|timeout|Windows.pm:get_current_image_name(3938)|returning name of image currently loaded on vmguest-48: vmwarewinxp-SPSSPASWStatisticsAmos1844-v4 2010-11-29 12:42:00|27854|29165:28901|timeout|reclaim.pm:process(149)|retrieved name of image currently loaded on vmguest-48: vmwarewinxp-SPSSPASWStatisticsAmos1844-v4 2010-11-29 12:42:00|27854|29165:28901|timeout|utils.pm:run_ssh_command(6180)|executing SSH command on vmguest-48: |27854|29165:28901|timeout| /usr/bin/ssh -i /etc/vcl/vcl.key -l root -p 22 -x vmguest-48 '$SYSTEMROOT/System32/ipconfig.exe /all' 2>&1 2010-11-29 12:42:06|27854|29165:28901|timeout|utils.pm:run_ssh_command(6180)|executing SSH command on vmguest-48: |27854|29165:28901|timeout| /usr/bin/ssh -i /etc/vcl/vcl.key -l root -p 22 -x vmguest-48 'netsh.exe firewall delete portopening protocol = TCP port = 3389 interface = "Local Area Connection" ;netsh.exe firewall delete portopening protocol = TCP port = 3389 interface = "Local Area Connection 2" ;netsh.exe firewall delete portopening protocol = TCP port = 3389 profile = ALL' 2>&1 2010-11-29 12:42:16|27854|29165:28901|timeout|utils.pm:run_ssh_command(6276)|SSH command executed on vmguest-48, returning (0, "Ok. Ok. Ok.") 2010-11-29 12:42:16|27854|29165:28901|timeout|Windows.pm:revoke_access(768)|firewall was configured to deny RDP access on vmguest-48 2010-11-29 12:42:16|27854|29165:28901|timeout|Windows.pm:revoke_access(776)|access has been revoked to vmguest-48 2010-11-29 12:42:16|27854|29165:28901|timeout|Windows.pm:delete_user(1570)|attempting to delete user sd8454 from vmguest-48 2010-11-29 12:42:16|27854|29165:28901|timeout|utils.pm:run_ssh_command(6180)|executing SSH command on vmguest-48: |27854|29165:28901|t
Re: How to Change time out time in VCL code?
Hello, David I went ahead and applied your change to the inuse.pm I did a Grep command on Vmware-48 the vmware guest I was testing |23072|29165:28901|new| /usr/bin/ssh -i /etc/vcl/vcl.key -l root -p 22 -x vmguest-48 'net user "sd8454" "zJxvFh" /ADD /EXPIRES:NEVER /COMMENT:"Account created by VCL" && net localgroup "Remote Desktop Users" "sd8454" /ADD && net localgroup "Administrators" "sd8454" /ADD' 2>&1 2010-11-29 12:26:59|23072|29165:28901|new|Windows.pm:create_user(1463)|added user sd8454 (zJxvFh) to vmguest-48 2010-11-29 12:26:59|23072|29165:28901|new|Windows.pm:add_users(1293)|added 1 users to vmguest-48 2010-11-29 12:26:59|23072|29165:28901|new|new.pm:reserve_computer(1240)|updated sublog 9400 for node vmguest-48 IPaddress 137.145.58.240 2010-11-29 12:26:59|23072|29165:28901|new|new.pm:process(381)|vmguest-48 with vmwarewinxp-SPSSPASWStatisticsAmos1844-v4 successfully reserved 2010-11-29 12:26:59|23072|29165:28901|new|utils.pm:insertloadlog(4710)|inserted computer=52, reserved, vmguest-48 successfully reserved with vmwarewinxp-SPSSPASWStatisticsAmos1844-v4 2010-11-29 12:26:59|23072|29165:28901|new|new.pm:process(417)|vmguest-48 state set to 'reserved' 2010-11-29 12:26:59|23072|29165:28901|new|utils.pm:insertloadlog(4710)|inserted computer=52, info, vmguest-48 successfully set to reserved with vmwarewinxp-SPSSPASWStatisticsAmos1844-v4 2010-11-29 12:26:59|23072|29165:28901|new|new.pm:process(439)|inserted computerloadlog entry: vmguest-48 successfully set to reserved with vmwarewinxp-SPSSPASWStatisticsAmos1844-v4 2010-11-29 12:26:59|24402|29165:28901|reserved|reserved.pm:process(158)|computer info: id=52, type=virtualmachine, hostname=vmguest-48 |24434|29168:28904|reload| vmwarewinxp-CSUNWinXPOffice200791-v0vmguest-48 |24434|29168:28904|reload| vmwarewinxp-MicrosoftOffice201075-v3vmguest-48 |24434|29168:28904|reload| vmwarewinxp-SPSSPASWStatisticsAmos1844-v4vmguest-48 2010-11-29 12:41:55|27854|29165:28901|timeout|DataStructure.pm:get_computer_state_name(1946)|attempting to retrieve current state of computer vmguest-48 from the database 2010-11-29 12:41:55|27854|29165:28901|timeout|DataStructure.pm:get_computer_state_name(1977)|retrieved current state of computer vmguest-48 from the database: timeout 2010-11-29 12:41:55|27854|29165:28901|timeout|utils.pm:run_ssh_command(6180)|executing SSH command on vmguest-48: |27854|29165:28901|timeout| /usr/bin/ssh -i /etc/vcl/vcl.key -l root -p 22 -x vmguest-48 'cat ~/currentimage.txt' 2>&1 2010-11-29 12:42:00|27854|29165:28901|timeout|utils.pm:run_ssh_command(6276)|SSH command executed on vmguest-48, returning (0, "vmwarewinxp-SPSSPASWStatistics...") 2010-11-29 12:42:00|27854|29165:28901|timeout|Windows.pm:get_currentimage_txt_contents(3885)|retrieved currentimage.txt from vmguest-48 2010-11-29 12:42:00|27854|29165:28901|timeout|Windows.pm:get_currentimage_txt_contents(3897)|found 7 lines in currentimage.txt on vmguest-48 2010-11-29 12:42:00|27854|29165:28901|timeout|Windows.pm:get_current_image_name(3923)|retrieved currentimage.txt contents from vmguest-48 2010-11-29 12:42:00|27854|29165:28901|timeout|Windows.pm:get_current_image_name(3938)|returning name of image currently loaded on vmguest-48: vmwarewinxp-SPSSPASWStatisticsAmos1844-v4 2010-11-29 12:42:00|27854|29165:28901|timeout|reclaim.pm:process(149)|retrieved name of image currently loaded on vmguest-48: vmwarewinxp-SPSSPASWStatisticsAmos1844-v4 2010-11-29 12:42:00|27854|29165:28901|timeout|utils.pm:run_ssh_command(6180)|executing SSH command on vmguest-48: |27854|29165:28901|timeout| /usr/bin/ssh -i /etc/vcl/vcl.key -l root -p 22 -x vmguest-48 '$SYSTEMROOT/System32/ipconfig.exe /all' 2>&1 2010-11-29 12:42:06|27854|29165:28901|timeout|utils.pm:run_ssh_command(6180)|executing SSH command on vmguest-48: |27854|29165:28901|timeout| /usr/bin/ssh -i /etc/vcl/vcl.key -l root -p 22 -x vmguest-48 'netsh.exe firewall delete portopening protocol = TCP port = 3389 interface = "Local Area Connection" ;netsh.exe firewall delete portopening protocol = TCP port = 3389 interface = "Local Area Connection 2" ;netsh.exe firewall delete portopening protocol = TCP port = 3389 profile = ALL' 2>&1 2010-11-29 12:42:16|27854|29165:28901|timeout|utils.pm:run_ssh_command(6276)|SSH command executed on vmguest-48, returning (0, "Ok. Ok. Ok.") 2010-11-29 12:42:16|27854|29165:28901|timeout|Windows.pm:revoke_access(768)|firewall was configured to deny RDP access on vmguest-48 2010-11-29 12:42:16|27854|29165:28901|timeout|Windows.pm:revoke_access(776)|access has been revoked to vmguest-48 2010-11-29 12:42:16|27854|29165:28901|timeout|Windows.pm:delete_user(1570)|attempting to delete user sd8454 from vmguest-48 2010-11-29 12:42:16|27854|29165:28901|timeout|utils.pm:run_ssh_command(6180)|executing SSH command on vmguest-48: |27854|29165:28901|timeout| /usr/bin/ssh -i /etc/vcl/vcl.key -l root -p 22 -x vmguest-48 'net user sd8454 /DELETE' 2>&1 2010-11-29 12:42:22|27854|29165:28901|timeout|utils.pm:run_ssh_command(6276)|SSH command
Re: How to Change time out time in VCL code?
Ah. Thanks David. I missed that one. Alex let us know if that 's what your looking for. Did the other setting changes give you 20 min to hit connect and then 20 min to get connected? -Aaron On 11/29/10 3:16 PM, David Hutchins wrote: If I am interpreting this correctly, I think you need to change the value of $connect_timeout_limit in /usr/local/vcl/lib/VCL/inuse.pm from 15 to 20 as well.
Re: How to Change time out time in VCL code?
If I am interpreting this correctly, I think you need to change the value of $connect_timeout_limit in /usr/local/vcl/lib/VCL/inuse.pm from 15 to 20 as well. On Mon, Nov 29, 2010 at 2:54 PM, Aaron Peeler wrote: > Hi Alex, > > The attached image doesn't give me any info other than the image has timed > out. > > Can you check your logs and report the delta of when the countdown starts > and then times out for a given reservation for both cases? > > Aaron > > > > > > > On 11/29/10 12:03 PM, Alexander Patterson wrote: > >> Hello Aaron, >> >> We wanted both 20 minutes for the connect button and 20 minutes for the >> idle time out. We are having issues with idle time out and idle connect >> time. Students and Staff would like to have more leave way and 20 minutes >> steamed ideal. >> >> -Alex >> >> I just retested today and we are still only getting 15 minutes, see >> attached pictures >> >> http://tinypic.com/r/34nqozr/7 >> >> > > > -- > > Aaron Peeler > Program Manager > Virtual Computing Lab > NC State University > aaron_pee...@ncsu.edu > 919-513-4571 > >
Re: How to Change time out time in VCL code?
Hi Alex, The attached image doesn't give me any info other than the image has timed out. Can you check your logs and report the delta of when the countdown starts and then times out for a given reservation for both cases? Aaron On 11/29/10 12:03 PM, Alexander Patterson wrote: Hello Aaron, We wanted both 20 minutes for the connect button and 20 minutes for the idle time out. We are having issues with idle time out and idle connect time. Students and Staff would like to have more leave way and 20 minutes steamed ideal. -Alex I just retested today and we are still only getting 15 minutes, see attached pictures http://tinypic.com/r/34nqozr/7 -- Aaron Peeler Program Manager Virtual Computing Lab NC State University aaron_pee...@ncsu.edu 919-513-4571
Re: How to Change time out time in VCL code?
Hello Aaron, We wanted both 20 minutes for the connect button and 20 minutes for the idle time out. We are having issues with idle time out and idle connect time. Students and Staff would like to have more leave way and 20 minutes steamed ideal. -Alex I just retested today and we are still only getting 15 minutes, see attached pictures http://tinypic.com/r/34nqozr/7 On Mon, Nov 29, 2010 at 7:23 AM, Aaron Peeler wrote: > Hi Alex, > > Sorry for the delayed follow-up, was away from email for a few days. > > Are you still seeing 15 minute timeouts? > > I tested these changes on our 2.1 sandbox image and got the 20 minute > timeout. > > Also just to make sure, you wanted 20min for the user to hit the 'connect' > button and 20 min for the user to actually connect right? > > Aaron > > > On 11/19/10 6:47 PM, Alexander Patterson wrote: > >> Hi Aaron - >> >> We made the changes you suggested >> to /var/www/html/apache-VCL-2.1-incubating/managementnode/lib/VCL/ >> reserved.pm . The reservations are still timing out after 15 minutes. >> >> The changes were applied as seen below. But it didn't change the time from >> 15 minutes to 20 minutes like we wanted >> >> Let us know if we missed any steps >> >> >> Here's the Reserved.pm file after change >> ## >> >> *1. **LINE 315* >> elsif ($acknowledge_attempts<* 240*) { >> # User has approximately 20 minutes to acknowledge (5 >> seconds * 240 attempts) >> >> # Print a status message every tenth attempt >> if (($acknowledge_attempts % 10) == 0) { >> # Print message every tenth attempt >> notify($ERRORS{'OK'}, 0, "attempt >> $acknowledge_attempts of 240, user has not acknowleged"); >> } >> >> sleep 5; >> >> *2. **LINE 165 * >> my $connected = 0; >> my $curr_time = time(); >> my $time_limit=* 20;* >> my $time_exceeded = 0; >> my $break = 0; >> >> >> *3.* Restarted vcld and httpd after saving the changes >> ## >> >> >> > > -- > > Aaron Peeler > Program Manager > Virtual Computing Lab > NC State University > aaron_pee...@ncsu.edu > 919-513-4571 > > -- Thanks, Alex Patterson User Support Services Operating System Analyst California State University, East Bay
Re: How to Change time out time in VCL code?
Hi Alex, Sorry for the delayed follow-up, was away from email for a few days. Are you still seeing 15 minute timeouts? I tested these changes on our 2.1 sandbox image and got the 20 minute timeout. Also just to make sure, you wanted 20min for the user to hit the 'connect' button and 20 min for the user to actually connect right? Aaron On 11/19/10 6:47 PM, Alexander Patterson wrote: Hi Aaron - We made the changes you suggested to /var/www/html/apache-VCL-2.1-incubating/managementnode/lib/VCL/ reserved.pm . The reservations are still timing out after 15 minutes. The changes were applied as seen below. But it didn't change the time from 15 minutes to 20 minutes like we wanted Let us know if we missed any steps Here's the Reserved.pm file after change ## *1. **LINE 315* elsif ($acknowledge_attempts<* 240*) { # User has approximately 20 minutes to acknowledge (5 seconds * 240 attempts) # Print a status message every tenth attempt if (($acknowledge_attempts % 10) == 0) { # Print message every tenth attempt notify($ERRORS{'OK'}, 0, "attempt $acknowledge_attempts of 240, user has not acknowleged"); } sleep 5; *2. **LINE 165 * my $connected = 0; my $curr_time = time(); my $time_limit=* 20;* my $time_exceeded = 0; my $break = 0; *3.* Restarted vcld and httpd after saving the changes ## -- Aaron Peeler Program Manager Virtual Computing Lab NC State University aaron_pee...@ncsu.edu 919-513-4571