OSTF 'Ceilometer test to list meters, alarms, resources and events' fails with InternalServerError
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fuel for OpenStack |
Fix Committed
|
High
|
Ilya Tyaptin | ||
Mitaka |
Fix Released
|
High
|
Ilya Tyaptin | ||
Newton |
Invalid
|
High
|
MOS Ceilometer | ||
Ocata |
Fix Committed
|
High
|
Ilya Tyaptin |
Bug Description
Detailed bug description:
Found on ci: https:/
OSTF 'Ceilometer test to list meters, alarms, resources and events' fails with foolowing exception
InternalServerE
Steps to reproduce:
Run cli_selected_
Expected results:
All ostf suites are passed.
Actual result:
fuel_health.
ceilometerclien
fuel_health.
File "/usr/lib/
result = func(*args, **kwargs)
File "/usr/lib/
return self._list(
File "/usr/lib/
resp = self.api.get(url)
File "/usr/lib/
return self.client_
File "/usr/lib/
self, method, url, **kwargs)
File "/usr/lib/
method, self.concat_
File "/usr/lib/
raise exceptions.
InternalServerE
diagnostic snapshot: https:/
Changed in fuel: | |
importance: | Undecided → High |
status: | New → Confirmed |
assignee: | nobody → Fuel Sustaining (fuel-sustaining-team) |
milestone: | none → 9.1 |
Changed in fuel: | |
milestone: | 9.1 → 10.0 |
Changed in fuel: | |
assignee: | Fuel Sustaining (fuel-sustaining-team) → MOS Ceilometer (mos-ceilometer) |
tags: | added: move-to-9.2 |
Changed in fuel: | |
assignee: | Ilya Tyaptin (ityaptin) → Vladimir Kuklin (vkuklin) |
tags: | added: sla1 |
tags: | added: customer-found |
Hello,
Issue with no storage connection in ceilometer-api caused by running out of connection retries count. storage. get_connection (this count defined by database. max_retries default config in ceilometer.conf) and 12 retries by attempt in impl_mongodb.
In this ceilometer-api.log you could see what ceilometer tries to connect MongoDB 120 times:
There are 10 retries to call ceilometer.
So, ceilometer-api has tried to connect from 2016-08-08T09:57:26 to 2016-08- 08T11:15: 25, but MongoDB started at 2016-08-08T11:18:07 only.
This issue could be fixed by changing database. max_retries to -1 by default. In this case ceilometer-services will try to connect forever and it will return 503 while connection is not established.