[ English | Indonesia | русский | English (United Kingdom) | Deutsch ]
Pemutakhirkan versi minor¶
Upgrades between minor versions of OpenStack-Ansible require updating the repository clone to the latest minor release tag, updating the Ansible roles, and then running playbooks against the target hosts. This section provides instructions for those tasks.
Prasyarat¶
To avoid issues and simplify troubleshooting during the upgrade, disable the
security hardening role by setting the apply_security_hardening
variable
to False
in the user_variables.yml
file, and
backup your OpenStack-Ansible installation.
Jalankan pemutakhiran versi kecil¶
Pemutakhiran minor biasanya membutuhkan langkah-langkah berikut:
Ubah direktori ke direktori root repositori kloning:
# cd /opt/openstack-ansible
Pastikan kode OpenStack-Ansible Anda ada di 2025.1 terbaru rilis yang ditandai (tagged):
# git checkout master
Perbarui semua peran dependen ke versi terbaru:
# ./scripts/bootstrap-ansible.sh
Ubah ke direktori playbook:
# cd playbooks
Perbarui host:
# openstack-ansible openstack.osa.setup_hosts -e package_state=latest
Perbarui infrastruktur:
# openstack-ansible -e rabbitmq_upgrade=true \ openstack.osa.setup_infrastructure
Perbarui semua layanan OpenStack:
# openstack-ansible openstack.osa.setup_openstack -e package_state=latest
Catatan
Anda dapat membatasi pemutakhirkan pada komponen OpenStack tertentu. Lihat bagian berikut untuk detailnya.
Mutakhirkan komponen tertentu¶
Anda dapat membatasi pemutakhiran pada komponen OpenStack tertentu dengan menjalankan masing-masing playbook komponen terhadap grup.
Misalnya, Anda hanya dapat memperbarui host Compute dengan menjalankan perintah berikut:
# openstack-ansible openstack.osa.nova --limit nova_compute
Untuk memperbarui hanya satu host Compute, jalankan perintah berikut:
# openstack-ansible openstack.osa.nova --limit <node-name>
Catatan
Melewati tag nova-key
diperlukan sehingga kunci pada semua host Compute tidak terkumpul.
To see which hosts belong to which groups, use the openstack-ansible-inventory-manage
script to show all groups and their hosts. For example:
Ubah direktori ke direktori root clone repositori:
# cd /opt/openstack-ansible
Tunjukkan semua grup dan host mana yang menjadi milik mereka:
# openstack-ansible-inventory-manage -G
Tunjukkan semua host dan grup tempat mereka berada:
# openstack-ansible-inventory-manage -g
Untuk melihat host mana yang dijalankan oleh playbook, dan untuk melihat tugas mana yang dilakukan, jalankan perintah berikut (misalnya):
Lihat beberapa host di grup
nova_compute
dimana playbook bertentangan:# openstack-ansible openstack.osa.nova --limit nova_compute \ --list-hosts
Lihat tugas yang dijalankan pada host di grup
nova_compute
:# openstack-ansible openstack.osa.nova --limit nova_compute \ --skip-tags 'nova-key' \ --list-tasks