Code Monkey home page Code Monkey logo

cinder's People

Contributors

akrog avatar avishay-traeger avatar dirkmueller avatar dosaboy avatar dprince avatar e0ne avatar eharney avatar git-harry avatar glongwave avatar hemna avatar j-griffith avatar kumartin avatar leeantho avatar ling-yun avatar markmc avatar mgagne avatar petrutlucian94 avatar russellb avatar singn avatar stmcginnis avatar thang-pham avatar thingee avatar tombarron avatar tommydell avatar tsekiyama avatar vbalachandran avatar vstinner avatar zhangchao010 avatar zhiteng avatar zhurongze avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cinder's Issues

volume is kept in "error_extending" even if it is available

Description:

Development env setup's default option for "usage site packages" does not work with latest virtualenv.

Project:

OpenStack

Project Area:

OpenStack develop enviorment

Release:

OpenStack 

Severity:

S2

Full Details:

1. Create a volume 2. extend it to a large size which can not be satisfied by cinder. 3. the volume would be stuck in "error_extending" state Suggestion: The first state query could return "error_extending" state , but other queries should return a "available" state because the volume can be used.
openstack@test-server-1:~$ cinder extend bdc1ea9c-6d8f-4651-afe0-0b3fea9da1f9 500
openstack@test-server-1:~$ cinder list
+--------------------------------------+-----------------+----------+------+-------------+----------+-------------+--------------------------------------+
|                  ID                  |      Status     |   Name   | Size | Volume Type | Bootable | Multiattach |             Attached to              |
+--------------------------------------+-----------------+----------+------+-------------+----------+-------------+--------------------------------------+
| 6336b61f-60bb-4fee-abea-2bb9a0fad9c7 |    available    |    *     |  1   |      -      |  false   |    False    |                                      |
| 734e306f-cea2-4b88-9d11-2a6d0745614b |      in-use     | myvolume |  2   |      -      |  false   |     True    | 49e3192a-782d-4cba-83e2-ce599a9deab4 |
| 9662e841-575f-4c54-8062-5074fdf44673 |    available    |    *     |  1   |      -      |  false   |    False    |                                      |
| bdc1ea9c-6d8f-4651-afe0-0b3fea9da1f9 | error_extending |    _     |  1   |      -      |  false   |    False    |                                      |
+--------------------------------------+-----------------+----------+------+-------------+----------+-------------+--------------------------------------+

cinder create/extend issues on ScaleIO backend

Description:

cinder create/extend should follow the storage properties. Scaleio volume must be a positive number in granularity of 8 GB. But 'cinder create 1' creates a 1G volume although it uses 8G backend lun. And to extend this 1GB volume, at least 16G grow-to size must be specified.

Project:

Openstack

Project Area:

Openstack cinder

Release:

Openstack master branch

Severity:

S1

Full Details:

Test Environment and PreCondtion:

Devstack deployed Openstack environment

Detailed Test Steps:

[root@scaleiovm1 devstack]# cinder create 1  --display-name dzhpeng1
+---------------------------------------+--------------------------------------+
|                Property               |                Value                 |
+---------------------------------------+--------------------------------------+
|              attachments              |                  []                  |
|           availability_zone           |                 nova                 |
|                bootable               |                false                 |
|          consistencygroup_id          |                 None                 |
|               created_at              |      2015-11-24T08:32:28.000000      |
|              description              |                 None                 |
|               encrypted               |                False                 |
|                   id                  | b0a27182-2220-491a-a1b5-7cd737348167 |
|                metadata               |                  {}                  |
|            migration_status           |                 None                 |
|              multiattach              |                False                 |
|                  name                 |               dzhpeng1               |
|         os-vol-host-attr:host         |                 None                 |
|     os-vol-mig-status-attr:migstat    |                 None                 |
|     os-vol-mig-status-attr:name_id    |                 None                 |
|      os-vol-tenant-attr:tenant_id     |   6ac7c7a09a214f8a92dba7e6c2ccbae5   |
|   os-volume-replication:driver_data   |                 None                 |
| os-volume-replication:extended_status |                 None                 |
|           replication_status          |               disabled               |
|                  size                 |                  1                   | -----> size shoule be 8
|              snapshot_id              |                 None                 |
|              source_volid             |                 None                 |
|                 status                |               creating               |
|               updated_at              |                 None                 |
|                user_id                |   1672ff1f13224e6283a5306dc488cb07   |
|              volume_type              |               scaleio                |
+---------------------------------------+--------------------------------------+

[root@scaleiovm1 devstack]# cinder extend b0a27182-2220-491a-a1b5-7cd737348167 5  ---> extend to 5, user need 4G more space.
[root@scaleiovm1 devstack]# echo $?
0
[root@scaleiovm1 devstack]# cinder list
+--------------------------------------+-----------------+------------------+----------+------+-------------+----------+-------------+-------------+
|                  ID                  |      Status     | Migration Status |   Name   | Size | Volume Type | Bootable | Multiattach | Attached to |
+--------------------------------------+-----------------+------------------+----------+------+-------------+----------+-------------+-------------+
| b0a27182-2220-491a-a1b5-7cd737348167 | error_extending |        -         | dzhpeng1 |  1   |   scaleio   |  false   |    False    |             | --> error
+--------------------------------------+-----------------+------------------+----------+------+-------------+----------+-------------+-------------+

[root@scaleiovm1 devstack]# cinder reset-state b0a27182-2220-491a-a1b5-7cd737348167
[root@scaleiovm1 devstack]# cinder extend b0a27182-2220-491a-a1b5-7cd737348167 8   ---> try 8. 
[root@scaleiovm1 devstack]# cinder list
+--------------------------------------+-----------------+------------------+----------+------+-------------+----------+-------------+-------------+
|                  ID                  |      Status     | Migration Status |   Name   | Size | Volume Type | Bootable | Multiattach | Attached to |
+--------------------------------------+-----------------+------------------+----------+------+-------------+----------+-------------+-------------+
| b0a27182-2220-491a-a1b5-7cd737348167 | error_extending |        -         | dzhpeng1 |  1   |   scaleio   |  false   |    False    |             |
+--------------------------------------+-----------------+------------------+----------+------+-------------+----------+-------------+------------

[root@scaleiovm1 devstack]# cinder reset-state b0a27182-2220-491a-a1b5-7cd737348167
[root@scaleiovm1 devstack]# cinder extend b0a27182-2220-491a-a1b5-7cd737348167 16
[root@scaleiovm1 devstack]# cinder list
+--------------------------------------+-----------+------------------+----------+------+-------------+----------+-------------+-------------+
|                  ID                  |   Status  | Migration Status |   Name   | Size | Volume Type | Bootable | Multiattach | Attached to |
+--------------------------------------+-----------+------------------+----------+------+-------------+----------+-------------+-------------+
| b0a27182-2220-491a-a1b5-7cd737348167 | available |        -         | dzhpeng1 |  16  |   scaleio   |  false   |    False    |             | ----> only 16 is working
+--------------------------------------+-----------+------------------+----------+------+-------------+----------+-------------+-------------+

In this case, user only need <= 8G space, but cinder extend at least 16. This way to use storage is wasty, we should follow the scaleio storage lun size maybe.

cinder log:

screen-c-vol.log:2015-11-24 03:34:16.853 ERROR cinder.volume.drivers.emc.scaleio [req-acf8b70f-d6cc-41bd-b434-523f91a5929f admin] Error extending volume 411ca8bd0000000b: sizeInGB (5) must be a positive number in granularity of 8 GB..
screen-c-vol.log:2015-11-24 03:34:16.854 ERROR cinder.volume.manager [req-acf8b70f-d6cc-41bd-b434-523f91a5929f admin] Volume(_name_id=None,admin_metadata={},attach_status='detached',availability_zone='nova',bootable=False,consistencygroup_id=None,created_at=2015-11-24T08:32:28Z,deleted=False,deleted_at=None,display_description=None,display_name='dzhpeng1',ec2_id=None,encryption_key_id=None,host='scaleiovm1@scaleio#openstack:sata',id=b0a27182-2220-491a-a1b5-7cd737348167,launched_at=2015-11-24T08:32:28Z,metadata={},migration_status=None,multiattach=False,previous_status=None,project_id=6ac7c7a09a214f8a92dba7e6c2ccbae5,provider_auth=None,provider_geometry=None,provider_id=411ca8bd0000000b,provider_location=None,replication_driver_data=None,replication_extended_status=None,replication_status='disabled',scheduled_at=2015-11-24T08:32:28Z,size=1,snapshot_id=None,source_volid=None,status='extending',terminated_at=None,updated_at=2015-11-24T08:32:29Z,user_id=1672ff1f13224e6283a5306dc488cb07,volume_attachment=<?>,volume_type=<?>,volume_type_id=53f1255d-e32d-46fa-b75b-3ee4c9d04f9a)Extend volume failed.
screen-c-vol.log:2015-11-24 03:34:16.854 21593 ERROR cinder.volume.manager Traceback (most recent call last):
screen-c-vol.log:2015-11-24 03:34:16.854 21593 ERROR cinder.volume.manager   File "/opt/stack/new/cinder/cinder/volume/manager.py", line 2016, in extend_volume
screen-c-vol.log:2015-11-24 03:34:16.854 21593 ERROR cinder.volume.manager     self.driver.extend_volume(volume, new_size)
screen-c-vol.log:2015-11-24 03:34:16.854 21593 ERROR cinder.volume.manager   File "/usr/lib/python2.7/site-packages/osprofiler/profiler.py", line 105, in wrapper
screen-c-vol.log:2015-11-24 03:34:16.854 21593 ERROR cinder.volume.manager     return f(*args, **kwargs)
screen-c-vol.log:2015-11-24 03:34:16.854 21593 ERROR cinder.volume.manager   File "/opt/stack/new/cinder/cinder/volume/drivers/emc/scaleio.py", line 559, in extend_volume
screen-c-vol.log:2015-11-24 03:34:16.854 21593 ERROR cinder.volume.manager     raise exception.VolumeBackendAPIException(data=msg)
screen-c-vol.log:2015-11-24 03:34:16.854 21593 ERROR cinder.volume.manager VolumeBackendAPIException: Bad or unexpected response from the storage volume backend API: Error extending volume 411ca8bd0000000b: sizeInGB (5) must be a positive number in granularity of 8 GB..
screen-c-vol.log:2015-11-24 03:34:16.854 21593 ERROR cinder.volume.manager

Expected Results:

'cinder create 1' on ScaleIO backend should:

  • either fail because granularity of 8G must be specified.
  • or give a warning of '8GB volume will be created instead'

Actual results:

'cinder create 1' on ScaleIO creates a 1G volume but uses 8G backend storage.

Problem details:

Support Materials:

"False" vs "false": cinder list yield inconsistent for False

Description:

cinder list yield inconsistent for False

Project:

OpenStack

Project Area:

OpenStack Cinder Driver

Release:

OpenStack 

Severity:

S3

Full Details:

Just a minor issue:
In the yielding of "cinder list", Bootable has lower-case "false" while Multiattach has upper-case "False"
image

This may indicate some issue in code

REST API to delete consistetn group is not consistent with python module and document

Description:
REST API is not consistent with python module and document

Project:
OpenStack

Project Area:
OpenStack Cinder

Release:
OpenStack

Severity:
S2

Full Details:
In the code for consistent group to delete:

def delete(self, context, group, force=False):

force with the default value. When create it was option

In the descrition of rest api for consistent group, it was alos optional
"
force (Optional) plain xsd:boolean
"
But when call this REST API, if not set 'force', the response will failed

Support Materials:

cinder delete took quite a long time to finish even just after cinder create

Description:

cinder delete took quite a long time to finish even just after cinder create

Project:

OpenStack

Project Area:

OpenStack Cinder Driver

Release:

OpenStack 

Severity:

S3

Full Details:

It appears to take only seconds to create a 20G volume, but it would take minutes to delete it even if the volume is not used at all.

There are room for improvement.

consisgroup-list failed with admin account

Description:
"cinder consisgroup-list" failed with admin account.

Project:
OpenStack

Project Area:
cinder

Release:
OpenStack

Severity:
S1

Full Details:

stack@ubuntuasdfasd:~$ echo $OS_USERNAME
admin

stack@ubuntu:/opt/stack/logs/screen$ cinder consisgroup-list
ERROR: Policy doesn't allow consistencygroup:get_all to be performed. (HTTP 403) (Request-ID: req-4f5257e9-6a30-4a3b-9208-6b75b5a621ac)

stack@ubuntu:/opt/stack/logs/screen$ cinder help consisgroup-list
usage: cinder consisgroup-list [--all-tenants [<0|1>]]

Lists all consistencygroups.

Optional arguments:
--all-tenants [<0|1>]
Shows details for all tenants. Admin only.

No error message when retype cinder volume to type with empty metadata

Description:
No error message when retype cinder volume to a type with empty metadata

Project:
OpenStack

Project Area:
cinder

Release:
OpenStack

Severity:
S1

Full Details:

type1 was created with no key/value. However retype command didn't return any error message, but from log , the operation was failed.

stack@ubuntuasdfasd:$ cinder retype ffe2a72d-cbb8-465c-b4cd-a97e16003695 type1
stack@ubuntuasdfasd:
$ cinder show ffe2a72d-cbb8-465c-b4cd-a97e16003695 | grep type
| volume_type | lvmdriver-1 |

stack@ubuntuasdfasd:~$ cinder show ffe2a72d-cbb8-465c-b4cd-a97e16003695
+---------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Property | Value |
+---------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| attachments | [] |
| availability_zone | nova |
| bootable | false |
| consistencygroup_id | None |
| created_at | 2015-11-24T17:25:43.000000 |
| description | None |
| encrypted | False |
| id | ffe2a72d-cbb8-465c-b4cd-a97e16003695 |
| metadata | {} |
| migration_status | None |
| multiattach | False |
| name | aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa |
| os-vol-host-attr:host | ubuntuasdfasd@lvmdriver-1#lvmdriver-1 |
| os-vol-mig-status-attr:migstat | None |
| os-vol-mig-status-attr:name_id | None |
| os-vol-tenant-attr:tenant_id | 5eb39b0e30bb4ac29863756473578229 |
| os-volume-replication:driver_data | None |
| os-volume-replication:extended_status | None |
| replication_status | disabled |
| size | 1 |
| snapshot_id | None |
| source_volid | None |
| status | available |
| updated_at | 2015-11-24T20:43:22.000000 |
| user_id | 2d96440ca54c401d873306be09add713 |
| volume_type | lvmdriver-1 <<<<<< ---- Retype operation failed

2015-11-24 15:43:21.492 DEBUG cinder.api.openstack.wsgi [req-02fd5ea3-22a2-4947-bbcc-fd85e8e627a7 admin] Action body: {"os-retype": {"new_type": "type1", "migration_policy": "never"}} get_method /opt/stack/cinder/cinder/api/openstack/wsgi.py:1093
2015-11-24 15:43:21.572 DEBUG object [req-02fd5ea3-22a2-4947-bbcc-fd85e8e627a7 admin] Cinder object Volume has no attribute named: type get /opt/stack/cinder/cinder/objects/base.py:117
2015-11-24 15:43:21.572 INFO cinder.volume.api [req-02fd5ea3-22a2-4947-bbcc-fd85e8e627a7 admin] Volume(_name_id=None,admin_metadata={},attach_status='detached',availability_zone='nova',bootable=False,consistencygroup_id=None,created_at=2015-11-24T17:25:43Z,deleted=False,deleted_at=None,display_description=None,display_name='aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',ec2_id=None,encryption_key_id=None,host='ubuntuasdfasd@lvmdriver-1#lvmdriver-1',id=ffe2a72d-cbb8-465c-b4cd-a97e16003695,launched_at=2015-11-24T17:26:25Z,metadata={},migration_status=None,multiattach=False,previous_status=None,project_id=5eb39b0e30bb4ac29863756473578229,provider_auth=None,provider_geometry=None,provider_id=None,provider_location=None,replication_driver_data=None,replication_extended_status=None,replication_status='disabled',scheduled_at=2015-11-24T17:26:01Z,size=1,snapshot_id=None,source_volid=None,status='available',terminated_at=None,updated_at=2015-11-24T17:26:26Z,user_id=2d96440ca54c401d873306be09add713,volume_attachment=,volume_type=,volume_type_id=6ae77552-574c-4061-8599-cf670dfb4832)Volume info retrieved successfully.
2015-11-24 15:43:21.674 DEBUG cinder.quota [req-24bb1e94-8f20-496e-a986-98fad008e264 None] Created reservations ['e9171a8d-556a-4de0-b212-f9acce536273', 'df55e262-0b9e-4690-aa64-392819484fa8', '8dd7e238-6779-4b9b-bf9d-ebbbc4873dfe', '7309c8ba-db81-4b8e-9db0-0378a63999f4'] reserve /opt/stack/cinder/cinder/quota.py:810
2015-11-24 15:43:21.750 DEBUG object [req-24bb1e94-8f20-496e-a986-98fad008e264 None] Cinder object Volume has no attribute named: type get /opt/stack/cinder/cinder/objects/base.py:117
2015-11-24 15:43:21.751 INFO cinder.volume.api [req-24bb1e94-8f20-496e-a986-98fad008e264 None] Volume(_name_id=None,admin_metadata={},attach_status='detached',availability_zone='nova',bootable=False,consistencygroup_id=None,created_at=2015-11-24T17:25:43Z,deleted=False,deleted_at=None,display_description=None,display_name='aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',ec2_id=None,encryption_key_id=None,host='ubuntuasdfasd@lvmdriver-1#lvmdriver-1',id=ffe2a72d-cbb8-465c-b4cd-a97e16003695,launched_at=2015-11-24T17:26:25Z,metadata={},migration_status=None,multiattach=False,previous_status='available',project_id=5eb39b0e30bb4ac29863756473578229,provider_auth=None,provider_geometry=None,provider_id=None,provider_location=None,replication_driver_data=None,replication_extended_status=None,replication_status='disabled',scheduled_at=2015-11-24T17:26:01Z,size=1,snapshot_id=None,source_volid=None,status='retyping',terminated_at=None,updated_at=2015-11-24T17:26:26Z,user_id=2d96440ca54c401d873306be09add713,volume_attachment=,volume_type=,volume_type_id=6ae77552-574c-4061-8599-cf670dfb4832)Volume updated successfully.
2015-11-24 15:43:21.755 DEBUG oslo_messaging._drivers.amqpdriver [req-24bb1e94-8f20-496e-a986-98fad008e264 None] CAST unique_id: a7a7c11420e2448cace00557c609bc45 exchange 'openstack' topic 'cinder-scheduler' _send /usr/local/lib/python2.7/dist-packages/oslo_messaging/_drivers/amqpdriver.py:448
2015-11-24 15:43:21.764 DEBUG object [req-24bb1e94-8f20-496e-a986-98fad008e264 None] Cinder object Volume has no attribute named: type get /opt/stack/cinder/cinder/objects/base.py:117
2015-11-24 15:43:21.764 INFO cinder.volume.api [req-24bb1e94-8f20-496e-a986-98fad008e264 None] Volume(_name_id=None,admin_metadata={},attach_status='detached',availability_zone='nova',bootable=False,consistencygroup_id=None,created_at=2015-11-24T17:25:43Z,deleted=False,deleted_at=None,display_description=None,display_name='aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',ec2_id=None,encryption_key_id=None,host='ubuntuasdfasd@lvmdriver-1#lvmdriver-1',id=ffe2a72d-cbb8-465c-b4cd-a97e16003695,launched_at=2015-11-24T17:26:25Z,metadata={},migration_status=None,multiattach=False,previous_status='available',project_id=5eb39b0e30bb4ac29863756473578229,provider_auth=None,provider_geometry=None,provider_id=None,provider_location=None,replication_driver_data=None,replication_extended_status=None,replication_status='disabled',scheduled_at=2015-11-24T17:26:01Z,size=1,snapshot_id=None,source_volid=None,status='retyping',terminated_at=None,updated_at=2015-11-24T17:26:26Z,user_id=2d96440ca54c401d873306be09add7

"cinder transfer-show/transfer-delete" cannot find transfer by name

Description:

"cinder transfer-show/transfer-delete" cannot find transfer by name

Project:

OpenStack

Project Area:

OpenStack Cinder Driver

Release:

OpenStack 

Severity:

S3

Full Details:
According to the "cinder transfer-show" help, the transfer can be identified by name

openstack@test-server-1:~/david/cinder$ cinder help transfer-show
usage: cinder transfer-show <transfer>

Shows transfer details.

Positional arguments:
  <transfer>  Name or ID of transfer to accept.

But actual result is:

openstack@test-server-1:~/david/cinder$ cinder transfer-show Ttran
ERROR: No volumetransfer with a name or ID of 'Ttran' exists.
openstack@test-server-1:~/david/cinder$ cinder transfer-show ec5a6eda-db6c-432e-8d3e-f4ac35ccd432
+------------+--------------------------------------+
|  Property  |                Value                 |
+------------+--------------------------------------+
| created_at |      2015-11-24T18:56:13.000000      |
|     id     | ec5a6eda-db6c-432e-8d3e-f4ac35ccd432 |
|    name    |                Ttran                 |
| volume_id  | fd54aa5c-60f9-4d25-a74a-3d608c54cd36 |
+------------+--------------------------------------+

Multiattach attribute for cinder volume does not make the volume multiattachable

Description:

Multiattach attribute for cinder volume does not make the volume multiattachable

Project:

OpenStack

Project Area:

OpenStack Cinder Driver

Release:

OpenStack 

Severity:

S2

Full Details:

1. create a cinder volume with "--allow-multiattach" option 2. attach the volume to an active instance ![image](https://cloud.githubusercontent.com/assets/15992439/11367481/db20ea56-92ee-11e5-8a63-b4c0b2a1eb40.png) 3.attach the volume to another active instance Result: got following error
openstack@test-server-1:~$ nova volume-attach 4b414dbb-0176-44b4-a0b8-a259f894a09e 734e306f-cea2-4b88-9d11-2a6d0745614b
ERROR (BadRequest): Invalid volume: volume '734e306f-cea2-4b88-9d11-2a6d0745614b' status must be 'available'. Currently in 'in-use' (HTTP 400) (Request-ID: req-d446e2a4-5ad4-4bd8-bae9-7713cc1ff5ac)
openstack@test-server-1:~$ cinder list
+--------------------------------------+-----------+----------+------+-------------+----------+-------------+--------------------------------------+
|                  ID                  |   Status  |   Name   | Size | Volume Type | Bootable | Multiattach |             Attached to              |
+--------------------------------------+-----------+----------+------+-------------+----------+-------------+--------------------------------------+
| 734e306f-cea2-4b88-9d11-2a6d0745614b |   in-use  | myvolume |  2   |      -      |  false   |     True    | 49e3192a-782d-4cba-83e2-ce599a9deab4 |
| 7e68cc37-df37-4b8a-9854-07e5c9225d9a | available |    .*    |  2   |      -      |  false   |    False    |                                      |
| ba6aa800-323a-4a32-ab86-9b2f05deb396 |   error   |    -     | 500  |      -      |  false   |    False    |                                      |
| d197cacb-2b65-40fa-87eb-a6d322d3459a | available |  myboot  |  3   |      -      |   true   |    False    |                                      |
+--------------------------------------+-----------+----------+------+-------------+----------+-------------+--------------------------------------+
openstack@test-server-1:~$ nova volume-attach 49e3192a-782d-4cba-83e2-ce599a9deab4 734e306f-cea2-4b88-9d11-2a6d0745614b
ERROR (BadRequest): Invalid volume: volume '734e306f-cea2-4b88-9d11-2a6d0745614b' status must be 'available'. Currently in 'in-use' (HTTP 400) (Request-ID: req-f162f1a9-022a-415f-9d01-e5f0d9228315)
openstack@test-server-1:~$ nova list
+--------------------------------------+-----------+--------+------------+-------------+----------+
| ID                                   | Name      | Status | Task State | Power State | Networks |
+--------------------------------------+-----------+--------+------------+-------------+----------+
| 49e3192a-782d-4cba-83e2-ce599a9deab4 | MyServer  | ACTIVE | -          | Running     |          |
| 4b414dbb-0176-44b4-a0b8-a259f894a09e | MyServer2 | ACTIVE | -          | Running     |          |
+--------------------------------------+-----------+--------+------------+-------------+----------+

REST API to create consisent group is not consistent with python module and API.

Description:
REST API to create consisent group is not consistent with python module and API.

Project:
OpenStack

Project Area:
OpenStack Cinder

Release:
OpenStack

Severity:
S2

Full Details:
In the code when create consistent group, it get the consistent group type as string
"
volume_type_list = cg_volume_types.split(',')
"
But in the REST API document, the type was list type
"
"volume_types": [
"type1",
"type2"
],
"

If give that format, the API will failed.
We had to change to
"
"volume_types": "
type1,
type2
",
"

Support Materials:

'cinder delete' should have an option to specify ID or NAME unambiguous otherwise wrong volume might be deleted if its ID is same with some other volume's NAME.

Description:

Currently 'cinder' command does not have any option associated with 'delete'.

$ cinder help delete
usage: cinder delete <volume> [<volume> ...]

Removes one or more volumes.

Positional arguments:
  <volume>  Name or ID of volume or volumes to delete.

It takes arguments as volume ID or volume NAME. This is OK for most cases.
But what if there're 2 such volumes, say: volume A has ID '1234' and volume B has NAME '1234' and 'cinder delete 1234' will delete volume A even if the user intends to delete volume B. This is ambiguous and 'cinder delete' should give an warning at least. It's better for 'cinder delete' to accept an option to specify '--id' or '--name'.

Project:

Openstack

Project Area:

Openstack cinder

Release:

Openstack Liberty

Severity:

S1

Full Details:

Test Environment and PreCondtion:

Devstack deployed Openstack environment

Detailed Test Steps:

the first volume's ID is same as the third volume's name

[root@scaleiovm1 cinder]# cinder list
+--------------------------------------+-----------+--------------------------------------+------+-------------+----------+-------------+-------------+
|                  ID                  |   Status  |                 Name                 | Size | Volume Type | Bootable | Multiattach | Attached to |
+--------------------------------------+-----------+--------------------------------------+------+-------------+----------+-------------+-------------+
| 8c09d88f-8db2-4bc6-a8d8-a380264fd237 | available |                 123                  |  1   |   scaleio   |  false   |    False    |             |
| c25e8627-e7fd-4293-b39f-e506ab6915e8 | available |               dzhpeng2               |  1   |   scaleio   |  false   |    False    |             |
| f906cad1-768e-4a1d-aa21-19c5c283661d | available | 8c09d88f-8db2-4bc6-a8d8-a380264fd237 |  1   |   scaleio   |  false   |    False    |             |
+--------------------------------------+-----------+--------------------------------------+------+-------------+----------+-------------+-------------+

User wants to use 'cinder delete '

[root@scaleiovm1 cinder]# cinder delete dzhpeng2 8c09d88f-8db2-4bc6-a8d8-a380264fd237  ---> both are volume Name
Request to delete volume dzhpeng2 has been accepted.
Request to delete volume 8c09d88f-8db2-4bc6-a8d8-a380264fd237 has been accepted.

[root@scaleiovm1 cinder]# cinder list ---> the first volume and second volume deleted, here should warning or use --id --name way should be better
+--------------------------------------+-----------+--------------------------------------+------+-------------+----------+-------------+-------------+
|                  ID                  |   Status  |                 Name                 | Size | Volume Type | Bootable | Multiattach | Attached to |
+--------------------------------------+-----------+--------------------------------------+------+-------------+----------+-------------+-------------+
| f906cad1-768e-4a1d-aa21-19c5c283661d | available | 8c09d88f-8db2-4bc6-a8d8-a380264fd237 |  1   |   scaleio   |  false   |    False    |             |
+--------------------------------------+-----------+--------------------------------------+------+-------------+----------+-------------+-------------+

Expected Results:

test step pass

Actual results:

test step fail

Problem details:

Support Materials:

Cinder volume property snapshot_id is not updated correctly

Description:
Cinder volume property snapshot_id is not updated correctly

Project:
OpenStack

Project Area:
cinder

Release:
OpenStack

Severity:
S2

Full Details:

Cinder snapshot_id is not updated, still "None" after snapshots are created.

stack@ubuntuasdfasd:~$ cinder snapshot-list
+--------------------------------------+--------------------------------------+-----------+------+------+
| ID | Volume ID | Status | Name | Size |
+--------------------------------------+--------------------------------------+-----------+------+------+
| aa79f267-87ae-46e5-918b-a15995e5ad37 | ffe2a72d-cbb8-465c-b4cd-a97e16003695 | available | ๆต‹่ฏ• | 1 |
| fbc2fe62-9cc0-4bad-bd7c-e29d1197bda9 | ffe2a72d-cbb8-465c-b4cd-a97e16003695 | available | - | 1 |
+--------------------------------------+--------------------------------------+-----------+------+------+

stack@ubuntuasdfasd:~$ cinder show ffe2a72d-cbb8-465c-b4cd-a97e16003695 |grep snapshot
| snapshot_id | None |

Cinder upload voluem to image Lead to the data inconsistient between horizon and glacne

Description:
Cinder upload voluem to image Lead to the data inconsistient between horizon and glacne

Project:
OpenStack

Project Area:
OpenStack Cinder,glance,horizon

Release:
OpenStack

Severity:
S2

Full Details:

On Dev Stack, set the expiration keystone time to short and then upload volume to image from the cinder.(cinder upload-to-image volme1 iamg1)

The command is suceessed. But wait for a whole, the horizon could see it. But use glance command to show, there is no such images. The data is inconsistetn.

Support Materials:

Cinder creation shall accept non-int size value. e.g. 1.5G

Description:
Cinder creation shall accept non-int size value. e.g. 1.5G

Project:
OpenStack

Project Area:
cinder

Release:
OpenStack

Severity:
S2

Full Details:

Cinder creation shall accept non-int size value. e.g. 1.5G. There's situation that user needs a volume with non-int size.

stack@ubuntuasdfasd:~$ cinder create 1.5
usage: cinder create [--consisgroup-id ]
[--snapshot-id ]
[--source-volid ]
[--source-replica ]
[--image-id ] [--image ] [--name ]
[--description ]
[--volume-type ]
[--availability-zone ]
[--metadata [<key=value> [<key=value> ...]]]
[--hint <key=value>] [--allow-multiattach]
[]
error: argument : invalid int value: u'1.5'
Try 'cinder help create' for more information.

Development env setup's default option for "usage site packages" does not work with latest virtualenv.

Description:

Development env setup's default option for "usage site packages" does not work with latest virtualenv.

Project:

OpenStack

Project Area:

OpenStack develop enviorment

Release:

OpenStack 

Severity:

S2

Full Details:

Older virtualenv default to use site packages, and use "--no-site-packages" to avoid usage of system packages, and openstack develop env is build on this assumption.
But after virtual env1.7, the default option now is "not use site packages", and "--system-site-packages" option is used for enabling site packages.

This mean that the option "-s, --no-site-packages Isolate the virtualenv from the global Python environment" is actually the default behavior with the laste virutalenv and the code for creating virtual env is buggy now:

--- a/tools/install_venv_common.py
+++ b/tools/install_venv_common.py
@@ -94,10 +94,10 @@ class InstallVenv(object):
         if not os.path.isdir(self.venv):
             print('Creating venv...', end=' ')
             if no_site_packages:
-                self.run_command(['virtualenv', '-q', '--no-site-packages',
+                self.run_command(['virtualenv', '-q', 
                                  self.venv])
             else:
-                self.run_command(['virtualenv', '-q', self.venv])
+                self.run_command(['virtualenv', '-q', '--system-site-packages', self.venv])
             print('done.')
         else:
             print("venv already exists...")

Reference
https://pypi.python.org/pypi/virtualenv

1.7 (2011-11-30)

  • Made --no-site-packages behavior the default behavior. The
    --no-site-packages flag is still permitted, but displays a warning when
    used. Thanks Chris McDonough.

cinder volume and its snapshot have to reside on same cinder server.

Description:

Cinder volume and its snapshot have to reside on same cinder server.

Project:

OpenStack

Project Area:

OpenStack Cinder Driver

Release:

OpenStack 

Severity:
S3

Full Details:
We setup 2 cinder server, one with 8G disk while the other has 120G
After create a 2G volume, which happened to be assigned to the 8G cinder server, the cinder server has no more storage for use.
And then any snapshot created for this volume would be stuck in error state
image

And following log found on the 8G cinder server

2015-11-24 12:32:09.212 4593 ERROR oslo_messaging.rpc.dispatcher ProcessExecutionError: Unexpected error while running command.
2015-11-24 12:32:09.212 4593 ERROR oslo_messaging.rpc.dispatcher Command: sudo cinder-rootwrap /etc/cinder/rootwrap.conf lvcreate --name _snapshot-8da02e46-f7e0-409b-bba3-3a53d9bb8f08 --snapshot cinder-volumes/volume-8eb6ea71-8886-4d41-9959-2716f0d1c869 -L 2.00g
2015-11-24 12:32:09.212 4593 ERROR oslo_messaging.rpc.dispatcher Exit code: 5
2015-11-24 12:32:09.212 4593 ERROR oslo_messaging.rpc.dispatcher Stdout: u''
2015-11-24 12:32:09.212 4593 ERROR oslo_messaging.rpc.dispatcher Stderr: u'  Volume group "cinder-volumes" has insufficient free space (511 extents): 512 required.\n'
2015-11-24 12:32:09.212 4593 ERROR oslo_messaging.rpc.dispatcher

"error" volumn stuck in "deleting" state

Description:

"error" volumn stuck in "deleting" state

Project:

OpenStack

Project Area:

OpenStack Cinder Driver

Release:

OpenStack 

Severity:

S1

Full Details:

Precondition:
Cinder server cs-1 with 20-G storage
All other cinder server with less than 10G storage
Test steps:

  1. Create two volumes using following command:
cinder create 10
cinder create 10

There should be 1 created and 1 error because of the storage capacity
2. Delete the 10G volume created in step1
image
3. Stop the service on the cinder server cs-1
4. Delete the volume in error state via "cinder delete"
Result:
The volume is stuck in deleting state unless restart the cinder service cs-1
image

The volume is in error state, it is not expected that it need the candidate cinder service available to be able to be removed.

Cinder volume attach silent failure

Description:
When attach a cinder volume to nova host, it appeared to be successful, a device is returned. But actually the attach is not successful, 'nova show' and 'cinder show' attachment is empty.

Project:
Cinder/Nova

Project Area:
Openstack Cinder Driver/Nova

Release:
Openstack

Severity:
S1

Full Details:
1. create a cinder volume 'vol1'
2. create a nova instance 'nova1'
3. attach 'vol1' and 'nova1'
4. no error returned, but actually attach failed.
5. if try to detach, it will fail.

Support Material:

  1. cmd output
    stack@OpenStack-S:~/devstack$ cinder list
    +--------------------------------------+-----------+------+------+-------------+----------+-------------+-------------+
    | ID | Status | Name | Size | Volume Type | Bootable | Multiattach | Attached to |
    +--------------------------------------+-----------+------+------+-------------+----------+-------------+-------------+
    | b25df735-9ed8-49d1-bd82-e7f038b6f273 | available | vol1 | 5 | lvmdriver-1 | true | False | |
    +--------------------------------------+-----------+------+------+-------------+----------+-------------+-------------+

stack@OpenStack-S:~/devstack$ nova list
+--------------------------------------+-------+--------+------------+-------------+------------------+
| ID | Name | Status | Task State | Power State | Networks |
+--------------------------------------+-------+--------+------------+-------------+------------------+
| 6327e515-c99f-4a21-8b7b-605febe637b4 | nova1 | ACTIVE | - | Running | private=10.0.0.2 |
+--------------------------------------+-------+--------+------------+-------------+------------------+

stack@OpenStack-S:~/devstack$ nova volume-attach 6327e515-c99f-4a21-8b7b-605febe637b4 b25df735-9ed8-49d1-bd82-e7f038b6f273 auto
+----------+--------------------------------------+
| Property | Value |
+----------+--------------------------------------+
| device | /dev/vdb | <------------attach looks successful with device created
| id | b25df735-9ed8-49d1-bd82-e7f038b6f273 |
| serverId | 6327e515-c99f-4a21-8b7b-605febe637b4 |
| volumeId | b25df735-9ed8-49d1-bd82-e7f038b6f273 |
+----------+--------------------------------------+

stack@OpenStack-S:~/devstack$ nova volume-detach 6327e515-c99f-4a21-8b7b-605febe637b4 b25df735-9ed8-49d1-bd82-e7f038b6f273
ERROR (NotFound): volume_id not found: b25df735-9ed8-49d1-bd82-e7f038b6f273 (HTTP 404) (Request-ID: req-398d5d02-690d-424b-a9d4-3bd04f068573) <---------detach failed!

  1. detailed logs -- create attachment
    2015-11-24 03:19:24.527 DEBUG nova.osapi_compute.wsgi.server req-d7b16c60-d21d-472b-8fc8-70547ebd8c2b None None accepted ('10.108.22.98', 33992) server /usr/local/lib/p
    ython2.7/dist-packages/eventlet/wsgi.py:826
    2015-11-24 03:19:24.532 18953 DEBUG keystoneclient.auth.identity.v3.base [-] Making authentication request to http://10.108.22.98:35357/v3/auth/tokens get_auth_ref /usr/local/lib
    /python2.7/dist-packages/keystoneclient/auth/identity/v3/base.py:188
    2015-11-24 03:19:24.686 18953 DEBUG keystoneclient.session [-] REQ: curl -g -i --cacert "/opt/stack/data/ca-bundle.pem" -X GET http://10.108.22.98:35357/v3/auth/tokens -H "X-Subj
    ect-Token: {SHA1}afb6160ad309d23bc30445c5ecc1802e12574d75" -H "User-Agent: python-keystoneclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}39ca7b09dc8d1966cae400b7ea
    887b00b16a9d85" _http_log_request /usr/local/lib/python2.7/dist-packages/keystoneclient/session.py:198
    2015-11-24 03:19:24.819 18953 DEBUG keystoneclient.session [-] RESP: [200] Content-Length: 4889 X-Subject-Token: {SHA1}afb6160ad309d23bc30445c5ecc1802e12574d75 Vary: X-Auth-Token
    Keep-Alive: timeout=5, max=99 Server: Apache/2.4.7 (Ubuntu) Connection: Keep-Alive Date: Tue, 24 Nov 2015 08:19:24 GMT Content-Type: application/json x-openstack-request-id: req-9f066bb7-80e0-4239-82fc-6dcf078da169
    RESP BODY: {"token": {"methods": ["password", "token"], "roles": [{"id": "ad8c5e36b703433b8d9f84e48a2a5bb8", "name": "anotherrole"}, {"id": "a58219baadcb4e0ea120723e7874a2ec", "name": "Member"}], "expires_at": "2015-11-24T09:19:24.000000Z", "project": {"domain": {"id": "default", "name": "Default"}, "id": "3f45a38e06fc4c10b917162e93dbca02", "name": "demo"}, "catalog": "", "extras": {}, "user": {"domain": {"id": "default", "name": "Default"}, "id": "979db8c6b97e4bfb8b07fc57cf55d805", "name": "demo"}, "audit_ids": ["fySMXVMbQQq_fq1gIgKbAg"], "issued_at": "2015-11-24T08:19:24.511099"}}
    _http_log_response /usr/local/lib/python2.7/dist-packages/keystoneclient/session.py:216
    2015-11-24 03:19:24.824 INFO nova.osapi_compute.wsgi.server [req-97da42a2-b0bc-4900-b33c-7c2ce9b3b30b demo demo] 10.108.22.98 "GET /v2.1/3f45a38e06fc4c10b917162e93dbca02 HTTP/1.1" status: 404 len: 264 time: 0.2941959
    2015-11-24 03:19:24.834 DEBUG nova.api.openstack.wsgi [req-df48d935-93cc-4312-8a32-e9e3a2bedc09 demo demo] Calling method '<bound method VersionsController.show of <nova.api.openstack.compute.versionsV21.VersionsController object at 0x7f8ab76b0fd0>>' _process_stack /opt/stack/nova/nova/api/openstack/wsgi.py:792
    2015-11-24 03:19:24.836 INFO nova.osapi_compute.wsgi.server [req-df48d935-93cc-4312-8a32-e9e3a2bedc09 demo demo] 10.108.22.98 "GET /v2.1/ HTTP/1.1" status: 200 len: 654 time: 0.0077789
    2015-11-24 03:19:24.999 DEBUG nova.api.openstack.wsgi [req-2c427b9e-41e1-4de0-83f8-0a7518b0ad3a demo demo] Calling method '<bound method ServersController.show of <nova.api.openstack.compute.servers.ServersController object at 0x7f8ab7725790>>' _process_stack /opt/stack/nova/nova/api/openstack/wsgi.py:792
    2015-11-24 03:19:25.001 DEBUG nova.compute.api [req-2c427b9e-41e1-4de0-83f8-0a7518b0ad3a demo demo] [instance: 6327e515-c99f-4a21-8b7b-605febe637b4] Fetching instance by UUID get /opt/stack/nova/nova/compute/api.py:2004
    2015-11-24 03:19:25.108 DEBUG nova.policy [req-2c427b9e-41e1-4de0-83f8-0a7518b0ad3a demo demo] Policy check for os_compute_api:os-extended-server-attributes failed with credentials {'domain': None, 'project_name': u'demo', 'project_domain': None, 'timestamp': '2015-11-24T08:19:24.995659', 'remote_address': '10.108.22.98', 'quota_class': None, 'resource_uuid': None, 'is_admin': False, 'user': u'979db8c6b97e4bfb8b07fc57cf55d805', 'service_catalog': [{u'endpoints': [{u'adminURL': u'http://10.108.22.98:8776/v1/3f45a38e06fc4c10b917162e93dbca02', u'region': u'RegionOne', u'internalURL': u'http://10.108.22.98:8776/v1/3f45a38e06fc4c10b917162e93dbca02', u'publicURL': u'http://10.108.22.98:8776/v1/3f45a38e06fc4c10b917162e93dbca02'}], u'type': u'volume', u'name': u'cinder'}, {u'endpoints': [{u'adminURL': u'http://10.108.22.98:8776/v2/3f45a38e06fc4c10b917162e93dbca02', u'region': u'RegionOne', u'internalURL': u'http://10.108.22.98:8776/v2/3f45a38e06fc4c10b917162e93dbca02', u'publicURL': u'http://10.108.22.98:8776/v2/3f45a38e06fc4c10b917162e93dbca02'}], u'type': u'volumev2', u'name': u'cinderv2'}], 'tenant': u'3f45a38e06fc4c10b917162e93dbca02', 'read_only': False, 'project_id': u'3f45a38e06fc4c10b917162e93dbca02', 'user_id': u'979db8c6b97e4bfb8b07fc57cf55d805', 'show_deleted': False, 'roles': [u'anotherrole', u'Member'], 'user_identity': '979db8c6b97e4bfb8b07fc57cf55d805 3f45a38e06fc4c10b917162e93dbca02 - - -', 'read_deleted': 'no', 'request_id': 'req-2c427b9e-41e1-4de0-83f8-0a7518b0ad3a', 'instance_lock_checked': False, 'user_domain': None, 'user_name': u'demo'} enforce /opt/stack/nova/nova/policy.py:104
    2015-11-24 03:19:25.110 INFO nova.osapi_compute.wsgi.server [req-2c427b9e-41e1-4de0-83f8-0a7518b0ad3a demo demo] 10.108.22.98 "GET /v2.1/3f45a38e06fc4c10b917162e93dbca02/servers/6327e515-c99f-4a21-8b7b-605febe637b4 HTTP/1.1" status: 200 len: 1802 time: 0.1171689
    2015-11-24 03:19:25.123 DEBUG nova.api.openstack.wsgi [req-e78ad5ed-4a66-49ef-b8a7-c067d21fa5f0 demo demo] Action: 'create', calling method: <bound method VolumeAttachmentController.create of <nova.api.openstack.compute.volumes.VolumeAttachmentController object at 0x7f8ab7638190>>, body: {"volumeAttachment": {"volumeId": "b25df735-9ed8-49d1-bd82-e7f038b6f273"}} _process_stack /opt/stack/nova/nova/api/openstack/wsgi.py:789
    2015-11-24 03:19:25.126 DEBUG nova.compute.api [req-e78ad5ed-4a66-49ef-b8a7-c067d21fa5f0 demo demo] [instance: 6327e515-c99f-4a21-8b7b-605febe637b4] Fetching instance by UUID get /opt/stack/nova/nova/compute/api.py:2004
    2015-11-24 03:19:26.217 DEBUG keystoneclient.session [req-e78ad5ed-4a66-49ef-b8a7-c067d21fa5f0 demo demo] REQ: curl -g -i -X GET http://10.108.22.98:8776/v2/3f45a38e06fc4c10b917162e93dbca02/volumes/b25df735-9ed8-49d1-bd82-e7f038b6f273 -H "User-Agent: python-cinderclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}afb6160ad309d23bc30445c5ecc1802e12574d75" _http_log_request /usr/local/lib/python2.7/dist-packages/keystoneclient/session.py:198
    2015-11-24 03:19:26.595 DEBUG keystoneclient.session [req-e78ad5ed-4a66-49ef-b8a7-c067d21fa5f0 demo demo] RESP: [200] Content-Length: 1341 X-Compute-Request-Id: req-78b056c7-79c0-474d-b646-138ee908c380 Connection: keep-alive Date: Tue, 24 Nov 2015 08:19:26 GMT Content-Type: application/json X-Openstack-Request-Id: req-78b056c7-79c0-474d-b646-138ee908c380
    RESP BODY: {"volume": {"attachments": [], "links": [{"href": "http://10.108.22.98:8776/v2/3f45a38e06fc4c10b917162e93dbca02/volumes/b25df735-9ed8-49d1-bd82-e7f038b6f273", "rel": "self"}, {"href": "http://10.108.22.98:8776/3f45a38e06fc4c10b917162e93dbca02/volumes/b25df735-9ed8-49d1-bd82-e7f038b6f273", "rel": "bookmark"}], "availability_zone": "nova", "encrypted": false, "updated_at": "2015-11-24T08:14:46.000000", "os-volume-replication:extended_status": null, "replication_status": "disabled", "snapshot_id": null, "id": "b25df735-9ed8-49d1-bd82-e7f038b6f273", "size": 5, "user_id": "979db8c6b97e4bfb8b07fc57cf55d805", "os-vol-tenant-attr:tenant_id": "3f45a38e06fc4c10b917162e93dbca02", "metadata": {}, "status": "available", "volume_image_metadata": {"kernel_id": "27737e6b-969c-41a7-9382-ef45e76e3841", "checksum": "eb9139e4942121f22bbc2afc0400b2a4", "min_ram": "0", "ramdisk_id": "e815cdda-73bf-4cfe-944d-a4105b14c783", "disk_format": "ami", "image_name": "cirros-0.3.4-x86_64-uec", "image_id": "3d349fc1-00d2-41b6-adb5-767e37935332", "container_format": "ami", "min_disk": "0", "size": "25165824"}, "description": null, "multiattach": false, "os-volume-replication:driver_data": null, "source_volid": null, "consistencygroup_id": null, "name": "vol1", "bootable": "true", "created_at": "2015-11-24T08:14:01.000000", "volume_type": "lvmdriver-1"}}
    _http_log_response /usr/local/lib/python2.7/dist-packages/keystoneclient/session.py:216
    2015-11-24 03:19:26.597 DEBUG keystoneclient.session [req-e78ad5ed-4a66-49ef-b8a7-c067d21fa5f0 demo demo] REQ: curl -g -i -X POST http://10.108.22.98:8776/v2/3f45a38e06fc4c10b917162e93dbca02/volumes/b25df735-9ed8-49d1-bd82-e7f038b6f273/action -H "User-Agent: python-cinderclient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}afb6160ad309d23bc30445c5ecc1802e12574d75" -d '{"os-reserve": null}' _http_log_request /usr/local/lib/python2.7/dist-packages/keystoneclient/session.py:198
    2015-11-24 03:19:26.787 DEBUG keystoneclient.session [req-e78ad5ed-4a66-49ef-b8a7-c067d21fa5f0 demo demo] RESP: [202] Date: Tue, 24 Nov 2015 08:19:26 GMT Connection: keep-alive Content-Type: text/html; charset=UTF-8 Content-Length: 0 X-Openstack-Request-Id: req-73c4ccea-bdc7-40d4-b912-e7356ad8f9f1 _http_log_response /usr/local/lib/python2.7/dist-packages/keystoneclient/session.py:216
    2015-11-24 03:19:26.794 INFO nova.osapi_compute.wsgi.server [req-e78ad5ed-4a66-49ef-b8a7-c067d21fa5f0 demo demo] 10.108.22.98 "POST /v2.1/3f45a38e06fc4c10b917162e93dbca02/servers/6327e515-c99f-4a21-8b7b-605febe637b4/os-volume_attachments HTTP/1.1" status: 200 len: 462 time: 1.6786129
  2. detailed logs -- detach

2015-11-24 03:21:02.762 DEBUG nova.osapi_compute.wsgi.server req-c425bafa-b795-47bb-b854-6aa7352862b3 None None accepted ('10.108.22.98', 34012) server /usr/local/lib/python2.7/dist-packages/eventlet/wsgi.py:826
2015-11-24 03:21:02.804 18954 DEBUG keystoneclient.auth.identity.v3.base [-] Making authentication request to http://10.108.22.98:35357/v3/auth/tokens get_auth_ref /usr/local/lib/python2.7/dist-packages/keystoneclient/auth/identity/v3/base.py:188
2015-11-24 03:21:03.059 18954 DEBUG keystoneclient.session [-] REQ: curl -g -i --cacert "/opt/stack/data/ca-bundle.pem" -X GET http://10.108.22.98:35357/v3/auth/tokens -H "X-Subject-Token: {SHA1}1a53e19ecd13e77f5dd83360844b7896039feddb" -H "User-Agent: python-keystoneclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}0ebfbeb388c15b625e0019f1735796685c7f1f9a" _http_log_request /usr/local/lib/python2.7/dist-packages/keystoneclient/session.py:198
2015-11-24 03:21:03.257 18954 DEBUG keystoneclient.session [-] RESP: [200] Content-Length: 4889 X-Subject-Token: {SHA1}1a53e19ecd13e77f5dd83360844b7896039feddb Vary: X-Auth-Token Keep-Alive: timeout=5, max=99 Server: Apache/2.4.7 (Ubuntu) Connection: Keep-Alive Date: Tue, 24 Nov 2015 08:21:03 GMT Content-Type: application/json x-openstack-request-id: req-d0c807bf-da4e-446c-a572-48fd8c669608
RESP BODY: {"token": {"methods": ["password", "token"], "roles": [{"id": "ad8c5e36b703433b8d9f84e48a2a5bb8", "name": "anotherrole"}, {"id": "a58219baadcb4e0ea120723e7874a2ec", "name": "Member"}], "expires_at": "2015-11-24T09:21:02.000000Z", "project": {"domain": {"id": "default", "name": "Default"}, "id": "3f45a38e06fc4c10b917162e93dbca02", "name": "demo"}, "catalog": "", "extras": {}, "user": {"domain": {"id": "default", "name": "Default"}, "id": "979db8c6b97e4bfb8b07fc57cf55d805", "name": "demo"}, "audit_ids": ["CWWXUt1tRymGQkmGvbcIeQ"], "issued_at": "2015-11-24T08:21:02.735253"}}
_http_log_response /usr/local/lib/python2.7/dist-packages/keystoneclient/session.py:216
2015-11-24 03:21:03.270 INFO nova.osapi_compute.wsgi.server [req-a5a31d03-f970-4595-9d90-ecca1eb9d3a9 demo demo] 10.108.22.98 "GET /v2.1/3f45a38e06fc4c10b917162e93dbca02 HTTP/1.1" status: 404 len: 264 time: 0.4905879
2015-11-24 03:21:03.302 DEBUG nova.api.openstack.wsgi [req-1cf46848-b654-41b0-a91d-6c81005a03de demo demo] Calling method '<bound method VersionsController.show of <nova.api.openstack.compute.versionsV21.VersionsController object at 0x7f8ab76b0fd0>>' _process_stack /opt/stack/nova/nova/api/openstack/wsgi.py:792
2015-11-24 03:21:03.306 INFO nova.osapi_compute.wsgi.server [req-1cf46848-b654-41b0-a91d-6c81005a03de demo demo] 10.108.22.98 "GET /v2.1/ HTTP/1.1" status: 200 len: 654 time: 0.0305820
2015-11-24 03:21:24.499 DEBUG nova.osapi_compute.wsgi.server req-d7b16c60-d21d-472b-8fc8-70547ebd8c2b None None accepted ('10.108.22.98', 34024) server /usr/local/lib/python2.7/dist-packages/eventlet/wsgi.py:826
2015-11-24 03:21:24.530 18953 DEBUG keystoneclient.session [-] REQ: curl -g -i --cacert "/opt/stack/data/ca-bundle.pem" -X GET http://10.108.22.98:35357/v3/auth/tokens -H "X-Subject-Token: {SHA1}08c40147c59eb80761cbbba0a0403239b3a6b9ce" -H "User-Agent: python-keystoneclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}39ca7b09dc8d1966cae400b7ea887b00b16a9d85" _http_log_request /usr/local/lib/python2.7/dist-packages/keystoneclient/session.py:198
2015-11-24 03:21:24.740 18953 DEBUG keystoneclient.session [-] RESP: [200] Content-Length: 4889 X-Subject-Token: {SHA1}08c40147c59eb80761cbbba0a0403239b3a6b9ce Vary: X-Auth-Token Keep-Alive: timeout=5, max=100 Server: Apache/2.4.7 (Ubuntu) Connection: Keep-Alive Date: Tue, 24 Nov 2015 08:21:24 GMT Content-Type: application/json x-openstack-request-id: req-8405637c-fa39-4999-9e1f-2a1740993b81
RESP BODY: {"token": {"methods": ["password", "token"], "roles": [{"id": "ad8c5e36b703433b8d9f84e48a2a5bb8", "name": "anotherrole"}, {"id": "a58219baadcb4e0ea120723e7874a2ec", "name": "Member"}], "expires_at": "2015-11-24T09:21:24.000000Z", "project": {"domain": {"id": "default", "name": "Default"}, "id": "3f45a38e06fc4c10b917162e93dbca02", "name": "demo"}, "catalog": "", "extras": {}, "user": {"domain": {"id": "default", "name": "Default"}, "id": "979db8c6b97e4bfb8b07fc57cf55d805", "name": "demo"}, "audit_ids": ["M7Nfd5noQ-mBLT4j6Lm5TA"], "issued_at": "2015-11-24T08:21:24.475525"}}
_http_log_response /usr/local/lib/python2.7/dist-packages/keystoneclient/session.py:216
2015-11-24 03:21:24.754 INFO nova.osapi_compute.wsgi.server [req-4c06ced1-52a0-4cac-bbc9-3ffe0f6394f6 demo demo] 10.108.22.98 "GET /v2.1/3f45a38e06fc4c10b917162e93dbca02 HTTP/1.1" status: 404 len: 264 time: 0.2429762
2015-11-24 03:21:24.802 DEBUG nova.api.openstack.wsgi [req-1e432fa1-ea21-4ce0-b83a-04cc0162ca9e demo demo] Calling method '<bound method VersionsController.show of <nova.api.openstack.compute.versionsV21.VersionsController object at 0x7f8ab76b0fd0>>' _process_stack /opt/stack/nova/nova/api/openstack/wsgi.py:792
2015-11-24 03:21:24.805 INFO nova.osapi_compute.wsgi.server [req-1e432fa1-ea21-4ce0-b83a-04cc0162ca9e demo demo] 10.108.22.98 "GET /v2.1/ HTTP/1.1" status: 200 len: 654 time: 0.0329020
2015-11-24 03:21:24.965 DEBUG nova.api.openstack.wsgi [req-7b1f2f3b-61ff-4da3-9109-d09c976f00c8 demo demo] Calling method '<bound method ServersController.show of <nova.api.openstack.compute.servers.ServersController object at 0x7f8ab7725790>>' _process_stack /opt/stack/nova/nova/api/openstack/wsgi.py:792
2015-11-24 03:21:24.969 DEBUG nova.compute.api [req-7b1f2f3b-61ff-4da3-9109-d09c976f00c8 demo demo] [instance: 6327e515-c99f-4a21-8b7b-605febe637b4] Fetching instance by UUID get /opt/stack/nova/nova/compute/api.py:2004
2015-11-24 03:21:25.166 DEBUG nova.policy [req-7b1f2f3b-61ff-4da3-9109-d09c976f00c8 demo demo] Policy check for os_compute_api:os-extended-server-attributes failed with credentials {'domain': None, 'project_name': u'demo', 'project_domain': None, 'timestamp': '2015-11-24T08:21:24.961365', 'remote_address': '10.108.22.98', 'quota_class': None, 'resource_uuid': None, 'is_admin': False, 'user': u'979db8c6b97e4bfb8b07fc57cf55d805', 'service_catalog': [{u'endpoints': [{u'adminURL': u'http://10.108.22.98:8776/v1/3f45a38e06fc4c10b917162e93dbca02', u'region': u'RegionOne', u'internalURL': u'http://10.108.22.98:8776/v1/3f45a38e06fc4c10b917162e93dbca02', u'publicURL': u'http://10.108.22.98:8776/v1/3f45a38e06fc4c10b917162e93dbca02'}], u'type': u'volume', u'name': u'cinder'}, {u'endpoints': [{u'adminURL': u'http://10.108.22.98:8776/v2/3f45a38e06fc4c10b917162e93dbca02', u'region': u'RegionOne', u'internalURL': u'http://10.108.22.98:8776/v2/3f45a38e06fc4c10b917162e93dbca02', u'publicURL': u'http://10.108.22.98:8776/v2/3f45a38e06fc4c10b917162e93dbca02'}], u'type': u'volumev2', u'name': u'cinderv2'}], 'tenant': u'3f45a38e06fc4c10b917162e93dbca02', 'read_only': False, 'project_id': u'3f45a38e06fc4c10b917162e93dbca02', 'user_id': u'979db8c6b97e4bfb8b07fc57cf55d805', 'show_deleted': False, 'roles': [u'anotherrole', u'Member'], 'user_identity': '979db8c6b97e4bfb8b07fc57cf55d805 3f45a38e06fc4c10b917162e93dbca02 - - -', 'read_deleted': 'no', 'request_id': 'req-7b1f2f3b-61ff-4da3-9109-d09c976f00c8', 'instance_lock_checked': False, 'user_domain': None, 'user_name': u'demo'} enforce /opt/stack/nova/nova/policy.py:104
2015-11-24 03:21:25.169 INFO nova.osapi_compute.wsgi.server [req-7b1f2f3b-61ff-4da3-9109-d09c976f00c8 demo demo] 10.108.22.98 "GET /v2.1/3f45a38e06fc4c10b917162e93dbca02/servers/6327e515-c99f-4a21-8b7b-605febe637b4 HTTP/1.1" status: 200 len: 1802 time: 0.2109542
2015-11-24 03:21:25.185 DEBUG nova.api.openstack.wsgi [req-398d5d02-690d-424b-a9d4-3bd04f068573 demo demo] Calling method '<bound method VolumeAttachmentController.delete of <nova.api.openstack.compute.volumes.VolumeAttachmentController object at 0x7f8ab7638190>>' _process_stack /opt/stack/nova/nova/api/openstack/wsgi.py:792
2015-11-24 03:21:25.186 DEBUG nova.compute.api [req-398d5d02-690d-424b-a9d4-3bd04f068573 demo demo] [instance: 6327e515-c99f-4a21-8b7b-605febe637b4] Fetching instance by UUID get /opt/stack/nova/nova/compute/api.py:2004
2015-11-24 03:21:25.350 DEBUG keystoneclient.session [req-398d5d02-690d-424b-a9d4-3bd04f068573 demo demo] REQ: curl -g -i -X GET http://10.108.22.98:8776/v2/3f45a38e06fc4c10b917162e93dbca02/volumes/b25df735-9ed8-49d1-bd82-e7f038b6f273 -H "User-Agent: python-cinderclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}08c40147c59eb80761cbbba0a0403239b3a6b9ce" _http_log_request /usr/local/lib/python2.7/dist-packages/keystoneclient/session.py:198
2015-11-24 03:21:26.050 DEBUG keystoneclient.session [req-398d5d02-690d-424b-a9d4-3bd04f068573 demo demo] RESP: [200] Content-Length: 1341 X-Compute-Request-Id: req-9975e72e-4744-43d9-814c-327cfed3aca5 Connection: keep-alive Date: Tue, 24 Nov 2015 08:21:26 GMT Content-Type: application/json X-Openstack-Request-Id: req-9975e72e-4744-43d9-814c-327cfed3aca5
RESP BODY: {"volume": {"attachments": [], "links": [{"href": "http://10.108.22.98:8776/v2/3f45a38e06fc4c10b917162e93dbca02/volumes/b25df735-9ed8-49d1-bd82-e7f038b6f273", "rel": "self"}, {"href": "http://10.108.22.98:8776/3f45a38e06fc4c10b917162e93dbca02/volumes/b25df735-9ed8-49d1-bd82-e7f038b6f273", "rel": "bookmark"}], "availability_zone": "nova", "encrypted": false, "updated_at": "2015-11-24T08:19:27.000000", "os-volume-replication:extended_status": null, "replication_status": "disabled", "snapshot_id": null, "id": "b25df735-9ed8-49d1-bd82-e7f038b6f273", "size": 5, "user_id": "979db8c6b97e4bfb8b07fc57cf55d805", "os-vol-tenant-attr:tenant_id": "3f45a38e06fc4c10b917162e93dbca02", "metadata": {}, "status": "available", "volume_image_metadata": {"kernel_id": "27737e6b-969c-41a7-9382-ef45e76e3841", "checksum": "eb9139e4942121f22bbc2afc0400b2a4", "min_ram": "0", "ramdisk_id": "e815cdda-73bf-4cfe-944d-a4105b14c783", "disk_format": "ami", "image_name": "cirros-0.3.4-x86_64-uec", "image_id": "3d349fc1-00d2-41b6-adb5-767e37935332", "container_format": "ami", "min_disk": "0", "size": "25165824"}, "description": null, "multiattach": false, "os-volume-replication:driver_data": null, "source_volid": null, "consistencygroup_id": null, "name": "vol1", "bootable": "true", "created_at": "2015-11-24T08:14:01.000000", "volume_type": "lvmdriver-1"}}
_http_log_response /usr/local/lib/python2.7/dist-packages/keystoneclient/session.py:216
2015-11-24 03:21:26.061 INFO nova.api.openstack.wsgi [req-398d5d02-690d-424b-a9d4-3bd04f068573 demo demo] HTTP exception thrown: volume_id not found: b25df735-9ed8-49d1-bd82-e7f038b6f273
2015-11-24 03:21:26.062 DEBUG nova.api.openstack.wsgi [req-398d5d02-690d-424b-a9d4-3bd04f068573 demo demo] Returning 404 to user: volume_id not found: b25df735-9ed8-49d1-bd82-e7f038b6f273 call /opt/stack/nova/nova/api/openstack/wsgi.py:1175
2015-11-24 03:21:26.064 INFO nova.osapi_compute.wsgi.server [req-398d5d02-690d-424b-a9d4-3bd04f068573 demo demo] 10.108.22.98 "DELETE /v2.1/3f45a38e06fc4c10b917162e93dbca02/servers/6327e515-c99f-4a21-8b7b-605febe637b4/os-volume_attachments/b25df735-9ed8-49d1-bd82-e7f038b6f273 HTTP/1.1" status: 404 len: 393 time: 0.8901849

Validation required: Cinder snapshot can be created with empty metadata key/value

Description:
Cinder snapshot can be created with empty metadata key/value. Missing validaion against key/value params

Project:
OpenStack

Project Area:
cinder

Release:
OpenStack

Severity:
S1

Full Details:
Cinder snapshot can be created with empty metadata key/value. Missing validaion against key/value params

stack@ubuntuasdfasd:~$ cinder snapshot-create ffe2a72d-cbb8-465c-b4cd-a97e16003695 --metadata " "=" "
+-------------+--------------------------------------+
| Property | Value |
+-------------+--------------------------------------+
| created_at | 2015-11-24T17:55:51.822875 |
| description | None |
| id | aa79f267-87ae-46e5-918b-a15995e5ad37 |
| metadata | {u' ': u' '} |
| name | None |
| size | 1 |
| status | creating |
| updated_at | None |
| volume_id | ffe2a72d-cbb8-465c-b4cd-a97e16003695 |
+-------------+--------------------------------------+

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.