'tox -e releasenotes' fails because of the input file format

Bug #1695795 reported by Takashi Natsume
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-novaclient
Fix Released
Undecided
Unassigned

Bug Description

When executing 'tox -e releasenotes', it fails because of the input file format.

Log
===

stack@devstack-master1:/tmp/python-novaclient$ tox -e releasenotes
(snipped...)
scanning /tmp/python-novaclient/releasenotes/notes (branch=*current* earliest_version=None)
earliest version to include is 7.1.0-70
stopping scan at 7.1.0
26f4e4301f84d403: adding releasenotes/notes/global_request_id-26f4e4301f84d403.yaml from 7.1.0-70
26f4e4301f84d403: new releasenotes/notes/global_request_id-26f4e4301f84d403.yaml in commit b'd25502cbe2749ed7042e427fe8d4a3678acf4550'
bc76629d28f1d4c4: adding releasenotes/notes/remove-deprecated-option-in-9.0.0-bc76629d28f1d4c4.yaml from 7.1.0-70
bc76629d28f1d4c4: new releasenotes/notes/remove-deprecated-option-in-9.0.0-bc76629d28f1d4c4.yaml in commit b'3a762401245de8c2941ea41d6168c17ddd30aacd'
7947430cc2415597: update to releasenotes/notes/microversion-v2_32-7947430cc2415597.yaml in commit b'aa7f35d76b5768ec3fe4d45ad010d53adff7cccd'
670202797fdf97b6: adding releasenotes/notes/deprecate-cloudpipe-670202797fdf97b6.yaml from 7.1.0-70
670202797fdf97b6: new releasenotes/notes/deprecate-cloudpipe-670202797fdf97b6.yaml in commit b'0d92534824105994da151e789df03f4c8f7740f7'
5d2fed7657d3def5: adding releasenotes/notes/instance-uuid-flag-in-migration-list-5d2fed7657d3def5.yaml from 7.1.0-70
5d2fed7657d3def5: new releasenotes/notes/instance-uuid-flag-in-migration-list-5d2fed7657d3def5.yaml in commit b'59f885896afc0ee637e66a77ad7e0f483f81bdcc'
1bfcae3914280534: adding releasenotes/notes/microversion-v2_45-1bfcae3914280534.yaml from 7.1.0-70
1bfcae3914280534: new releasenotes/notes/microversion-v2_45-1bfcae3914280534.yaml in commit b'603f0eae9f4c77b3e43a8c83eb797e857c75343d'
d60c8834e436ad3d: adding releasenotes/notes/microversion-v2_44-d60c8834e436ad3d.yaml from 7.1.0-70
d60c8834e436ad3d: new releasenotes/notes/microversion-v2_44-d60c8834e436ad3d.yaml in commit b'e303cf11bf6c8652edf13caa0ddf238103ea8601'
76db2ac463b431e4: adding releasenotes/notes/microversion-v2_43-76db2ac463b431e4.yaml from 7.1.0-70
76db2ac463b431e4: new releasenotes/notes/microversion-v2_43-76db2ac463b431e4.yaml in commit b'ea3b9f7fef28a7f06b51a3b176c85a1fc33cecaa'
25483a80f548ef35: adding releasenotes/notes/fix-tag-attribute-disappearing-25483a80f548ef35.yaml from 7.1.0-70
25483a80f548ef35: new releasenotes/notes/fix-tag-attribute-disappearing-25483a80f548ef35.yaml in commit b'4b8863341a15c224824e272fa5eecbe0de35f925'
db77210dfd3ec671: adding releasenotes/notes/add-user-agent-string-db77210dfd3ec671.yaml from 7.1.0-70
db77210dfd3ec671: new releasenotes/notes/add-user-agent-string-db77210dfd3ec671.yaml in commit b'92665dbcd823a28ae14a5ee5ba911513697d17be'
88b3f18ce1423b46: adding releasenotes/notes/remove_api_v_1_1-88b3f18ce1423b46.yaml from 7.1.0-70
88b3f18ce1423b46: new releasenotes/notes/remove_api_v_1_1-88b3f18ce1423b46.yaml in commit b'4c18c8bd97305ca27d26d19087c1b1e3b831d073'
1558d8e3b7888938: adding releasenotes/notes/deprecate-certs-1558d8e3b7888938.yaml from 7.1.0-70
1558d8e3b7888938: new releasenotes/notes/deprecate-certs-1558d8e3b7888938.yaml in commit b'b6aea669630dc88296bdded963051a35cc9f995e'
272aeb62b329a5bc: update to releasenotes/notes/pike-rm-deprecated-net-272aeb62b329a5bc.yaml in commit b'9ca9ae6c1098e9c096aa7a400a8bfb153ef4d630'
fbc8c242d48cd2fb: adding releasenotes/notes/rm-baremetal-cli-api-fbc8c242d48cd2fb.yaml from 7.1.0-70
fbc8c242d48cd2fb: new releasenotes/notes/rm-baremetal-cli-api-fbc8c242d48cd2fb.yaml in commit b'dee51a0163dee4dff9aca5da82ca1a6c8a9911b7'
17bd019f4be34b18: adding releasenotes/notes/drop-deprecated-aggregate-update-args-17bd019f4be34b18.yaml from 7.1.0-70
17bd019f4be34b18: new releasenotes/notes/drop-deprecated-aggregate-update-args-17bd019f4be34b18.yaml in commit b'db55f563adbb470d452e6eafe2842447241eb7cf'
eb34cb7c43cfcb89: adding releasenotes/notes/deprecate_cell_name_arg-eb34cb7c43cfcb89.yaml from 7.1.0-70
eb34cb7c43cfcb89: new releasenotes/notes/deprecate_cell_name_arg-eb34cb7c43cfcb89.yaml in commit b'6ec83fbfa1050fd21c8cbe4f01d36d743da59900'
272aeb62b329a5bc: adding releasenotes/notes/pike-rm-deprecated-net-272aeb62b329a5bc.yaml from 7.1.0-70
d58e9ae2d774cbfc: adding releasenotes/notes/pike-rm-deprecated-img-d58e9ae2d774cbfc.yaml from 7.1.0-70
d58e9ae2d774cbfc: new releasenotes/notes/pike-rm-deprecated-img-d58e9ae2d774cbfc.yaml in commit b'41f66d15aa83004d5b26f7d510b19cd8c4b39e8b'
000103 b'f6e0128f9a66b48a24c10d532a9e4e8d7d7e94a5' updating current version to 7.1.0
reached end of branch after 103 commits at b'f6e0128f9a66b48a24c10d532a9e4e8d7d7e94a5' with tags ['7.1.0']
[reno] got versions ['7.1.0-70']

Warning, treated as error:
The item {'The following deprecated options have been removed': [{'create instances': ['--num-instance replaced by --min-count and --max-count', '--key_name replaced by --key-name', '--user_data replaced by --user-data', '--availability_zone replaced by -- availability-zone', '--security_groups replaced by --sercurity-groups', '--block_device_mapping replaced by --block-device-mapping']}, {'list servers': ['--reservation_id replaced by --reservation-id', '--instance_name replaced by --instance-name', '--all_tenants replaced by --all-tenants']}, {'rebuild instance': ['--rebuild_password replaced by --rebuild-password']}, {'get serial console': ['--console_type replaced by --console-type']}, {'create dns private domain': ['--availability_zone replaced by --availability-zone']}, {'list security groups': ['--all_tenants replaced by --all-tenants']}, {'add key pairs': ['--pub_key replaced by --pub-key']}, {'live-migrate servers': ['--block_migrate replaced by --block-migrate', '--disk_over_commit replaced by --disk-over-commit']}, {'update quotas': ['--floating_ips replaced by --floating-ips', '--metadata_items replaced by --metadata-items', '--injected_files replaced by --injected-files', '--injected_file_content_bytes replaced by --injected-file-content-bytes']}, {'update quota classes': ['--floating_ips replaced by --floating-ips', '--metadata_items replaced by --metadata-items', '--injected_files replaced by --injected-files', '--injected_file_content_bytes replaced by --injected-file-content-bytes']}, {'create server groups': ['--policy']}, {'Authentication Options': ['--os_username replaced by --os-username', '--os_password replaced by --os-password', '--os_tenant_name replaced by --os-tenant-name', '--os_auth_url replaced by --os-auth-url', '--os_region_name replaced by --os-region-name', '--os_auth_system replaced by --os-auth-system', '--endpoint-type replaced by --os-endpoint-type']}, {'Optional arguments': ['--service_type replaced by --service-type', '--service_name replaced by --service-name', '--volume_service_name replaced by --volume-service-name', '--os_compute_api_version replaced by --os-compute-api-version', '--bypass_url replaced by --bypass-url']}]} in the update section of releasenotes/notes/remove-deprecated-option-in-3.3.0-82a413157838570d.yaml parses as a <class 'dict'> instead of a string. Is the YAML input escaped properly?
ERROR: InvocationError: '/tmp/python-novaclient/.tox/releasenotes/bin/sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html'
________________________________________________________________________________________________ summary ________________________________________________________________________________________________
ERROR: releasenotes: commands failed

Environment
===========

python-novaclient:
master(commit 461135665f5941dce8d3960e0efa3168f9698770)

OS:
Ubuntu 16.04.2 LTS

tags: added: doc
Revision history for this message
Takashi Natsume (natsume-takashi) wrote :

This bug has been fixed by the following patch.

https://review.openstack.org/#/c/471081/

tags: added: in-stable-newton
Changed in python-novaclient:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.