AIO Openstack-Ansible Sumarizado
AIO Openstack-Ansible Sumarizado
Quickstart: AIO
(../index.html)
(../network-arch/example.html)
(https://docs.openstack.org//openstack-ansible/latest/doc-openstack-
ansible.pdf)
(https://bugs.launchpad.net/openstack-ansible/+filebug?field.title=Quickstart%3A%20AIO%20in%20openstack-
ansible&field.tags=&field.comment=%0A%0A%0AThis bug tracker is for errors with the documentation, use the following as a template
and remove or add fields as you see fit. Convert [ ] into [x] to check boxes:%0A%0A- [ ] This doc is inaccurate in this way: ______%0A- [ ]
This is a doc addition request.%0A- [ ] I have a fix to the document that I can paste below including example: input and output. %0A%0AIf
you have a troubleshooting or support issue, use the following resources:%0A%0A - The mailing list: https://lists.openstack.org%0A - IRC:
'openstack' channel on OFTC%0A%0A-----------------------------------%0ARelease:%2025.1.0.dev68%20on%202021-10-
06%2017:05:06%0ASHA:%2061b0139ea7436297e870d4280fd865ce91d8cb46%0ASource:%20https://opendev.org/openstack/openstack-
ansible/src/doc/source/user/aio/quickstart.rst%0AURL: https://docs.openstack.org/openstack-ansible/latest/user/aio/quickstart.html)
[
English (../../user/aio/quickstart.html)
| français (../../fr/user/aio/quickstart.html)
| English (United Kingdom)
(../../en_GB/user/aio/quickstart.html)
| Indonesia (../../id/user/aio/quickstart.html)
| русский (../../ru/user/aio/quickstart.html)
| español
(../../es/user/aio/quickstart.html)
| Deutsch (../../de/user/aio/quickstart.html)
]
a development environment
8 vCPU’s
8GB RAM
8 CPU Cores
16GB RAM
Building an AIO¶
Overview¶
There are three steps to running an AIO build, with an optional first step
should you need to customize your build:
Run playbooks
Note
## Ubuntu / Debian
# apt-get update
# apt-get dist-upgrade
# reboot
## CentOS
# dnf upgrade
# reboot
Note
Note
/opt/openstack-ansible
# cd /opt/openstack-ansible
# git tag -l
# # Checkout the stable branch and find just the latest tag
# # Checkout the latest tag from either method of retrieving the tag.
Note
# scripts/bootstrap-ansible.sh
Note
You might encounter an error while running the Ansible bootstrap script
when building some of the Python extensions (like
pycrypto) which says:
The reason of this failure might be resulting from a noexec mount flag
used for the filesystem associated with /tmp which you
can check by
running the following command:
# mount | grep $(df /tmp | tail -n +2 | awk '{print $1}') | grep noexec
If this is the case you can specify an alternate path which does not
have this mount option set:
# TMPDIR=/var/tmp scripts/bootstrap-ansible.sh
By default the AIO bootstrap scripts deploy a base set of OpenStack services
with sensible defaults for the purpose of a gate check,
development or testing
system.
# export BOOTSTRAP_OPTS="bootstrap_host_data_disk_device=sdb"
# export BOOTSTRAP_OPTS="bootstrap_host_data_disk_device=sdb"
If you are installing with limited connectivity, or you don’t have default
route set, you will need to define interface for outgoing
connections manually
# export BOOTSTRAP_OPTS="bootstrap_host_public_interface=eth1"
For the default AIO scenario, the AIO configuration preparation is completed by
executing:
# scripts/bootstrap-aio.sh
To add OpenStack Services over and above the bootstrap-aio default services
for the applicable scenario, copy the conf.d files with x
This release is under development. The current supported release is
Yoga.
(/yoga/)
Back to Top
the .aio file
extension into /etc/openstack_deploy and rename then to .yml files.
For example, in order to enable the
OpenStack Telemetry services, execute the
following:
# cd /opt/openstack-ansible/
# cp etc/openstack_deploy/conf.d/{aodh,gnocchi,ceilometer}.yml.aio /etc/openstack_deploy/conf.d/
It is possible to also do this (and change other defaults) during the bootstrap
script initial execution by changing the SCENARIO
environment variable before
running the script. The key word ‘aio’ will ensure that a basic set of
OpenStack services (cinder, glance,
horizon, neutron, nova) will be deployed.
The key words ‘lxc’ can be used to set the container back-end,
while the key word ‘metal’ will
deploy all services without containers. In
order to implement any other services, add the name of the conf.d file name
without the
.yml.aio extension into the SCENARIO environment variable. Each
key word should be delimited by an underscore. For example, the
following will
implement an AIO with barbican, cinder, glance, horizon, neutron, and nova. It
will set the cinder storage back-end to
ceph and will make use of LXC as the
container back-end.
# export SCENARIO='aio_lxc_barbican_ceph'
# scripts/bootstrap-aio.sh
To add any global overrides, over and above the defaults for the applicable
scenario, edit
/etc/openstack_deploy/user_variables.yml. In order to
understand the various ways that you can override the default
behaviour
set out in the roles, playbook and group variables, see Overriding default configuration (../../reference/configuration/using-
overrides.html#user-overrides).
Run playbooks¶
Finally, run the playbooks by executing:
# cd /opt/openstack-ansible/playbooks
# openstack-ansible setup-hosts.yml
# openstack-ansible setup-infrastructure.yml
# openstack-ansible setup-openstack.yml
The installation process will take a while to complete, but here are some
general estimates:
# cd /opt/openstack-ansible/playbooks
# openstack-ansible os-keystone-install.yml
Rebooting an AIO¶
As the AIO includes all three cluster members of MariaDB/Galera, the cluster
has to be re-initialized after the host is rebooted.
# cd /opt/openstack-ansible/playbooks
If this fails to get the database cluster back into a running state, then
please make use of the
Galera Cluster Recovery x
This release is under development. The current supported releasein
(/admin/maintenance-tasks.html#galera-cluster-recovery)
section is
Yoga.
(/yoga/)
the operations guide.
Back to Top
Rebuilding an AIO¶
Sometimes it may be useful to destroy all the containers and rebuild the AIO.
While it is preferred that the AIO is entirely destroyed
and rebuilt, this
isn’t always practical. As such the following may be executed instead:
# cd /opt/openstack-ansible/playbooks
# openstack-ansible lxc-containers-destroy.yml
# # On the host stop all of the services that run locally and not
# # within a container.
# for i in \
$(ls /etc/init \
| grep -e "nova\|swift\|neutron\|cinder" \
service $i stop; \
done
/var/log/{neutron,nova,swift,cinder}
# rm -rf /root/.pip
# rm /etc/apt/apt.conf.d/00apt-cacher-proxy
This diagram is not to scale and is not even 100% accurate, this diagram was
built for informational purposes only and should ONLY
be used as such.
x
This release is under development.
------->[ ETH0 ==The current
Public supported
Network ]
release is
Yoga.
(/yoga/)
Back to Top
|
V [ * ] Socket Connections
* ^ *
| | |-------------------------------------------------------
| | |
| |---------------->[ HAProxy ] |
| ^ |
| | |
| V |
| (BR-Interfaces)<------ |
| ^ * | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | V * | |
| * | | [ Galera x3 ] |
| [ Memcached ]<------------| | | |
| [ Horizon x2 ]<-----------| | | |
| | [ Keystone x3 ]<----------|->| | | | |
| | | | | | |
| | | ----------------------------------------- | |
| | ----------------------------------------- | | |
| | -------------------------| | | | |
| | | | | | |
| | V | | * |
(../index.html)
(../network-arch/example.html)
(https://docs.openstack.org//openstack-ansible/latest/doc-openstack-
ansible.pdf)
(https://bugs.launchpad.net/openstack-ansible/+filebug?field.title=Quickstart%3A%20AIO%20in%20openstack-
ansible&field.tags=&field.comment=%0A%0A%0AThis bug tracker is for errors with the documentation, use the following as a
template and remove or add fields as you see fit. Convert [ ] into [x] to check boxes:%0A%0A- [ ] This doc is inaccurate in this way:
______%0A- [ ] This is a doc addition request.%0A- [ ] I have a fix to the document that I can paste below including example: input and
output. %0A%0AIf you have a troubleshooting or support issue, use the following resources:%0A%0A - The mailing list:
https://lists.openstack.org%0A - IRC: 'openstack' channel on OFTC%0A%0A-----------------------------------
%0ARelease:%2025.1.0.dev68%20on%202021-10-
06%2017:05:06%0ASHA:%2061b0139ea7436297e870d4280fd865ce91d8cb46%0ASource:%20https://opendev.org/openstack/openstack-
ansible/src/doc/source/user/aio/quickstart.rst%0AURL: https://docs.openstack.org/openstack-ansible/latest/user/aio/quickstart.html)
(https://creativecommons.org/licenses/by/3.0/)
Except where otherwise noted, this document is licensed under
Creative Commons
Attribution 3.0 License
(https://creativecommons.org/licenses/by/3.0/). See all OpenStack Legal Documents (https://www.openstack.org/legal).
FOUND AN ERROR? REPORT A BUG (HTTPS://BUGS.LAUNCHPAD.NET/OPENSTACK-ANSIBLE/+FILEBUG? x
This release is under development. The current supported release is
Yoga.
(/yoga/)
FIELD.TITLE=QUICKSTART%3A%20AIO%20IN%20OPENSTACK-ANSIBLE&FIELD.TAGS=&FIELD.COMMENT=%0A%0A%0ATHIS BUG TRACKER IS FOR ERRORS
Back to Top
WITH THE
DOCUMENTATION, USE THE FOLLOWING AS A TEMPLATE AND REMOVE OR ADD FIELDS AS YOU SEE FIT. CONVERT [ ] INTO [X] TO CHECK BOXES:%0A%0A- [ ] THIS DOC
IS INACCURATE IN THIS WAY: ______%0A- [ ] THIS IS A DOC ADDITION REQUEST.%0A- [ ] I HAVE A FIX TO THE DOCUMENT THAT I CAN PASTE BELOW INCLUDING
EXAMPLE: INPUT AND OUTPUT. %0A%0AIF YOU HAVE A TROUBLESHOOTING OR SUPPORT ISSUE, USE THE FOLLOWING RESOURCES:%0A%0A - THE MAILING LIST:
HTTPS://LISTS.OPENSTACK.ORG%0A - IRC: 'OPENSTACK' CHANNEL ON OFTC%0A%0A-----------------------------------%0ARELEASE:%2025.1.0.DEV68%20ON%202021-10-
06%2017:05:06%0ASHA:%2061B0139EA7436297E870D4280FD865CE91D8CB46%0ASOURCE:%20HTTPS://OPENDEV.ORG/OPENSTACK/OPENSTACK-
ANSIBLE/SRC/DOC/SOURCE/USER/AIO/QUICKSTART.RST%0AURL: HTTPS://DOCS.OPENSTACK.ORG/OPENSTACK-ANSIBLE/LATEST/USER/AIO/QUICKSTART.HTML)
OpenStack Documentation
openstack-ansible 25.1.0.dev68
(../../index.html)
Page Contents
Building an AIO
Overview
Prepare the host
Bootstrap Ansible and the required roles
Bootstrap the AIO configuration
Run playbooks
Rebooting an AIO
Rebuilding an AIO
Reference Diagram for an AIO Build
OpenStack
Projects (https://openstack.org/projects/)
OpenStack Security (https://www.openstack.org/software/security/)
Common Questions (https://openstack.org/projects/openstack-faq/) x
This release is under development. The current supported release is
Yoga.
(/yoga/)
Back to Top
Blog (https://openstack.org/blog/)
g
News (https://openstack.org/news/)
Community
User Groups (https://openstack.org/community/)
Events (https://openstack.org/community/events/)
Jobs (https://openstack.org/community/jobs/)
Companies (https://openstack.org/foundation/companies/)
Contribute (https://docs.openstack.org/contributors)
Documentation
Stay In Touch
(https://twitter.com/OpenStack)
(https://www.facebook.com/openstack)
(https://www.linkedin.com/company/openstack)
(https://www.youtube.com/user/OpenStackFoundation)