Académique Documents
Professionnel Documents
Culture Documents
Introduction ................................................................................................................................................... 5 1 -- What This Document Covers ........................................................................................................... 5 2 -- What Isn't Covered and Where to Find It ......................................................................................... 5 I -- rPath Concepts ......................................................................................................................................... 6 1 -- What rPath Can Do ......................................................................................................................... 7 1.1 -- What You Can Do with rPath ................................................................................................ 7 1.2 -- The Appliance Concept ......................................................................................................... 7 2 -- How rPath X6 Works ...................................................................................................................... 9 II -- Create and Manage Appliances .............................................................................................................. 11 3 -- Create a New Appliance ................................................................................................................ 12 4 -- Using the Appliance Workspace ..................................................................................................... 14 4.1 -- Creating an Image Definition .............................................................................................. 14 5 -- Browsing and Using the Appliance Repository ................................................................................ 16 III -- Prepare Software for Appliances .......................................................................................................... 17 6 -- Add Existing Software ................................................................................................................... 18 6.1 -- Add Packages from Other Repositories ................................................................................ 19 7 -- Add New Software ........................................................................................................................ 20 IV -- Build Appliances and Create Images .................................................................................................... 22 8 -- Create a New Appliance Build ....................................................................................................... 23 9 -- Create Images for an Appliance ..................................................................................................... 24 10 -- Import Images to an Appliance ..................................................................................................... 26 11 -- Working with Targets ................................................................................................................... 27 11.1 -- Viewing and Sorting in the Inventory ................................................................................. 27 11.2 -- Working with the Target Workspace ................................................................................... 27 11.3 -- Adding an EC2 Target ....................................................................................................... 28 11.4 -- Adding a Eucalyptus Target ............................................................................................... 28 11.5 -- Adding an OpenStack Target ............................................................................................. 29 11.6 -- Adding a VMware Target .................................................................................................. 30 11.7 -- Adding a Xen Target ......................................................................................................... 30 V -- Test and Release Appliances ................................................................................................................. 32 12 -- Move the Appliance Through Stages ............................................................................................ 33 13 -- Create, Publish, and Unpublish a Release ...................................................................................... 35 13.1 -- Create a Release ............................................................................................................... 35 13.2 -- Publish a Release .............................................................................................................. 35 13.3 -- Unpublish a Release .......................................................................................................... 36 VI -- Deploy and Maintain Systems Based on Appliances .............................................................................. 37 14 -- Deploy New Systems ................................................................................................................... 38 15 -- Register an Existing System with rPath X6 ................................................................................... 39 16 -- Manage Systems .......................................................................................................................... 40 16.1 -- Viewing and Sorting in the Inventory ................................................................................. 40 16.2 -- Working with the System Workspace ................................................................................. 40 16.3 -- Performing Actions on a Selected System ........................................................................... 41 16.4 -- Setting the Inventory Polling Interval ................................................................................. 42 17 -- Configuring Systems .................................................................................................................... 43 17.1 -- Viewing a System's Configuration ...................................................................................... 43 17.2 -- Edit a System's Configuration ............................................................................................ 43 17.3 -- View a System's Configuration Jobs ................................................................................... 44 17.4 -- Creating a Configurator ..................................................................................................... 44
17.5 -- Configuration File Syntax and Other Information ................................................................ 17.6 -- Configuration Handler Files ............................................................................................... 18 -- Deploy Updates ........................................................................................................................... A -- Setting Up Your Amazon EC2 Account .................................................................................................
44 45 47 48
Introduction
This guide is targeted to those using rPath X6 and related rPath products as part of their day-to-day responsibilities in your organization. The guide is broken into sections: the first section presents the key concepts that all users should be familiar with, and the remaining sections each present how rPath X6 can be used at a certain stage of software provisioning and lifecycle management.
PartI.rPath Concepts
What makes an appliance different from static imaging technology is that each deployment is maintained as a complete system throughout its lifecycle. The software is tested and released together, and then it is updated over time as a complete system rather than by its pieces and parts. With this level of control and management over the entire software stack, you can deploy updates with confidence that the production server represents your test environment and rein in production servers when they get out of sync with the appliance model. rPath X6 is rPath's tool for building appliances, creating images based on those appliance models, deploying and managing systems from those images in target virtual and physical environments, and managing the ongoing changes to those running systems which are typical in any IT organization.
The remaining sections of this guide in combination with the rPath Administration Guide provide more detail about what's happening behind the scenes at each of the workflow points listed here.
10
12
7.
Monitor the status messages in the window until rPath X6 refreshes to show the list of appliances. Your new appliance should be selected in the list, and the appliance workspace you will use to edit and build the appliance is open below the list.
13
14
8. 9.
(Optional) If the Flavor drop-down menu is present, select the flavor from the Flavor drop-down menu. Enter an Image name.
10. Complete the additional fields in the Image definitions editor window. 11. Click Done.
15
Together, the major version and stage create the hyphenated portion of the label you'll look for in the first column of the repository browser in rPath X6. The following lists the association between the end of the label and the default stages in major version 1 of an example appliance with unique name app: Development -- has a suffix of -devel, such as in app.rbuilder.example.com@corp:app-1-devel QA -- has a suffix of -qa, such as in app.rbuilder.example.com@corp:app-1-qa Release -- has no stage-specific suffix, such as in app.rbuilder.example.com@corp:app-1 Use the following tips in combination with the information above to browse an appliance repository and find certain types of content: Packages and Groups in the repository represent the software for the appliance, and you can browse to see what packages are in a group and what files make up a particular package. You can even download a specific file to examine it closer. Sources are the files and instructions used when building packages and groups. As when browsing packages, you can find and download a specific file from the source to examine it closer. rPath X6 manages a product definition associated with each major version of the appliance, and you can find that XML file packaged in product-definition:source under Sources on the Release label for that major version. If the appliance is converted into a platform, rPath X6 creates an additional platform definition packaged in platform-definition:source under Sources on the Release label for that major version.
16
10. Scroll through the Available packages list to find the package you want to add. Click to select that package.
18
ditional packages it knows it needs to meet those dependencies. You can select certain packages if you want to guarantee they are added to the appliance, but this may not be necessary. To minimize your selected packages, consider building the appliance first to see what rPath X6 automatically includes in your appliance. 13. Click Save when you're finished making your selections. To implement these changes, you will need to create a new appliance group build as described in Chapter 8. Create a New Appliance Build.
10. Click the triangle to the left of Search to display the search path. 11. Enter the label in the Add a search path, then click +. 12. After you add the label, confirm access to the packages on that label from the Available packages list. Refresh the list by clicking the Refresh button above the list.
19
10. Select the software archive (such as a zip or RPM package) from your local system that you wish to upload and package for the appliance. Then, click Upload. 11. When the upload is complete, verify that the Details tab displays a form with information from the archive. For RPMs, WIMs, and MSIs, leave this information unchanged. For other types of packages, edit the form contents as appropriate, using the linked form fields and the rPath Platform Guide as a reference for what to put in each field. 12. Click Import and monitor the messages displayed below the import software form. Though this is referred to as an "import" in the Web UI, this is what rPath X6 calls "building the package."
20
packages list. Leave the browser tab or window open. You can use other browser tabs or windows during the Import (build) process. 13. When the import (build) is complete, confirm that the resulting package appears in the Selected packages list.
21
23
10. Click Create. 11. While rPath X6 creates the images, you have the following two options:
24
You can monitor the details of the image creation. To do this, click the Image Actions menu in the lower right and select Show detailed information. From the details dialog, you can view the live messages as things happen, and you can download a copy of the image creation log when the process is complete. Click Close at any time to close the dialog and return to the main rPath X6 Web UI. You can browse away and work on other tasks. When the image creation is complete, you'll receive a notice on the Home page in rPath X6. You can also return to the Images tab for the appliance at any time to check the build progress.
25
10. Enter the Image URL to the .tar.gz file containing the OVF file. 11. Select the Architecture of the appliance the OVF file is being imported to. 12. Select the Location the OVF file is allowed to be deployed to. 13. Click Import. The Import images window will close, and when the OVF file is imported, the new image is displayed in the list of images in the Images tab of the appliance workspace. To deploy the image or download the image, see Chapter 14. Deploy New Systems.
26
27
Credentials -- View the information about the user credentials saved for the target, or add user credentials for a target. Although a user must be logged in to rPath X6 as an administrator to add a target, non-administrators logged in to rPath X6 can add user credentials to an existing target. Configuration -- View and edit configuration information associated with this target.
28
3. 4. 5. 6. 7. 8. 9.
Below Targets in the Navigator left sidebar, click All Targets. The Target Browser is displayed. In the Target Browser, click + to open the Add a Target window. From the Select a target to configure drop-down menu, select eucalyptus. Enter the Eucalyptus Server Address. Enter the Eucalyptus Server Port. Enter the Descriptive Name. Enter the Full Description.
10. Enter the Access Key ID. 11. Enter the Secret Access Key. 12. Enter the X.509 Certificate. Click Open... to open a file browser dialog window and select a file containing the X.509 certificate. 13. Enter the X.509 Private Key. Click Open... to open a file browser dialog window and select a file containing the X.509 private key. 14. Enter the Cloud X.509 Certificate. Click Open... to open a file browser dialog window and select a file containing the cloud X.509 certificate. 15. Enter the Storage (Walrus) Bucket name. 16. Click Add.
10. Enter the Access Key ID. 11. Enter the Secret Access Key.
29
12. Enter the X.509 Certificate. Click Open... to open a file browser dialog window and select a file containing the X.509 certificate. 13. Enter the X.509 Private Key. Click Open... to open a file browser dialog window and select a file containing the X.509 private key. 14. Enter the Cloud X.509 Certificate. Click Open... to open a file browser dialog window and select a file containing the cloud X.509 certificate. 15. Enter the Storage Bucket name. 16. Click Add.
30
8. 9.
31
10. Confirm that the newly promoted appliance group build is listed in QA stage with the matching Revision value of the build you selected from the Development stage. 11. (Optional) Confirm the repository contents have been cloned from the "-devel" label to the "-qa" label. You can browse the contents of each label from the Repository Browser tab. 12. Inform those who are testing the appliance data is ready on the new label. Testers can work with the data and create images in the QA stage as needed. Fixes to the appliance can be made directly in the Development or QA stages. A common practice is to apply fixes in the Development stage only, build the appliance group to incorporate the fixes, and then promote that new build to become the latest revision at the QA stage. When the data at the QA stage is ready for public consumption, clone that data to the Release stage to isolate data released to the public from the development and testing data. At the Release stage, a release manager can create final images and publish both images and data for consumption outside of rPath X6. Use the following steps to promote an appliance in a selected major version from the QA stage to the Development stage:
33
1. 2. 3. 4. 5. 6. 7. 8. 9.
Log in to rPath X6 as a developer for the appliance. In the Navigator left sidebar, click Appliances to expand the Appliances list. Below Appliances in the Navigator left sidebar, click All Appliances to open the All Appliances browser. In the main pane, double-click the appliance to open that appliance's workspace. Click the Groups tab in the appliance workspace. Change to the Major version you want to work with, and be sure the Stage selected is QA. Select the appliance group build from the list that you wish to promote for release. Click the Group Actions menu in the lower right and select Promote group. Click the Stage drop-down list and select Release. After a few seconds, confirm that the newly promoted appliance group build is listed there with the matching Revision value of the build you selected from the QA stage.
10. If desired, confirm the repository contents have been cloned from the "-qa" label to the label without the "-devel" or "-qa" suffix. Browse the contents at each label from the Repository Browser tab. 11. If you're not doing the release, inform those who are releasing the appliance that the the appliance data is ready on the new label. Release managers can work with the data and create images in the Release stage as needed. Need more or different stages? You can customize the names of stages and the order they appear to better meet the requirements of your organization's release management cycle. This information is stored in the product definition XML, and you'll need to edit that XML to make your customizations. The rPath Packaging Guide includes information on how to check out and edit the product definition XML directly. This allows you to use the promote features in rPath X6 while meeting the requirements of your organization's release management cycle.
34
13.1Create a Release
Use the following steps to create a release: 1. 2. 3. 4. 5. 6. 7. 8. 9. Log in to rPath X6 as a owner of the appliance. In the Navigator left sidebar, click Appliances to expand the Appliances list. Below Appliances in the Navigator left sidebar, click All Appliances to open the All Appliances browser. In the main pane, double-click the appliance to open that appliance's workspace. Click the Releases tab in the appliance workspace. Click the plus (+) in the lower left of the appliance workspace. The Create a new release window is displayed. Enter a Release Name. Enter a Version Name. (Optional) Enter a Description.
13.2Publish a Release
Use the following steps to publish a release: 1. 2. 3. Log in to rPath X6 as a owner of the appliance. In the Navigator left sidebar, click Appliances to expand the Appliances list. Below Appliances in the Navigator left sidebar, click All Appliances to open the All Appliances browser.
35
4. 5. 6. 7.
In the main pane, double-click the appliance to open that appliance's workspace. Click the Images tab in the appliance workspace. If necessary, change the Major version and Stage to the combination where the images reside that you're adding to the release. For each image you want to add to the new release, do the following: a. b. c. Click to select the image from the images list. Click the Image Actions menu in the lower right. Select Add image to release.
8. 9.
After adding all the desired images to the release, click the Releases tab. Select the new release.
10. Click the Release Actions menu in the lower right and select Publish all images for this release.
13.3Unpublish a Release
You must unpublish a release to make any changes to it. Use the following steps to unpublish a release: 1. 2. 3. 4. 5. 6. 7. Log in to rPath X6 as a owner of the appliance. In the Navigator left sidebar, click Appliances to expand the Appliances list. Below Appliances in the Navigator left sidebar, click All Appliances to open the All Appliances browser. In the main pane, double-click the appliance to open that appliance's workspace. Click the Releases tab in the appliance workspace. Select the release. Click the Release Actions menu in the lower right and select Unpublish all images for this release.
36
8.
To download an image for deploying a system outside of rPath X6, use the following steps: 1. 2. 3. 4. 5. In the main rPath X6 interface, click Appliances from the tasks on the left. Scroll or search the Appliances list to find the appliance used to produce the image that you want to use for deploying the new system. Click to select the appliance. There, click the Images tab in the appliance workspace, select the image you want to download. Click the Image Actions menu in the lower right and select Download image. Deploy the system using the downloaded file. This process will vary based on the type of image you downloaded. To manage the system using the Systems task in rPath X6, follow the steps in Chapter 15. Register an Existing System with rPath X6.
38
39
16.Manage Systems
The Systems group in rPath X6 provides several features for monitoring and managing systems deployed in your organization's infrastructure. You can: View all systems registered in the rPath X6 Systems inventory, and sort and filter the list of displayed systems. For more information, see Viewing and Sorting in the Inventory. Perform actions on a selected system. For more information, see Working with the System Workspace and Performing Actions on a Selected System. Change the polling interval following the steps in Setting the Inventory Polling Interval.
10. Right-click on an individual system to show actions you can perform on that system. The commands on this menu are presented in Performing Actions on a Selected System. 11. Double-click on an individual system to open the workspace for that system.
40
Manage Systems
Summary -- Scroll through this list for some of the information rPath X6 was able to retrieve from this system, including Basic Information including the management zone, Networking information, Software version information for the appliance, and Advanced information including a UUID. Click a linked field name to view a brief description of a particular field. Configuration -- Values on the managed system you can edit and modify. For more information, see Working with rPath Configuration. Software -- View and update software for systems associated with appliances. For more information on using this tab, see Chapter 18. Deploy Updates. Jobs -- Monitor the management jobs that the rPath Tools are currently handling on the system. Log -- View or download the log file associated with the system's management through rPath X6, including the registration events described in Chapter 15. Register an Existing System with rPath X6. Credentials -- Provide any credentials this system requires for access to administrative tasks. Deployment -- View the information about the target deployment environment where this system is running. This will be one of the targets configured by an rPath X6 administrator from the Targets task in the Web UI. This tab may be disabled for systems that are not deployed to a configured target. Repository Browser -- This is only applicable for systems in the list which have their own repositories compatible with rPath X6. See Chapter 5. Browsing and Using the Appliance Repository for more information. Refresh -- Click Refresh to refresh the information on the selected system.
41
Manage Systems
Refresh Systems - Refreshes rPath X6 with the most current information in the rPath X6 Systems inventory. Remove system - Delete the selected system from the rPath X6 inventory. The deleted system will not be displayed in Systems.
Find the value systemEventsPollDelay. The default value of systemEventsPollDelay is 720 and the unit is one minute. A default entry should look like the following:
systemEventsPollDelay 720
4.
Edit the numeric value to set the rBuilder's polling interval. For example, to set the rBuilder to poll every six hours, edit the line to the following:
systemEventsPollDelay 240
5.
If changing the polling interval to more frequently than every 12 hours, consider the potential impact of the change on the network.
42
17.Configuring Systems
Using the configuration feature of the Systems group in rPath X6 you can: View a system's configuration. For more information, see Viewing a System's Configuration. Edit a system's configuration. For more information, see Edit a System's Configuration. View a system's configuration job status. For more information, see View a System's Configuration Jobs. Create a configurator to add values to a system's configuration. For more information, see Creating a Configurator. Information on the .iprop and handler files for configuration is presented in the following sections: Configuration File Syntax and Other Information Configuration Handler Files
Clicking Save launches all of the configurators for the managed system, not only the configurator associated with the value you edited. Ideally and for best practices, a configurator should be idempotent and be able to run regardless of current state. For example, a configurator could be designed to run
43
Configuring Systems
System configuration jobs will be displayed in the Jobs tab of the system's workspace as System configuration, and be in one of three states: Completed Failed Running
17.4Creating a Configurator
To create a configurator, perform the following steps: 1. 2. 3. Using a text editor, create an XML configuration file with the extension .iprop containing a single namevalue pair. For the syntax of the XML file, see Configuration File Syntax and Other Information. Create a handler file in Genshi template format. For more information on handler files, see Configuration Handler Files. Create a configurator package containing the .iprop file and the handler file. When the package is added to an image, Conary will include the metadata necessary to display the name-value pair on the Configuration tab of the system workspace. For more information on creating packages, see the rPath Packaging Guide.
44
Configuring Systems
<default>false</default> </field>
This displays on the Configuration tab the text Apache httpd service enabled and a checkbox for the Boolean value. For a second example, here is the file apache_port.iprop:
<field> <name>apache_port</name> <descriptions> <desc>Apache httpd port number</desc> </descriptions> <prompt> <desc>Apache httpd port number </desc> </prompt> <type>int</type> <constraints> <range><min>1</min><max>65535</max><range> </constraints> <required>true</required> <default>80</default> </field>
This displays on the Configuration tab the text Apache httpd port number and a text field that defaults to the numeric value 80. For more information on the configuration utilities, view the man pages for the following commands installed on the managed system: iconfig iconfig-values iconfig-handler
prepend config_ to the variable name to refer to that variable in a handler file:
config_port_number
45
Configuring Systems
For an example of a handler file for a Linux managed system, here is the ApacheConfigurationModule.handler for the two Apache configuration files shown in Configuration File Syntax and Other Information:
name ignored [genshi] template $path_to_template file /etc/httpd/conf/httpd.conf [exec] command $run command_to_run_on_managed_system --port $config_port_number
The line
name ignored
is required by iconfig. A handler file for a Windows managed system needs the line
[genshi]
replaced with
[simpleTemplate]
(capitalization exactly as shown). An example of a handler file for a Windows managed system is:
name ignored [simpleTemplate] template C:\Temp\file-t.txt file C:\Temp\file.txt [exec] command C:\Temp\ConsumeFile.bat %config_file_name C:\Temp\log.txt
The line
name ignored
46
18.Deploy Updates
Systems listed in the Systems task in rPath X6 include both managed and unmanaged systems. Managed systems are associated with an appliance in rPath X6. For each managed system, use the following steps to view the software that's installed on the system, compare software between the appliance and a selected appliance revision, and update the system to that revision: 1. 2. 3. 4. 5. 6. 7. 8. Log in to rPath X6 as an administrator. In the Navigator left sidebar, click Systems to expand the Systems list. In the upper left of the Active Systems browser, click Grid to switch the Active Systems browser display from Map to Grid. Double-click on the system you want to manage to open the workspace for that system. The workspace window for that system is displayed. Click the Software tab in the system workspace. Scroll to view the list of packages currently on the system. Note the revision value of the appliance that rPath X6 is associating with the system. Click the Available Updates drop-down list and select another revision of the associated appliance (such as 1-3-1). Usually, this is a newer revision to which you're planning to update the system. Scroll the list of packages shown that will change if you update to the selected revision. To view more details about a package, click the linked revision value for the package itself to jump to the package information in the appliance's repository browser. Study these changes as desired to determine what to expect when you update to the new revision. Click Update to this version, and then click Yes in the confirmation dialog.
9.
10. Monitor the progress of the update: a message indicating an update is in progress appears below the systems list. The system itself should update to show the new version shortly after the update.
47
48