2015-12-02 19:37:36 +00:00
|
|
|
Freezer Style Commandments
|
|
|
|
===========================
|
|
|
|
|
|
|
|
- Step 1: Read the OpenStack Style Commandments
|
2017-07-14 05:02:46 +08:00
|
|
|
https://docs.openstack.org/hacking/latest/
|
2015-12-02 19:37:36 +00:00
|
|
|
- Step 2: Read on
|
|
|
|
|
|
|
|
Freezer Specific Commandments
|
|
|
|
------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
Logging
|
|
|
|
-------
|
|
|
|
|
|
|
|
Use the common logging module, and ensure you ``getLogger``::
|
|
|
|
|
|
|
|
from oslo_log import log
|
|
|
|
|
|
|
|
LOG = log.getLogger(__name__)
|
|
|
|
|
|
|
|
LOG.debug('Foobar')
|
|
|
|
|
2016-03-08 12:11:26 +00:00
|
|
|
|
|
|
|
oslo.config
|
|
|
|
-----------
|
|
|
|
|
|
|
|
- All configuration options for freezer-scheduler should be in the following file ::
|
|
|
|
|
|
|
|
freezer/scheduler/arguments.py
|
|
|
|
|
|
|
|
- After adding new options to freezer-scheduler please use the following command to update the sample configuration file::
|
|
|
|
|
2018-09-05 10:03:07 +09:00
|
|
|
oslo-config-generator --config-file etc/config-generator.conf
|
2016-03-08 12:11:26 +00:00
|
|
|
|
|
|
|
- If you added support for a new oslo library, you have to edit the following file adding a new namespace for the new oslo library:
|
|
|
|
for example adding oslo.db::
|
|
|
|
|
2018-09-05 10:03:07 +09:00
|
|
|
# edit etc/config-generator.conf
|
2016-03-08 12:11:26 +00:00
|
|
|
[DEFAULT]
|
|
|
|
output_file = etc/scheduler.conf.sample
|
|
|
|
wrap_width = 79
|
|
|
|
namespace = scheduler
|
|
|
|
namespace = oslo.log
|
|
|
|
namespace = oslo.db
|
|
|
|
|
|
|
|
This will add oslo.db options to your configuration file.
|
|
|
|
|
|
|
|
Agent Options
|
|
|
|
-------------
|
|
|
|
- All configuration options for freezer-agent should be in the following file ::
|
|
|
|
|
|
|
|
freezer/common/config.py
|
|
|
|
|
|
|
|
- To list options available in freezer-agent use the following command::
|
|
|
|
|
|
|
|
oslo-config-generator --namespace freezer --namespace oslo.log
|
2017-04-18 10:02:14 +00:00
|
|
|
|
|
|
|
|
|
|
|
Release Notes
|
|
|
|
-------------
|
|
|
|
|
2018-03-23 01:39:29 +08:00
|
|
|
- When a new feature is committed we should have a new release notes page that
|
2017-04-18 10:02:14 +00:00
|
|
|
highlights the changes made. These release notes will be used for deployers,
|
|
|
|
users, and developers. There are a few steps that need to be taken in order.
|
|
|
|
|
|
|
|
* Generate a release notes page
|
|
|
|
1. tox -e venv -- reno new {my-new-feature}
|
2017-07-14 05:02:46 +08:00
|
|
|
2. https://docs.openstack.org/reno/latest/user/index.html#creating-new-release-notes
|
2017-04-18 10:02:14 +00:00
|
|
|
|
|
|
|
* Update/Edit an existing release note
|
2017-07-14 05:02:46 +08:00
|
|
|
1. https://docs.openstack.org/reno/latest/user/index.html#editing-a-release-note
|
2017-04-18 10:02:14 +00:00
|
|
|
|
|
|
|
|
|
|
|
- Building release notes::
|
|
|
|
|
|
|
|
tox -e releasenotes
|
|
|
|
|