/
Installing OpenStack RHEL 7.2

Installing OpenStack RHEL 7.2

Follow the steps to install the OpenStack package on the system.

  • $ subscription-manager register --username <USERNAME> --password <PASSWORD>
  • $ subscription-manager list --available --all
  • $ subscription-manager list --available | grep -A8 "Red Hat Enterprise Linux Server"
  • $ subscription-manager list --available | grep -A8 "Red Hat Enterprise Linux OpenStack Platform"
  • $ subscription-manager attach --auto
  • $ subscription-manager repos --disable=*
  • $ subscription-manager repos --enable=rhel-7-server-rpms
  • $ subscription-manager repos --enable=rhel-7-server-rh-common-rpms
  • $ subscription-manager repos --enable=rhel-7-server-optional-rpms
  • $ subscription-manager attach --pool=<POOL ID>
  • $ subscription-manager list
  • $ subscription-manager repos --enable=rhel-7-server-openstack-7.0-rpms
  • $ subscription-manager list
  • $ yum install -y yum-utils
  • $ yum –y update
  • $ systemctl disable NetworkManager
  • $ systemctl stop NetworkManager

  • $ yum install -y openstack-packstack

To configure the OpenStack package:

  • packstack --allinone

Sample Configuration Output

[root@rhosp ~]# packstack --allinone
Welcome to the Packstack setup utility

The installation log file is available at:
/var/tmp/packstack/20160128-142827-xesixM/openstack-setup.log
Packstack changed given value to required value /root/.ssh/id_rsa.pub

Installing:
Clean Up                                                   [
DONE ]
Discovering ip protocol version                            [
DONE ]
Setting up ssh keys                                        [
DONE ]
Preparing servers                                          [
DONE ]
Preinstalling Puppet and discovering hosts' details        [
DONE ]
Adding pre install manifest entries                        [
DONE ]
Setting up CACERT                                          [
DONE ]
Adding AMQP manifest entries                               [
DONE ]
Adding MariaDB manifest entries                            [
DONE ]
Fixing Keystone LDAP config parameters to be undef if empty[
DONE ]
Adding Keystone manifest entries                           [ DONE ]
Adding Glance Keystone manifest entries                    [ DONE ]
Adding Glance manifest entries                             [ DONE ]
Adding Cinder Keystone manifest entries                    [ DONE ]
Checking if the Cinder server has a cinder-volumes v       [ DONE ]
Adding Cinder manifest entries                             [ DONE ]
Adding Nova API manifest entries                           [ DONE ]
Adding Nova Keystone manifest entries                      [ DONE ]
Adding Nova Cert manifest entries                          [ DONE ]
Adding Nova Conductor manifest entries                     [ DONE ]
Creating ssh keys for Nova migration                       [ DONE ]
Gathering ssh host keys for Nova migration                 [ DONE ]
Adding Nova Compute manifest entries                       [ DONE ]
Adding Nova Scheduler manifest entries                     [ DONE ]
Adding Nova VNC Proxy manifest entries                     [ DONE ]
Adding OpenStack Network-related Nova manifest entries     [ DONE ]
Adding Nova Common manifest entries                        [ DONE ]
Adding Neutron FWaaS Agent manifest entries                [ DONE ]
Adding Neutron LBaaS Agent manifest entries                [ DONE ]
Adding Neutron API manifest entries                        [ DONE ]
Adding Neutron Keystone manifest entries                   [ DONE ]
Adding Neutron L3 manifest entries                         [ DONE ]
Adding Neutron L2 Agent manifest entries                   [ DONE ]
Adding Neutron DHCP Agent manifest entries                 [ DONE ]
Adding Neutron Metering Agent manifest entries             [ DONE ]
Adding Neutron Metadata Agent manifest entries             [ DONE ]
Checking if NetworkManager is enabled and running          [ DONE ]
Adding OpenStack Client manifest entries                   [ DONE ]
Adding Horizon manifest entries                            [ DONE ]
Adding Swift Keystone manifest entries                     [ DONE ]
Adding Swift builder manifest entries                      [ DONE ]
Adding Swift proxy manifest entries                        [ DONE ]
Adding Swift storage manifest entries                      [ DONE ]
Adding Swift common manifest entries                       [ DONE ]
Adding Provisioning Demo manifest entries                  [ DONE ]
Adding Provisioning Glance manifest entries                [ DONE ]
Adding MongoDB manifest entries                            [ DONE ]
Adding Redis manifest entries                              [ DONE ]
Adding Ceilometer manifest entries                         [ DONE ]
Adding Ceilometer Keystone manifest entries                [ DONE ]
Adding Nagios server manifest entries                      [ DONE ]
Adding Nagios host manifest entries                        [ DONE ]
Adding post install manifest entries                       [ DONE ]
Copying Puppet modules and manifests                       [ DONE ]
Applying 10.36.31.90_prescript.pp
10.36.31.90_prescript.pp:                                  [ DONE ]
Applying 10.36.31.90_amqp.pp
Applying 10.36.31.90_mariadb.pp
10.36.31.90_amqp.pp:                                       [ DONE ]
10.36.31.90_mariadb.pp:                                    [ DONE ]
Applying 10.36.31.90_keystone.pp
Applying 10.36.31.90_glance.pp
Applying 10.36.31.90_cinder.pp
10.36.31.90_keystone.pp:                                   [
DONE ]
10.36.31.90_glance.pp:                                     [
DONE ]
10.36.31.90_cinder.pp:                                     [
DONE ]
Applying 10.36.31.90_api_nova.pp
10.36.31.90_api_nova.pp:                                   [
DONE ]
Applying 10.36.31.90_nova.pp
10.36.31.90_nova.pp:                                       [
DONE ]
Applying 10.36.31.90_neutron.pp
10.36.31.90_neutron.pp:                                    [
DONE ]
Applying 10.36.31.90_osclient.pp
Applying 10.36.31.90_horizon.pp
10.36.31.90_osclient.pp:                                   [
DONE ]
10.36.31.90_horizon.pp:                                    [
DONE ]
Applying 10.36.31.90_ring_swift.pp
10.36.31.90_ring_swift.pp:                                 [
DONE ]
Applying 10.36.31.90_swift.pp
Applying 10.36.31.90_provision_demo.pp
Applying 10.36.31.90_provision_glance
10.36.31.90_swift.pp:                                      [
DONE ]
10.36.31.90_provision_demo.pp:                             [
DONE ]
10.36.31.90_provision_glance:                              [
DONE ]
Applying 10.36.31.90_mongodb.pp
Applying 10.36.31.90_redis.pp
10.36.31.90_mongodb.pp:                                    [
DONE ]
10.36.31.90_redis.pp:                                      [
DONE ]
Applying 10.36.31.90_ceilometer.pp
10.36.31.90_ceilometer.pp:                                 [
DONE ]
Applying 10.36.31.90_nagios.pp
Applying 10.36.31.90_nagios_nrpe.pp
10.36.31.90_nagios.pp:                                     [
DONE ]
10.36.31.90_nagios_nrpe.pp:                                [
DONE ]
Applying 10.36.31.90_postscript.pp
10.36.31.90_postscript.pp:                                 [
DONE ]
Applying Puppet manifests                                  [
DONE ]
Finalizing                                                 [
DONE ]

**** Installation completed successfully ******

Additional information:
* A new answerfile was created in: /root/packstack-answers-20160128-142828.txt
* Time synchronization installation was skipped. Please note that unsynchronized time
on server instances might be problem for some OpenStack components.
* File /root/keystonerc_admin has been created on OpenStack client host 10.36.31.90.
To use the command line tools you need to source the file.
* To access the OpenStack Dashboard browse to http://10.36.31.90/dashboard.
Please, find your login credentials stored in the keystonerc_admin in your home
directory.
* To use Nagios, browse to http://10.36.31.90/nagios username: nagiosadmin, password:
154262e46c914c2b
* The installation log file is available at:
/var/tmp/packstack/20160128-142827-xesixM/openstack-setup.log

* The generated manifests are available at:
/var/tmp/packstack/20160128-142827-xesixM/manifests
Reboot the system once all the packages are installed and configured
[root@rhosp ~]# reboot

Once the system is back online, log in to the OpenStack GUI and change the default password.
The default password is created in the /root/keystonerc_admin file.

[root@rhops2 ~]# cat /root/keystonerc_admin
unset OS_SERVICE_TOKEN
export OS_USERNAME=admin
export OS_PASSWORD=c4b0a987075b44df
export OS_AUTH_URL=http://10.36.31.90:5000/v2.0
export PS1='[\u@\h \W(keystone_admin)]\$ '
export OS_TENANT_NAME=admin
export OS_REGION_NAME=RegionOne

Follow these procedures:
1. Upon login, update the admin credentials.
2. Click “admin” on the top left corner of the screen.
3. Click “Change Password”

4. Click the “Change” button to submit the password change.
5. Once the password is updated, you will be logged out of the current session immediately.

6. Use the new credentials to log in to the GUI.
7. Once the new password has been updated from the GUI session, update the password in
/root/keystone_admin
and save the file.

[root@rhops2 ~]# cat /root/keystonerc_admin
unset OS_SERVICE_TOKEN
export OS_USERNAME=admin
export OS_PASSWORD=<NEW PASSWORD>
export OS_AUTH_URL=http://10.36.31.90:5000/v2.0
export PS1='[\u@\h \W(keystone_admin)]\$ '

export OS_TENANT_NAME=admin
export OS_REGION_NAME=RegionOne

To perform any OpenStack CLI operation, this file needs to be sourced.
[root@rhops2 ~]# source /root/keystonerc_admin
[root@rhops2 ~(keystone_admin)]#

The system will return an error message if the files are not sourced.

[root@rhops2 ~]# neutron port-list
You must provide a username or user ID via --os-username, env[OS_USERNAME] or --os-user-id,
env[OS_USER_ID].