Unable to update profile

Bug #1706855 reported by lidong
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
senlin-dashboard
Fix Released
Undecided
lidong

Bug Description

Reproduce:
1. Cluster/Profiles page
2. Update profile selected
3. Modify name or metadata or both of them
4. update profile
=> mesg: Unable to update profile
------------------------------------

And the detailed message of failure is : Additional properties are not allowed (u'spec' was unexpected) (HTTP 400) (Request-ID: req-fa7dc697-03aa-4fb7-bd3f-77358b79ec5c).
And the spec of profile selected should not be updated.

In this file https://github.com/openstack/senlin-dashboard/blob/master/senlin_dashboard/cluster/profiles/forms.py
line 158: opts contains key spec. And this additional key results in failure

So I got error,
I tried to change: add del opts['spec'] before senlin.profile_update(request, data.get('profile_id'), **opts)
And profile now can update via dashboard

lidong (lidong007)
Changed in senlin-dashboard:
assignee: nobody → lidong (lidong007)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to senlin-dashboard (master)

Fix proposed to branch: master
Review: https://review.openstack.org/487705

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

Reviewed: https://review.openstack.org/487705
Committed: https://git.openstack.org/cgit/openstack/senlin-dashboard/commit/?id=a9bdf1c04fdead1611bc7c785a276db00a805cbd
Submitter: Jenkins
Branch: master

commit a9bdf1c04fdead1611bc7c785a276db00a805cbd
Author: lidong <email address hidden>
Date: Thu Jul 27 13:56:39 2017 +0800

    Unable to update profile

    The detailed message of failure is : Additional properties are not allowed (u'spec' was unexpected)
    And the spec of profile selected should not be updated.
    changed:- add del opts['spec'] before senlin.profile_update(request, data.get('profile_id'), **opts)

    Change-Id: I828571cfa4ad060ca5e882dc118442fd49d19f4f
    Closes-Bug: #1706855

Changed in senlin-dashboard:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/senlin-dashboard 0.7.0

This issue was fixed in the openstack/senlin-dashboard 0.7.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.