Use OpenStack API instead of MySQL to collect the status of the workers/agents
Bug #1546188 reported by
Simon Pasquier
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StackLight |
Fix Released
|
High
|
guillaume thouvenin |
Bug Description
Right now the LMA collector queries the MySQL service to compute the status of the Nova/Cinder/Neutron services. This has led to miscellaneous issues [1][2][3] that would be all fixed by using the existing APIs to get the same information.
[1] https:/
[2] https:/
[3] https:/
Changed in lma-toolchain: | |
importance: | Wishlist → High |
Changed in lma-toolchain: | |
assignee: | LMA-Toolchain Fuel Plugins (mos-lma-toolchain) → guillaume thouvenin (guillaume-thouvenin) |
tags: | added: collectd |
tags: | added: mos9 |
Changed in lma-toolchain: | |
status: | In Progress → Fix Committed |
Changed in lma-toolchain: | |
milestone: | 1.0.0 → 0.10.0 |
Changed in lma-toolchain: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Raising the importance to Critical because using MySQL makes the LMA collector crash with MOS 9:
2016/03/01 08:41:12 Decoder 'collectd_ httplisten- collectd_ decoder' error: FATAL: process_message() /usr/share/ lma_collector/ decoders/ collectd. lua:52: services. osapi_compute. disabled
Content of the services table (note the nova-osapi_compute entry):
mysql> select `binary`, `host` from services; ------- ------- +------ ------- ------- ------+ ------- ------- +------ ------- ------- ------+ test.domain. local | test.domain. local | test.domain. local | test.domain. local | test.domain. local | ------- ------- +------ ------- ------- ------+
+------
| binary | host |
+------
| nova-metadata | 0.0.0.0 |
| nova-osapi_compute | 10.109.1.6 |
| nova-cert | node-5.
| nova-conductor | node-5.
| nova-consoleauth | node-5.
| nova-scheduler | node-5.
| nova-compute | node-6.
+------
And the output of the nova service-list command is correct: ------- ------- ---+--- ------- ------- ------- --+---- ------+ ------- --+---- ---+--- ------- ------- ------- ----+-- ------- ------- -+ ------- ------- ---+--- ------- ------- ------- --+---- ------+ ------- --+---- ---+--- ------- ------- ------- ----+-- ------- ------- -+ test.domain. local | internal | enabled | up | 2016-03- 01T08:44: 07.000000 | - | test.domain. local | internal | enabled | up | 2016-03- 01T08:44: 08.000000 | - | test.domain. local | internal | enabled | up | 2016-03- 01T08:43: 43.000000 | - | test.domain. local | internal | enabled | up | 2016-03- 01T08:43: 44.000000 | - | test.domain. local | nova | enabled | up | 2016-03- 01T08:43: 58.000000 | - | ------- ------- ---+--- ------- ------- ------- --+---- ------+ ------- --+---- ---+--- ------- ------- ------- ----+-- ------- ------- -+
+----+-
| Id | Binary | Host | Zone | Status | State | Updated_at | Disabled Reason |
+----+-
| 1 | nova-consoleauth | node-5.
| 2 | nova-cert | node-5.
| 3 | nova-scheduler | node-5.
| 4 | nova-conductor | node-5.
| 8 | nova-compute | node-6.
+----+-