-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wednesday, January 21, 2015 11:35:25 AM [email protected] wrote:
> Frontend issue:
> I add a new provisioning type(XenServer) to the VCL(database), but on the
> frontend I cannot select it when I add new virtual machines to VCL.
> 
> I would like to request your assitance.
> 
> Br,
> Aaron Toth

Aaron,

Thanks for reporting this.  I apologize for the delayed response.  I've been 
focusing on making the install script more robust and also creating an upgrade 
script.

The frontend needs to know what computer types (blade, lab, or virtual) a 
provisioning type relates to.  This information is only somewhat in the 
database.  So, some of it is hard coded in the web code.

Provisioning types must be mapped to OS install types using the 
provisioningOSinstalltype table.  You can probably map your XenServer 
provisioning type to the vmware OS install type (I can't remember all the 
implications of what mapping to vmware would do, but the libvirt provisioning 
type is mapped to it.  So, I think xenserver could be as well.).  If so, it 
would then be picked up by the frontend as a selection on the Manage Computers 
page.  If you need to create a new OS install type to map it to, you'd need to 
modify getProvisioningTypes in utils.php by adding another if conditional in 
the while loop - something like:

if($row['type'] == 'xenserver')
   $types['virtualmachine'][$row['id']] = $row['prettyname'];

Another option is to get all of the information in the database.  However, I'd 
prefer not to do any database schema modifications this close to trying to get 
the 2.4 release out.

Josh
- -- 
- -------------------------------
Josh Thompson
VCL Developer
North Carolina State University

my GPG/PGP key can be found at pgp.mit.edu

All electronic mail messages in connection with State business which
are sent to or received by this account are subject to the NC Public
Records Law and may be disclosed to third parties.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iEYEARECAAYFAlTHqjIACgkQV/LQcNdtPQPayACfe0ak16SZyVtS2N+d9ENZYf8h
FRsAnAzQUL7F8cGsINv+TDQmsfJ9DDd9
=U8Nx
-----END PGP SIGNATURE-----

Reply via email to