monitor_api_opts config options are not used when initialization of connection
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
masakari-monitors |
New
|
Undecided
|
Unassigned |
Bug Description
In masakari-
In case, if you are running masakari service in multiple regions, then it's not possible to run masakari-monitors service for any specific region/interface and api_version. As there is only one supported api_version, it doesn't have any huge impact. But region and interface options are not working at all. Internally, when masakari-monitors service will try to initialize connection, it will get the first endpoint (It could be of any region) and it will try to connect.
Expect result: It should respect region, api_version and api_interface config options.
This fix should be back ported to the stable/queens and stable/rocky branches.