Re: Block reservation failing on sandbox image

2010-07-08 Thread Kiran N
Thank you!
I just made the changes and started the block reservation. Will let you know
if there are any issues..

On Thu, Jul 8, 2010 at 1:18 PM, Josh Thompson josh_thomp...@ncsu.eduwrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 You'll either need to create a new local account for this or use one of the
 existing ones.  Either way, you'll need to add the numeric id from the user
 table for that user to the $xmlrpcBlockAPIUsers array in conf.php.

 Josh

 On Thursday July 08, 2010, Kiran N wrote:
  I guess they are not set.
  So, it set the below variables as:
  xmlrpc_username=the unityid
  xmlrpc_pass=user password
  xmlrpc_url=https://ip/index.php?mode=xmlrpccall
 
  Correct me if I am wrong...
 
  On Thu, Jul 8, 2010 at 12:09 PM, Aaron Peeler aaron_pee...@ncsu.edu
 wrote:
   Are the xmlrpc_* variables set in the vcld.conf?
  
   Aaron
  
   On 7/8/10 11:33 AM, Kiran N wrote:
   Hello All,
   I am tryin to make a block reservation for 2 machines with Centos
 image
   on Sandbox. But it fails with the message shown below in the vcld.log
  
  
  
   2010-07-08 01:49:05|2650|vcld:main(165)|lastcheckin time updated for
   management node 1: 2010-07-08 01:49:05
   2010-07-08 01:49:05|2650|utils.pm:check_blockrequest_time(1104)|block
   request start time is within start window (250 minutes from now),
   returning
   'start'
   2010-07-08 01:49:05|2650|DataStructure.pm:_automethod(697)|data
   structure updated: $self-blockrequest_data-{4}{MODE}
  
   |2650| blockrequest_mode = start
  
   2010-07-08 01:49:05|2650|vcld:main(439)|block request 4 'testblockres'
   processing set to 1
   2010-07-08 01:49:05|2650|vcld:make_new_child(509)|loaded
   VCL::blockrequest module
   2010-07-08 01:49:05|10444|vcld:make_new_child(582)|vcld environment
   variable
   set to 0 for this process
   2010-07-08 01:49:05|10444|blockrequest|Module.pm:new(132)|constructor
   called, class=VCL::blockrequest
   2010-07-08
   01:49:05|10444|blockrequest|Module.pm:new(154)|VCL::blockrequest
   object created
   2010-07-08 01:49:05|2650|vcld:make_new_child(566)|current number of
   forked kids: 1
   2010-07-08 01:49:05|10444|blockrequest|blockrequest.pm:
   initialize(84)|obtained
   a database handle for this state process, stored as $ENV{dbh}
   2010-07-08 01:49:05|10444|blockrequest|utils.pm:
   rename_vcld_process(7901)|renamed
   process to 'vcld VCL::blockrequest 4:3 'testblockres''
   2010-07-08 01:49:05|10444|blockrequest|blockrequest.pm:
   initialize(97)|returning
   1
   2010-07-08
   01:49:05|10444|blockrequest|vcld:make_new_child(591)|VCL::blockrequest
   object created and initialized
   2010-07-08 01:49:05|10444|blockrequest|blockrequest.pm:
   process(141)|blockrequest
   id: 4
   2010-07-08 01:49:05|10444|blockrequest|blockrequest.pm:
   process(142)|blockrequest
   mode: start
   2010-07-08 01:49:05|10444|blockrequest|blockrequest.pm:
   process(143)|blockrequest
   image id: 10
   2010-07-08 01:49:05|10444|blockrequest|blockrequest.pm:
   process(144)|blockrequest
   number machines: 2
   2010-07-08 01:49:05|10444|blockrequest|blockrequest.pm:
   process(145)|blockrequest
   expire: 2010-07-08 17:00:00
   2010-07-08 01:49:05|10444|blockrequest|blockrequest.pm:
   process(146)|blocktime
   id: 3
   2010-07-08 01:49:05|10444|blockrequest|blockrequest.pm:
   process(147)|blocktime
   processed: 0
   2010-07-08 01:49:05|10444|blockrequest|blockrequest.pm:
   process(148)|blocktime
   start: 2010-07-08 06:00:00
   2010-07-08 01:49:05|10444|blockrequest|blockrequest.pm:
   process(149)|blocktime
   end: 2010-07-08 17:00:00
   2010-07-08 01:49:05|10444|blockrequest|blockrequest.pm:
   process(154)|updated
   process flag on blocktime_id= 3
   No recipient addresses found in header
   2010-07-08 01:49:06|10444|blockrequest|utils.pm:mail(1348)|SUCCESS --
   Sending mail To: , PROBLEM -- vcld
  
   |10444|blockrequest|  CRITICAL 
   |10444|blockrequest| 2010-07-08
  
   01:49:05|10444|blockrequest|vcld:die_handler(662)|Can't use string
   (RPC::XML::Client::new: Missing l) as a HASH ref while strict refs
   in use at /usr/local/vcl/bin/../lib/VCL/utils.pm line 9879.
  
   |10444|blockrequest| ( 0) utils.pm, notify (line: 737)
   |10444|blockrequest| (-1) vcld, die_handler (line: 662)
   |10444|blockrequest| (-2) utils.pm, xmlrpc_call (line: 9879)
   |10444|blockrequest| (-3) utils.pm, process_block_time (line: 9832)
   |10444|blockrequest| (-4) blockrequest.pm, process (line: 158)
   |10444|blockrequest| (-5) vcld, make_new_child (line: 594)
   |10444|blockrequest| (-6) vcld, main (line: 442)
  
   2010-07-08
 01:49:06|10444|blockrequest|State.pm:DESTROY(905)|destructor
   called, ref($self)=VCL::blockrequest
   2010-07-08 01:49:06|10444|blockrequest|State.pm:DESTROY(924)|number of
   database handles state process created: 1
   2010-07-08 01:49:06|10444|blockrequest|State.pm:DESTROY(933)|process
 has
   a database handle stored in $ENV{dbh}, attempting disconnect
   2010-07-08
 

Re: Block reservation failing on sandbox image

2010-07-08 Thread Clifton B Wood
Kiran,

A friendly reminder that caught me when getting XMLRPC to work,
remember to add the affiliation to the end of the 
xmlrpc_username.

So if you are using the vclsystem user, xmlrpc_username should 
be vclsys...@local

Good luck with getting those to work. I'm in a similar boat, at 
the moment.

- Cliff
---BeginMessage---
Thank you!
I just made the changes and started the block reservation. Will let you know
if there are any issues..

On Thu, Jul 8, 2010 at 1:18 PM, Josh Thompson josh_thomp...@ncsu.eduwrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 You'll either need to create a new local account for this or use one of the
 existing ones.  Either way, you'll need to add the numeric id from the user
 table for that user to the $xmlrpcBlockAPIUsers array in conf.php.

 Josh

 On Thursday July 08, 2010, Kiran N wrote:
  I guess they are not set.
  So, it set the below variables as:
  xmlrpc_username=the unityid
  xmlrpc_pass=user password
  xmlrpc_url=https://ip/index.php?mode=xmlrpccall
 
  Correct me if I am wrong...
 
  On Thu, Jul 8, 2010 at 12:09 PM, Aaron Peeler aaron_pee...@ncsu.edu
 wrote:
   Are the xmlrpc_* variables set in the vcld.conf?
  
   Aaron
  
   On 7/8/10 11:33 AM, Kiran N wrote:
   Hello All,
   I am tryin to make a block reservation for 2 machines with Centos
 image
   on Sandbox. But it fails with the message shown below in the vcld.log
  
  
  
   2010-07-08 01:49:05|2650|vcld:main(165)|lastcheckin time updated for
   management node 1: 2010-07-08 01:49:05
   2010-07-08 01:49:05|2650|utils.pm:check_blockrequest_time(1104)|block
   request start time is within start window (250 minutes from now),
   returning
   'start'
   2010-07-08 01:49:05|2650|DataStructure.pm:_automethod(697)|data
   structure updated: $self-blockrequest_data-{4}{MODE}
  
   |2650| blockrequest_mode = start
  
   2010-07-08 01:49:05|2650|vcld:main(439)|block request 4 'testblockres'
   processing set to 1
   2010-07-08 01:49:05|2650|vcld:make_new_child(509)|loaded
   VCL::blockrequest module
   2010-07-08 01:49:05|10444|vcld:make_new_child(582)|vcld environment
   variable
   set to 0 for this process
   2010-07-08 01:49:05|10444|blockrequest|Module.pm:new(132)|constructor
   called, class=VCL::blockrequest
   2010-07-08
   01:49:05|10444|blockrequest|Module.pm:new(154)|VCL::blockrequest
   object created
   2010-07-08 01:49:05|2650|vcld:make_new_child(566)|current number of
   forked kids: 1
   2010-07-08 01:49:05|10444|blockrequest|blockrequest.pm:
   initialize(84)|obtained
   a database handle for this state process, stored as $ENV{dbh}
   2010-07-08 01:49:05|10444|blockrequest|utils.pm:
   rename_vcld_process(7901)|renamed
   process to 'vcld VCL::blockrequest 4:3 'testblockres''
   2010-07-08 01:49:05|10444|blockrequest|blockrequest.pm:
   initialize(97)|returning
   1
   2010-07-08
   01:49:05|10444|blockrequest|vcld:make_new_child(591)|VCL::blockrequest
   object created and initialized
   2010-07-08 01:49:05|10444|blockrequest|blockrequest.pm:
   process(141)|blockrequest
   id: 4
   2010-07-08 01:49:05|10444|blockrequest|blockrequest.pm:
   process(142)|blockrequest
   mode: start
   2010-07-08 01:49:05|10444|blockrequest|blockrequest.pm:
   process(143)|blockrequest
   image id: 10
   2010-07-08 01:49:05|10444|blockrequest|blockrequest.pm:
   process(144)|blockrequest
   number machines: 2
   2010-07-08 01:49:05|10444|blockrequest|blockrequest.pm:
   process(145)|blockrequest
   expire: 2010-07-08 17:00:00
   2010-07-08 01:49:05|10444|blockrequest|blockrequest.pm:
   process(146)|blocktime
   id: 3
   2010-07-08 01:49:05|10444|blockrequest|blockrequest.pm:
   process(147)|blocktime
   processed: 0
   2010-07-08 01:49:05|10444|blockrequest|blockrequest.pm:
   process(148)|blocktime
   start: 2010-07-08 06:00:00
   2010-07-08 01:49:05|10444|blockrequest|blockrequest.pm:
   process(149)|blocktime
   end: 2010-07-08 17:00:00
   2010-07-08 01:49:05|10444|blockrequest|blockrequest.pm:
   process(154)|updated
   process flag on blocktime_id= 3
   No recipient addresses found in header
   2010-07-08 01:49:06|10444|blockrequest|utils.pm:mail(1348)|SUCCESS --
   Sending mail To: , PROBLEM -- vcld
  
   |10444|blockrequest|  CRITICAL 
   |10444|blockrequest| 2010-07-08
  
   01:49:05|10444|blockrequest|vcld:die_handler(662)|Can't use string
   (RPC::XML::Client::new: Missing l) as a HASH ref while strict refs
   in use at /usr/local/vcl/bin/../lib/VCL/utils.pm line 9879.
  
   |10444|blockrequest| ( 0) utils.pm, notify (line: 737)
   |10444|blockrequest| (-1) vcld, die_handler (line: 662)
   |10444|blockrequest| (-2) utils.pm, xmlrpc_call (line: 9879)
   |10444|blockrequest| (-3) utils.pm, process_block_time (line: 9832)
   |10444|blockrequest| (-4) blockrequest.pm, process (line: 158)
   |10444|blockrequest| (-5) vcld, make_new_child (line: 594)
   |10444|blockrequest| (-6) vcld, main (line: 442)
  
   2010-07-08
 01:49:06|10444|blockrequest|State.pm:DESTROY(905)|destructor
   called, 

minor bug fix

2010-07-08 Thread My LinuxHAList
Hi Devs,

I'm somewhat certain that this is a bug and not entirely sure if this
has been reported:
/usr/local/vcl/lib/VCL/Module/Provisioning/esx.pm
Line 1019:if ($l =~ /([a-zA-Z1-9]*):\s*([-_.a-zA-Z1-9]*)/) {
should read  if ($l =~ /([a-zA-Z0-9]*):\s*([-_.a-zA-Z0-9]*)/) {

Thanks


Re: Block reservation failing on sandbox image

2010-07-08 Thread Kiran N
Thanks for the input Cliff.. !
But somehow I think I am setting some parameters wrong or I am missing some
information about settings..
To summarize,
xmlrpc_username=ad...@local
xmlrpc_pass=vclpasswordXXX
xmlrpc_url=https://152.46.20.182/index.php?mode=xmlrpccall

The username and pasword above is same as what I use to login in vcl web
page..
Also, I changed the conf.php file
$xmlrpcBlockAPIUsers = array(1,2,3 # vclsystem
);

But still I am not getting a block reservation processed. I chose the start
time at an interval of 4hrs to check if thats the problem. But no help! Do I
need to insert anything xmlrpckey table?
Please advice..!




On Thu, Jul 8, 2010 at 6:43 PM, Clifton B Wood clifton.w...@morgan.eduwrote:

 Kiran,

 A friendly reminder that caught me when getting XMLRPC to work,
 remember to add the affiliation to the end of the
 xmlrpc_username.

 So if you are using the vclsystem user, xmlrpc_username should
 be vclsys...@local

 Good luck with getting those to work. I'm in a similar boat, at
 the moment.

 - Cliff

 Thank you!
 I just made the changes and started the block reservation. Will let you
 know
 if there are any issues..

 On Thu, Jul 8, 2010 at 1:18 PM, Josh Thompson josh_thomp...@ncsu.edu
 wrote:

  -BEGIN PGP SIGNED MESSAGE-
  Hash: SHA1
 
  You'll either need to create a new local account for this or use one of
 the
  existing ones.  Either way, you'll need to add the numeric id from the
 user
  table for that user to the $xmlrpcBlockAPIUsers array in conf.php.
 
  Josh
 
  On Thursday July 08, 2010, Kiran N wrote:
   I guess they are not set.
   So, it set the below variables as:
   xmlrpc_username=the unityid
   xmlrpc_pass=user password
   xmlrpc_url=https://ip/index.php?mode=xmlrpccall
  
   Correct me if I am wrong...
  
   On Thu, Jul 8, 2010 at 12:09 PM, Aaron Peeler aaron_pee...@ncsu.edu
  wrote:
Are the xmlrpc_* variables set in the vcld.conf?
   
Aaron
   
On 7/8/10 11:33 AM, Kiran N wrote:
Hello All,
I am tryin to make a block reservation for 2 machines with Centos
  image
on Sandbox. But it fails with the message shown below in the
 vcld.log
   
   
   
2010-07-08 01:49:05|2650|vcld:main(165)|lastcheckin time updated for
management node 1: 2010-07-08 01:49:05
2010-07-08 01:49:05|2650|utils.pm:
 check_blockrequest_time(1104)|block
request start time is within start window (250 minutes from now),
returning
'start'
2010-07-08 01:49:05|2650|DataStructure.pm:_automethod(697)|data
structure updated: $self-blockrequest_data-{4}{MODE}
   
|2650| blockrequest_mode = start
   
2010-07-08 01:49:05|2650|vcld:main(439)|block request 4
 'testblockres'
processing set to 1
2010-07-08 01:49:05|2650|vcld:make_new_child(509)|loaded
VCL::blockrequest module
2010-07-08 01:49:05|10444|vcld:make_new_child(582)|vcld environment
variable
set to 0 for this process
2010-07-08
 01:49:05|10444|blockrequest|Module.pm:new(132)|constructor
called, class=VCL::blockrequest
2010-07-08
01:49:05|10444|blockrequest|Module.pm:new(154)|VCL::blockrequest
object created
2010-07-08 01:49:05|2650|vcld:make_new_child(566)|current number of
forked kids: 1
2010-07-08 01:49:05|10444|blockrequest|blockrequest.pm:
initialize(84)|obtained
a database handle for this state process, stored as $ENV{dbh}
2010-07-08 01:49:05|10444|blockrequest|utils.pm:
rename_vcld_process(7901)|renamed
process to 'vcld VCL::blockrequest 4:3 'testblockres''
2010-07-08 01:49:05|10444|blockrequest|blockrequest.pm:
initialize(97)|returning
1
2010-07-08
   
 01:49:05|10444|blockrequest|vcld:make_new_child(591)|VCL::blockrequest
object created and initialized
2010-07-08 01:49:05|10444|blockrequest|blockrequest.pm:
process(141)|blockrequest
id: 4
2010-07-08 01:49:05|10444|blockrequest|blockrequest.pm:
process(142)|blockrequest
mode: start
2010-07-08 01:49:05|10444|blockrequest|blockrequest.pm:
process(143)|blockrequest
image id: 10
2010-07-08 01:49:05|10444|blockrequest|blockrequest.pm:
process(144)|blockrequest
number machines: 2
2010-07-08 01:49:05|10444|blockrequest|blockrequest.pm:
process(145)|blockrequest
expire: 2010-07-08 17:00:00
2010-07-08 01:49:05|10444|blockrequest|blockrequest.pm:
process(146)|blocktime
id: 3
2010-07-08 01:49:05|10444|blockrequest|blockrequest.pm:
process(147)|blocktime
processed: 0
2010-07-08 01:49:05|10444|blockrequest|blockrequest.pm:
process(148)|blocktime
start: 2010-07-08 06:00:00
2010-07-08 01:49:05|10444|blockrequest|blockrequest.pm:
process(149)|blocktime
end: 2010-07-08 17:00:00
2010-07-08 01:49:05|10444|blockrequest|blockrequest.pm:
process(154)|updated
process flag on blocktime_id= 3
No recipient addresses found in header
2010-07-08 01:49:06|10444|blockrequest|utils.pm:mail(1348)|SUCCESS
 --
Sending mail To: ,