此内容没有您所选择的语言版本。
Chapter 4. Adding an OpenStack Infrastructure Provider
After initial installation and creation of a Red Hat CloudForms environment, add an OpenStack infrastructure provider to the appliance. Red Hat CloudForms supports operating with the OpenStack admin
tenant. When creating an OpenStack infrastructure provider in Red Hat CloudForms, select the OpenStack infrastructure provider’s admin
user because it is the default administrator of the OpenStack admin
tenant. When using the admin
credentials, a user in Red Hat CloudForms provisions into the admin
tenant, and sees images, networks, and instances that are associated with the admin
tenant.
- You can set whether Red Hat CloudForms should use the Telemetry service or Advanced Message Queueing Protocol (AMQP) for event monitoring. If you choose Telemetry, you should first configure the ceilometer service on the undercloud to store events. See Section 4.1, “Configuring the Undercloud to Store Events” for instructions. For more information, see OpenStack Telemetry (ceilometer) in the Red Hat OpenStack Platform Architecture Guide.
- To authenticate the provider using a self-signed Certificate Authority (CA), configure the CloudForms appliance to trust the certificate using the steps in Appendix A, Using a Self-Signed CA Certificate before adding the provider.
-
Navigate to
. -
Click
(Configuration), then click
(Add a New Infrastructure Provider).
- Enter the Name of the provider to add. The Name is how the device is labeled in the console.
- Select OpenStack Platform Director from the Type list.
Select the API Version of your OpenStack provider’s Keystone service from the list. The default is
Keystone v2
.Note- With Keystone API v3, domains are used to determine administrative boundaries of service entities in OpenStack. Domains allow you to group users together for various purposes, such as setting domain-specific configuration or security options. For more information, see OpenStack Identity (keystone) in the Red Hat OpenStack Platform Architecture Guide.
- The provider you are creating will be able to see projects for the given domain only. To see projects for other domains, add it as another cloud provider. For more information on domain management in OpenStack, see Domain Management in the Red Hat OpenStack Platform Users and Identity Management Guide.
Select the appropriate Zone for the provider. By default, the zone is set to default.
NoteFor more information, see the definition of host aggregates and availability zones in OpenStack Compute (nova) in the Red Hat OpenStack Platform Architecture Guide.
In the Default tab, under Endpoints, configure the host and authentication details of your OpenStack provider:
Select a Security Protocol method to specify how to authenticate the provider:
- SSL without validation: Authenticate the provider insecurely using SSL.
- SSL: Authenticate the provider securely using a trusted Certificate Authority. Select this option if the provider has a valid SSL certificate and it is signed by a trusted Certificate Authority. No further configuration is required for this option. This is the recommended authentication method.
- Non-SSL: Connect to the provider insecurely using only HTTP protocol, without SSL.
- Enter the Host Name or IP address(IPv4 or IPv6) of the provider. If your provider is an undercloud, use its hostname (see Setting the Hostname for the System in Red Hat OpenStack Platform Director Installation and Usage for more details)
- In API Port, set the public port used by the OpenStack Keystone service. By default, OpenStack uses port 5000 for non-SSL security protocol. For SSL, API port is 13000 by default.
- Select the appropriate Security Protocol used for authenticating with your OpenStack provider.
- In the Username field, enter the name of an OpenStack user with privileged access (for example, admin). Then, provide its corresponding password in the Password and Confirm Password fields.
- Click Validate to confirm Red Hat CloudForms can connect to the OpenStack provider.
Next, configure how Red Hat CloudForms should receive events from the OpenStack provider. Click the Events tab in the Endpoints section to start.
- To use the Telemetry service of the OpenStack provider, select Ceilometer. Before you do so, the provider must first be configured accordingly. See Section 4.1, “Configuring the Undercloud to Store Events” for details.
If you prefer to use the AMQP Messaging bus instead, select AMQP. When you do: In Hostname (or IPv4 or IPv6 address) (of the Events tab, under Endpoints), enter the public IP or fully qualified domain name of the AMQP host.
- In the API Port, set the public port used by AMQP. By default, OpenStack uses port 5672 for this.
- In the Username field, enter the name of an OpenStack user with privileged access (for example, admin). Then, provide its corresponding password in the Password and Confirm Password fields.
- Click Validate to confirm the credentials.
You can also configure SSH access to all hosts managed by the OpenStack infrastructure provider. To do so, click on the RSA key pair tab in the Endpoints section.
- From there, enter the Username of an account with privileged access.
- If you selected SSL in Endpoints > Default > Security Protocol earlier, use the Browse button to find and set a private key.
- Click Add after configuring the infrastructure provider.
Red Hat CloudForms requires that the adminURL
endpoint for all OpenStack services be on a non-private network. Accordingly, assign the adminURL endpoint an IP address of something other than 192.168.x.x
. The adminURL
endpoint must be accessible to the Red Hat CloudForms appliance that is responsible for collecting inventory and gathering metrics from the OpenStack environment. Additionally, all the Keystone endpoints must be accessible, otherwise refresh will fail.
4.1. Configuring the Undercloud to Store Events
To allow Red Hat CloudForms to receive events from a Red Hat OpenStack Platform environment, you must configure the notification_driver option for the Compute service and Orchestration service in that environment. To do so, edit undercloud.conf, and set store_events to true before installing the undercloud. See Installing the Undercloud and Configuring the Director in Red Hat OpenStack Platform Director Installation and Usage for related details.