← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1494366] Re: AttributeError: 'ImmutableImageProxy' object has no attribute 'deactivate'

 

** Changed in: glance
       Status: Incomplete => Invalid

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1494366

Title:
  AttributeError: 'ImmutableImageProxy' object has no attribute
  'deactivate'

Status in Glance:
  Invalid

Bug description:
  When you use the following way to get token,
  """
  curl -i \
    -H "Content-Type: application/json" \
    -d '
  { "auth": {
      "identity": {
        "methods": ["password"],
        "password": {
          "user": {
            "name": "admin",
            "domain": { "id": "default" },
            "password": "password"
          }
        }   
      }   
    }
  }' \
    http://localhost:5000/v3/auth/tokens ; echo
  """

  And use the token to deactivate images, the glance will raise the
  following exception.


  2015-09-10 14:06:53.513 DEBUG eventlet.wsgi.server [-] (12570) accepted ('10.0.2.15', 55773) from (pid=12570) server /usr/local/lib/python2.7/dist-packages/eventlet/wsgi.py:826
  2015-09-10 14:06:53.516 DEBUG glance.api.middleware.version_negotiation [-] Determining version of request: POST /v2/images/48465a7e-5c84-42ce-b05e-d9c4c41fa5e7/actions/deactivate Accept: */* from (pid=12570) process_request /opt/stack/glance/glance/api/middleware/version_negotiation.py:47
  2015-09-10 14:06:53.517 DEBUG glance.api.middleware.version_negotiation [-] Using url versioning from (pid=12570) process_request /opt/stack/glance/glance/api/middleware/version_negotiation.py:60
  2015-09-10 14:06:53.517 DEBUG glance.api.middleware.version_negotiation [-] Matched version: v2 from (pid=12570) process_request /opt/stack/glance/glance/api/middleware/version_negotiation.py:72
  2015-09-10 14:06:53.517 DEBUG glance.api.middleware.version_negotiation [-] new path /v2/images/48465a7e-5c84-42ce-b05e-d9c4c41fa5e7/actions/deactivate from (pid=12570) process_request /opt/stack/glance/glance/api/middleware/version_negotiation.py:73
  2015-09-10 14:06:53.544 ERROR glance.common.wsgi [req-4e45a2f8-8af5-4148-b57e-99ea1292839b f96b81dbf2fe4e5eb0a90e984a26a732 None] Caught error: 'ImmutableImageProxy' object has no attribute 'deactivate'
  2015-09-10 14:06:53.544 TRACE glance.common.wsgi Traceback (most recent call last):
  2015-09-10 14:06:53.544 TRACE glance.common.wsgi File "/opt/stack/glance/glance/common/wsgi.py", line 879, in __call__
  2015-09-10 14:06:53.544 TRACE glance.common.wsgi request, **action_args)
  2015-09-10 14:06:53.544 TRACE glance.common.wsgi File "/opt/stack/glance/glance/common/wsgi.py", line 907, in dispatch
  2015-09-10 14:06:53.544 TRACE glance.common.wsgi return method(*args, **kwargs)
  2015-09-10 14:06:53.544 TRACE glance.common.wsgi File "/opt/stack/glance/glance/common/utils.py", line 504, in wrapped
  2015-09-10 14:06:53.544 TRACE glance.common.wsgi return func(self, req, *args, **kwargs)
  2015-09-10 14:06:53.544 TRACE glance.common.wsgi File "/opt/stack/glance/glance/api/v2/image_actions.py", line 49, in deactivate
  2015-09-10 14:06:53.544 TRACE glance.common.wsgi image.deactivate()
  2015-09-10 14:06:53.544 TRACE glance.common.wsgi AttributeError: 'ImmutableImageProxy' object has no attribute 'deactivate'
  2015-09-10 14:06:53.544 TRACE glance.common.wsgi
  2015-09-10 14:06:53.546 INFO eventlet.wsgi.server [req-4e45a2f8-8af5-4148-b57e-99ea1292839b f96b81dbf2fe4e5eb0a90e984a26a732 None] 10.0.2.15 - - [10/Sep/2015 14:06:53] "POST /v2/images/48465a7e-5c84-42ce-b05e-d9c4c41fa5e7/actions/deactivate HTTP/1.1" 500 430 0.030960

To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1494366/+subscriptions


References