redhat-openstack / infrared

Plugin based framework that aims to provide an easy-to-use CLI for Ansible based projects
https://infrared.readthedocs.io/en/latest/index.html
Apache License 2.0
99 stars 97 forks source link

tripleo-overcloud tagging: awk failing to node-list when deployment has large number of nodes #362

Open venkataanil opened 5 years ago

venkataanil commented 5 years ago

When deploying tripleo-overcloud with infrared, with large number of compute nodes (i.e more than compute 10 vms) , overcloud tagging failing with below errors

"cmd": "source ~/stackrc\n ironic node-update 328bdece-e3fa-415f-984d-28763acb35bf\ndd574b1e-4c7a-4a5a-935c-ef34a20e1982\nf5613cf5-3a0a-4b60-b656-1a07c242a519\n5a755064-6370-40a2-8ba1-f19f01594bd6\n2d8e8e4c-d6d0-4c70-a5c3-68f6e5d42a38\nb572f39b-5396-4751-9fb7-bb541aade64a\n24c4b62a-b5d4-421b-bfd9-aad0a81e6808\nb21e25c7-6b57-40b7-a420-6315802bce30\n28539b1b-aa1b-4ca4-9529-b53aac342505\n4800f364-cee8-44c3-b3ea-94b2c8dc6f66\n8de2bb95-a596-4d30-9578-ca6373ad009c add properties/capabilities='profile:compute,boot_option:local,node:compute-1'",

After debugging the task which list nodes i.e ironic node-list | awk '/compute-1/ {print $2}' is returning multiple uuids i.e it is returning compute-1, compute-10,compute-11, ...uuids for the above command