Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.
Chapter 7. Additional Procedures for Non-Director Environments
The follow sections outline some additional procedures for Red Hat OpenStack Platform environments not managed with director. These steps accommodate changes within the OpenStack Platform ecosystem and are best performed after an upgrade to Red Hat OpenStack Platform 10.
7.1. Upgrading OpenStack Telemetry API to a WSGI Service Link kopierenLink in die Zwischenablage kopiert!
This step upgrades the OpenStack Telemetry (ceilometer) API to run as a Web Server Gateway Interface (WSGI) applet under httpd instead of a standalone service. This process disables the standalone openstack-ceilometer-api service and installs the necessary configuration to enable the WSGI applet.
Disable the OpenStack Telemetry service. This step varies based on whether you use highly available controller nodes or not.
For environments without high availability:
sudo systemctl stop openstack-ceilometer-api
$ sudo systemctl stop openstack-ceilometer-apiCopy to Clipboard Copied! Toggle word wrap Toggle overflow For environments with high availability:
sudo pcs resource disable openstack-ceilometer-api
$ sudo pcs resource disable openstack-ceilometer-apiCopy to Clipboard Copied! Toggle word wrap Toggle overflow
On each controller, copy the OpenStack Telemetry service WSGI applet (
/lib/python2.7/site-packages/ceilometer/api/app.wsgi) to a new directory in/var/www/cgi-bin/. For example:sudo mkdir /var/www/cgi-bin/ceilometer cp /lib/python2.7/site-packages/ceilometer/api/app.wsgi /var/www/cgi-bin/ceilometer/app
$ sudo mkdir /var/www/cgi-bin/ceilometer $ cp /lib/python2.7/site-packages/ceilometer/api/app.wsgi /var/www/cgi-bin/ceilometer/appCopy to Clipboard Copied! Toggle word wrap Toggle overflow On each controller, create a virtual host configuration file (
10-ceilometer_wsgi.conf) for the OpenStack Telemetry service. Save this file in/etc/httpd/conf.d/. The contents of the virtual host file should resemble the following:Copy to Clipboard Copied! Toggle word wrap Toggle overflow Restart the
httpdservice. This step varies based on whether you use highly available controller nodes or not.For environments without high availability:
sudo systemctl restart httpd
$ sudo systemctl restart httpdCopy to Clipboard Copied! Toggle word wrap Toggle overflow For environments with high availability:
sudo pcs resource restart httpd
$ sudo pcs resource restart httpdCopy to Clipboard Copied! Toggle word wrap Toggle overflow
7.2. Migrating the OpenStack Telemetry Alarming Database Link kopierenLink in die Zwischenablage kopiert!
As a part of the upgrade, aodh-dbsync tool creates a new MariaDB database. However, the previous database used MongoDB. This procedure migrates the past OpenStack Telemetry Alarming (aodh) service’s database from MongoDB to MariaDB. Perform this step after upgrading your environment.
Edit the /etc/aodh/aodh.conf configuration file and change the database connection to a MariaDB database. For example:
[database] connection = mysql+pymysql://username:password@host/aodh?charset=utf8
[database]
connection = mysql+pymysql://username:password@host/aodh?charset=utf8
Run the following command to perform the migration:
sudo /usr/bin/aodh-data-migration \ --nosql-conn `crudini --get /etc/ceilometer/ceilometer.conf database connection` \ --sql-conn `crudini --get /etc/aodh/aodh.conf database connection`
$ sudo /usr/bin/aodh-data-migration \
--nosql-conn `crudini --get /etc/ceilometer/ceilometer.conf database connection` \
--sql-conn `crudini --get /etc/aodh/aodh.conf database connection`
This command migrates data from MongoDB (through --nosql-conn) to MariaDB (through --sql-conn).