<div dir="ltr"><div dir="ltr">Hi Team,,<br><div><br></div><div>Upon further debugging, I found that pre-introspection internally calls the ansible playbook located at path /usr/share/ansible/validation-playbooks</div><div>File "dhcp-introspection.yaml" has hosts mentioned as undercloud.</div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div>- hosts: <b>undercloud</b></div><div>  become: true</div><div>  vars:</div><div>...</div><div>...</div></blockquote></div><div><br></div><div>But the artifacts created for dhcp-introspection at location /home/stack/validations/artifacts/<some_random_number>_dhcp-introspection.yaml_2021-10-01T11 has file <b>hosts </b>present which has <b>localhost</b> written into it as a result of which when command gets executed it gives the error <b>"Could not match supplied host pattern, ignoring: undercloud:"</b></div><div><b><br></b></div><div>Can someone suggest how is this artifacts written in tripleo and the way we can change hosts file entry to undercloud so that it can work</div><div><br></div><div>Similar is the case with other tasks like undercloud-tokenflush, ctlplane-ip-range  etc</div><div><br></div><div>Regards</div><div>Anirudh Gupta</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Sep 29, 2021 at 4:47 PM Anirudh Gupta <<a href="mailto:anyrude10@gmail.com">anyrude10@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi Team,<div><br></div><div>I tried installing Undercloud using the below link:</div><div><br></div><div><a href="https://docs.openstack.org/project-deploy-guide/tripleo-docs/latest/deployment/install_overcloud.html#deploy-the-overcloud" target="_blank">https://docs.openstack.org/project-deploy-guide/tripleo-docs/latest/deployment/install_overcloud.html#deploy-the-overcloud</a><br></div><div><br></div><div>I am getting the following error:</div><div><br></div><div>(undercloud) [stack@undercloud ~]$ openstack tripleo validator run --group pre-introspection<br>Selected log directory '/home/stack/validations' does not exist. Attempting to create it.<br>+--------------------------------------+---------------------------------+--------+------------+-----------------+-------------------+-------------+<br>| UUID                                 | Validations                     | Status | Host_Group | Status_by_Host  | Unreachable_Hosts | Duration    |<br>+--------------------------------------+---------------------------------+--------+------------+-----------------+-------------------+-------------+<br>| 7029c1f6-5ab4-465d-82d7-3f29058012ce | check-cpu                       | PASSED | localhost  | localhost       |                   | 0:00:02.531 |<br>| db059017-30f1-4b97-925e-3f55b586d492 | check-disk-space                | PASSED | localhost  | localhost       |                   | 0:00:04.432 |<br>| e23dd9a1-90d3-4797-ae0a-b43e55ab6179 | check-ram                       | PASSED | localhost  | localhost       |                   | 0:00:01.324 |<br>| 598ca02d-258a-44ad-b78d-3877321cdfe6 | check-selinux-mode              | PASSED | localhost  | localhost       |                   | 0:00:01.591 |<br>| c4435b4c-b432-4a1e-8a99-00638034a884 | <b>check-network-gateway           | FAILED</b> | undercloud | <b>No host matched</b> |                   |             |<br>| cb1eed23-ef2f-4acd-a43a-86fb09bf0372 | <b>undercloud-disk-space           | FAILED</b> | undercloud | <b>No host matched</b> |                   |             |<br>| abde5329-9289-4b24-bf16-c4d82b03e67a | <b>undercloud-neutron-sanity-check | FAILED</b> | undercloud | <b>No host matched</b> |                   |             |<br>| d0e5fdca-ece6-4a37-b759-ed1fac31a10f | <b>ctlplane-ip-range               | FAILED</b> | undercloud | No host matched |                   |             |<br>| 91511807-225c-4852-bb52-6d0003c51d49 | <b>dhcp-introspection              | FAILED</b> | undercloud | No host matched |                   |             |<br>| e96f7704-d2fb-465d-972b-47e2f057449c |<b> undercloud-tokenflush           | FAILED </b>| undercloud | No host matched |                   |             |</div><div><br></div><div><br></div><div>As per the validation link, </div><div><a href="https://docs.openstack.org/tripleo-validations/wallaby/validations-pre-introspection-details.html" target="_blank">https://docs.openstack.org/tripleo-validations/wallaby/validations-pre-introspection-details.html</a></div><div><br></div><div><h2 style="box-sizing:border-box;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-weight:lighter;line-height:1.1;color:rgb(42,78,104);margin-top:20px;margin-bottom:10px;font-size:30px">check-network-gateway</h2><p style="box-sizing:border-box;margin:0px 0px 10px;color:rgb(51,51,51);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:14px">If <cite style="box-sizing:border-box">gateway</cite> in <cite style="box-sizing:border-box">undercloud.conf</cite> is different from <cite style="box-sizing:border-box">local_ip</cite>, verify that the gateway exists and is reachable</p><p style="box-sizing:border-box;margin:0px 0px 10px;color:rgb(51,51,51);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:14px">Observation - In my case IP specified in local_ip and gateway, both are pingable, but still this error is being observed</p><p style="box-sizing:border-box;margin:0px 0px 10px;color:rgb(51,51,51);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:14px"><br></p><h2 style="box-sizing:border-box;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-weight:lighter;line-height:1.1;color:rgb(42,78,104);margin-top:20px;margin-bottom:10px;font-size:30px">ctlplane-ip-range<a href="https://docs.openstack.org/tripleo-validations/wallaby/validations-pre-introspection-details.html#ctlplane-ip-range" title="Permalink to this headline" style="box-sizing:border-box;background-color:transparent;color:rgb(255,255,255)" target="_blank">¶</a></h2><p style="box-sizing:border-box;margin:0px 0px 10px;color:rgb(51,51,51);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:14px">Check the number of IP addresses available for the overcloud nodes.</p><p style="box-sizing:border-box;margin:0px 0px 10px;color:rgb(51,51,51);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:14px">Verify that the number of IP addresses defined in <cite style="box-sizing:border-box">dhcp_start</cite> and <cite style="box-sizing:border-box">dhcp_end</cite> fields in <cite style="box-sizing:border-box">undercloud.conf</cite> is not too low.</p><ul style="box-sizing:border-box;margin-top:0px;margin-bottom:0px;color:rgb(51,51,51);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:14px"><li style="box-sizing:border-box"><p style="box-sizing:border-box;margin:0px 0px 10px"><span style="box-sizing:border-box;font-weight:700">ctlplane_iprange_min_size</span>: 20</p></li></ul><p style="box-sizing:border-box;margin:0px 0px 10px;color:rgb(51,51,51);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:14px">Observation - In my case I have defined more than 20 IPs</p><p style="box-sizing:border-box;margin:0px 0px 10px;color:rgb(51,51,51);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:14px"><br></p><p style="box-sizing:border-box;margin:0px 0px 10px;color:rgb(51,51,51);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:14px">Similarly for disk related issue, I have dedicated 100 GB space in /var and /</p><p style="box-sizing:border-box;margin:0px 0px 10px;color:rgb(51,51,51);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:14px">Filesystem           Size  Used Avail Use% Mounted on<br>devtmpfs              12G     0   12G   0% /dev<br>tmpfs                 12G   84K   12G   1% /dev/shm<br>tmpfs                 12G  8.7M   12G   1% /run<br>tmpfs                 12G     0   12G   0% /sys/fs/cgroup<br>/dev/mapper/cl-root  100G  2.5G   98G   3% /<br>/dev/mapper/cl-home   47G  365M   47G   1% /home<br>/dev/mapper/cl-var   103G  1.1G  102G   2% /var<br>/dev/vda1            947M  200M  747M  22% /boot<br>tmpfs                2.4G     0  2.4G   0% /run/user/0<br>tmpfs                2.4G     0  2.4G   0% /run/user/1000</p><p style="box-sizing:border-box;margin:0px 0px 10px;color:rgb(51,51,51);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:14px">Despite setting al the parameters, still I am not able to pass pre-introspection checks. <b>"NO Host Matched" </b>is found in the table.</p><p style="box-sizing:border-box;margin:0px 0px 10px;color:rgb(51,51,51);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:14px"><br></p><p style="box-sizing:border-box;margin:0px 0px 10px;color:rgb(51,51,51);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:14px">Regards</p><p style="box-sizing:border-box;margin:0px 0px 10px;color:rgb(51,51,51);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:14px">Anirudh Gupta</p></div></div>
</blockquote></div></div>