[Openstack] [Opestack][Cinder] Private volume types
Remo Mattei
Remo at italy1.com
Tue Nov 15 17:07:42 UTC 2016
Ciao Davide,
ecco qua’ le steps..
root at overcloud-controller-0 ~]# cinder type-list
+----+------+-------------+-----------+
| ID | Name | Description | Is_Public |
+----+------+-------------+-----------+
+----+------+-------------+-----------+
[root at overcloud-controller-0 ~]# cinder service-list
+------------------+-------------------------+------+---------+-------+----------------------------+-----------------+
| Binary | Host | Zone | Status | State | Updated_at | Disabled Reason |
+------------------+-------------------------+------+---------+-------+----------------------------+-----------------+
| cinder-scheduler | hostgroup | nova | enabled | up | 2016-09-14T18:15:40.000000 | - |
| cinder-volume | hostgroup at tripleo_ceph | nova | enabled | up | 2016-09-14T18:14:59.000000 | - |
| cinder-volume | hostgroup at tripleo_iscsi | nova | enabled | up | 2016-09-14T18:15:00.000000 | - |
+------------------+-------------------------+------+---------+-------+----------------------------+-----------------+
[root at overcloud-controller-0 ~]# cinder type-create iscsi
+--------------------------------------+-------+-------------+-----------+
| ID | Name | Description | Is_Public |
+--------------------------------------+-------+-------------+-----------+
| 0a3fefdd-45a9-4a99-bee4-e98db37e4c17 | iscsi | - | True |
+--------------------------------------+-------+-------------+-----------+
[root at overcloud-controller-0 ~]# cinder type-key iscsi set storage_protocol=iSCSI
[root at overcloud-controller-0 ~]# cinder create --display-name sol2 --volume-type iSCSI 1
+---------------------------------------+---------------------------------------+
| Property | Value |
+---------------------------------------+---------------------------------------+
| attachments | [] |
| availability_zone | nova |
| bootable | false |
| consistencygroup_id | None |
| created_at | 2016-09-14T18:17:22.000000 |
| description | None |
| encrypted | False |
| id | 30dc4423-48b7-4e4c-b034-49621bbe1050 |
| metadata | {} |
| migration_status | None |
| multiattach | False |
| name | sol2 |
| os-vol-host-attr:host | hostgroup at tripleo_iscsi#tripleo_iscsi |
| os-vol-mig-status-attr:migstat | None |
| os-vol-mig-status-attr:name_id | None |
| os-vol-tenant-attr:tenant_id | 3d6f108c12a24572a74f26161f734edc |
| 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 |
| user_id | f2d6b2c143a34195a335ea8e40717cb2 |
| volume_type | iscsi |
+---------------------------------------+---------------------------------------+
> On Nov 15, 2016, at 08:10, Davide Panarese <dpanarese at enter.eu> wrote:
>
> Hi Mohammed,
> thanks for your explanation.
>
> But this commands are provided only from openstack client. I haven’t in cinder client.
>
> thanks
> Davide
>
>> On 15 Nov 2016, at 16:21, Mohammed Naser <mnaser at vexxhost.com <mailto:mnaser at vexxhost.com>> wrote:
>>
>> is_public controls if it's public or not
>> volume_type_projects controls which projects can access a specific flavor
>>
>> The cinder commands which are of your interest:
>>
>> type-access-add Adds volume type access for the given project.
>> type-access-list Print access information about the given volume type.
>> type-access-remove Removes volume type access for the given project.
>> type-create Creates a volume type.
>>
>> Good luck!
>>
>> On Tue, Nov 15, 2016 at 10:03 AM, Davide Panarese <dpanarese at enter.eu <mailto:dpanarese at enter.eu>> wrote:
>>> Hello,
>>> anyone of us have tried private volume types? How are they work?
>>> I know that were introduced from Kilo release and you can use with Cinder API v2.
>>>
>>> But who can define these? Just admins i guess, right? In API command you can choose only if is public or not and not the owner.
>>> In DB schema i don’t find anything about that:
>>>
>>> CREATE TABLE `volume_types` (
>>> `created_at` datetime DEFAULT NULL,
>>> `updated_at` datetime DEFAULT NULL,
>>> `deleted_at` datetime DEFAULT NULL,
>>> `deleted` tinyint(1) DEFAULT NULL,
>>> `id` varchar(36) NOT NULL,
>>> `name` varchar(255) DEFAULT NULL,
>>> `qos_specs_id` varchar(36) DEFAULT NULL,
>>> `is_public` tinyint(1) DEFAULT NULL,
>>> `description` varchar(255) DEFAULT NULL,
>>> PRIMARY KEY (`id`),
>>> KEY `qos_specs_id` (`qos_specs_id`),
>>> CONSTRAINT `volume_types_ibfk_1` FOREIGN KEY (`qos_specs_id`) REFERENCES `quality_of_service_specs` (`id`)
>>> ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
>>>
>>> Do i need Keystone v3 with RBAC to define who can use a specific volume type?
>>>
>>> Thanks for your help.
>>> Davide
>>>
>>>
>>> _______________________________________________
>>> Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack <http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack>
>>> Post to : openstack at lists.openstack.org <mailto:openstack at lists.openstack.org>
>>> Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack <http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack>
>>
>>
>>
>> --
>> Mohammed Naser — vexxhost
>> -----------------------------------------------------
>> D. 514-316-8872
>> D. 800-910-1726 ext. 200
>> E. mnaser at vexxhost.com <mailto:mnaser at vexxhost.com>
>> W. http://vexxhost.com <http://vexxhost.com/>
>>
>> _______________________________________________
>> Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack <http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack>
>> Post to : openstack at lists.openstack.org <mailto:openstack at lists.openstack.org>
>> Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack <http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack>
>>
>> --
>> Questo messaggio e' stato analizzato con Libra ESVA ed e' risultato non infetto.
>> Seguire il link qui sotto per segnalarlo come spam:
>> http://mx01.enter.it/cgi-bin/learn-msg.cgi?id=F1D1F401F0.A96C6 <http://mx01.enter.it/cgi-bin/learn-msg.cgi?id=F1D1F401F0.A96C6>
> !DSPAM:1,582b35eb87671724125248! _______________________________________________
> Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack <http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack>
> Post to : openstack at lists.openstack.org <mailto:openstack at lists.openstack.org>
> Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack <http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack>
>
>
> !DSPAM:1,582b35eb87671724125248!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20161115/e5d5a768/attachment.html>
More information about the Openstack
mailing list