Next, create and register verified system configurations as system templates, which are required to create systems.
Note that system templates can be manipulated using the GUI in the Manager View, as well as using commands.
Refer to the "Systemwalker Software Configuration Manager User’s Guide (template Manager Edition) " for information on operations using the GUI in the Manager View.
System template registration procedure
The service provider makes the system template usable by registering various types of information as required.
The following information is registered:
Point
Perform the following operations to check whether information has been correctly registered or set up using the information registration or setup commands.
Check the return value of the command.
If the return value is 0, the command has terminated normally.
If the return value is other than 0, the command has terminated abnormally and an error message is output.
Check using the corresponding display command in the following table.
Registration or setup command | Display command |
---|---|
Software information registration command (cfmg_addsoft) | Software information list display command (cfmg_listsoft) |
Image information registration command (cfmg_addimageinfo) | Image information list display command (cfmg_listimageinfo) |
Segment registration command (cfmg_addnetinfo) | Segment list display command (cfmg_listnetinfo) |
Template information registration command (cfmg_addtemplate) | Template information list display command (cfmg_listtemplate) |
Software information
Use the following procedure to register the software information included in the image that is used by the system template if it has not been registered yet.
Create a software information file (an XML file) that marks up configuration information for the software included in the image.
It is also possible to use a software information file that has already been registered. Refer to "Appendix H Registered Software IDs" for details.
Refer to "Detailed explanation of software information" for details on software information.
Use the software information registration command (cfmg_addsoft) to register the software information file.
A separate software information file is registered for each type of software. (If there is more than one type of software, create a file for each type of software.)
Image information
Use the following procedure to register image information if it has not been registered with the virtual image that is used by the system template.
Use the virtual image list display command (cfmg_listvmimage) to check the virtual image where the image information will be registered.
Create an image information file (an XML file).
Samples are available, so refer to these samples when creating the file.
Refer to "Detailed explanation of image information" for details on image information and the location where the samples are stored,
Use the image information registration command (cfmg_addimageinfo) to register the image information.
Segment information
To restrict the virtual networks used by this product, use the following procedure to register segment information.
Use the virtual network list display command (cfmg_listvnet) to check the virtual network where the segment information will be registered.
Take note of the resource ID recorded in the <networks>/<network>/<id> tag.
Create a segment information file (an XML file).
In the <id> tag, specify the resource ID that was noted in Step 1.
Refer to "Detailed explanation of segment information" for details on segment information.
Use the segment registration command (cfmg_addnetinfo) to register the segment information.
Note
If segment information is not registered, all of the virtual networks registered with Cloud Infrastructure Management Software will be deployed.
If [automatically select] is specified for the deployment destination virtual network, the deployment destination will be selected from all of the virtual networks.
When registering segment information, register segment information for all of the virtual networks used by the system template.
If [automatically select] is specified for the deployment destination virtual network, the deployment destination will be selected from the virtual networks for which "business segment" has been specified.
Template information
Use the following procedure to register template information.
Use the following commands to check the information used by the template.
Segment information: Segment list display command (cfmg_listnetinfo)
Image information: Image information list display command (cfmg_listimageinfo)
Create a template information file (an XML file).
Samples are available, so refer to these samples when creating the file.
Refer to "Detailed explanation of template information" for details on template information and the location where the samples are stored.
Use the template information registration command (cfmg_addtemplate) to register the template information.
The default publication setting for system templates is Hidden.
To make a system template available to system users, use the system template publication setting command (cfmg_showtemplate) to change the publication settings.
Refer to "System template publication setup command" for details on this command.
Note
A virtual systems that has already been deployed is not affected even if the publication setting for the system template that it uses is changed to Hidden.
It is also possible to change the publication setting to Hidden. if you do not want users to deploy virtual systems using the target system template.
Deleting system templates
Service providers can delete various types of information as necessary.
Note
If the following information files have been associated with multiple template information files, all of the template information files associated with these information files must be deleted before each of these information files can be deleted.
Image information
Segment information
Before deleting a software information file, delete all of the image information files with which that software information file has been associated.
Do not delete template information files that are being used in a deployed system.
Point
Perform the following operations to check whether information has been correctly deleted using the deletion command for each information type.
Check the return value of the command.
If the return value is 0, the command has terminated normally.
If the return value is other than 0, the command has terminated abnormally and an error message is output.
Check using the corresponding display command in the following table.
Deletion command | Display command |
---|---|
Template information deletion command (cfmg_deletetemplate) | Template information list display command (cfmg_listtemplate) |
Segment deletion command (cfmg_deletenetinfo) | Segment list display command (cfmg_listnetinfo) |
Image information deletion command (cfmg_deleteimageinfo) | Image information list display command (cfmg_listimageinfo) |
Software information deletion command (cfmg_deletesoft) | Software information list display command (cfmg_listsoft) |
Template information
Use the following procedure to delete template information.
Check the template name displayed in Manager View, "System Manager", "System list", and ensure that the template information to be deleted is not being used in a deployed system.
Use the Template information list display (cfmg_listtemplate) command, and take a note of the name of the template ID that corresponds to the template name in step 1.
If the publications setting is Published, the template information cannot be deleted.
In this case, the publication setting must be changed to Hidden using the system template publication setting command (cfmg_showtemplate).
Refer to "System template publication setup command" for details on this command.
Use the template information deletion command (cfmg_deletetemplate) to delete the template information by specifying the template ID that was noted in Step 1.
Segment information
Use the following procedure to delete segment information.
Use the Template information list display (cfmg_listtemplate -v) command to output a list of template information, and use this to see if the segment configuration information to be deleted is associated with template information in the "<template>/<vnets>/< vnet>/<id>" tag.
Use the segment deletion command (cfmg_deletenetinfo) to delete the segment information.
Image information
Use the following procedure to delete image information.
Use the template information list display command (cfmg_listtemplate -v) to output a list of template information, and check the <template>/<servers>/<server>/<imageId> tag to see that the image information to be deleted is not associated with the template information.
Use the image information deletion command (cfmg_deleteimageinfo) to delete the image information.
Software information
Use the following procedure to delete software information.
Use the image information list display command (cfmg_listimageinfo -v) to output a list of image information, and check the "<image>/<softwares>/<software>/<id>" tag to see that the software information to be deleted is not associated with the image information.
Use the software information deletion command (cfmg_deletesoft) to delete the software information.