[ English | русский | Deutsch | Indonesia | English (United Kingdom) ]
Tambahkan host infrastruktur baru¶
Sementara tiga host infrastruktur direkomendasikan, jika host lebih lanjut diperlukan dalam suatu lingkungan, adalah mungkin untuk membuat node tambahan.
Peringatan
Pastikan Anda mencadangkan lingkungan OpenStack Anda saat ini sebelum menambahkan node baru apa pun. Lihat Backup and restore your cloud untuk informasi lebih lanjut.
Add the node to the
infra_hosts
stanza of the/etc/openstack_deploy/openstack_user_config.yml
:infra_hosts: [...] infra<node-ID>: ip: 10.17.136.32
Change to playbook folder on the deployment host:
# cd /opt/openstack-ansible
To prepare new hosts and deploy containers on them run
setup-hosts.yml
: playbook with thelimit
argument.# openstack-ansible openstack.osa.setup_hosts --limit localhost,infra<node-ID>,infra<node-ID>-host_containers
In case you're relying on
/etc/hosts
content, you should also update it for all hosts:# openstack-ansible openstack.osa.openstack_hosts_setup -e openstack_hosts_group=all --tags openstack_hosts-file
Next we need to expand Galera/RabbitMQ clusters, which is done during
setup-infrastructure.yml
. So we will run this playbook without limits:Peringatan
Make sure that containers from new infra host does not appear in inventory as first one for groups
galera_all
,rabbitmq_all
andrepo_all
. You can verify that with ad-hoc commands:# ansible -m debug -a "var=groups['galera_all'][0]" localhost # ansible -m debug -a "var=groups['rabbitmq_all'][0]" localhost # ansible -m debug -a "var=groups['repo_all'][0]" localhost
# openstack-ansible openstack.osa.setup_infrastructure -e galera_force_bootstrap=true
Once infrastructure playboks are done, it's turn of OpenStack services to be deployed. Most of the services are fine to be ran with limits, but some, like keystone, are not. So we run keystone playbook separately from all others:
# openstack-ansible openstack.osa.keystone # openstack-ansible openstack.osa.setup_openstack --limit '!keystone_all',localhost,infra<node-ID>,infra<node-ID>-host_containers
Uji infra node baru¶
Setelah membuat infra node baru, uji bahwa node berjalan dengan benar dengan meluncurkan instance baru. Pastikan bahwa node baru dapat menanggapi tes koneksi jaringan melalui perintah ping. Masuk ke sistem pemantauan Anda, dan verifikasi bahwa monitor mengembalikan sinyal hijau untuk node baru.