Overriding a topic causes designate to fail to start
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Designate |
Fix Released
|
Undecided
|
Erik Olof Gunnar Andersson |
Bug Description
If any of the topics are overridden in the configuration it causes the application to crash at startup, e.g.
[service:central]
central_
[service:mdns]
mdns_topic=fun_mdns
[service:worker]
worker_
CRITICAL designate [-] Unhandled error: NoSuchOptError: no such option service:fun_central in group [DEFAULT]
ERROR designate Traceback (most recent call last):
ERROR designate File "/usr/local/
ERROR designate sys.exit(main())
ERROR designate File "/opt/stack/
ERROR designate server = central.
ERROR designate File "/opt/stack/
ERROR designate super(Service, self)._
ERROR designate File "/opt/stack/
ERROR designate super(RPCService, self)._
ERROR designate File "/opt/stack/
ERROR designate self._service_
ERROR designate File "/usr/local/
ERROR designate return self.__
ERROR designate File "/usr/local/
ERROR designate raise NoSuchOptError(
ERROR designate NoSuchOptError: no such option service:fun_central in group [DEFAULT]
ERROR designate
Changed in designate: | |
assignee: | nobody → Erik Olof Gunnar Andersson (eandersson) |
status: | New → In Progress |
Reviewed: https:/ /review. opendev. org/665268 /git.openstack. org/cgit/ openstack/ designate/ commit/ ?id=fcb3290be7c af04b6b065f8a25 bc4b8a3fd9113a
Committed: https:/
Submitter: Zuul
Branch: master
commit fcb3290be7caf04 b6b065f8a25bc4b 8a3fd9113a
Author: Erik Olof Gunnar Andersson <email address hidden>
Date: Thu Jun 13 17:24:50 2019 -0700
Fixed renaming topic breaking service
Changing the topic currently changes the service_name. This
breaks the service, as the service_name is also used to
load the appropriate configuration seection for the service.
> self._service_ config = CONF['service:%s' % self.service_name]
* Renames cfg option [service: <name>] .<name> _topic to [service: <name>] .topic
* Removed previously unused configs related to topics.
* Added topic override for producer.
* Added test coverage.
Closes-Bug: #1832799 5aa533df80793df c4d22151cbb
Change-Id: I16385361ec2502