ssatya@devstack:/etc/cinder$ cinder type-list
+--------------------------------------+--------+
| ID | Name |
+--------------------------------------+--------+
| 086c6dc2-b2ab-48cf-ab73-2d56372d4704 | sliver |
| 13b20d84-6e32-45b2-a122-bac2fcd00e44 | gold |
| 18ad8cf2-8195-4a3f-9bc1-b647415ce206 | thin |
| eaccb2d1-ac25-4f1d-b76e-a06cf6b6c56d | thick |
+--------------------------------------+--------+
ssatya@devstack:/etc/cinder$ cinder type-create sliver
ERROR: The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-932eea44-fe00-4083-b053-b6004e128d40)
cinder-api logs :
2014-03-11 12:26:32.281 INFO eventlet.wsgi.server [-] (21026) accepted ('10.113.161.215', 31467)
2014-03-11 12:26:32.298 DEBUG keystoneclient.middleware.auth_token [-] Authenticating user token from (pid=21026) __call__ /opt/stack/python-keystoneclient/keystoneclient/middleware/auth_token.py:583
2014-03-11 12:26:32.298 DEBUG keystoneclient.middleware.auth_token [-] Removing headers from request environment: X-Identity-Status,X-Domain-Id,X-Domain-Name,X-Project-Id,X-Project-Name,X-Project-Domain-Id,X-Project-Domain-Name,X-User-Id,X-User-Name,X-User-Domain-Id,X-User-Domain-Name,X-Roles,X-Service-Catalog,X-User,X-Tenant-Id,X-Tenant-Name,X-Tenant,X-Role from (pid=21026) _remove_auth_headers /opt/stack/python-keystoneclient/keystoneclient/middleware/auth_token.py:642
2014-03-11 12:26:33.432 DEBUG keystoneclient.middleware.auth_token [-] Storing 13223be76493a4e211c5a3bec6574496 token in memcache from (pid=21026) _cache_put /opt/stack/python-keystoneclient/keystoneclient/middleware/auth_token.py:1158
2014-03-11 12:26:33.433 DEBUG keystoneclient.middleware.auth_token [-] Received request from user: 8a674f2790ae4032b87bc3a3d6276614 with project_id : a593ac3af6d74be3b6178ec5ea33bc7e and roles: admin from (pid=21026) _build_user_headers /opt/stack/python-keystoneclient/keystoneclient/middleware/auth_token.py:946
2014-03-11 12:26:33.435 DEBUG routes.middleware [req-9d4cb67f-e142-43ec-9512-bf7aeed0fd0d 8a674f2790ae4032b87bc3a3d6276614 a593ac3af6d74be3b6178ec5ea33bc7e] Matched POST /a593ac3af6d74be3b6178ec5ea33bc7e/types from (pid=21026) __call__ /usr/lib/python2.7/dist-packages/routes/middleware.py:100
2014-03-11 12:26:33.435 DEBUG routes.middleware [req-9d4cb67f-e142-43ec-9512-bf7aeed0fd0d 8a674f2790ae4032b87bc3a3d6276614 a593ac3af6d74be3b6178ec5ea33bc7e] Route path: '/{project_id}/types', defaults: {'action': u'create', 'controller': <cinder.api.openstack.wsgi.Resource object at 0x50066d0>} from (pid=21026) __call__ /usr/lib/python2.7/dist-packages/routes/middleware.py:102
2014-03-11 12:26:33.436 DEBUG routes.middleware [req-9d4cb67f-e142-43ec-9512-bf7aeed0fd0d 8a674f2790ae4032b87bc3a3d6276614 a593ac3af6d74be3b6178ec5ea33bc7e] Match dict: {'action': u'create', 'controller': <cinder.api.openstack.wsgi.Resource object at 0x50066d0>, 'project_id': u'a593ac3af6d74be3b6178ec5ea33bc7e'} from (pid=21026) __call__ /usr/lib/python2.7/dist-packages/routes/middleware.py:103
2014-03-11 12:26:33.437 INFO cinder.api.openstack.wsgi [req-9d4cb67f-e142-43ec-9512-bf7aeed0fd0d 8a674f2790ae4032b87bc3a3d6276614 a593ac3af6d74be3b6178ec5ea33bc7e] POST http://10.112.185.199:8776/v2/a593ac3af6d74be3b6178ec5ea33bc7e/types
2014-03-11 12:26:33.451 INFO cinder.api.openstack.wsgi [req-9d4cb67f-e142-43ec-9512-bf7aeed0fd0d 8a674f2790ae4032b87bc3a3d6276614 a593ac3af6d74be3b6178ec5ea33bc7e] HTTP exception thrown: Volume Type thin already exists.
2014-03-11 12:26:33.452 INFO cinder.api.openstack.wsgi [req-9d4cb67f-e142-43ec-9512-bf7aeed0fd0d 8a674f2790ae4032b87bc3a3d6276614 a593ac3af6d74be3b6178ec5ea33bc7e] http://10.112.185.199:8776/v2/a593ac3af6d74be3b6178ec5ea33bc7e/types returned with HTTP 409
2014-03-11 12:26:33.452 ERROR cinder.api.middleware.fault [req-9d4cb67f-e142-43ec-9512-bf7aeed0fd0d 8a674f2790ae4032b87bc3a3d6276614 a593ac3af6d74be3b6178ec5ea33bc7e] Caught error: Circular reference detected
2014-03-11 12:26:33.452 TRACE cinder.api.middleware.fault Traceback (most recent call last):
2014-03-11 12:26:33.452 TRACE cinder.api.middleware.fault File "/opt/stack/cinder/cinder/api/middleware/fault.py", line 75, in __call__
2014-03-11 12:26:33.452 TRACE cinder.api.middleware.fault return req.get_response(self.application)
2014-03-11 12:26:33.452 TRACE cinder.api.middleware.fault File "/usr/local/lib/python2.7/dist-packages/webob/request.py", line 1320, in send
2014-03-11 12:26:33.452 TRACE cinder.api.middleware.fault application, catch_exc_info=False)
2014-03-11 12:26:33.452 TRACE cinder.api.middleware.fault File "/usr/local/lib/python2.7/dist-packages/webob/request.py", line 1284, in call_application
2014-03-11 12:26:33.452 TRACE cinder.api.middleware.fault app_iter = application(self.environ, start_response)
2014-03-11 12:26:33.452 TRACE cinder.api.middleware.fault File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__
2014-03-11 12:26:33.452 TRACE cinder.api.middleware.fault return resp(environ, start_response)
2014-03-11 12:26:33.452 TRACE cinder.api.middleware.fault File "/opt/stack/python-keystoneclient/keystoneclient/middleware/auth_token.py", line 596, in __call__
2014-03-11 12:26:33.452 TRACE cinder.api.middleware.fault return self.app(env, start_response)
2014-03-11 12:26:33.452 TRACE cinder.api.middleware.fault File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__
2014-03-11 12:26:33.452 TRACE cinder.api.middleware.fault return resp(environ, start_response)
2014-03-11 12:26:33.452 TRACE cinder.api.middleware.fault File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__
2014-03-11 12:26:33.452 TRACE cinder.api.middleware.fault return resp(environ, start_response)
2014-03-11 12:26:33.452 TRACE cinder.api.middleware.fault File "/usr/lib/python2.7/dist-packages/routes/middleware.py", line 131, in __call__
2014-03-11 12:26:33.452 TRACE cinder.api.middleware.fault response = self.app(environ, start_response)
2014-03-11 12:26:33.452 TRACE cinder.api.middleware.fault File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__
2014-03-11 12:26:33.452 TRACE cinder.api.middleware.fault return resp(environ, start_response)
2014-03-11 12:26:33.452 TRACE cinder.api.middleware.fault File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__
2014-03-11 12:26:33.452 TRACE cinder.api.middleware.fault return resp(environ, start_response)
2014-03-11 12:26:33.452 TRACE cinder.api.middleware.fault File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 130, in __call__
2014-03-11 12:26:33.452 TRACE cinder.api.middleware.fault resp = self.call_func(req, *args, **self.kwargs)
2014-03-11 12:26:33.452 TRACE cinder.api.middleware.fault File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 195, in call_func
2014-03-11 12:26:33.452 TRACE cinder.api.middleware.fault return self.func(req, *args, **kwargs)
2014-03-11 12:26:33.452 TRACE cinder.api.middleware.fault File "/opt/stack/cinder/cinder/api/openstack/wsgi.py", line 1178, in __call__
2014-03-11 12:26:33.452 TRACE cinder.api.middleware.fault self.wrapped_exc.body = serializer.serialize(fault_data)
2014-03-11 12:26:33.452 TRACE cinder.api.middleware.fault File "/opt/stack/cinder/cinder/api/openstack/wsgi.py", line 324, in serialize
2014-03-11 12:26:33.452 TRACE cinder.api.middleware.fault return self.dispatch(data, action=action)
2014-03-11 12:26:33.452 TRACE cinder.api.middleware.fault File "/opt/stack/cinder/cinder/api/openstack/wsgi.py", line 190, in dispatch
2014-03-11 12:26:33.452 TRACE cinder.api.middleware.fault return action_method(*args, **kwargs)
2014-03-11 12:26:33.452 TRACE cinder.api.middleware.fault File "/opt/stack/cinder/cinder/api/openstack/wsgi.py", line 334, in default
2014-03-11 12:26:33.452 TRACE cinder.api.middleware.fault return jsonutils.dumps(data)
2014-03-11 12:26:33.452 TRACE cinder.api.middleware.fault File "/opt/stack/cinder/cinder/openstack/common/jsonutils.py", line 164, in dumps
2014-03-11 12:26:33.452 TRACE cinder.api.middleware.fault return json.dumps(value, default=default, **kwargs)
2014-03-11 12:26:33.452 TRACE cinder.api.middleware.fault File "/usr/lib/python2.7/json/__init__.py", line 238, in dumps
2014-03-11 12:26:33.452 TRACE cinder.api.middleware.fault **kw).encode(obj)
2014-03-11 12:26:33.452 TRACE cinder.api.middleware.fault File "/usr/lib/python2.7/json/encoder.py", line 201, in encode
2014-03-11 12:26:33.452 TRACE cinder.api.middleware.fault chunks = self.iterencode(o, _one_shot=True)
2014-03-11 12:26:33.452 TRACE cinder.api.middleware.fault File "/usr/lib/python2.7/json/encoder.py", line 264, in iterencode
2014-03-11 12:26:33.452 TRACE cinder.api.middleware.fault return _iterencode(o, 0)
2014-03-11 12:26:33.452 TRACE cinder.api.middleware.fault ValueError: Circular reference detected
2014-03-11 12:26:33.452 TRACE cinder.api.middleware.fault
2014-03-11 12:26:33.454 INFO cinder.api.middleware.fault [req-9d4cb67f-e142-43ec-9512-bf7aeed0fd0d 8a674f2790ae4032b87bc3a3d6276614 a593ac3af6d74be3b6178ec5ea33bc7e] http://10.112.185.199:8776/v2/a593ac3af6d74be3b6178ec5ea33bc7e/types returned with HTTP 500
2014-03-11 12:26:33.455 INFO eventlet.wsgi.server [req-9d4cb67f-e142-43ec-9512-bf7aeed0fd0d 8a674f2790ae4032b87bc3a3d6276614 a593ac3af6d74be3b6178ec5ea33bc7e] 10.112.185.199,10.113.161.210,10.113.161.215 - - [11/Mar/2014 12:26:33] "POST /v2/a593ac3af6d74be3b6178ec5ea33bc7e/types HTTP/1.0" 500 425 1.157837
Was trying to reproduce the bug, got following results,
~/devstack$ cinder type-list ------- ------- ------- ------- ----+-- ----+ ------- ------- ------- ------- ----+-- ----+ b3a6-43b2- b284-e1c5a07c3e a3 | gfs2 | 8e09-4d88- 970e-16d8e479a5 9e | gfs1 | ------- ------- ------- ------- ----+-- ----+ 8794-4edd- 80ca-ff5a8a19d7 f8)
+------
| ID | Name |
+------
| 5264722d-
| a7367581-
+------
~/devstack$ cinder type-create gfs1
ERROR: Volume Type gfs1 already exists. (HTTP 409) (Request-ID: req-fb3be7a4-
~/devstack$
Satyadev, are you trying with master or any specific release/branch which you can mention?