host-aggregate id error in watcher audittemplate create

Bug #1734056 reported by YumengBao
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
watcher
Fix Released
Medium
YumengBao

Bug Description

root@tecs:/home/watcher# watcher audittemplate create template-test2 saving_energy --scope /home/test_template
{'id': '2'} is not valid under any of the given schemas

Failed validating 'anyOf' in schema['items']['properties']['compute']['items']['properties']['host_aggregates']['items']:
    {'anyOf': [{'$ref': '#/items/properties/compute/host_aggregates/id'},
               {'$ref': '#/items/properties/compute/host_aggregates/name'}]}

On instance[0]['compute'][0]['host_aggregates'][0]:
    {'id': '2'} (HTTP 500)

YumengBao (yumeng-bao)
Changed in watcher:
assignee: nobody → YumengBao (yumeng-bao)
YumengBao (yumeng-bao)
Changed in watcher:
importance: Undecided → Medium
Revision history for this message
YumengBao (yumeng-bao) wrote :

vim /home/test_template
[{"compute": [{"host_aggregates": [{"id": '2'}]}, {"availability_zones": [ {"name": "nova"}]},] }]

"id" should be integer,not string.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to watcher-dashboard (master)

Reviewed: https://review.openstack.org/522698
Committed: https://git.openstack.org/cgit/openstack/watcher-dashboard/commit/?id=34bcbf10b697e430db67dfcb65e29925107b096b
Submitter: Zuul
Branch: master

commit 34bcbf10b697e430db67dfcb65e29925107b096b
Author: Yumeng Bao <email address hidden>
Date: Fri Nov 24 11:38:18 2017 +0800

    Update audit_template create help message

    ‘id’ should be integer, not string.

    Change-Id: Ie3fa36e8788c2c8dba2305d9857b5ed71618e167
    Closes-Bug: #1734056

Changed in watcher:
status: New → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/watcher-dashboard 1.6.0

This issue was fixed in the openstack/watcher-dashboard 1.6.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-watcherclient 1.6.0

This issue was fixed in the openstack/python-watcherclient 1.6.0 release.

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.