Clients need to be added to rid of error messages

Bug #1744972 reported by Brad P. Crochet
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Won't Fix
Medium
Brad P. Crochet

Bug Description

Mistral attempts to create actions based on clients that are installed. Errors can be seen here:

http://logs.openstack.org/60/534360/9/check/tripleo-ci-centos-7-undercloud-containers/e96445a/logs/undercloud/home/zuul/undercloud_install.log.txt.gz#_2018-01-19_17_32_23

If the client doesn't exist, the error reads: AttributeError: 'NoneType' object has no attribute 'Client'"

This is the case for Tacker, and Glare.

For keystone.oauth1, oauthlib needs to be installed.

We should install these things for convenience to the user, and to get rid of unwanted "errors", even though they don't truly affect the running of the system.

Revision history for this message
Brad P. Crochet (brad-9) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to instack-undercloud (master)

Fix proposed to branch: master
Review: https://review.openstack.org/536905

Changed in tripleo:
status: Triaged → In Progress
Revision history for this message
Dougal Matthews (d0ugal) wrote :

The fix here needs to be done in Mistral, there is work that has been in the pipeline (but has stalled) that would fix this.

The correct solution would be... Mistral wants to move the OpenStack actions to mistral-extra. This would then be configurable and would let users enable specific sets of actions. We would then only enable the OpenStack project actions that are relevant to a TripleO undercloud.

This wont happen for Queens, however, I think it could be a reasonable goal for Rocky if time can be assigned to it.

Having said that, there is a potential workaround if a fix is required sooner. Mistral can be given a custom mapping.json with only the actions we want to enable. At the moment it defaults to everything. https://github.com/openstack/mistral/blob/master/mistral/actions/openstack/mapping.json

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on instack-undercloud (master)

Change abandoned by Brad P. Crochet (<email address hidden>) on branch: master
Review: https://review.openstack.org/536905

Revision history for this message
Brad P. Crochet (brad-9) wrote :

https://review.openstack.org/#/c/536886/ was also done to address this. It removes old client calls that no longer exist. I agree that the fix should probably be in Mistral, as opposed to adding unnecessary clients.

Should Mistral perhaps remove these less commonly used clients by default, and maybe have a default mapping.json that contains a smaller set and a 'full' mapping.json?

Changed in tripleo:
milestone: queens-rc1 → rocky-1
Changed in tripleo:
milestone: rocky-1 → rocky-2
Changed in tripleo:
milestone: rocky-2 → rocky-3
Changed in tripleo:
milestone: rocky-3 → rocky-rc1
Changed in tripleo:
milestone: rocky-rc1 → stein-1
Brad P. Crochet (brad-9)
Changed in tripleo:
status: In Progress → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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