Could you include the output from your module table too? My guess is that
the module ID you specified in your OS row is referring to a vmware module
rather than an OS module.  Try changing the module ID to an OS module.

On Fri, May 21, 2010 at 7:20 PM, My LinuxHAList <mylinuxhal...@gmail.com>wrote:

> Hi,
>
> I've installed ESXi 3.5 (added it as computer, with computer id =2).
>
> The management node can get to the my esxi host via the ssh key from
> /etc/vcl/vcl.key{.pub}
>
> Then, after modelling the request on creating base linux image, I did:
>
> INSERT INTO vcl.request (
> `id` ,
> `stateid` ,
> `userid` ,
> `laststateid` ,
> `logid` ,
> `forimaging` ,
> `test` ,
> `preload` ,
> `start` ,
> `end` ,
> `daterequested` ,
> `datemodified`
> )
> VALUES (
> NULL , '16', '1', '16', '', '1', '0', '0', NOW( ) ,
> TIMESTAMPADD(MINUTE, 120, NOW()), NOW( ) , NULL
> );
>
> INSERT INTO vcl.reservation (
> `id` ,
> `requestid` ,
> `computerid` ,
> `imageid` ,
> `imagerevisionid` ,
> `managementnodeid` ,
> `remoteIP` ,
> `lastcheck` ,
> `pw`
> )
> VALUES (
> NULL , LAST_INSERT_ID(), 2, 10, 10, '1', NULL , NULL , NULL
> );
>
>
> I'm getting this following error from vcld.log:
> ----
> |15670|2:2|image| ---- CRITICAL ----
> |15670|2:2|image| 2010-05-21
> 18:56:22|15670|2:2|image|vcld:die_handler(665)|Can't locate object
> method "set_provisioner" via package
> "VCL::Module::Provisioning::vmware" at
> /usr/local/vcl/bin/../lib/VCL/Module/State.pm line 167.
> |15670|2:2|image| ( 0) utils.pm, notify (line: 737)
> |15670|2:2|image| (-1) vcld, die_handler (line: 665)
> |15670|2:2|image| (-2) State.pm, initialize (line: 167)
> |15670|2:2|image| (-3) Module.pm, new (line: 157)
> |15670|2:2|image| (-4) vcld, make_new_child (line: 593)
> |15670|2:2|image| (-5) vcld, main (line: 344)
> ---
>
> Could the list help me diagnosing what mistakes I made ?
>
> I was reading through esx.readme. The table vmhost has the field
> "vmkernalnic", where should I get the value for that field ?
> Currently, vmhost.vmkernalnic is set to NULL.
>
> Thanks
>
> Here are the database information prior to the reservation request:
>
> mysql> select * from computer where id=2;
>
> +----+---------+---------+------------+------------+----------------+------------------+-------------+-----------------+------+------------+-----------+---------+---------------+--------------+------------------+----------------+----------------+----------------+----------------+-----------+---------+-------+-----------+----------+------+--------+------+--------+------+---------+----------+----------+
> | id | stateid | ownerid | 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 |
>
> +----+---------+---------+------------+------------+----------------+------------------+-------------+-----------------+------+------------+-----------+---------+---------------+--------------+------------------+----------------+----------------+----------------+----------------+-----------+---------+-------+-----------+----------+------+--------+------+--------+------+---------+----------+----------+
> |  2 |       2 |       1 |          1 |          1 |              4 |
>              0 |           0 |               0 | 4096 |          2 |
>    3200 |     100 | vmnode2.local | 192.168.88.5 | NULL             |
> NULL           | NULL           | virtualmachine |              4 |
> hda       |       0 |       | NULL      | NULL     | NULL | NULL   |
> NULL | NULL   | NULL | NULL    |     NULL |     NULL |
>
> +----+---------+---------+------------+------------+----------------+------------------+-------------+-----------------+------+------------+-----------+---------+---------------+--------------+------------------+----------------+----------------+----------------+----------------+-----------+---------+-------+-----------+----------+------+--------+------+--------+------+---------+----------+----------+
> 1 row in set (0.00 sec)
>
> mysql> select * from vmhost;
> +----+------------+---------+-------------+-------------+------------+
> | id | computerid | vmlimit | vmprofileid | vmkernalnic | vmwaredisk |
> +----+------------+---------+-------------+-------------+------------+
> |  1 |          2 |       5 |           6 | NULL        | localdisk  |
> +----+------------+---------+-------------+-------------+------------+
> 1 row in set (0.00 sec)
>
>
> mysql> select * from vmprofile where id=6;
>
> +----+--------------+----------+---------+----------+--------------------------+--------------------------+----------------+-------------------------+-----------+----------+----------------+
> | id | profilename  | vmtypeid | imageid | nasshare | datastorepath
>        | vmpath                   | virtualswitch0 | virtualswitch1
>       | vmdisk    | username | password       |
>
> +----+--------------+----------+---------+----------+--------------------------+--------------------------+----------------+-------------------------+-----------+----------+----------------+
> |  6 | ESXi vmnode2 |        5 |      10 | NULL     |
> /vmfs/volumes/datastore1 | /vmfs/volumes/datastore1 | VM Network     |
> Virtual Machine Network | localdisk | root     | notmyrootpassword |
>
> +----+--------------+----------+---------+----------+--------------------------+--------------------------+----------------+-------------------------+-----------+----------+----------------+
> 1 row in set (0.00 sec)
>
> mysql> select * from image where id=10;
>
> +----+-----------------+-------------+---------+------------+------+-------------+--------+---------------+--------------+------------+---------------+------------+---------+------+---------------------+-------------+----------------+---------+------+--------------+-------------+-------+--------------------+
> | id | name            | prettyname  | ownerid | platformid | OSid |
> imagemetaid | minram | minprocnumber | minprocspeed | minnetwork |
> maxconcurrent | reloadtime | deleted | test | lastupdate          |
> forcheckout | maxinitialtime | project | size | architecture |
> description | usage | basedoffrevisionid |
>
> +----+-----------------+-------------+---------+------------+------+-------------+--------+---------------+--------------+------------+---------------+------------+---------+------+---------------------+-------------+----------------+---------+------+--------------+-------------+-------+--------------------+
> | 10 | esx3-vmlinux-v1 | NoAppsLinux |       1 |          1 |   34 |
>     NULL |    512 |             1 |         1024 |        100 |
>   NULL |          5 |       0 |    0 | 2010-05-18 19:08:02 |
>  1 |              0 | vcl     | 1500 | x86          | NULL        |
> NULL  |                  0 |
>
> +----+-----------------+-------------+---------+------------+------+-------------+--------+---------------+--------------+------------+---------------+------------+---------+------+---------------------+-------------+----------------+---------+------+--------------+-------------+-------+--------------------+
> 1 row in set (0.00 sec)
>
>
>
> --- Modeled after the web instruction --
> INSERT INTO OS (
> `id`, `name`, `prettyname`,
> `type`, `installtype`, `sourcepath`, `moduleid`) VALUES
> (34, 'vmwarelinux', 'VMware Generic Linux',
> 'linux', 'vmware','vmware_images', 2);
>
>
> INSERT INTO vcl.image (
> `id`,
> `name`,
> `prettyname` ,
> `ownerid` ,
> `platformid` ,
> `OSid` ,
> `imagemetaid` ,
> `minram` ,
> `minprocnumber` ,
> `minprocspeed` ,
> `minnetwork` ,
> `maxconcurrent` ,
> `reloadtime` ,
> `deleted` ,
> `test`,
> `lastupdate`,
> `forcheckout`,
> `maxinitialtime`,
> `project`,
> `size`,
> `architecture`,
> `description`,
> `usage`,
> `basedoffrevisionid`
> )
> VALUES (
> 10 , 'esx3-vmlinux-v1', 'NoAppsLinux', '1', '1', '34', NULL,
> '512', '1', '1024', '100', NULL , '5', '0', '0', NOW(), '1', '0', 'vcl',
> '1500',
> 'x86', NULL , NULL , '0'
> );
>
> INSERT INTO vcl.imagerevision (
> `id` ,
> `imageid` ,
> `revision` ,
> `userid` ,
> `datecreated` ,
> `deleted` ,
> `datedeleted` ,
> `production` ,
> `comments` ,
> `imagename`
> )
> VALUES (
> 10, 10, '0', '1', NOW(), '0', NULL , '1', NULL , 'esx3-vmlinux-v1'
> );
>
> INSERT INTO vcl.resource (
> `id` ,
> `resourcetypeid` ,
> `subid`
> )
> VALUES (
> NULL , '13', 10
> );
>

Reply via email to