Search

Chapter 3. Adding an OpenStack Cloud Provider

download PDF

CloudForms Management Engine supports operating with the OpenStack admin tenant. When creating an OpenStack provider in CloudForms Management Engine, select the OpenStack provider’s admin user because it is the default administrator of the OpenStack admin tenant. When using the admin credentials, a user in CloudForms Management Engine provisions into the admin tenant, and sees images, networks, and instances that are associated with the admin tenant.

  1. Navigate to Clouds Providers.
  2. Click 1847 (Configuration), then click 1848 (Add a New Cloud Provider).
  3. Enter a Name for the provider.
  4. From the Type drop down menu select OpenStack.
  5. Enter the Host Name (or IPv4 or IPv6 address) of the provider.

    Important

    The Host Name must use a unique fully qualified domain name.

  6. Enter the API Port of your Keystone service. The default port is 5000.

    Important

    If the Keystone service is configured to use SSL, you must enter the SSL port for Keystone.

  7. Select the appropriate API Version from the list. The default is Keystone v2.
  8. Select the appropriate Zone for the provider. By default, the zone is set to default.
  9. In the Credentials area, under Default, provide the login credentials required for the Keystone user:

    Important

    To enable discovery of OpenStack cloud providers, ensure that the iptables for the OpenStack host providing Keystone services allows port 5000 access to all hosts on the same network.

    • Enter the user name in the Username field.
    • Enter the user password in the Password field.
    • Confirm the user password in the Confirm Password field.
    • Click Validate to confirm CloudForms Management Engine can connect to the OpenStack Infrastructure instance.
  10. You can use AMPQ if ceilometer is not configured for Events. If AMQP credentials were changed during the OpenStack provider install, use the AMQP tab of the Credentials area to provide the login credentials required for the Advanced Message Queuing Protocol messaging service on your OpenStack Nova component:

    • Enter the administrative user name in the Username field.
    • Enter the user password in the Password field.
    • Confirm the user password in the Confirm Password field.
    • Click Validate to confirm CloudForms Management Engine can connect to the messaging service.

      Note

      To enable ceilometer to store events sent by OpenStack services, you will need to configure the following:

      • Undercloud - Before running openstack undercloud install, edit undercloud.conf by setting store_events to true.
      • Overcloud - On your controller, create an additional environment file called ceilometer.yaml with the following options:
      parameter_defaults:
        CeilometerStoreEvents: true

      Then, add this environment file to the overcloud deploy command, for example:

      openstack overcloud deploy --templates -e ~/ceilometer.yaml
  11. Click Add.
Note

In order to collect inventory and metrics from an OpenStack environment, the CloudForms Management Engine Appliance requires that the adminURL endpoint for the OpenStack environment should be on a non-private network. Hence, the OpenStack adminURL endpoint should be assigned an IP address other than 192.168.x.x. Additionally, make sure that all the Keystone endpoints must be accessbile, otherwise refresh will fail.

Note

For Red Hat CloudForms to be able to receive events from a Red Hat OpenStack provider, the OpenStack configuration file must be modified. Specifically, the notification_driver field must be defined.

For Nova and Heat, in order to start getting notifications, manually change the configuration files as below and restart services.

/etc/heat/heat.conf
notification_driver=glance.openstack.common.notifier.rpc_notifier
notification_topics=notifications
/etc/nova/nova.conf
notification_driver=messaging
notification_topics=notifications
Red Hat logoGithubRedditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

© 2024 Red Hat, Inc.