Adding a compute node using Openstack ansible
Hi all, I have something weird happening when trying to add a compute node to a working cluster. I added "compute3" to my openstack_user_config.yml compute_hosts stanza and ran the setup_hosts playbook. This created (re-created) the openstack_inventory.json file which I have reviewed thoroughly and I can see compute3 added everywhere compute1 and compute2 had been added from the deploy. When I run the second playbook setup_infrastructure, all the plays skip saying "no hosts matched" but the tasks all touch compute3.... I ran /opt/openstack-ansible/scripts/inventory-manage.py -G and I can see my compute3 listed in the output. The commands I run for the playbooks are as follows: openstack-ansible setup-hosts.yml --limit ,compute3openstack-ansible setup-infrastructure.yml --limit ,compute3openstack-ansible setup-openstack.yml --limit ,compute3 I've been trying to solve this since before Christmas with no luck, could anyone please shed some light on what the issue could be? Output of first playbook: https://paste.openstack.org/show/blArG04q6wgUCJy9JPh3/Output of second playbook: Paste #bSiabwqOk7qdns2iBYDA | LodgeIt! | | | | Paste #bSiabwqOk7qdns2iBYDA | LodgeIt! | | | Any advice or info would be greatly appreciated. Regards,Derek
Hey, Did I got it right, that the only thing that confuses you, is nothing got executed from setup-infrastrucutre? As eventually, there's nothing in setup-infrastructure that _should_ run on computes at the first place. If you check our add-compute.sh script [1] - it never runs anything from setup-infrastructure. So unless you've placed some control-plane services on computes (like for HCI), there's nothing from setup-infrastructure that should be present on compute nodes [1] https://opendev.org/openstack/openstack-ansible/src/branch/master/scripts/ad... ср, 15 янв. 2025 г. в 16:51, Derek O keeffe <derekokeeffe85@yahoo.ie>:
Hi all,
I have something weird happening when trying to add a compute node to a working cluster. I added "compute3" to my openstack_user_config.yml compute_hosts stanza and ran the setup_hosts playbook.
This created (re-created) the openstack_inventory.json file which I have reviewed thoroughly and I can see compute3 added everywhere compute1 and compute2 had been added from the deploy.
When I run the second playbook setup_infrastructure, all the plays skip saying "no hosts matched" but the tasks all touch compute3.... I ran /opt/openstack-ansible/scripts/inventory-manage.py -G and I can see my compute3 listed in the output. The commands I run for the playbooks are as follows:
openstack-ansible setup-hosts.yml --limit ,compute3 openstack-ansible setup-infrastructure.yml --limit ,compute3 openstack-ansible setup-openstack.yml --limit ,compute3
I've been trying to solve this since before Christmas with no luck, could anyone please shed some light on what the issue could be?
Output of first playbook: https://paste.openstack.org/show/blArG04q6wgUCJy9JPh3/ Output of second playbook: Paste #bSiabwqOk7qdns2iBYDA | LodgeIt! <https://paste.openstack.org/show/bSiabwqOk7qdns2iBYDA/>
Paste #bSiabwqOk7qdns2iBYDA | LodgeIt!
<https://paste.openstack.org/show/bSiabwqOk7qdns2iBYDA/>
Any advice or info would be greatly appreciated.
Regards, Derek
So, keep in mind, that nova playbook consist of multiple plays. It runs first again API part, which will be skipped for compute, and then will run the compute part, which actually should be executed. So indeed, it needs a bit more insight of what is actually skipped/executed. On Wed, 15 Jan 2025, 21:51 Derek O keeffe, <derekokeeffe85@yahoo.ie> wrote:
Hi Dmitriy,
Thanks for the response as usual!!
Ok thanks for the bit of info. Also when I run setup-openstack it skips all the plays at the start of the playbook where it installs nova etc!! It will run the tasks and create the nova die and come files but I’ll services get installed.
I don’t have access right now but I can run it in the morning and send you the paste if that would be ok with you? Thanks again.
Regards, Derek
On 15 Jan 2025, at 16:08, Dmitriy Rabotyagov <noonedeadpunk@gmail.com> wrote:
Hey,
Did I got it right, that the only thing that confuses you, is nothing got executed from setup-infrastrucutre? As eventually, there's nothing in setup-infrastructure that _should_ run on computes at the first place.
If you check our add-compute.sh script [1] - it never runs anything from setup-infrastructure. So unless you've placed some control-plane services on computes (like for HCI), there's nothing from setup-infrastructure that should be present on compute nodes
[1] https://opendev.org/openstack/openstack-ansible/src/branch/master/scripts/ad...
ср, 15 янв. 2025 г. в 16:51, Derek O keeffe <derekokeeffe85@yahoo.ie>:
Hi all,
I have something weird happening when trying to add a compute node to a working cluster. I added "compute3" to my openstack_user_config.yml compute_hosts stanza and ran the setup_hosts playbook.
This created (re-created) the openstack_inventory.json file which I have reviewed thoroughly and I can see compute3 added everywhere compute1 and compute2 had been added from the deploy.
When I run the second playbook setup_infrastructure, all the plays skip saying "no hosts matched" but the tasks all touch compute3.... I ran /opt/openstack-ansible/scripts/inventory-manage.py -G and I can see my compute3 listed in the output. The commands I run for the playbooks are as follows:
openstack-ansible setup-hosts.yml --limit ,compute3 openstack-ansible setup-infrastructure.yml --limit ,compute3 openstack-ansible setup-openstack.yml --limit ,compute3
I've been trying to solve this since before Christmas with no luck, could anyone please shed some light on what the issue could be?
Output of first playbook: https://paste.openstack.org/show/blArG04q6wgUCJy9JPh3/ Output of second playbook: Paste #bSiabwqOk7qdns2iBYDA | LodgeIt! <https://paste.openstack.org/show/bSiabwqOk7qdns2iBYDA/>
Paste #bSiabwqOk7qdns2iBYDA | LodgeIt!
<https://paste.openstack.org/show/bSiabwqOk7qdns2iBYDA/>
Any advice or info would be greatly appreciated.
Regards, Derek
participants (2)
-
Derek O keeffe
-
Dmitriy Rabotyagov