PROXY_AUTH_URL in remote.py gets the default config value in the taskmanager

Bug #1675400 reported by György Szombathelyi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack DBaaS (Trove)
Fix Committed
Medium
Unassigned

Bug Description

Seems PROXY_AUTH_URL is initialized too early, so it gets the default value of trove_auth_url, instead of the configured value.

Add the following debugging to remote.py:
.
.
.
def nova_client(context, region_name=None):

    LOG.info("nova_client proxy_auth_url: %s, trove_auth_url: %s" % (PROXY_AUTH_URL, CONF.trove_auth_url))
.
.
.

And you'll get at start:

2017-03-23 12:44:46.293 23287 INFO trove.common.remote [-] nova_client proxy_auth_url: http://0.0.0.0:5000/v2.0, trove_auth_url: https://cloudtest.xxxxx.com:5000

This manifests into errors in a periodic task. This bug is somewhat related to https://bugs.launchpad.net/trove/+bug/1402055. The similarity is the early initialization of that periodic task.

Revision history for this message
György Szombathelyi (gyurco) wrote :

Well, seems the problem is that taskmanager.Manager initialized when RpcService (common/rpc/service.py) is initialized (don't know if it is import_object or trace_cls, it is also strange to see that the RPC endpoints are read from a profiler??).

Amrith Kumar (amrith)
Changed in trove:
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
Trevor McCasland (twm2016) wrote :

I believe this bug has been fixed by this patch https://review.openstack.org/#/c/444040

Changed in trove:
status: Triaged → Fix Committed
Revision history for this message
Amrith Kumar (amrith) wrote :

Trevor, this appears to be a duplicate of 1671655 so I've marked it as such.

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.