Packstack–answer-file deployment of multi-node OpenStack environments-two-node

Source: Internet
Author: User

4.1 CentOS Environment Preparation

Goal: Modify Answer-file, place controller+network on one node, compute-storage on another node, deploy a two-node environment using Packstack

Hostname

Ip

Floating IP

Function

Lxp-node1

192.168.11.8

10.33.41.135

Controller+network

Lxp-node2

192.168.11.9

10.33.41.136

Compute+storage

Added in/etc/hosts:

192.168.11.8 Lxp-node1

192.168.11.9 Lxp-node2

10.1.14.235 mirrors.hikvision.com.cn

4.2 Installing Packstack

Yum Install Openstack-packstack-y

Generate Answer-file:

Packstack--gen-answer-file=hcloud.txt

# Packstack--gen-answer-file=hcloud.txt

Modify Hcloud.txt:

(1) Change config_provision_demo=y to N

(2) Modify the following IP settings:

config_controller_host=192.168.11.8

config_compute_hosts=192.168.11.8-192.168.11.9

config_network_hosts=192.168.11.8

config_storage_host=192.168.11.8-192.168.11.9

config_sahara_host=192.168.11.8 ignored because: config_sahara_install=n

config_amqp_host=192.168.11.8

config_mariadb_host=192.168.11.8

config_keystone_ldap_url=ldap://192.168.11.8

Config_nova_network_fixedrange=192.168.32.0/22

config_mongodb_host=192.168.11.8

config_redis_master_host=192.168.11.8

Don't change anything else.

Start deployment:

# Yum Install screen

# screen Packstack--answer-file=hcloud.txt

This only needs to be performed at the control node

Welcome to the Packstack setup utility

The installation log file is available At:/var/tmp/packstack/20160508-231645-zxtev9/openstack-setup.log

Installing:

Clean up [done]

Discovering IP protocol version [done]

Here you need to enter the password manually, which is and All-in-one , Init-host different from single point deployment

[email protected] ' s password:

[email protected] ' s password:

Setting up SSH keys [done]

Preparing servers [done]

When the installation is complete, the following print appears:

Installation completed successfully ******

Additional Information:

*time synchronization installation was skipped. Please note this unsynchronizedtime on server instances might is problem for some OpenStack components.

*warning:networkmanager is active on 192.168.11.9, 192.168.11.8. Openstacknetworking currently does not work on systems that has the Network ManagerService enabled.

*file/root/keystonerc_admin have been created on OpenStack client host192.168.11.8. The command line tools, need to source the file.

* Toaccess the OpenStack Dashboard browse to Http://192.168.11.8/dashboard.

Please, find your login credentials Storedin The keystonerc_admin in your home directory.

* Touse Nagios, browse to Http://192.168.11.8/nagios username:nagiosadmin,password:37c9294b360f417b

*the installation log file is available At:/var/tmp/packstack/20160508-231645-zxtev9/openstack-setup.log

*the generated manifests is available at:/var/tmp/packstack/20160508-231645-zxtev9/manifests installation log:

You can use the command to test:

[Email protected]~ (keystone_admin)]# Cinder service-list

+------------------+---------------+------+---------+-------+----------------------------+-----------------+

|     Binary | Host |  Zone | Status |         State | Updated_at | Disabled Reason |

+------------------+---------------+------+---------+-------+----------------------------+-----------------+

|  Cinder-backup | Lxp-node1 | Nova |   enabled| Up |       2016-05-09t03:43:36.000000 | -        |

|   cinder-scheduler| Lxp-node1 | Nova |   Enabled |       Up |2016-05-09t03:43:42.000000 | -        |

| Cinder-volume | [email protected]| Nova |   Enabled | Up |        2016-05-09t03:43:42.000000 | -       |

+------------------+---------------+------+---------+-------+----------------------------+-----------------+

[Email protected]~ (keystone_admin)]# Nova Service-list

+----+------------------+-----------+----------+---------+-------+----------------------------+---------------- -+

| Id | Binary | Host | Zone | Status | State | Updated_at | Disabled Reason |

+----+------------------+-----------+----------+---------+-------+----------------------------+---------------- -+

| 1 | Nova-consoleauth | Lxp-node1 | Internal |enabled | Up |2016-05-09t03:43:41.000000 | -              |

| 2 | Nova-scheduler | Lxp-node1 | Internal | Enabled | Up | 2016-05-09t03:43:43.000000 | -               |

| 3 | Nova-conductor | Lxp-node1 | Internal | Enabled | Up | 2016-05-09t03:43:45.000000 | -               |

| 4 | Nova-cert | Lxp-node1 | Internal | Enabled |up | 2016-05-09t03:43:41.000000 | |

| 5 | nova-compute | Lxp-node2| Nova | Enabled | Up | 2016-05-09t03:43:44.000000 | -               |

+----+------------------+-----------+----------+---------+-------+----------------------------+---------------- -+

here Nova-compute is installed in the Lxp-node2 , but Cinder-volume is still in Lxp-node1 , it seems there are some problems with the configuration

[[Email protected]~ (keystone_admin)]# grep HOST./hcloud.txt

config_controller_host=192.168.11.8

config_compute_hosts=192.168.11.9

config_network_hosts=192.168.11.8

config_vcenter_host=

config_storage_host=192.168.11.8

config_sahara_host=192.168.11.8

config_amqp_host=192.168.11.8

config_mariadb_host=192.168.11.8

Config_cinder_netapp_hostname=

Config_cinder_netapp_eseries_host_type=linux_dm_mp

#CONFIG_CINDER_NETAPP_TRANSPORT_TYPE, Config_cinder_netapp_hostname,

# Andconfig_cinder_netapp_hostname options to create the URL of used by

Config_manila_netapp_server_hostname=

config_mongodb_host=192.168.11.8

config_redis_master_host=192.168.11.8

config_redis_slave_hosts=

config_redis_sentinel_hosts=

config_redis_sentinel_contact_host=

The reason is that there is no change, no relationship, after the installation of the three-node environment, pay attention to


Packstack–answer-file deployment of multi-node OpenStack environments-two-node

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.