Openstack installatie 2

Openstack installeren is erg makkelijk. Dit kan je op een eigen server doen maar ook in een VM. Hou er wel rekening mee dat geheugen en CPU voldoende aanwezig moeten zijn.

Volg de Quickstart van Red Hat en je heb je eigen cloud.

De prerequisites zijn echter niet volledig beschreven om de installatie volledig te laten afronden.

Zorg tenminste dat je:

  • genoeg geheugen heb
  • je / (root) minimaal 20G groot is
  • je /var minimaal 20G groot is
  • je nog vrije ruimte over heb in je lvm

Dus:

  • installeer je CentOS server
  • yum -y update
  • ssh-keygen
  • ssh-copy-id -i .ssh/id_rsa.pub root@[servernaam]
  • reboot
  • yum install -y http://rdo.fedorapeople.org/rdo-release.rpm
  • yum install -y openstack-packstack
  • packstack –allinone
  • alle vragen kan je  simpel door enteren, voor wachtwoorden is het altijd verstandig om iets veiligs te kiezen.
  • wacht, serieus, dit gaat wel een poosje duren (bij mij 48 min)

De vragen die gesteld gaan worden zijn

[root@matrix ~]# time packstack –allinone
Welcome to Installer setup utility
Enter the path to your ssh Public key to install on servers  [/root/.ssh/stack.pub] : 
Should Packstack install MySQL DB [y|n]  [y] : 
Should Packstack install OpenStack Image Service (Glance) [y|n]  [y] : 
Should Packstack install OpenStack Block Storage (Cinder) service [y|n]  [y] : 
Should Packstack install OpenStack Compute (Nova) service [y|n]  [y] : 
Should Packstack install OpenStack Networking (Neutron) service [y|n]  [y] : 
Should Packstack install OpenStack Dashboard (Horizon) [y|n]  [y] : 
Should Packstack install OpenStack Object Storage (Swift) [y|n]  [y] : 
Should Packstack install OpenStack Metering (Ceilometer) [y|n]  [y] : 
Should Packstack install OpenStack Orchestration (Heat) [y|n]  [n] : 
Should Packstack install OpenStack client tools [y|n]  [y] : 
Enter a comma separated list of NTP server(s). Leave plain if Packstack should not install ntpd on instances.: 
Should Packstack install Nagios to monitor OpenStack hosts [y|n]  [y] : 
Enter a comma separated list of server(s) to be excluded. Leave plain if you don't need to exclude any server.: 
Do you want to run OpenStack services in debug mode [y|n]  [n] : 
Do you want to use VMware vCenter as hypervisor and datastore [y|n]  [n] : 
Enter the IP address of the MySQL server  [192.168.123.10] : 
Enter the password for the MySQL admin user :
Confirm password :
Set the server for the AMQP service (qpid, rabbitmq)?  [qpid|rabbitmq]  [rabbitmq] : 
Enter the IP address of the AMQP service  [192.168.123.10] : 
Enable SSL for the AMQP service? [y|n]  [n] : 
Enable Authentication for the AMQP service? [y|n]  [n] : 
Enter the IP address of the Keystone server  [192.168.123.10] : 
Enter the password for the Keystone admin user :
Confirm password :
Enter the password for the Keystone demo user :
Confirm password :
Enter the IP address of the Glance server  [192.168.123.10] : 
Enter the IP address of the Cinder server  [192.168.123.10] : 
Enter the Cinder backend to be configured [lvm|gluster|nfs|vmdk]  [lvm] : 
Should Cinder's volumes group be created (for proof-of-concept installation)? [y|n]  [y] : 
Enter Cinder's volumes group usable size  [20G] : 
Enter the IP address of the Nova API service  [192.168.123.10] : 
Enter the IP address of the Nova Cert service  [192.168.123.10] : 
Enter the IP address of the Nova VNC proxy  [192.168.123.10] : 
Enter a comma separated list of IP addresses on which to install the Nova Compute services  [192.168.123.10] : 
Enter the IP address of the Nova Conductor service  [192.168.123.10] : 
Enter the IP address of the Nova Scheduler service  [192.168.123.10] : 
Enter the CPU overcommitment ratio. Set to 1.0 to disable CPU overcommitment  [16.0] : 
Enter the RAM overcommitment ratio. Set to 1.0 to disable RAM overcommitment  [1.5] : 
Enter the IP address of the Neutron server  [192.168.123.10] : 
Enter a comma separated list of IP addresses on which to install the Neutron L3 agent  [192.168.123.10] : 
Enter the bridge the Neutron L3 agent will use for external traffic, or 'provider' if using provider networks  [br-ex] : 
Enter a comma separated list of IP addresses on which to install Neutron DHCP agent  [192.168.123.10] : 
Enter a comma separated list of IP addresses on which to install Neutron LBaaS agent: 
Enter the name of the L2 plugin to be used with Neutron [linuxbridge|openvswitch|ml2]  [openvswitch] : 
Enter a comma separated list of IP addresses on which to install the Neutron metadata agent  [192.168.123.10] : 
Enter the type of network to allocate for tenant networks [local|vlan|gre|vxlan]  [local] : 
Enter a comma separated list of VLAN ranges for the Neutron openvswitch plugin: 
Enter a comma separated list of bridge mappings for the Neutron openvswitch plugin: 
Enter a comma separated list of OVS bridge:interface pairs for the Neutron openvswitch plugin: 
Enter the IP address of the client server  [192.168.123.10] : 
Enter the IP address of the Horizon server  [192.168.123.10] : 
Would you like to set up Horizon communication over https [y|n]  [n] : 
Enter the IP address of the Swift proxy service  [192.168.123.10] : 
Enter the Swift Storage servers e.g. host/dev,host/dev  [192.168.123.10] : 
Enter the number of swift storage zones, MUST be no bigger than the number of storage devices configured  [1] : 
Enter the number of swift storage replicas, MUST be no bigger than the number of storage zones configured  [1] : 
Enter FileSystem type for storage nodes [xfs|ext4]  [ext4] : 
Enter the size of the storage device (eg. 2G, 2000M, 2000000K)  [2G] : 
Would you like to provision for demo usage and testing? [y|n]  [y] : 
Would you like to configure Tempest (OpenStack test suite)? [y|n]  [n] : 
Enter the network address for the floating IP subnet:  [172.24.4.224/28] : 
Would you like to configure the external ovs bridge? [y|n]  [n] : 
Enter the IP address of the Ceilometer server  [192.168.123.10] : 
Enter the IP address of the mongodb server  [192.168.123.10] : 
Enter the IP address of the Nagios server  [192.168.123.10] : 
Enter the password for the nagiosadmin user :
To subscribe each server to EPEL enter "y" [y|n]  [y] : 
Enter a comma separated list of URLs to any additional yum repositories to install: 
To subscribe each server to Red Hat enter a username here: 
To subscribe each server to Red Hat enter your password here :
To subscribe each server to Red Hat Enterprise Linux 6 Server Beta channel (only needed for Preview versions of RHOS) enter "y" [y|n]  [n] : 
To subscribe each server with RHN Satellite enter RHN Satellite server URL: 

Installer will be installed using the following configuration:
==============================================================
ssh-public-key:                /root/.ssh/stack.pub
os-mysql-install:              y
os-glance-install:             y
os-cinder-install:             y
os-nova-install:               y
os-neutron-install:            y
os-horizon-install:            y
os-swift-install:              y
os-ceilometer-install:         y
os-heat-install:               n
os-client-install:             y
ntp-servers:                   
nagios-install:                y
exclude-servers:               
os-debug-mode:                 n
os-vmware:                     n
mysql-host:                    192.168.123.10
mysql-pw:                      ********
amqp-server:                   rabbitmq
amqp-host:                     192.168.123.10
amqp-enable-ssl:               n
amqp-enable-auth:              n
keystone-host:                 192.168.123.10
keystone-admin-passwd:         ********
keystone-demo-passwd:          ********
glance-host:                   192.168.123.10
cinder-host:                   192.168.123.10
cinder-backend:                lvm
cinder-volumes-create:         y
cinder-volumes-size:           20G
novaapi-host:                  192.168.123.10
novacert-host:                 192.168.123.10
novavncproxy-hosts:            192.168.123.10
novacompute-hosts:             192.168.123.10
novaconductor-host:            192.168.123.10
novasched-host:                192.168.123.10
novasched-cpu-allocation-ratio:16.0
novasched-ram-allocation-ratio:1.5
neutron-server-host:           192.168.123.10
neutron-l3-hosts:              192.168.123.10
neutron-l3-ext-bridge:         br-ex
neutron-dhcp-hosts:            192.168.123.10
neutron-lbaas-hosts:           
neutron-l2-plugin:             openvswitch
neutron-metadata-hosts:        192.168.123.10
neutron-l2-agent:              openvswitch
neutron-ovs-tenant-network-type:local
neutron-ovs-vlan-ranges:       
neutron-ovs-bridge-mappings:   
neutron-ovs-bridge-interfaces: 
osclient-host:                 192.168.123.10
os-horizon-host:               192.168.123.10
os-horizon-ssl:                n
os-swift-proxy:                192.168.123.10
os-swift-storage:              192.168.123.10
os-swift-storage-zones:        1
os-swift-storage-replicas:     1
os-swift-storage-fstype:       ext4
os-swift-storage-size:         2G
provision-demo:                y
provision-tempest:             n
provision-demo-floatrange:     172.24.4.224/28
provision-tempest-repo-uri:    https://github.com/openstack/tempest.git
provision-tempest-repo-revision:master
provision-all-in-one-ovs-bridge:n
ceilometer-host:               192.168.123.10
mongodb-host:                  192.168.123.10
nagios-host:                   192.168.123.10
nagios-passwd:                 ********
use-epel:                      y
additional-repo:               
rh-username:                   
rh-password:                   
rh-beta-repo:                  n
rhn-satellite-server:          
Proceed with the configuration listed above? (yes|no): 

Na installatie staat er op het scherm dat je kan inloggen.

  • http://<serverip>/dashboard
  • http://<serverip>/nagios

Je inlognaam zal admin zijn, je password staat in de keystonerc_admin in je home. Voor nagios moet je de packstack-answers-[datum]-[tijd].txt file even doorlezen. Of login en doe een

cat packstack-answers-* | grep NAGIOS_PW

Je heb nu een (web)omgeving om je nieuwe cloud te bekijken.

Een vervolg stap zal zijn om je netwerk op orde te maken, hier kom ik (hopelijk) later op terug.

 

2 thoughts on “Openstack installatie

  1. Reply admin jun 4,2014 21:04

    Aangepast voor een ‘ icehouse’ release. Tevens de ssh config (aanmaken key) toegevoegd.

  2. Reply Soran Djaff aug 11,2014 18:15

    goed uitgelegd, bedankt

Leave a Reply