UP | HOME
Sachin Patil

Sachin Patil

Free Software Developer | GNU Emacs Hacker

TripleO quickstart
Published on Oct 08, 2017 by Sachin.

Setup tripleo-quickstart environment.

  • Create non-root user

    1: adduser <NON-ROOT-USER> -G wheel
    2: passwd <NON-ROOT-USER>
    
  • Login as NON-ROOT-USER and download required scripts

     1: ssh-keygen
     2: export VIRTHOST=127.0.0.2
     3: ssh-copy-id root@$VIRTHOST
     4: 
     5: # Test the settings
     6: ssh root@$VIRTHOST uname -a
     7: 
     8: # Download required scripts
     9: git clone https://github.com/openstack/tripleo-quickstart.git
    10: # Last time I checked, commit hash 0a5dc8de8df3ddbf1886b8416b55464b0910c7ba
    11: # worked for me pretty well.
    12: 
    13: # Download Heat templates(Optional)
    14: git clone https://github.com/openstack/tripleo-heat-templates.git
    15: 
    16: cd tripleo-quickstart
    17: ./quickstart.sh --install-deps
    

Deploy OpenStack

1-ctrl, 1-compute, pacemaker (Ocata release)

1: ./quickstart.sh --config config/general_config/pacemaker.yml \
2:                 -N config/nodes/1ctlr_1comp.yml \
3:                 --teardown all \
4:                 --tags all \
5:                 --clean \
6:                 --release ocata $VIRTHOST

3-ctrl, 1-compute, pacemaker (Ocata release)

1: ./quickstart.sh --config config/general_config/pacemaker.yml \
2:                 -N config/nodes/3ctlr_1comp.yml \
3:                 --teardown all \
4:                 --tags all \
5:                 --clean \
6:                 --release ocata $VIRTHOST

1-ctrl, 1-compute, pacemaker (Master branch with latest commit)

1: ./quickstart.sh --config config/general_config/pacemaker.yml \
2:                 -N config/nodes/1ctlr_1comp.yml \
3:                 --teardown all \
4:                 --tags all \
5:                 --clean \
6:                 --release master-tripleo-ci $VIRTHOST

1-ctrl, 1-compute, pacemaker (Ocata with telemetry)

Note the selecting any release other that newton will disable telemetry. To enable telemetry remove following lines from pacemaker.yml. I usually save file as pacemaker-enable-telemetry.yml

And deploy using,

1: ./quickstart.sh --config config/general_config/pacemaker-enable-telemetry.yml \
2:                 -N config/nodes/1ctlr_1comp.yml \
3:                 --teardown all \
4:                 --tags all \
5:                 --clean \
6:                 --release ocata $VIRTHOST

Once setup is complete login to undercloud node using,

ssh -F /home/NON-ROOT-USER/.quickstart/ssh.config.ansible undercloud

and source overcloudrc for API version 2 or overcloudrc.v3 for API version 3

Reference: psachin/gist