Red Hat Cloudforms 5.0 Provisioning Virtual Machines and Instances
Total Page:16
File Type:pdf, Size:1020Kb
Red Hat CloudForms 5.0 Provisioning Virtual Machines and Instances Provisioning, workload management, and orchestration for Red Hat CloudForms Last Updated: 2020-08-05 Red Hat CloudForms 5.0 Provisioning Virtual Machines and Instances Provisioning, workload management, and orchestration for Red Hat CloudForms Red Hat CloudForms Documentation Team [email protected] Legal Notice Copyright © 2020 Red Hat, Inc. The text of and illustrations in this document are licensed by Red Hat under a Creative Commons Attribution–Share Alike 3.0 Unported license ("CC-BY-SA"). An explanation of CC-BY-SA is available at http://creativecommons.org/licenses/by-sa/3.0/ . In accordance with CC-BY-SA, if you distribute this document or an adaptation of it, you must provide the URL for the original version. Red Hat, as the licensor of this document, waives the right to enforce, and agrees not to assert, Section 4d of CC-BY-SA to the fullest extent permitted by applicable law. Red Hat, Red Hat Enterprise Linux, the Shadowman logo, the Red Hat logo, JBoss, OpenShift, Fedora, the Infinity logo, and RHCE are trademarks of Red Hat, Inc., registered in the United States and other countries. Linux ® is the registered trademark of Linus Torvalds in the United States and other countries. Java ® is a registered trademark of Oracle and/or its affiliates. XFS ® is a trademark of Silicon Graphics International Corp. or its subsidiaries in the United States and/or other countries. MySQL ® is a registered trademark of MySQL AB in the United States, the European Union and other countries. Node.js ® is an official trademark of Joyent. Red Hat is not formally related to or endorsed by the official Joyent Node.js open source or commercial project. The OpenStack ® Word Mark and OpenStack logo are either registered trademarks/service marks or trademarks/service marks of the OpenStack Foundation, in the United States and other countries and are used with the OpenStack Foundation's permission. We are not affiliated with, endorsed or sponsored by the OpenStack Foundation, or the OpenStack community. All other trademarks are the property of their respective owners. Abstract This guide provides instructions for provisioning, service creation, and automation in Red Hat CloudForms. If you have a suggestion for improving this guide or have found an error, please submit a Bugzilla report at http://bugzilla.redhat.com against Red Hat CloudForms Management Engine for the Documentation component. Please provide specific details, such as the section number, guide name, and CloudForms version so we can easily locate the content. Table of Contents Table of Contents .C . H. .A . P. .T .E . R. 1.. .R . E. .D . .H . A. .T . .C . L. .O . U. .D . F. .O . .R .M . .S . .L . I.F .E . C. .Y . C. .L . E. 5. 1.1. PROVISIONING 5 .C . H. .A . P. .T .E . R. 2. P. .R . O. V. .I S. I. O. .N . I.N . .G . .R . E. .Q . U. .E . S. .T .S . 6. 2.1. REQUIREMENTS FOR PROVISIONING VIRTUAL MACHINES AND INSTANCES 6 2.2. REQUIREMENTS FOR PROVISIONING VIRTUAL MACHINES FROM RED HAT VIRTUALIZATION MANAGER 6 2.3. PXE PROVISIONING 7 2.3.1. Connecting to a PXE Server 8 2.3.2. Creating System Image Types for PXE 9 2.3.3. Setting the PXE Image Type for a PXE Image 10 2.4. ISO PROVISIONING 11 2.4.1. Adding an ISO Datastore 11 2.4.2. Refreshing an ISO Datastore 11 2.4.3. Creating System Image Types for ISO 12 2.4.4. Setting the Image Type for an ISO Image 12 2.5. CUSTOMIZATION TEMPLATES FOR VIRTUAL MACHINE AND INSTANCE PROVISIONING 13 2.6. CUSTOMIZATION SCRIPT ADDITIONS FOR VIRTUAL MACHINE AND INSTANCE PROVISIONING 14 2.7. ADDING A CUSTOMIZATION TEMPLATE 14 2.8. PROVISIONING VIRTUAL MACHINES 15 2.8.1. Provisioning a Virtual Machine from a Template 15 2.8.2. Provisioning a Virtual Machine using Cloud-Init via REST API 21 2.8.3. Cloning a Virtual Machine 22 2.8.4. Publishing a Virtual Machine to a Template (VMware Virtual Machines Only) 23 2.8.5. Renaming a Provisioned Virtual Machine (VMware Virtual Machines Only) 23 2.9. PROVISIONING INSTANCES 23 2.9.1. Provisioning an EC2 Instance from an Image 23 2.9.2. Provisioning an OpenStack Instance from an Image, Volume or Volume Snapshot 25 2.9.3. Customizing Provisioning Dialogs 26 2.9.3.1. Adding a Provision Dialog for All Users 27 2.9.3.2. Creating a Custom Provision Dialog 28 2.9.4. Provisioning Profiles 29 2.9.4.1. Creating a Provisioning Profile Instance 29 2.9.4.2. Setting Provisioning Scope Tags 30 2.9.5. Managing Key Pairs 31 .C . H. .A . P. .T .E . R. 3. W. O. R. .K . I.N . G. W. I. T. H. .R .E . Q. U. .E .S . T. .S . .3 . 2. 3.1. PROVISIONING REQUEST APPROVAL METHODS 32 3.2. WORKING WITH PROVISIONING REQUESTS 32 3.2.1. Reloading the Status of Provisioning Requests 32 3.2.2. Approving a Provisioning Request 32 3.2.3. Denying a Provisioning Request 32 3.2.4. Copying a Provisioning Request 33 3.2.5. Editing a Provisioning Request 33 3.2.6. Deleting a Provisioning Request 33 3.2.7. Automatically Approving Requests 33 3.2.7.1. Enabling Global Defaults for Automatic Approval 33 3.2.7.2. Template Specific Approval Defaults 35 3.2.7.3. Assigning Tags to a Template for Auto Approval 35 3.2.7.4. Setting Provisioning Notification Email Addresses 35 .C . H. .A . P. .T .E . R. 4. .F .U . L. .F . I.L . L. I. N. .G . .R . E. .Q . U. .E . S. .T .S . .3 . 7. 1 Red Hat CloudForms 5.0 Provisioning Virtual Machines and Instances 4.1. FULFILLING A REQUEST 37 4.2. DEFAULT EXECUTION STEPS IN STATES INSTANCE 37 4.2.1. Quotas 37 4.2.1.1. Applying User or Group Quotas 38 4.2.1.2. Using Tags for Owner and Group Quotas 38 4.2.1.3. Applying a Tag to a User or User Group 39 4.2.1.4. State Machines 39 4.2.1.5. Customizing Provisioning States 41 4.2.1.6. Editing the Default State Instance 42 4.2.1.7. Viewing the Status of a Provisioning Request 43 4.2.1.8. Viewing a Provisioned Virtual Machine or Instance 43 4.2.1.9. Viewing a Virtual Machine or Instance Summary 43 .C . H. .A . P. .T .E . R. 5. C. .A . T. .A . L. .O . G. S. .A . N. D. S. E. .R . V. .I C. .E . S. .4 .4 . 5.1. GENERIC OBJECTS 44 5.1.1. Viewing Generic Objects Classes 45 5.1.2. Creating Generic Objects Classes 45 5.1.3. Editing Generic Object Classes 45 5.1.4. Removing Generic Objects Classes 46 5.2. SERVICE DIALOGS 46 5.2.1. Adding a Service Dialog 46 5.2.2. Creating a Service Dialog from a Container Template 49 5.2.3. Importing Service Dialogs 49 5.2.4. Exporting Service Dialogs 49 5.3. METHODS 50 5.3.1. Creating a Method to Associate with the Dialog 50 5.3.2. Creating a Method in the Service Class 52 5.3.3. Creating an Instance in the Service Class 53 5.3.4. Associating a Method with an Automate Instance 54 5.4. CATALOGS 54 5.4.1. Creating a Catalog Bundle 55 5.4.2. Creating a Catalog Item 56 5.4.3. Creating a Generic Catalog Item 57 5.4.4. Creating an Ansible Playbook Service Catalog Item 58 5.4.5. Creating an Ansible Tower Service Catalog Item 59 5.4.6. Creating an Amazon Service Catalog Item 60 5.4.7. Creating an Azure Service Catalog Item 61 5.4.8. Creating an OpenShift Template Catalog Item 62 5.4.9. Creating an Orchestration Catalog Item 62 5.4.10. Provisioning a Service 63 5.5. ORCHESTRATION STACKS 63 5.5.1. Creating an Orchestration Template 63 5.5.2. Editing Orchestration Templates 64 5.5.3. Copying Orchestration Templates 64 5.5.4. Deleting Orchestration Templates 64 .C . H. .A . P. .T .E . R. 6. .R .E . T. .I R. .E . M. .E . N. .T . .6 .6 . 6.1. RETIRING VIRTUAL MACHINES 66 6.1.1. Retiring Virtual Machines and Instances 66 6.1.2. Using the Console to Retire a Virtual Machine 66 6.1.3. Retiring a Virtual Machine Immediately 66 6.1.4. Setting a Retirement Date and Time for a Virtual Machine or Instance 66 6.1.5. Removing a Retirement Date for a Virtual Machine or Instance 67 2 Table of Contents 6.2. SETTING RETIREMENT IN A PROVISION REQUEST 67 6.2.1. Scheduling Retirement in a Provision Request 67 6.3. EXTENDING RETIREMENT DATES 68 6.3.1. Creating a Custom Button to Extend Retirement 68 6.3.2. Changing the Number of Days to Extend Retirement 68 3 Red Hat CloudForms 5.0 Provisioning Virtual Machines and Instances 4 CHAPTER 1. RED HAT CLOUDFORMS LIFECYCLE CHAPTER 1. RED HAT CLOUDFORMS LIFECYCLE This guide discusses lifecycle activities such as provisioning and retirement that are part of the Red Hat CloudForms Automate component. Red Hat CloudForms Automate enables real-time, bidirectional process integration and adaptive automation for management events and administrative or operational activities. Operations Management with service level resource enforcement. Resource Management including datastore cleanup, snapshot aging and enforcement, and virtual machine or instance aging and retirement. Configuration and Change Management including enforced closed loop change management.