AttributeError while audit creating

Bug #1818962 reported by Tatiana Kholkina on 2019-03-07
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
watcher
Undecided
Tatiana Kholkina

Bug Description

When I'n trying to create an audit with the following command

watcher audit create -g cluster_maintaining -s host_maintenance -p maintenance_node=cmp1 --auto-trigger

the AttributeError occurred:

2019-03-04 22:12:11.482 3892035 ERROR watcher.decision_engine.audit.base [req-78623f7c-5161-4b20-9212-fe5d27261848 - - - - -] 'dict' object has no attribute 'uuid': AttributeError: 'dict' object has no attribute 'uuid'
2019-03-04 22:12:11.482 3892035 ERROR watcher.decision_engine.audit.base Traceback (most recent call last):
2019-03-04 22:12:11.482 3892035 ERROR watcher.decision_engine.audit.base File "/opt/watcher/local/lib/python2.7/site-packages/watcher/decision_engine/planner/workload_stabilization.py", line 282, in validate_parents
2019-03-04 22:12:11.482 3892035 ERROR watcher.decision_engine.audit.base self._mapping(resource_action_map, host_name, action.uuid,
2019-03-04 22:12:11.482 3892035 ERROR watcher.decision_engine.audit.base AttributeError: 'dict' object has no attribute 'uuid'
2019-03-04 22:12:11.482 3892035 ERROR watcher.decision_engine.audit.base
2019-03-04 22:12:11.483 3892035 DEBUG watcher.decision_engine.audit.base [req-78623f7c-5161-4b20-9212-fe5d27261848 - - - - -] Update audit state: FAILED update_audit_state /opt/watcher/local/lib/python2.7/site-packages/watcher/decision_engine/audit/base.py:110
2019-03-04 22:12:11.633 3892035 DEBUG watcher.notifications.base [req-78623f7c-5161-4b20-9212-fe5d27261848 - - - - -] Emitting notification `audit.update` _emit /opt/watcher/local/lib/pytho
n2.7/site-packages/watcher/notifications/base.py:177

Tatiana Kholkina (tlashchova) wrote :
Changed in watcher:
assignee: nobody → Tatiana Kholkina (tlashchova)

Reviewed: https://review.openstack.org/643249
Committed: https://git.openstack.org/cgit/openstack/watcher/commit/?id=e830d3793ec21b0d36e22033237cfa81ce35993c
Submitter: Zuul
Branch: master

commit e830d3793ec21b0d36e22033237cfa81ce35993c
Author: Tatiana Kholkina <email address hidden>
Date: Thu Mar 14 11:51:48 2019 +0300

    Access to action's uuid by key

    Change-Id: I9fe992be8f54de51f0c8e0a9fcf7880c68360929
    Closes-Bug: #1818962

Changed in watcher:
status: New → Fix Released

Reviewed: https://review.openstack.org/643513
Committed: https://git.openstack.org/cgit/openstack/watcher/commit/?id=d226c5d0fb3713c73f523afbc274fe9dbd6116af
Submitter: Zuul
Branch: stable/rocky

commit d226c5d0fb3713c73f523afbc274fe9dbd6116af
Author: Tatiana Kholkina <email address hidden>
Date: Thu Mar 14 11:51:48 2019 +0300

    Access to action's uuid by key

    Change-Id: I9fe992be8f54de51f0c8e0a9fcf7880c68360929
    Closes-Bug: #1818962
    (cherry picked from commit e830d3793ec21b0d36e22033237cfa81ce35993c)

tags: added: in-stable-rocky

This issue was fixed in the openstack/watcher 2.0.0.0rc1 release candidate.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers