ironic/doc/source/dev/faq.rst
Lucas Alvares Gomes 011d03723b Extend FAQ with answer of how to create a new release note
The question was raised in the #openstack-ironic IRC channel

Change-Id: I7d72adc96d606e6062930fe3c9e653ba369e621b
2015-11-30 13:51:54 +00:00

1.5 KiB

Developer FAQ (frequently asked questions)

Here are some answers to frequently-asked questions from IRC and elsewhere.

How do I...

...create a migration script template?

Using the alembic revision command, e.g:

$ cd ironic/ironic/db/sqlalchemy
$ alembic revision -m "create foo table"

For more information see the alembic documentation.

...create a new release note?

By running reno command via tox, e.g:

$ tox -e venv -- reno new version-foo
  venv create: /home/foo/ironic/.tox/venv
  venv installdeps: -r/home/foo/ironic/test-requirements.txt
  venv develop-inst: /home/foo/ironic
  venv runtests: PYTHONHASHSEED='0'
  venv runtests: commands[0] | reno new version-foo
  Created new notes file in releasenotes/notes/version-foo-ecb3875dc1cbf6d9.yaml
    venv: commands succeeded
    congratulations :)

$ git status
  On branch test
  Untracked files:
    (use "git add <file>..." to include in what will be committed)

    releasenotes/notes/version-foo-ecb3875dc1cbf6d9.yaml

Then edit the result file.

For more information see the reno documentation.