VCL Reservation Problem

2009-05-20 Thread Augustus, Kris
We are having an issue getting the VCL working.  It appears to be logging into 
our NAS/NFS box and issuing 'cp' commands and copying the VM files from 
'golden' to 'inuse'.  After the files finish copying, we get an error, ' 
Virtual Machine TECS-ESX-4600-2 not found' (as seen below).  The 
TECS-ESX-4600-2 is an ESX Host, which VCL seems to reference correctly as a 
host some times, as seen in this line, --server 'TECS-ESX-4600-2'.  Though 
right after that, it shows, --vmname TECS-ESX-4600-2.   I am not sure how it 
got in the system as BOTH a server AND a VM.

We are using the virtual appliance 2.1, downloaded via the wiki site.  I did a 
search of the database for TECS-ESX-4600-2 and it only shows up in tables for 
logs and in the 'computername' table, which seems to make sense.  I grepped the 
following directories (recursively) for TECS-ESX:

grep TECS-ESX -R /var/www/html
grep TECS-ESX -R /opt/vcl
grep TECS-ESX -R /etc

Nothing significant turned up.

/var/log/vcld.log:

2009-05-14 17:43:15|6423|34:34|new|utils.pm:insertloadlog(5324)|inserted 
computer=1, info, computer state updated to reloading
2009-05-14 17:43:15|6423|34:34|new|esx.pm:load(171)|Entered ESX module, loading 
esx3-linuxtest-v0 on TECS-ESX-4600-2 (on TECS-ESX-4600-2) for reservation 34
2009-05-14 17:43:15|6423|34:34|new|esx.pm:load(183)|VM info command: 
/usr/lib/vmware-viperl/apps/vm/vminfo.pl --server 'TECS-ESX-4600-2' --vmname 
TECS-ESX-4600-2 --username vcl --password 'xxx'
2009-05-14 17:43:23|6423|34:34|new|esx.pm:load(186)|VM info output: Virtual 
Machine TECS-ESX-4600-2 not found.2009-05-14 
17:43:23|6423|34:34|new|utils.pm:run_ssh_command(6695)|executing SSH command on 
172.17.0.1:|6423|34:34|new| rm -rf /mnt/vcl/inuse/TECS-ESX-4600-2

Any help would be appreciated.

Thanks,

Kris Augustus
CCNA, RHCE, A+
Lab Supervisor
College of TECS
East Carolina University
252-737-1978
august...@ecu.edumailto:august...@ecu.edu

Intelligence plus character- that is the goal of true education.
Dr. Martin Luther King Jr.



APIs

2009-05-20 Thread Christopher Davia

Hi everyone,

Are there any documented RESTful or Web Service APIs for the VCL?

I'm looking for an API that allows me to see my current reservations.  I
would pass the userid / password / authentication method, and get back a
list of current reservations..

I'm also looking for an API to reserve a VCL image on the spot.  I would
pass the userid / password / authentication method and image name to
reserve...

Any thoughts?

Thanks a lot!
Chris Davia
IBM Global Education, Lead Architect

Re: APIs

2009-05-20 Thread Josh Thompson
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Chris,

Sorry I didn't respond to your PM about this yet.

There is only an XML RPC API - see my response in the thread titled Functions 
in the VCL from last Friday:

http://mail-archives.apache.org/mod_mbox/incubator-vcl-dev/200905.mbox/200905150943.29332.josh_thomp...@ncsu.edu

Josh

On Wednesday May 20, 2009, Christopher Davia wrote:
 Hi everyone,

 Are there any documented RESTful or Web Service APIs for the VCL?

 I'm looking for an API that allows me to see my current reservations.  I
 would pass the userid / password / authentication method, and get back a
 list of current reservations..

 I'm also looking for an API to reserve a VCL image on the spot.  I would
 pass the userid / password / authentication method and image name to
 reserve...

 Any thoughts?

 Thanks a lot!
 Chris Davia
 IBM Global Education, Lead Architect
- -- 
- ---
Josh Thompson
Systems Programmer
Virtual Computing Lab (VCL)
North Carolina State University

josh_thomp...@ncsu.edu
919-515-5323

my GPG/PGP key can be found at pgp.mit.edu
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFKFG2UV/LQcNdtPQMRAgWFAJ9Z+2c4iMbd0qpWmgrqbKOijs9tPQCfdoIp
cS21Cf8V4meQLoJ47bt3WkQ=
=iqIh
-END PGP SIGNATURE-