OpenStack (ii) one-click Installation

Source: Internet
Author: User
Tags openvswitch

Here's how Red Hat deploys OpenStack in one click, and here's how to use Packstack to automatically deploy according to the answer file (Answer-file), followed by a separate explanation for each service.

First, preinstallation

1, before the installation, said the official hardware requirements of the minimum configuration:

    • Controller Node:1 processor, 2 GB memory, and 5 GB storage

    • Network Node:1 processor, MB memory, and 5 GB storage

    • Compute Node:1 processor, 2 GB memory, and ten GB storage

2, install the system, it is recommended to minimize installation, LVM, block storage

3. Configure Yum Source (Openstack+rhel)

4, Red Hat Enterprise Linux openstack and NetworkManager conflict!!!

Shut down NetworkManager and start the network service before starting to install OpenStack.

5, we set up the experimental environment, can be the compute node and storage, control node separately installed, can also be mounted on a server; the recommended minimum configuration is two, one for compute, control, storage and other nodes, and another as a compute node.

6, if it is built with the virtual machine environment, do not forget the power-on-machine virtualization features, my two machines are on the VMware Virtual host.

Second, the test environment topology:

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M02/7C/81/wKiom1bR29KBqIpvAAJz3RXhfz0222.png "title=" screen shot 2016-02-28 01.23.56.png "alt=" Wkiom1br29kbqipvaajz3rxhfz0222.png "/>

My test environment is with 172.25.4.10 (ServerA) and 172.25.4.11 (ServerB)

Third, installation

1. Install the Openstack-packstack package on the ServerA

#yum-y Install Openstack-packstack

2. Generate an Answer file Answer.txt

#packstack--gen-answer-file/root/answer.txt

3. Modify the custom answer file Answer.txt, according to their own requirements, change the relevant configuration; e.g.:

config_default_password=mypassword                          //Set Default password config_heat_install=y                                         //Installing the Heat component config_ntp_servers=172.25.254.254                           // Set up a time server config_compute_hosts=172.25.4.10,172.25.4.11        // Install the compute node host config_keystone_admin_pw=redhat                     //keystone Administrator Password config_cinder_volumes_create=n                       //has a Cinder-volume volume group by default. Do not create a test volume group config_lbaas_install=y                                // Install load Balancing as a service component config_neutron_metering_agent_install=y               //enables Ceilometer to detect network data config_neutron_fwaas=y                                 //Configuring firewall as a service config_neutron_ml2_type_drivers=vlan              //Network-driven model with VLAN partitioning network Config_neutron_ml2_tenant_ network_types=vlanconfig_neutron_ml2_vlan_ranges=physnet1:1:1000       // Set the network name (any character) and VLAN number range Config_neutron_ovs_bridge_mappings=physnet1:br-ex    //Set the bridge name (physical network-bound bridge) config_neutron_ovs_bridge_ifaces= br-ex:eth0          //Set the Bridge interface (bridge-bound NIC interface) config_horizon_ssl=y                                   //Installing the Web Management side interface Config_ heat_cfn_install=y                             //supports the HEAT API interface compatible with Amazon Config_ provision_demo=n                               //whether the deployment environment is a demo environment

4. Deploying OpenStack with an answer file, using the Puppet Automatic deployment Tool

#packstack--answer-file/root/answer.txt

The deployment process will probably take around 30min.

5. After the deployment is complete, review the service status of OpenStack

#cat  keystonerc_adminunset os_service_tokenexport os_username=adminexport os_password= Mypasswordexport os_auth_url=http://172.25.4.10:5000/v2.0export ps1= ' [\[email protected]\h  \w (keystone_admin)]\$  ' Export os_tenant_name=adminexport os_region_name=regionone#source  keystonerc_admin                  //Load environment variable #openstack-status                        //View Status == nova services  ==openstack-nova-api:                      activeopenstack-nova-cert:                     activeopenstack-nova-compute:                  activeopenstack-nova-network:                  inactive   (disabled on boot) openstack-nova-scheduler:                activeopenstack-nova-conductor:                active== glance services ==openstack-glance-api :                    activeopenstack-glance-registry:               active== Keystone service ==openstack-keystone:                      inactive   (disabled On boot) == horizon service ==openstack-dashboard:                     301== neutron  services ==neutron-server:                          activeneutron-dhcp-agent:                       activeneutron-l3-agent:                        activeneutron-metadata-agent:                  activeneutron-lbaas-agent:                      activeneutron-openvswitch-agent:               activeneutron-metering-agent:                  active== Swift services ==openstack-swift-proxy:                    activeopenstack-swift-account:                 activeopenstack-swift-container:               activeopenstack-swift-object:                  active== cinder services ==openstack-cinder-api :                    activeopenstack-cinder-scheduler:             activeopenstack-cinder-volume:                 activeopenstack-cinder-backup:                 active==  ceilometer services ==openstack-ceilometer-api:                activeopenstack-ceilometer-central:            activeopenstack-ceilometer-compute:            activeopenstack-ceilometer-collector:          activeopenstack-ceilometer-alarm-notifier:     activeopenstack-ceilometer-alarm-evaluator:   activeopenstack-ceilometer-notification:       active== heat services ==openstack-heat-api:                      activeopenstack-heat-api-cfn:                  activeopenstack-heat-api-cloudwatch:           inactive   (Disabled on boot) openstack-heat-engine:                   active== Support services ==mysqld:                                   active     (disabled on  boot) openvswitch:                             activedbus:                                     activetarget:                                   activerabbitmq-server:                          activememcached:                               active==  keystone users ==warning keystonerc not sourced

6, after the successful installation, the network card configuration has been automatically changed:

[Email protected] ~]# Cat/etc/sysconfig/network-scripts/ifcfg-eth0device=eth0devicetype=ovstype=ovsportovs_ Bridge=br-exonboot=yesbootproto=none[[email protected] ~]# cat/etc/sysconfig/network-scripts/ifcfg-br-exdefroute= yesname=eth0onboot=yesipaddr=172.25.4.10prefix=24gateway=172.25.4.254device=br-exdevicetype=ovsovsbootproto= Nonetype=ovsbridge

Iv. Installation Complete

Browser access after installation: Https://172.25.4.10/log in with a pre-defined admin user and can then perform related actions, such as user management and instance creation.

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M00/7C/80/wKioL1bR4k2iD-iRAANTkhyXBLw891.png "title=" screen shot 2016-02-28 01.49.44.png "alt=" Wkiol1br4k2id-iraantkhyxblw891.png "/> Five,troubleshooting

Errors you may encounter during the installation process:

1. missingrequirements:the Cinder server should contain a Cinder-volumes volume group

Workaround: Create a new Cinder-volumes VG

#pvcreate/dev/sdb1#vgcreate CINDER-VOLUMES/DEV/SDB1

2, NTP error:

Error:/usr/sbin/ntpdate 10.13.25.14 returned 1 instead of one of [0]

09:31:47 ntpdate[4771]: The NTP socket is on use, exiting

Workaround:

#systemctl Stop Ntp.service

Silly white sweet make mistake: NtpServer configuration is itself!!!

3, another NTP error: Mnotice:/stage[main]/main/exec[ntpdate]/returns:25 Feb 09:40:42 ntpdate[7217]: no server suitable for Synchronization found

Workaround:

1) Debug on the server:

[[email protected] ~]# ntpdate -d 10.13.25.1425 feb 09:52:40 ntpdate[ 7260]: ntpdate [email protected] fri oct 16 08:51:51 utc 2015   (1) looking for host 10.13.25.14 and service ntphost found :  servera.pod4.example.comtransmit (10.13.25.14) transmit (10.13.25.14) transmit (10.13.25.14) transmit ( 10.13.25.14) Transmit (10.13.25.14) 10.13.25.14: server dropped: no dataserver  10.13.25.14, port 123stratum 0, precision 0, leap 00, trust  000refid [10.13.25.14], delay 0.00000, dispersion 64.00000transmitted 4, in  filter 4reference time:    00000000.00000000  sun, dec  31 1899 19:00:00.000originate timestamp: 00000000.00000000  sun, dec  31 1899 19:00:00.000transmit timestamp:  da7993be.d66affb9  thu, feb 25 2016   9:52:46.837filter delay:  0.00000  0.00000  0.00000  0.00000          0.00000  0.00000  0.00000   0.00000filter offset: 0.000000 0.000000 0.000000 0.000000          0.000000 0.000000 0.000000 0.000000delay 0.00000,  dispersion 64.00000offset 0.00000025 Feb 09:52:48 ntpdate[7260]: no  Server suitable for synchronization found

2) Check whether the service started successfully, or start if it is not started:

#systemctl Status Ntpd.service

3) Check the version of NTP, if you use the ntp4.2 (including 4.2) after the version, in the definition of restrict used notrust, will cause the above error

# NTPQ-C Version

4) Check that the firewall is blocking UDP 123 port

This article is from "Jason's blog" blog, please be sure to keep this source http://xujunxian.blog.51cto.com/8614409/1745682

OpenStack (ii) one-click Installation

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.