神刀安全网

RDO Triple0 QuickStart HA Setup on Intel Core i7-4790 Desktop

This posting follows up Deploying OpenStack on just one hosted server but is focused on utilizing i7 4790/4770  CPUs  with inexpensive boards like ASUS Z97-P having 32 GB RAM.  As remote workstation C2D E8400 with 8 GB RAM has been used . OS installed on both PCs was CentOS 7.2 (Release 1604). Mentioned  environment allows in about couple of hours to obtain stable working configuration based on ha.yml template :-

######################

# Template code

######################

compute_memory: 6144

compute_vcpu:1

undercloud_memory: 8192

# Giving the undercloud additional CPUs can greatly improve heat’s

# performance (and result in a shorter deploy time).

undercloud_vcpu: 4

# Create three controller nodes and one compute node.

overcloud_nodes:

– name: control_0

flavor: control

– name: control_1

flavor: control

– name: control_2

flavor: control

– name: compute_0

flavor: compute

# We don’t need introspection in a virtual environment (because we are

# creating all the "hardware" we really know the necessary

# information).

introspect: false

# Tell tripleo about our environment.

network_isolation: true

extra_args: >-

–control-scale 3 –neutron-network-type vxlan

–neutron-tunnel-types vxlan

-e /usr/share/openstack-tripleo-heat-templates/environments/puppet-pacemaker.yaml

–ntp-server pool.ntp.org

deploy_timeout: 75

tempest: false

pingtest: true

**********************************************************************************

Fist fix bugs on Server mentioned in link above on the Server’s  Desktop

and run  `yum groupinstall "Virtualization Host"`

**********************************************************************************

Then start on workstation :-

$ git clone https://github.com/openstack/tripleo-quickstart

$ cd tripleo-quickstart

$ sudo bash quickstart.sh –install-deps

$ sudo yum -y  install redhat-rpm-config

$ export VIRTHOST=192.168.1.75 #put your own IP here

$ ssh-keygen

$ ssh-copy-id root@$VIRTHOST

$ ssh root@$VIRTHOST uname -a # no root login prompt

Then run under tripleo-quickstart

$ bash quickstart.sh –config ./config/general_config/ha.yml  $VIRTHOST

If everything went well you will be brought back to command prompt and see message  

##################################

Virtual Environment Setup Complete

##################################

Access the undercloud by:

ssh -F /home/marcos/.quickstart/ssh.config.ansible undercloud

There are scripts in the home directory to continue the deploy:

undercloud-install.sh will run the undercloud install

undercloud-post-install.sh will perform all pre-deploy steps

overcloud-deploy.sh will deploy the overcloud

overcloud-deploy-post.sh will do any post-deploy configuration

overcloud-validate.sh will run post-deploy validation

During overcloud deployment open remote ssh session to server and run top

You will see that memory allocation matches your  ha.yml

When done : su – stack on Server

[root@ServerCentOS72 ~]# su – stack

Last login: Fri Jun  3 10:47:22 MSK 2016 from 192.168.1.54 on pts/0

[stack@ServerCentOS72 ~]$ virsh list

Id    Name                           State

—————————————————-

2     undercloud                     running

7     compute_0                      running

8     control_0                      running

9     control_1                      running

10    control_2                      running

[stack@ServerCentOS72 ~]$ virsh dumpxml undercloud | grep cpu

<vcpu placement=’static’>4</vcpu>

[stack@ServerCentOS72 ~]$ virsh dumpxml undercloud | grep memory

<memory unit=’KiB’>8388608</memory>

[stack@ServerCentOS72 ~]$ virsh dumpxml control_0  | grep memory

<memory unit=’KiB’>6291456</memory>

[stack@ServerCentOS72 ~]$ virsh dumpxml control_0  | grep cpu

<vcpu placement=’static’>1</vcpu>

<cpu mode=’host-passthrough’/>

[stack@ServerCentOS72 ~]$ virsh dumpxml compute_0  | grep cpu

<vcpu placement=’static’>1</vcpu>

<cpu mode=’host-passthrough’/>

[stack@ServerCentOS72 ~]$ virsh dumpxml compute_0  | grep memory

<memory unit=’KiB’>6291456</memory>

***************************************

Up on completion of last script run :-

***************************************

[stack@undercloud ~]$ . stackrc

[stack@undercloud ~]$ heat stack-list

+--------------------------------------+------------+-----------------+---------------------+--------------+  | id                                   | stack_name | stack_status    | creation_time       | updated_time |  +--------------------------------------+------------+-----------------+---------------------+--------------+  | 0c6b8205-be86-4a24-be36-fd4ece956c6d | overcloud  | CREATE_COMPLETE | 2016-06-03T08:14:19 | None         |  +--------------------------------------+------------+-----------------+---------------------+--------------+
[stack@undercloud ~]$ nova list  +--------------------------------------+-------------------------+--------+------------+-------------+---------------------+  | ID                                   | Name                    | Status | Task State | Power State | Networks            |  +--------------------------------------+-------------------------+--------+------------+-------------+---------------------+  | 6a38b7be-3743-4339-970b-6121e687741d | overcloud-controller-0  | ACTIVE | -          | Running     | ctlplane=192.0.2.10 |  | 9222dc1b-5974-495b-8b98-b8176ac742f4 | overcloud-controller-1  | ACTIVE | -          | Running     | ctlplane=192.0.2.9  |  | 76adbb27-220f-42ef-9691-94729ee28749 | overcloud-controller-2  | ACTIVE | -          | Running     | ctlplane=192.0.2.11 |  | 8f57f7b6-a2d8-4b7b-b435-1c675e63ea84 | overcloud-novacompute-0 | ACTIVE | -          | Running     | ctlplane=192.0.2.8  |  +--------------------------------------+-------------------------+--------+------------+-------------+---------------------+

[stack@undercloud ~]$ ssh heat-admin@192.0.2.10

Last login: Fri Jun  3 10:01:44 2016 from gateway

[heat-admin@overcloud-controller-0 ~]$ sudo su –

Last login: Fri Jun  3 10:01:49 UTC 2016 on pts/0

[root@overcloud-controller-0 ~]# .  keystonerc_admin <== /etc/stack/overcloudrc

[root@overcloud-controller-0 ~]# pcs status

Cluster name: tripleo_cluster

Last updated: Fri Jun  3 10:07:22 2016  Last change: Fri Jun  3 08:50:59 2016 by root via cibadmin on overcloud-controller-0

Stack: corosync

Current DC: overcloud-controller-0 (version 1.1.13-10.el7_2.2-44eb2dd) – partition with quorum

3 nodes and 123 resources configured

Online: [ overcloud-controller-0 overcloud-controller-1 overcloud-controller-2 ]

Full list of resources:

ip-192.0.2.6 (ocf::heartbeat:IPaddr2): Started overcloud-controller-0

Clone Set: haproxy-clone [haproxy]

Started: [ overcloud-controller-0 overcloud-controller-1 overcloud-controller-2 ]

ip-192.0.2.7 (ocf::heartbeat:IPaddr2): Started overcloud-controller-1

Master/Slave Set: galera-master [galera]

Masters: [ overcloud-controller-0 overcloud-controller-1 overcloud-controller-2 ]

Clone Set: memcached-clone [memcached]

Started: [ overcloud-controller-0 overcloud-controller-1 overcloud-controller-2 ]

Clone Set: rabbitmq-clone [rabbitmq]

Started: [ overcloud-controller-0 overcloud-controller-1 overcloud-controller-2 ]

Clone Set: openstack-core-clone [openstack-core]

Started: [ overcloud-controller-0 overcloud-controller-1 overcloud-controller-2 ]

Master/Slave Set: redis-master [redis]

Masters: [ overcloud-controller-1 ]

Slaves: [ overcloud-controller-0 overcloud-controller-2 ]

Clone Set: mongod-clone [mongod]

Started: [ overcloud-controller-0 overcloud-controller-1 overcloud-controller-2 ]

Clone Set: openstack-aodh-evaluator-clone [openstack-aodh-evaluator]

Stopped: [ overcloud-controller-0 overcloud-controller-1 overcloud-controller-2 ]

Clone Set: openstack-nova-scheduler-clone [openstack-nova-scheduler]

Started: [ overcloud-controller-0 overcloud-controller-1 overcloud-controller-2 ]

Clone Set: neutron-l3-agent-clone [neutron-l3-agent]

Started: [ overcloud-controller-0 overcloud-controller-1 overcloud-controller-2 ]

Clone Set: neutron-netns-cleanup-clone [neutron-netns-cleanup]

Started: [ overcloud-controller-0 overcloud-controller-1 overcloud-controller-2 ]

Clone Set: neutron-ovs-cleanup-clone [neutron-ovs-cleanup]

Started: [ overcloud-controller-0 overcloud-controller-1 overcloud-controller-2 ]

openstack-cinder-volume (systemd:openstack-cinder-volume): Started overcloud-controller-2

Clone Set: openstack-heat-engine-clone [openstack-heat-engine]

Started: [ overcloud-controller-0 overcloud-controller-1 overcloud-controller-2 ]

Clone Set: openstack-ceilometer-api-clone [openstack-ceilometer-api]

Stopped: [ overcloud-controller-0 overcloud-controller-1 overcloud-controller-2 ]

Clone Set: openstack-aodh-listener-clone [openstack-aodh-listener]

Stopped: [ overcloud-controller-0 overcloud-controller-1 overcloud-controller-2 ]

Clone Set: neutron-metadata-agent-clone [neutron-metadata-agent]

Started: [ overcloud-controller-0 overcloud-controller-1 overcloud-controller-2 ]

Clone Set: openstack-gnocchi-metricd-clone [openstack-gnocchi-metricd]

Started: [ overcloud-controller-0 overcloud-controller-1 overcloud-controller-2 ]

Clone Set: openstack-aodh-notifier-clone [openstack-aodh-notifier]

Stopped: [ overcloud-controller-0 overcloud-controller-1 overcloud-controller-2 ]

Clone Set: openstack-heat-api-clone [openstack-heat-api]

Started: [ overcloud-controller-0 overcloud-controller-1 overcloud-controller-2 ]

Clone Set: openstack-ceilometer-collector-clone [openstack-ceilometer-collector]

Stopped: [ overcloud-controller-0 overcloud-controller-1 overcloud-controller-2 ]

Clone Set: openstack-glance-api-clone [openstack-glance-api]

Started: [ overcloud-controller-0 overcloud-controller-1 overcloud-controller-2 ]

Clone Set: openstack-cinder-scheduler-clone [openstack-cinder-scheduler]

Started: [ overcloud-controller-0 overcloud-controller-1 overcloud-controller-2 ]

Clone Set: openstack-nova-api-clone [openstack-nova-api]

Started: [ overcloud-controller-0 overcloud-controller-1 overcloud-controller-2 ]

Clone Set: openstack-nova-consoleauth-clone [openstack-nova-consoleauth]

Started: [ overcloud-controller-0 overcloud-controller-1 overcloud-controller-2 ]

Clone Set: openstack-sahara-api-clone [openstack-sahara-api]

Started: [ overcloud-controller-0 overcloud-controller-1 overcloud-controller-2 ]

Clone Set: openstack-heat-api-cloudwatch-clone [openstack-heat-api-cloudwatch]

Started: [ overcloud-controller-0 overcloud-controller-1 overcloud-controller-2 ]

Clone Set: openstack-sahara-engine-clone [openstack-sahara-engine]

Started: [ overcloud-controller-0 overcloud-controller-1 overcloud-controller-2 ]

Clone Set: openstack-glance-registry-clone [openstack-glance-registry]

Started: [ overcloud-controller-0 overcloud-controller-1 overcloud-controller-2 ]

Clone Set: openstack-gnocchi-statsd-clone [openstack-gnocchi-statsd]

Started: [ overcloud-controller-0 overcloud-controller-1 overcloud-controller-2 ]

Clone Set: openstack-ceilometer-notification-clone [openstack-ceilometer-notification]

Started: [ overcloud-controller-0 overcloud-controller-1 overcloud-controller-2 ]

Clone Set: openstack-cinder-api-clone [openstack-cinder-api]

Started: [ overcloud-controller-0 overcloud-controller-1 overcloud-controller-2 ]

Clone Set: neutron-dhcp-agent-clone [neutron-dhcp-agent]

Started: [ overcloud-controller-0 overcloud-controller-1 overcloud-controller-2 ]

Clone Set: neutron-openvswitch-agent-clone [neutron-openvswitch-agent]

Started: [ overcloud-controller-0 overcloud-controller-1 overcloud-controller-2 ]

Clone Set: openstack-nova-novncproxy-clone [openstack-nova-novncproxy]

Started: [ overcloud-controller-0 overcloud-controller-1 overcloud-controller-2 ]

Clone Set: delay-clone [delay]

Stopped: [ overcloud-controller-0 overcloud-controller-1 overcloud-controller-2 ]

Clone Set: neutron-server-clone [neutron-server]

Started: [ overcloud-controller-0 overcloud-controller-1 overcloud-controller-2 ]

Clone Set: openstack-ceilometer-central-clone [openstack-ceilometer-central]

Stopped: [ overcloud-controller-0 overcloud-controller-1 overcloud-controller-2 ]

Clone Set: httpd-clone [httpd]

Started: [ overcloud-controller-0 overcloud-controller-1 overcloud-controller-2 ]

Clone Set: openstack-heat-api-cfn-clone [openstack-heat-api-cfn]

Started: [ overcloud-controller-0 overcloud-controller-1 overcloud-controller-2 ]

Clone Set: openstack-nova-conductor-clone [openstack-nova-conductor]

Started: [ overcloud-controller-0 overcloud-controller-1 overcloud-controller-2 ]

Failed Actions:

* openstack-aodh-evaluator_monitor_60000 on overcloud-controller-1 ‘not running’ (7): call=76, status=complete, exitreason=’none’,

last-rc-change=’Fri Jun  3 08:47:22 2016′, queued=0ms, exec=0ms

* openstack-ceilometer-central_start_0 on overcloud-controller-1 ‘not running’ (7): call=290, status=complete, exitreason=’none’,

last-rc-change=’Fri Jun  3 08:51:18 2016′, queued=0ms, exec=2132ms

* openstack-aodh-evaluator_monitor_60000 on overcloud-controller-2 ‘not running’ (7): call=76, status=complete, exitreason=’none’,

last-rc-change=’Fri Jun  3 08:47:16 2016′, queued=0ms, exec=0ms

* openstack-ceilometer-central_start_0 on overcloud-controller-2 ‘not running’ (7): call=292, status=complete, exitreason=’none’,

last-rc-change=’Fri Jun  3 08:51:31 2016′, queued=0ms, exec=2102ms

* openstack-aodh-evaluator_monitor_60000 on overcloud-controller-0 ‘not running’ (7): call=77, status=complete, exitreason=’none’,

last-rc-change=’Fri Jun  3 08:47:19 2016′, queued=0ms, exec=0ms

* openstack-ceilometer-central_start_0 on overcloud-controller-0 ‘not running’ (7): call=270, status=complete, exitreason=’none’,

last-rc-change=’Fri Jun  3 08:50:02 2016′, queued=0ms, exec=2199ms

PCSD Status:

overcloud-controller-0: Online

overcloud-controller-1: Online

overcloud-controller-2: Online

Daemon Status:

corosync: active/enabled

pacemaker: active/enabled

pcsd: active/enabled

Daemons running on Controller-0

RDO Triple0 QuickStart HA Setup on Intel Core i7-4790 Desktop

Neutron reports on Comtroller_0

RDO Triple0 QuickStart HA Setup on Intel Core i7-4790 Desktop

[root@overcloud-controller-0 ~]# neutron l3-agent-list-hosting-router RouterDSA

+————————————–+————————+—————-+——-+———-+

| id                                   | host                   | admin_state_up | alive | ha_state |

+————————————–+————————+—————-+——-+———-+

| 3ffad1c0-da80-4ab0-b165-1f555f1190e4 | overcloud-controller-0 | True | :-)   | active   |

| ec70ba18-9cc3-4409-a671-33b21f9a586f | overcloud-controller-1| True | :-)   | standby  |

| bd409fca-52a5-4bca-bb68-a8bd57632dfa | overcloud-controller-2 | True | :-)   | standby  |

+————————————–+————————+—————-+——-+———-+

System information

RDO Triple0 QuickStart HA Setup on Intel Core i7-4790 Desktop

RDO Triple0 QuickStart HA Setup on Intel Core i7-4790 Desktop

Instances runing

RDO Triple0 QuickStart HA Setup on Intel Core i7-4790 Desktop

RDO Triple0 QuickStart HA Setup on Intel Core i7-4790 Desktop

RDO Triple0 QuickStart HA Setup on Intel Core i7-4790 Desktop

Shapshots from underground

RDO Triple0 QuickStart HA Setup on Intel Core i7-4790 Desktop

Connection to VMs running in overcloud  from undercloud (VM)

RDO Triple0 QuickStart HA Setup on Intel Core i7-4790 Desktop

Neutron port list on undercloud

RDO Triple0 QuickStart HA Setup on Intel Core i7-4790 Desktop

转载本站任何文章请注明:转载至神刀安全网,谢谢神刀安全网 » RDO Triple0 QuickStart HA Setup on Intel Core i7-4790 Desktop

分享到:更多 ()

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址