validations callback fails on stable/train

Bug #1904781 reported by Alex Schultz
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
tripleo
Triaged
Medium
David Peacock

Bug Description

On current stable/train when trying to install an undercloud you get an error around validations:

[centos@undercloud ~]$ openstack undercloud install
[WARNING]: log file at /usr/share/openstack-tripleo-validations/playbooks/ansible.log is not writeable and we cannot create it, aborting

Using /tmp/undercloud-disk-space.yamly3979oansible.cfg as config file
Success! The validation passed for all hosts:
* undercloud
[WARNING]: Failure using method (v2_playbook_on_stats) in callback plugin (<ansible.plugins.callback.validation_json.CallbackModule object at 0x7f1b37903a10>): [Errno 2] No such file or directory:
'/var/log/validations/fa163ebf-0175-b7c1-09fb-000000000006_undercloud-disk-space_2020-11-18T19:50:23.874129Z.json'

Changed in tripleo:
assignee: nobody → David Peacock (davidjpeacock)
Revision history for this message
Cédric Jeanneret (cjeanner) wrote :
Revision history for this message
Alex Schultz (alex-schultz) wrote :

I don't know that just creating the folder will work. I'm concerned given that it's being written to by something invoked via tripleoclient that it won't be able to write out to /var/log/validations

Revision history for this message
Alex Schultz (alex-schultz) wrote :

At the end of the install you also get:

[WARNING]: Failure using method (v2_playbook_on_stats) in callback plugin (<ansible.plugins.callback.validation_json.CallbackModule object at 0x7f06a1236a90>): 'module' object has no attribute 'dumps'

We likely should not have that callback included when commands that aren't validation commands

Revision history for this message
Michele Baldessari (michele) wrote :

Note, I also hit this on master (fwiw)

Changed in tripleo:
milestone: wallaby-1 → wallaby-2
Revision history for this message
Alex Schultz (alex-schultz) wrote :

We should not be including the validations callback when not running validations explicitly

Changed in tripleo:
milestone: wallaby-2 → wallaby-3
Revision history for this message
Alex Schultz (alex-schultz) wrote :

err i don't think this has been fixed

Changed in tripleo:
status: Triaged → Fix Released
status: Fix Released → Triaged
Changed in tripleo:
milestone: wallaby-3 → wallaby-rc1
Changed in tripleo:
milestone: wallaby-rc1 → xena-1
Changed in tripleo:
milestone: xena-1 → xena-2
Changed in tripleo:
milestone: xena-2 → xena-3
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.