In addition to adding the image to the database, you have to ensure that you 
have the image in a group, that the group is mapped to valid computer(s), and 
that there is a privilege node that includes the image group, the computer 
group, and your user with the privilege imagecheckout.

Step by step, you want to 
1) Create a computer group with one or more of your blades/vms (depending on 
whether the image is bare metal or a VM).  In the web interface, you want to 
use Manage Groups and create a new computer group in the "Resource Groups" 
section.
2) Create an image group to contain your image.  In the web interface, you want 
to use Manage Groups and create a new image group in the "Resource Groups" 
section
3) Add blades or vm computers (depending on type of image) to the computer 
group.  In the web interface, that's "Manage Computers" -> "Edit Computer 
Grouping" radio button -> "By Group" tab.  That interface lets you add existing 
computers to your new computer group.
4) Add your inserted image into an image group.  In the web interface, that's 
"Manage Images" -> "Edit Image Grouping" radio button -> "By Group" tab.  That 
interface lets you add existing images to your new image group.
5) Map your image group to the computer gropu.  In the web interface, that's 
"Manage Image" -> "Edit Image Mapping" radio button -> "by Image Group" tab.  
You can then pick from the dropdown your new image group, click "Get Computer 
Groups" button, and then add your new computer group.
6) Create or update privilege node.  In the web interface, that's "Privileges". 
 If you have a node, you can add the image group and computer group as 
available resources.  If you don't, create a new node, then add the computer 
group and image group to the "Resources" section.  Make sure that they at least 
have the "available" privilege.  Add your individual user or a user group you 
are a member of to the "Users" section.  Make sure that the imageCheckOut 
privilege is checked.

You can do these things at the database level, too, but it requires a fair 
amount of lookups and inserts.  I've done computer and image groups manually, 
but not privilege nodes.

PS: If you've done all this, make sure that the computers mapped to the image 
are not all in "reload", or "inuse" state.  If all the machines are not 
"available" or "failed", you won't be able to make a reservation.
-- 
Tony Miller
Technology Consultant
Academic Technologies
mill...@ecu.edu


-----Original Message-----
From: Kelly Robinson [mailto:isg...@langate.gsu.edu] 
Sent: Sunday, September 27, 2009 10:15 PM
To: vcl-dev@incubator.apache.org
Subject: VCL image reservation

How do you get VCL to allow an image to be requested?  I've added the image to 
the database and would now like to request it through the web interface, 
however when you click "New Reservation" and select the image from the drop 
down menu, it gives a message that states "Selection Not Currently Available".
 
I've tried to manually insert a request into the database using the following 
sql statements, however the vcld.log gives error messages stating that the 
image already exists in the repository.  What am I missing?
 
=================================
INSERT INTO `vcl`.`request` (
`id` ,
`stateid` ,
`userid` ,
`laststateid` ,
`logid` ,
`forimaging` ,
`test` ,
`preload` ,
`start` ,
`end` ,
`daterequested` ,
`datemodified`
)
VALUES (
'1' , '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 , '1', '2', '7', '7', '1', NULL , NULL , NULL
);
===========================================
 
 
Thanks,
Kelly

Reply via email to