Trove-taskamager raises error when nova_compute_url isn't set
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack DBaaS (Trove) |
New
|
Wishlist
|
Unassigned |
Bug Description
I got the error log as follows in trove-taskmanager.
```
2016-08-24 06:57:02.080 ERROR oslo_service.
2016-08-24 06:57:02.080 TRACE oslo_service.
2016-08-24 06:57:02.080 TRACE oslo_service.
2016-08-24 06:57:02.080 TRACE oslo_service.
2016-08-24 06:57:02.080 TRACE oslo_service.
2016-08-24 06:57:02.080 TRACE oslo_service.
2016-08-24 06:57:02.080 TRACE oslo_service.
2016-08-24 06:57:02.080 TRACE oslo_service.
2016-08-24 06:57:02.080 TRACE oslo_service.
2016-08-24 06:57:02.080 TRACE oslo_service.
2016-08-24 06:57:02.080 TRACE oslo_service.
2016-08-24 06:57:02.080 TRACE oslo_service.
```
This error happens when nova_compute_url isn't set.
I looked source code and found the reason.
trove-taskmanager dosen't set `service_catalog`, when `admin_context` is set.[1]
When `nova_compute_url` isn't set, `nova_client` calls `get_endpoint`.[2]
When there isn't set `service_catalog`, `get_endpoint` raises `exception.
There aren't test cases, because`
[1]: https:/
[2]: https:/
[3]: https:/
[4]: https:/
I don't have a good fix idea.
please anyone fix this issue.
best regards
Changed in trove: | |
importance: | Undecided → Wishlist |
Looks similar to https:/ /bugs.launchpad .net/trove/ +bug/1402055