New configuration strategy needed to adapt to oslo-messaging
oslo messaging use oslo.config as configuration utility to setup Transport object. Here are 2 problems need to consider:
1)
oslo.messaging: parse options in the default section as amqp paramerters input
our current design: 2 message brokers to setup, options are parsed from [openstack] and [powervc] sections respectively.
2)
oslo.config.
A new configuration strategy is needed to solve the 2 problems.
Here is one proposal:
1. devide powervc.conf into powervc.conf, amqp-powervc.conf, amqp-openstack.
2. all amqp related options in both [powervc] and [openstack] sections of powervc.conf will be removed.
3. all amqp related options for powervc are configured in amqp-powervc.conf.
4. all amqp related options for openstack are configured in amqp-openstack.
5. at the beginning of a driver service launching,
5a. initialize and parse for an oslo.config.
5b. initialize and parse for an oslo.config.
6. remove the two amqp conf file from the sys.argv list
7. then initialize and parse for the global oslo.config.
8. when create transport oslo.messaging.
The new service launching commands are:
Glance:
python glance-
Neutron:
python neutron-
Cinder:
python cinder-
Nova:
python nova-powervc/
Blueprint information
- Status:
- Not started
- Approver:
- Hydrogen Driver Team
- Priority:
- Undefined
- Drafter:
- Le Tian Ren
- Direction:
- Needs approval
- Assignee:
- Le Tian Ren
- Definition:
- Approved
- Series goal:
- None
- Implementation:
- Unknown
- Milestone target:
- None
- Started by
- Completed by
Related branches
Related bugs
Sprints
Whiteboard
Aug 13. I'm gonna create a new branch in github for this experiment, so don't bother other fixes until it works well and become stable.
Aug 14. new branch created, https:/
Sep 1. implementation done, https:/
Gerrit topic: https:/
Addressed by: https:/
New config strategy to adapt to oslo-messaging
Gerrit topic: https:/
Addressed by: https:/
Upstart process daemon scripts need to change.
Addressed by: https:/
Upstart process daemon scripts need to change.
Work Items
Work items:
create new branch for long-lived features, https:/
implementation, https:/