Welcome to Openstack. I am writing this series in 7 parts as I try to cover all the components with fair level of details. In this episode lets go through Installation process via PACKSTACK.
OpenStack is a stack of open source software that service providers can use to setup and run their cloud compute and storage infrastructure.
Different Components of Openstack:
1) Block Storage (Cinder)
2) Compute (Nova)
3) Dashboard (Horizon)
4) Identity Service (Keystone)
5) Image Service (Glance)
6) Networking (Neutron)
7) Object Storage (Swift)
8) Orchestration (Heat)
9) Telemetry (Ceilometer)
With these components 3 main service families exits under OpenStack
- Compute Infrastructure (Nova)
- Storage Infrastructure (Swift)
- Imaging Service (Glance)
I have got 2 servers in my Home lab (Dell Power Edge 2950) with one node as controller and the other as a compute node. The below diagram
Steps followed for Successful Installation.
- Install the Centos OS 7.0 and run the Yum update.
- Disable the security from default enforcing to permissive or disabled state by editing config file. vi /etc/selinux/config .In my cased Selinux is disabled, “SELINUX=disabled”. You can verify it with the command “getenforce”.
- Set the host file with the correct hostname and FQDN and verify that the system can ping with the hostname.
- Reboot the system.
- Disable the following services .systemctl stop firewalldsystemctl disable firewalldsystemctl stop NetworkManagersystemctl disable NetworkManager
-
Enable the RDO repositories,
yum install -y https://www.rdoproject.org/repos/rdo-release.rpm
Here is my answer file , I am mentioning some of the lines which you need to fill as per your own setup. You can find my full answer file here newton-answer
CONFIG_NTP_SERVERS=0.pool.ntp.org,1.pool.ntp.org,2.pool.ntp.org,3.pool.ntp.org
CONFIG_CONTROLLER_HOST=192.168.0.28
CONFIG_COMPUTE_HOSTS=192.168.0.24
CONFIG_NETWORK_HOSTS=192.168.0.28
CONFIG_DEFAULT_PASSWORD=XXXXX
CONFIG_MARIADB_INSTALL=y
CONFIG_GLANCE_INSTALL=y
CONFIG_CINDER_INSTALL=y
CONFIG_NOVA_INSTALL=y
CONFIG_NEUTRON_INSTALL=y
CONFIG_HORIZON_INSTALL=y
CONFIG_SWIFT_INSTALL=y
CONFIG_CEILOMETER_INSTALL=y
CONFIG_NAGIOS_INSTALL=y
CONFIG_KEYSTONE_ADMIN_USERNAME=admin
CONFIG_NAGIOS_PW=XXXXX
CONFIG_KEYSTONE_ADMIN_PW=XXXXX
My installation was finished in 50 minutes, it depends upon the hardware.
let us now check our installation whether all the components are working, we verify it using the command line.
[root@netcon ~]# source keystonerc_admin
[root@netcon ~(keystone_admin)]# rabbitmqctl status
Status of node rabbit@netcon …
[{pid,1269},
{running_applications,[{rabbit,”RabbitMQ”,”3.6.5″},
{rabbit_common,[],”3.6.5″},
{xmerl,”XML parser”,”1.3.10″},
{os_mon,”CPO CXC 138 46″,”2.4″},
{mnesia,”MNESIA CXC 138 12″,”4.13.4″},
{ranch,”Socket acceptor pool for TCP protocols.”,
“1.2.1”},
{sasl,”SASL CXC 138 11″,”2.7″},
{stdlib,”ERTS CXC 138 10″,”2.8″},
{kernel,”ERTS CXC 138 10″,”4.2″}]},
{kernel,{net_ticktime,60}}]
[root@netcon ~(keystone_admin)]# rabbitmqctl list_queues
Listing queues …
dhcp_agent.netcon.ranjeetbadhe.com 0
scheduler 0
cert.netcon.ranjeetbadhe.com 0
l3_agent.netcon.ranjeetbadhe.com 0
cinder-volume_fanout_dda4ba0a25844ff588c127a30af6d42a 0
q-agent-notifier-port-delete 0
consoleauth.netcon.ranjeetbadhe.com 0
q-agent-notifier-security_group-update_fanout_8f2e1560a66246559cf77ec601770cd0 0
q-metering-plugin 0
dhcp_agent 0
notifications.info 0
q-l3-plugin_fanout_61cd7b7a57aa42eea6fa46582c5f01ca 0
q-plugin 0
q-server-resource-versions_fanout_60e4a57aa55a4c74a6e6093099562c31 0
notifications.critical 0
q-agent-notifier-network-update 0
q-agent-notifier-security_group-update.netcon.ranjeetbadhe.com 0
q-metering-plugin_fanout_7bd350c7dc234045b9cc51848f206201 0
conductor_fanout_95492d2873344c2fa12b610c50b0d47f 0
q-l3-plugin_fanout_f533cb277a834621a8eddd06441167f9 0
conductor_fanout_071c45a7f6244605840e2f625cc2da5e 0
metering_agent 0
consoleauth_fanout_342d10c891804a61a5e9aeeeee847930 0
notifications.audit 0
q-plugin.netcon.ranjeetbadhe.com 0
conductor 0
q-reports-plugin.netcon.ranjeetbadhe.com 0
root@netcon ~(keystone_admin)]# rabbitmqctl list_exchanges
root@netcon ~(keystone_admin)]# rabbitmqctl list_policies
root@netcon ~(keystone_admin)]# rabbitmqctl list_queues durable messages_ready
root@netcon ~(keystone_admin)]# rabbitmqctl list_bindings | more
root@netcon ~(keystone_admin)]# openstack user list
+———————————-+————+
| ID | Name |
+———————————-+————+
| d9011c1e30864e489e12305b7aef6cd3 | admin |
| bdc406902f85438fad2d2e1f8f9b47d7 | neutron |
| c9a62e873a824d3dbd467fea74fef82a | gnocchi |
| ec007dbc5c1f43b6b4db8d3676fc10e8 | aodh |
| 4b9ed0166df7450aa9e4059a176e69ba | nova |
| 8e0d3ebb3a4f4fbcbeddb14e36805415 | glance |
| 96d97b2cb2414744b3d895aacd422101 | ceilometer |
| d98c48a2bf984ee88330c6dc2b117d81 | cinder |
| 6fb35f168b97470b9df48cdadb9e87d8 | swift |
+———————————-+————+
root@netcon ~(keystone_admin)]# openstack endpoint show keystone
+————–+———————————-+
| Field | Value |
+————–+———————————-+
| adminurl | http://192.168.0.28:35357/v2.0 |
| enabled | True |
| id | 8db073e17abf463687d952431d4c088d |
| internalurl | http://192.168.0.28:5000/v2.0 |
| publicurl | http://192.168.0.28:5000/v2.0 |
| region | RegionOne |
| service_id | d29740f46972447890f6121d95c70cc3 |
| service_name | keystone |
| service_type | identity |
+————–+———————————-+
root@netcon ~(keystone_admin)]# openstack endpoint show cinder
+————–+——————————————-+
| Field | Value |
+————–+——————————————-+
| adminurl | http://192.168.0.28:8776/v1/%(tenant_id)s |
| enabled | True |
| id | 341afcc8bb544778abf78097cd852ab7 |
| internalurl | http://192.168.0.28:8776/v1/%(tenant_id)s |
| publicurl | http://192.168.0.28:8776/v1/%(tenant_id)s |
| region | RegionOne |
| service_id | 9386a33ff9b440e1b33ba60116ec76e4 |
| service_name | cinder |
| service_type | volume |
+————–+——————————————-+
root@netcon ~(keystone_admin)]# openstack endpoint show glance
+————–+———————————-+
| Field | Value |
+————–+———————————-+
| adminurl | http://192.168.0.28:9292 |
| enabled | True |
| id | 13bfe4d48a104ae58ac5ce7904ac9f53 |
| internalurl | http://192.168.0.28:9292 |
| publicurl | http://192.168.0.28:9292 |
| region | RegionOne |
| service_id | 132d859a479547509257f8a3cc7e7e31 |
| service_name | glance |
| service_type | image |
+————–+———————————-+
root@netcon ~(keystone_admin)]# openstack network agent list
+————————-+——————–+————————-+——————-+——-+——-+—————————+
| ID | Agent Type | Host | Availability Zone | Alive | State | Binary |
+————————-+——————–+————————-+——————-+——-+——-+—————————+
| 05c037c2-8da7-4eaa- | Open vSwitch agent | compute.ranjeetbadhe.co | None | False | UP | neutron-openvswitch-agent |
| a2d2-ff60c87b526e | | m | | | | |
| 29083f28-289d-4764-8421 | DHCP agent | netcon.ranjeetbadhe.com | nova | True | UP | neutron-dhcp-agent |
| -7d1bff547c3d | | | | | | |
| 513145ed-4be0-4957 | L3 agent | netcon.ranjeetbadhe.com | nova | True | UP | neutron-l3-agent |
| -88bd-07f3ec4d9bc0 | | | | | | |
| 844c0dbe-bf7b-4306-a5f2 | Metering agent | netcon.ranjeetbadhe.com | None | True | UP | neutron-metering-agent |
| -8366a40494f6 | | | | | | |
| c5980759-264d- | Open vSwitch agent | netcon.ranjeetbadhe.com | None | True | UP | neutron-openvswitch-agent |
| 4b82-9fd2-963c9550534c | | | | | | |
| d5532b23-29e9-48cd- | Metadata agent | netcon.ranjeetbadhe.com | None | True | UP | neutron-metadata-agent |
| 8a82-2631d70e4316 | | | | | | |
root@netcon ~(keystone_admin)]# openstack network agent show 29083f28-289d-4764-8421-7d1bff547c3d
+———————+————————————————————————————————————————+
| Field | Value |
+———————+————————————————————————————————————————+
| admin_state_up | UP |
| agent_type | DHCP agent |
| alive | True |
| availability_zone | nova |
| binary | neutron-dhcp-agent |
| configurations | dhcp_driver=’neutron.agent.linux.dhcp.Dnsmasq’, dhcp_lease_duration=’86400′, log_agent_heartbeats=’False’, |
| | networks=’0′, notifies_port_ready=’True’, ports=’0′, subnets=’0′ |
| created_at | 2017-10-22 06:06:28 |
| description | None |
| heartbeat_timestamp | 2017-12-02 17:08:26 |
| host | netcon.ranjeetbadhe.com |
| id | 29083f28-289d-4764-8421-7d1bff547c3d |
| started_at | 2017-12-01 02:05:47 |
| topic | dhcp_agent |
+———————+——————————————————————————————————-
+————————-+——————–+————————-+——————-+——-+——-+——————–