Ask Your Question
0

Is it possible to run a multi node architecture in a single server for dev testing purpose ?

asked 2016-07-02 10:47:57 -0500

razgort gravatar image

Hi,

Like i said in the title, i'd like to build a high availibity architecture with open stack / dev stack only on one server for testing purpose right now. I just want to emulate the high availibilty to be able to replicate that process late with multiple physical networks

Is it possible ? Do you guys know some good tutorial on how to achieve that ? A fast and easy way plz ^^ I don't have a lot of time to make my proof of concept.

Thx in advance,

Razgort

edit retag flag offensive close merge delete

Comments

Not sure your original intend will be satisfied :-

A fast and easy way plz ^^ I don't have a lot of time to make my proof of concept.
For now it is fastest way of getting POC, for persons having some background with Ansible and heat nested stacks trobleshooting

dbaxps gravatar imagedbaxps ( 2016-07-03 10:15:41 -0500 )edit

3 answers

Sort by ยป oldest newest most voted
2

answered 2016-07-03 10:02:01 -0500

dbaxps gravatar image

updated 2016-07-03 16:06:35 -0500

Regarding POC for 3 Node Pacemaker/Corosync HA Controller's Cluster try TripleO Quickstart ( works only on CentOS 7.2, RHEL 7.2, 32 GB Ram)
Sample of deployment template

# Deploy an HA openstack environment.
control_memory: 6144
compute_memory: 6144
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
  - name: compute_1
    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 --compute-scale 2 --neutron-network-type vxlan
  --neutron-tunnel-types vxlan
  --ntp-server pool.ntp.org
test_tempest: false
test_ping: true
enable_pacemaker: true

Then proceed from 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

Check report if undercloud VM has been set up :-

Access the undercloud by:
 ssh -F /home/boris/.quickstart/ssh.config.ansible undercloud

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

 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

Details here :-

http://lxer.com/module/newswire/view/...
http://lxer.com/module/newswire/view/...

image description

See also https://www.linux.com/blog/tripleo-qu...

image description

You might find this blog http://hardysteven.blogspot.com very handy working on TripleO Quickstart

edit flag offensive delete link more
0

answered 2016-07-03 16:19:05 -0500

razgort gravatar image

Ty for all these answers guys i'll try that tomorrow and tell you what i've succeed to achieve.

edit flag offensive delete link more
0

answered 2016-07-03 15:33:47 -0500

james-denton gravatar image

You may also want to try deploying OpenStack on a single host with OpenStack-Ansible using affinity. It will enable you to configure most of the services in a highly-available fashion using containers and haproxy. You can also run VMs on the same node or other nodes if you'd like. OSA uses LinuxBridge and not OVS for the time being.

More info can be found at: http://docs.openstack.org/developer/o...

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

Stats

Asked: 2016-07-02 10:46:07 -0500

Seen: 193 times

Last updated: Jul 03 '16