Hi Mathieu,

Thanks for your reply.
I am using Openstack Wallaby Release.

The document I was referring to had not specified the usage of any inventory file.
https://docs.openstack.org/project-deploy-guide/tripleo-docs/latest/deployment/install_overcloud.html

Although I figured this out and passed the inventory file as follows

[Undercloud]
undercloud

After passing this all the errors were removed

Regards
Anirudh Gupta

On Tue, Oct 12, 2021 at 8:32 PM Mathieu Bultel <mbultel@redhat.com> wrote:
Hi,

Which release are you using ?
You have to provide a valid inventory file via the openstack CLI in order to allow the VF to know which hosts & ips is.

Mathieu

On Fri, Oct 1, 2021 at 5:17 PM Anirudh Gupta <anyrude10@gmail.com> wrote:
Hi Team,,

Upon further debugging, I found that pre-introspection internally calls the ansible playbook located at path /usr/share/ansible/validation-playbooks
File "dhcp-introspection.yaml" has hosts mentioned as undercloud.
- hosts: undercloud
  become: true
  vars:
...
...

But the artifacts created for dhcp-introspection at location /home/stack/validations/artifacts/<some_random_number>_dhcp-introspection.yaml_2021-10-01T11 has file hosts present which has localhost written into it as a result of which when command gets executed it gives the error "Could not match supplied host pattern, ignoring: undercloud:"

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

Similar is the case with other tasks like undercloud-tokenflush, ctlplane-ip-range  etc

Regards
Anirudh Gupta

On Wed, Sep 29, 2021 at 4:47 PM Anirudh Gupta <anyrude10@gmail.com> wrote:
Hi Team,

I tried installing Undercloud using the below link:


I am getting the following error:

(undercloud) [stack@undercloud ~]$ openstack tripleo validator run --group pre-introspection
Selected log directory '/home/stack/validations' does not exist. Attempting to create it.
+--------------------------------------+---------------------------------+--------+------------+-----------------+-------------------+-------------+
| UUID                                 | Validations                     | Status | Host_Group | Status_by_Host  | Unreachable_Hosts | Duration    |
+--------------------------------------+---------------------------------+--------+------------+-----------------+-------------------+-------------+
| 7029c1f6-5ab4-465d-82d7-3f29058012ce | check-cpu                       | PASSED | localhost  | localhost       |                   | 0:00:02.531 |
| db059017-30f1-4b97-925e-3f55b586d492 | check-disk-space                | PASSED | localhost  | localhost       |                   | 0:00:04.432 |
| e23dd9a1-90d3-4797-ae0a-b43e55ab6179 | check-ram                       | PASSED | localhost  | localhost       |                   | 0:00:01.324 |
| 598ca02d-258a-44ad-b78d-3877321cdfe6 | check-selinux-mode              | PASSED | localhost  | localhost       |                   | 0:00:01.591 |
| c4435b4c-b432-4a1e-8a99-00638034a884 | check-network-gateway           | FAILED | undercloud | No host matched |                   |             |
| cb1eed23-ef2f-4acd-a43a-86fb09bf0372 | undercloud-disk-space           | FAILED | undercloud | No host matched |                   |             |
| abde5329-9289-4b24-bf16-c4d82b03e67a | undercloud-neutron-sanity-check | FAILED | undercloud | No host matched |                   |             |
| d0e5fdca-ece6-4a37-b759-ed1fac31a10f | ctlplane-ip-range               | FAILED | undercloud | No host matched |                   |             |
| 91511807-225c-4852-bb52-6d0003c51d49 | dhcp-introspection              | FAILED | undercloud | No host matched |                   |             |
| e96f7704-d2fb-465d-972b-47e2f057449c | undercloud-tokenflush           | FAILED | undercloud | No host matched |                   |             |


As per the validation link, 

check-network-gateway

If gateway in undercloud.conf is different from local_ip, verify that the gateway exists and is reachable

Observation - In my case IP specified in local_ip and gateway, both are pingable, but still this error is being observed


ctlplane-ip-range

Check the number of IP addresses available for the overcloud nodes.

Verify that the number of IP addresses defined in dhcp_start and dhcp_end fields in undercloud.conf is not too low.

  • ctlplane_iprange_min_size: 20

Observation - In my case I have defined more than 20 IPs


Similarly for disk related issue, I have dedicated 100 GB space in /var and /

Filesystem           Size  Used Avail Use% Mounted on
devtmpfs              12G     0   12G   0% /dev
tmpfs                 12G   84K   12G   1% /dev/shm
tmpfs                 12G  8.7M   12G   1% /run
tmpfs                 12G     0   12G   0% /sys/fs/cgroup
/dev/mapper/cl-root  100G  2.5G   98G   3% /
/dev/mapper/cl-home   47G  365M   47G   1% /home
/dev/mapper/cl-var   103G  1.1G  102G   2% /var
/dev/vda1            947M  200M  747M  22% /boot
tmpfs                2.4G     0  2.4G   0% /run/user/0
tmpfs                2.4G     0  2.4G   0% /run/user/1000

Despite setting al the parameters, still I am not able to pass pre-introspection checks. "NO Host Matched" is found in the table.


Regards

Anirudh Gupta