Bug 1643912
| Summary: | The validator can't find ironic conf file | ||
|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | Andrey Fiodorov <afiodoro> |
| Component: | openstack-tripleo-validations | Assignee: | Gaël Chamoulaud <gchamoul> |
| Status: | CLOSED ERRATA | QA Contact: | Andrey Fiodorov <afiodoro> |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 14.0 (Rocky) | CC: | beth.white, gchamoul, jjoyce, jschluet, slinaber, tvignaud, ukalifon |
| Target Milestone: | rc | Keywords: | Reopened, Triaged |
| Target Release: | 14.0 (Rocky) | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | openstack-tripleo-validations-9.3.1-0.20181008110755.4064fb7.el7ost | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2019-01-11 11:54:26 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | 1655491 | ||
| Bug Blocks: | |||
|
Description
Andrey Fiodorov
2018-10-29 12:33:49 UTC
*** This bug has been marked as a duplicate of bug 1635335 *** The validator fails with a permission denied error. Task 'Look up the introspection interface' failed: Host: undercloud Message: Could not open the ini file: '/var/lib/config-data/ironic_inspector/etc/ironic-inspector/inspector.conf' Failure! The validation failed for all hosts: * undercloud When I try manually, I have to use 'sudo' to access this file. Also, I think the correct path to the file should be a bit different (with "puppet-generated" in it because that's what's actually mounted inside the containers - but check me on that): /var/lib/config-data/puppet-generated/ironic_inspector/etc/ironic-inspector/inspector.conf Yes Udi, you're right! my mistake. Checked on relevant version: [stack@undercloud-0 ~]$ rpm -q openstack-tripleo-validations openstack-tripleo-validations-9.3.1-0.20181008110752.4064fb7.el7ost.noarch Still fails with error: Task 'Look up the introspection interface' failed: Host: undercloud Message: Could not open the ini file: '/var/lib/config-data/ironic_inspector/puppet-generated/etc/ironic-inspector/inspector.conf' Failure! The validation failed for all hosts: * undercloud **** I think you have a mistake in path **** the inspector.conf file is not there, I ran the find command: [stack@undercloud-0 ~]$ sudo find / -name inspector.conf /var/lib/config-data/puppet-generated/ironic_inspector/etc/ironic-inspector/inspector.conf /var/lib/config-data/ironic_inspector/etc/ironic-inspector/inspector.conf Hey Gael, after retest with your changes it seems that the path to inspector file still wrong, please change it to "/var/lib/config-data/puppet-generated/ironic_inspector/etc/ironic-inspector/inspector.conf". After changing the path to correct, the validator passes from CLI: (undercloud) [stack@undercloud-0 ~]$ ansible-playbook -i /usr/bin/tripleo-ansible-inventory /usr/share/openstack-tripleo-validations/validations/dhcp-introspection.yaml PLAY [undercloud] ************************************************************************************************************************************************************************************************* TASK [Gathering Facts] ******************************************************************************************************************************************************************************************** ok: [undercloud] TASK [Look up the introspection interface] ************************************************************************************************************************************************************************ ok: [undercloud] TASK [Look up the introspection interface from the deprecated option] ********************************************************************************************************************************************* ok: [undercloud] TASK [Look for rogue DHCP servers] ******************************************************************************************************************************************************************************** ok: [undercloud] PLAY RECAP ******************************************************************************************************************************************************************************************************** undercloud : ok=4 changed=0 unreachable=0 failed=0 ***But it still fails with same error*** Task 'Look up the introspection interface' failed: Host: undercloud Message: Could not open the ini file: '/var/lib/config-data/puppet-generated/ironic_inspector/etc/ironic-inspector/inspector.conf' Failure! The validation failed for all hosts: * undercloud I think it is because permission, You can see that the file exist, but has permission: (undercloud) [stack@undercloud-0 ~]$ sudo ls -la /var/lib/config-data/puppet-generated/ironic_inspector/etc/ironic-inspector/ | grep inspector.conf -rw-r-----. 1 42461 42461 40006 Nov 27 09:01 inspector.conf (undercloud) [stack@undercloud-0 ~]$ ls -la /var/lib/config-data/puppet-generated/ironic_inspector/etc/ironic-inspector/ | grep inspector.conf ls: cannot open directory /var/lib/config-data/puppet-generated/ironic_inspector/etc/ironic-inspector/: Permission denied (undercloud) [stack@undercloud-0 ~]$ sudo ls -la /var/lib/config-data/puppet-generated/ironic_inspector/etc/ironic-inspector/ | grep inspector.conf -rw-r-----. 1 42461 42461 40006 Nov 27 09:01 inspector.conf In the inventory, the undercloud is known as 'localhost' and the validation is trying to read the ironic_inspector configuration file in the mistral_executor container instead of the undercloud host. It works if we run the validation through ansible-playbook on the undercloud host, but not from mistral. I've proposed a patch on tripleo-heat-templates to add a bind-mount of /var/lib/config-data/puppet-generated to the mistral_executor container. Verified. [stack@undercloud-0 ~]$ rpm -q openstack-tripleo-validations openstack-tripleo-validations-9.3.1-0.20181008110756.4064fb7.el7ost.noarch Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHEA-2019:0045 |