AttributeError: 'ImmutableImageProxy' object has no attribute 'deactivate'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
Invalid
|
Undecided
|
Kuo-tung Kao (jelly) |
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" },
}
}
}
}
}' \
http://
"""
And use the token to deactivate images, the glance will raise the following exception.
2015-09-10 14:06:53.513 DEBUG eventlet.
2015-09-10 14:06:53.516 DEBUG glance.
2015-09-10 14:06:53.517 DEBUG glance.
2015-09-10 14:06:53.517 DEBUG glance.
2015-09-10 14:06:53.517 DEBUG glance.
2015-09-10 14:06:53.544 ERROR glance.common.wsgi [req-4e45a2f8-
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/
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/
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/
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/
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: 'ImmutableImage
2015-09-10 14:06:53.544 TRACE glance.common.wsgi
2015-09-10 14:06:53.546 INFO eventlet.
Changed in glance: | |
assignee: | nobody → jelly (coding1314) |
description: | updated |
Changed in glance: | |
status: | Incomplete → Invalid |
I can't reproduce this issue with the latest devstack. glanceclient' -H 'Connection: keep-alive' -H 'X-Auth-Token: xxxxx' -H 'Content-Type: application/json' http:// xxxx:9292/ v2/images/ 2fa8d2de- 2cc6-4641- a9f9-a91b3216f0 d3/actions/ deactivate
I executed the following scenarios:
1) Request admin token:
source openrc admin admin
keystone token-get
curl -g -i -X POST -H 'Accept-Encoding: gzip, deflate' -H 'Accept: */*' -H 'User-Agent: python-
I succeed to deactivate an image.
2) Request demo token
Execute steps from 1)
As a result I succeed to de-activate an image.
I think that you have some problems with specific OS version.
Could you please specify it? After that I can try to reproduce it again.