Your installation does correctly call the module because I can see the code inside of it executing through your log post. The problem seems to be that the vmhost_ variables are not being passed into the module.

This could be because the associations are not all correct in the database. I'll give an example of a correct association below where I only include the important information:

In the vmtype table ensure you have an entry:

In the vmprofile table have an entry for your hypervisor:
<id,vmtype=the entry from the vmtype table,datastorepath=NFS mount point(ip:/path/to/ NFS),virtualswitch0=Management,virtualswitch1=Public,username=user on hypervisor,password=password of hypervisor user>

In the computer table you should have:
an entry for a hypervisor: <id,hostname,IPaddress,type=blade,vmhostid=NULL,vmtypeid=NULL> an entry for a virtual machine slot: <id,hostname,type=virtualmachine,vmhost=id of hypervisor,vmtype=entry from vmtype table>

The vmhost table associates the hypervisor's entry in the computer table with the hypervisor type declared in vmprofile. In the vmhost table you will require:
<computerid=id of hypervisor,vmprofileid=id of hypervisor in vmprofile>

Here is a dump example from a working database:

INSERT INTO `vmtype` (`id`, `name`) VALUES (5, 'vmwareESX3');

INSERT INTO `vmprofile` (`id`, `profilename`, `vmtypeid`, `imageid`, `nasshare`, `datastorepath`, `vmpath`, `virtualswitch0`, `virtualswitch1`, `vmdisk`, `username`, `password`) VALUES (4, 'VMware ESX SAN ', 2, 4, NULL, '', '/vmfs/volumes/ storage1', 'Management', 'Public', 'networkdisk', 'vcl', 'j45789fgdkhj542j');

INSERT INTO `computer` (`id`, `stateid`, `ownerid`, `deptid`, `platformid`, `scheduleid`, `currentimageid`, `preferredimageid`, `nextimageid`, `imagerevisionid`, `RAM`, `procnumber`, `procspeed`, `network`, `hostname`, `IPaddress`, `privateIPaddress`, `eth0macaddress`, `eth1macaddress`, `type`, `provisioningid`, `drivetype`, `deleted`, `notes`, `lastcheck`, `location`, `dsa`, `dsapub`, `rsa`, `rsapub`, `host`, `hostpub`, `vmhostid`, `vmtypeid`) VALUES (2, 2, 1, 1, 1, 1, 10, 10, 10, 10, 1024, 1, 1000, 1000, 'test_vm', '', '', '00:50:56:01:4d:9b', '00:50:56:01:4d:9c', 'virtualmachine', 4, 'hda', 0, '', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, 5), (3, 2, 1, 1, 1, 1, 4, 4, 0, 0, 512, 1, 500, 10, '', '', NULL, NULL, NULL, 'blade', 1, 'hda', 0, '', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);

INSERT INTO `vmhost` (`id`, `computerid`, `vmlimit`, `vmprofileid`, `vmkernalnic`, `vmwaredisk`) VALUES (1, 3, 3, 4, NULL, 'localdisk');


Brian Bouterse
Secure Open Systems Initiative

On Mar 18, 2009, at 11:55 PM, Melba Lopez wrote:

I'm trying to setup VCL to work in our environment, but we can't seem to get
it quite working.

When we schedule a reservation, it goes through and shows that it's
"Pending". However, it stays in that mode and won't ever come out. We
don't get any notification of accepting or rejecting etc.

Looking through the log file, the following message seems to be repeating.
What configuration am I missing?

"|30189|116:16|new| ---- WARNING ----

|30189|116:16|new| 2009-03-18
22:28:17|30189|116:16|new|vcld:warning_handler(648)|Use of uninitialized
value $vmhost_hostname in concatenation (.) or string at
/opt/vcl/bin/../lib/VCL/Module/Provisioning/ line 325.

|30189|116:16|new| ( 0), notify (line: 683)

|30189|116:16|new| (-1) vcld, warning_handler (line: 648)

|30189|116:16|new| (-2), load (line: 325)

|30189|116:16|new| (-3), reload_image (line: 664)

|30189|116:16|new| (-4), process (line: 266)

|30189|116:16|new| (-5) vcld, make_new_child (line: 606)

|30189|116:16|new| (-6) vcld, main (line: 353)

2009-03-18 22:28:17|30189|116:16|new||Power on command: /usr/lib/vmware-viperl/apps/vm/ --server '' --vmname vclblade1
--operation poweron --username vcl --password 'd834jfhd734jgfhf7'

Error: Server version unavailable at 'https:///sdk/vimService.wsdl' : 1:
parser error : Start tag expected, '<' not found

500 No Host option provided

^ at /usr/local/lib/perl5/site_perl/5.10.0/VMware/ line 323

2009-03-18 22:28:17|30189|116:16|new|vcld:REAPER(770)|setting $? to 512,
exit status: 2

2009-03-18 22:28:17|30189|116:16|new||Powered on:"

Reply via email to