DevTech101

DevTech101

How to check cinder status

cinder-manage service list
Binary           Host                                 Zone             Status     State Updated At
cinder-scheduler os1                              nova             enabled    :-)   2015-11-19 17:26:58
cinder-volume    os2                              nova             enabled    XXX   2015-11-19 14:42:43
cinder-volume    os1                              nova             enabled    :-)   None      

How to check nova service status

nova-manage service list  
Binary           Host                                 Zone             Status     State Updated_At
nova-conductor   os1                              internal         enabled    :-)   2015-11-20 16:25:42
nova-cert        os1                              internal         enabled    :-)   2015-11-20 16:25:32
nova-scheduler   os1                              internal         enabled    :-)   2015-11-20 16:25:41
nova-compute     os1                              nova             enabled    :-)   2015-11-20 16:25:42
nova-consoleauth os1                              internal         enabled    :-)   2015-11-20 16:25:42
nova-compute     os2                              nova             enabled    :-)   2015-11-20 16:25:35
nova-consoleauth os2                              internal         enabled    :-)   2015-11-20 16:25:36

To Associate a volume type with a volume

cinder type-create zfssa-2
cinder extra-specs-list                               
+--------------------------------------+-------------+-------------+
|                  ID                  |     Name    | extra_specs |
+--------------------------------------+-------------+-------------+
| 08230f2e-7bdb-44eb-acef-eb9ea6e2416a |  vio4-thin  |      {}     |
| 148cf4c0-604e-4127-bc28-e6b41827da37 | zfs_os1     |      {}     |
| 52815c0d-8984-49a5-b7c3-9050e288a16f |   zfssa-2   |      {}     |
| dca407a7-0c05-4666-aeef-e50787e53e67 |  vio4-dedup |      {}     |
+--------------------------------------+-------------+-------------+
cinder type-key vio4-thin set volume_backend_name=vio4-thin

cinder extra-specs-list
+--------------------------------------+-------------+----------------------------------------+
|                  ID                  |     Name    |              extra_specs               |
+--------------------------------------+-------------+----------------------------------------+
| 08230f2e-7bdb-44eb-acef-eb9ea6e2416a |  vio4-thin  | {u'volume_backend_name': u'vio4-thin'} |
| 148cf4c0-604e-4127-bc28-e6b41827da37 | zfs_os1     |                   {}                   |
| 52815c0d-8984-49a5-b7c3-9050e288a16f |   zfssa-2   |                   {}                   |
| dca407a7-0c05-4666-aeef-e50787e53e67 |  vio4-dedup |                   {}                   |
+--------------------------------------+-------------+----------------------------------------+


cinder type-list
# or
nova volume-type-list

# all parameters 
cinder extra-specs-list

How to delete cinder volume driver

select * from volume_types;
+---------------------+------------+---------------------+---------+--------------------------------------+-------------+--------------+
| created_at          | updated_at | deleted_at          | deleted | id                                   | name        | qos_specs_id |
+---------------------+------------+---------------------+---------+--------------------------------------+-------------+--------------+
| 2015-11-19 17:23:40 | NULL       | NULL                |       0 | 148cf4c0-604e-4127-bc28-e6b41827da37 | zfs_os1     | NULL         |
| 2015-11-19 20:03:44 | NULL       | NULL                |       0 | 52815c0d-8984-49a5-b7c3-9050e288a16f | zfssa-2     | NULL         |
| 2015-11-19 20:03:21 | NULL       | 2015-11-19 20:03:36 |       1 | 5fabdacc-9197-4527-b350-8e9719db8cee | zfssa-1     | NULL         |
| 2015-11-23 19:42:28 | NULL       | 2015-11-23 21:36:41 |       1 | 636e2656-3e3c-48e0-87e5-82870fb35869 | ssd-vio4    | NULL         |
+---------------------+------------+---------------------+---------+--------------------------------------+-------------+--------------+
4 rows in set (0.00 sec)

# Now delete zfssa-1
delete from volume_types where name='zfssa-1';

How to delete extra services

mysql>delete from services where host='os1@ssd-vio4';

How to fix bad quota

select * from quota_usages;
+---------------------+---------------------+------------+---------+----+----------------------------------+---------------------+--------+----------+---------------+
| created_at          | updated_at          | deleted_at | deleted | id | project_id                       | resource            | in_use | reserved | until_refresh |
+---------------------+---------------------+------------+---------+----+----------------------------------+---------------------+--------+----------+---------------+
| 2015-11-18 22:31:22 | 2015-11-23 22:10:36 | NULL       |       0 |  1 | fc52517bf8a947488a77d5c47f70b705 | gigabytes           |      3 |        0 |          NULL |
| 2015-11-18 22:31:22 | 2015-11-23 22:10:36 | NULL       |       0 |  2 | fc52517bf8a947488a77d5c47f70b705 | volumes             |      0 |       

update quota_usages set in_use='0' where id='1';

Helpful links

keystone api / like keystone service-create
http://docs.openstack.org/developer/keystone/cli_examples.html
Troubleshooting Common OpenStack Errors

Troubleshooting Common OpenStack Errors

0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
%d bloggers like this: