cluster resize error

Bug #1734616 reported by liyi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
senlin
Fix Released
Undecided
liyi

Bug Description

When execute 'openstack cluster resize --min-size 1 --max-size 2 server_cluster', senlin-engine will raise following exception.

Exception:
[req-f673d28a-deb0-436a-9300-8aba78cdecae admin admin] Calling <senlin.api.openstack.v1.clusters.Clust
 [req-f673d28a-deb0-436a-9300-8aba78cdecae admin admin] Unexpected error occurred serving API: : NotImp
Traceback (most recent call last):
  File "/opt/stack/senlin/senlin/api/common/wsgi.py", line 627, in __call__
    request, **action_args)
  File "/opt/stack/senlin/senlin/api/common/wsgi.py", line 703, in dispatch
    return method(*args, **kwargs)
  File "/opt/stack/senlin/senlin/api/common/util.py", line 42, in policy_checker
    return handler(controller, req, **kwargs)
  File "/opt/stack/senlin/senlin/api/openstack/v1/clusters.py", line 256, in action
    res = do_func(req, cluster_id, data)
  File "/opt/stack/senlin/senlin/api/openstack/v1/clusters.py", line 158, in _do_resize
    obj = util.parse_request('ClusterResizeRequest', req, params)
  File "/opt/stack/senlin/senlin/api/common/util.py", line 71, in parse_request
    jsonschema.validate(primitive, obj.to_json_schema())
  File "/opt/stack/senlin/senlin/objects/base.py", line 76, in to_json_schema
    schema.update(fields.Object(obj_name).get_schema())
  File "/opt/stack/senlin/senlin/objects/fields.py", line 113, in get_schema
    for key, field in cls.fields.items()}
  File "/opt/stack/senlin/senlin/objects/fields.py", line 113, in <dictcomp>
    for key, field in cls.fields.items()}
  File "/usr/local/lib/python2.7/dist-packages/oslo_versionedobjects/fields.py", line 244, in get_sche
    schema = self._type.get_schema()
  File "/usr/local/lib/python2.7/dist-packages/oslo_versionedobjects/fields.py", line 131, in get_sche
    raise NotImplementedError()
NotImplementedError

I debugged the code. It's because of ClusterResizeRequest has 'adjustment_type' parameter, but the AdjustmentTypeField has not get_schema function.

liyi (whyliyi)
Changed in senlin:
assignee: nobody → liyi (whyliyi)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to senlin (master)

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

Changed in senlin:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to senlin (master)

Reviewed: https://review.openstack.org/523055
Committed: https://git.openstack.org/cgit/openstack/senlin/commit/?id=557764fb0d67f39b27de05af9088b86b80b58dea
Submitter: Zuul
Branch: master

commit 557764fb0d67f39b27de05af9088b86b80b58dea
Author: liyi <email address hidden>
Date: Mon Nov 27 16:19:19 2017 +0800

    Fix cluster resize error

    cluster resizing action will raise NotImplementedError exception.

    Change-Id: I5f4ffe293880f66db7d9fa8f236b87e8ce95c1fa
    Closes-Bug: #1734616

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

This issue was fixed in the openstack/senlin 5.0.0.0b2 development milestone.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/senlin 5.0.0.0b3

This issue was fixed in the openstack/senlin 5.0.0.0b3 development milestone.

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.