openstack.tests.functional.network.v2.test_quota.TestQuota.test_set failed

Bug #1687202 reported by Akihiro Motoki
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack SDK
Fix Released
Undecided
Unassigned

Bug Description

openstack.tests.functional.network.v2.test_quota.TestQuota.test_set fails with the following error.
Note that OS_CLOUD=devstack-admin is used to run the functional tests (tox -e functional)

openstack.tests.functional.network.v2.test_quota.TestQuota.test_set
-------------------------------------------------------------------

Captured traceback:
~~~~~~~~~~~~~~~~~~~
    Traceback (most recent call last):
      File "openstack/tests/functional/network/v2/test_quota.py", line 26, in test_set
        self.conn.network.update_quota(project_quota, **attrs)
      File "openstack/network/v2/_proxy.py", line 2061, in update_quota
        return self._update(_quota.Quota, quota, **attrs)
      File "openstack/proxy2.py", line 37, in check
        return method(self, expected, actual, *args, **kwargs)
      File "openstack/proxy2.py", line 174, in _update
        return res.update(self._session)
      File "openstack/resource2.py", line 657, in update
        request = self._prepare_request(prepend_key=prepend_key)
      File "openstack/network/v2/quota.py", line 63, in _prepare_request
        prepend_key)
      File "openstack/resource2.py", line 526, in _prepare_request
        "Request requires an ID but none was found")
    openstack.exceptions.InvalidRequest: Request requires an ID but none was found

Akihiro Motoki (amotoki)
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-openstacksdk (master)

Reviewed: https://review.openstack.org/462305
Committed: https://git.openstack.org/cgit/openstack/python-openstacksdk/commit/?id=70a74337a611c008afb02cc03c8b8512d7fa6c9e
Submitter: Jenkins
Branch: master

commit 70a74337a611c008afb02cc03c8b8512d7fa6c9e
Author: Akihiro Motoki <email address hidden>
Date: Wed May 3 22:11:04 2017 +0000

    Specify alternate_id in network quota

    In network quota object, tenant_id is a unique key of the resource.
    alternate_id must be specified in the resource definition.

    Change-Id: Ia77a3711a08ee684fafcc76a8e1bb7d7f32ff1c1
    Closes-Bug: #1687202

Changed in python-openstacksdk:
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.