Manila实战总结

环境介绍

官方文档 , 什么环境也描述得不清楚,只说要在controller node 和share node 上做配置,也没有画一个架构图。
如果你有share node(上面有sdb, sdc等存储设备可用)的话,就按照文档来。
其实,更常见的一种情景时:
三个控制节点+N个计算节点, 其中控制节点上跑Manila服务, 由另外的一套存储(如Isilon, netapp等)提供NFS资源给Manila使用。
Manila 对接存储设备,其实类似cinder, 其backend driver因设备不同而不同; 但manila有一个通用的driver可以使用,叫generic , generic其实是拿Openstack环境中的cinder volume通过manila提供NFS服务。
下文以generic为例,详细描述配置,网络,以及使用Manila share的方法。

manila.conf配置

如下是我摸索出来的配置, service_instance_XXX是用service_image_name启动的instance时的一些参数,应该很好理解。
其中service_network_cidr 怎么配呢?

[generic]
share_driver = manila.share.drivers.generic.GenericShareDriver
interface_driver = manila.network.linux.interface.OVSInterfaceDriver
driver_handles_share_servers = True
service_instance_password = manila
service_instance_user = manila
service_image_name = manila-service-image
manila_service_keypair_name = default
cinder_volume_type = netapp-iscsi
service_instance_flavor_id = 22
service_network_name = manila-service-network
service_network_cidr = 10.56.60.0/24
service_instance_security_group = default
service_instance_name_template = manila_service_instance_%s
share_backend_name = GENERIC
volume_snapshot_name_template = manila-snapshot-%s
service_instance_smb_config_path = $share_mount_path/smb.conf
share_volume_fstype = ext4
share_helpers = CIFS=manila.share.drivers.helpers.CIFSHelperIPAccess, NFS=manila.share.drivers.helpers.NFSHelper

网络

manila服务启动之后,就会出现manila-service-network 网络,这个是service network, manila service instance运行在该网络中,在该instance中提供nfs server , 这个instance在官方文档中也叫做share server,感觉叫法很混乱,所以文档不好懂。

[root@cloud-02 manila]# openstack network list
+-----------------------------------+-----------------------------------+-------------------------------------+
| ID                                | Name                              | Subnets                             |
+-----------------------------------+-----------------------------------+-------------------------------------+
| 4e7c6d2a-13f0-48e1-b9ce-          | private62                         | 09396cd6-cceb-4510-94ac-            |
| 9f75d72d0f67                      |                                   | bb39a68aac9b                        |
| 5033ac56-a4f5-4d9d-               | manila-service-network            |                                     |
| 80c0-3139cf74f33d                 |                                   |                                     |

这个manila-service-network网络如何设置呢?我这里采用一个私网,建议不要跟系统中现有的网络相同,以便区分。
创建share network,所谓share network, 就是nfs client端。

[root@cloud-02 manila]# manila share-network-create --neutron-net-id 4e7c6d2a-13f0-48e1-b9ce-9f75d72d0f67 --neutron-subnet-id 09396cd6-cceb-4510-94ac-bb39a68aac9b --name share-net 
+-------------------+--------------------------------------+
| Property          | Value                                |
+-------------------+--------------------------------------+
| network_type      | None                                 |
| name              | share-net                            |
| segmentation_id   | None                                 |
| created_at        | 2017-12-13T09:05:53.564134           |
| neutron_subnet_id | 09396cd6-cceb-4510-94ac-bb39a68aac9b |
| updated_at        | None                                 |
| mtu               | None                                 |
| gateway           | None                                 |
| neutron_net_id    | 4e7c6d2a-13f0-48e1-b9ce-9f75d72d0f67 |
| ip_version        | None                                 |
| cidr              | None                                 |
| project_id        | a3c5f0b64a2042beb10929c4ca58c3bf     |
| id                | 91319f52-b3c8-487a-8638-4ed7b0af7d20 |
| description       | None                                 |
+-------------------+--------------------------------------+

service network 和 share network 如何通信呢? service network是在service这个租户之下,而share network 是在其他的租户下面,

  1. 如果share network是一个租户的私有网络, 则manila要求该网络必须通过router连接到外部网络。
  2. 如果share network是一个公共的网络, 则由用户去保证share network和service network的互通,还没有测试!!!

借用一张图:


image.png

图中的英文术语跟官方文档是一致的。

Manila Pool


[root@cloud-sz-control-b13-01 ~]# manila pool-list
+--------------------------------------------------------------------------+----------------------------------------------+---------+----------------------+
| Name                                                                     | Host                                         | Backend | Pool                 |
+--------------------------------------------------------------------------+----------------------------------------------+---------+----------------------+
| cloud-sz-control-b13-01@generic#GENERIC             | cloud-sz-control-b13-01 | generic | GENERIC              |
| cloud-sz-control-b13-01@isilon#EMC_NAS_Storage      | cloud-sz-control-b13-01 | isilon  | EMC_NAS_Storage      |
| cloud-sz-control-b13-01@netapp#FAS8040_01_aggr1_sas | cloud-sz-control-b13-01 | netapp  | FAS8040_01_aggr1_sas |
| cloud-sz-control-b13-02@generic#GENERIC             | cloud-sz-control-b13-02 | generic | GENERIC              |
| cloud-sz-control-b13-02@isilon#EMC_NAS_Storage      | cloud-sz-control-b13-02 | isilon  | EMC_NAS_Storage      |
| cloud-sz-control-b13-02@netapp#FAS8040_01_aggr1_sas | cloud-sz-control-b13-02 | netapp  | FAS8040_01_aggr1_sas |
| cloud-sz-control-b13-03@generic#GENERIC             | cloud-sz-control-b13-03 | generic | GENERIC              |
| cloud-sz-control-b13-03@isilon#EMC_NAS_Storage      | cloud-sz-control-b13-03 | isilon  | EMC_NAS_Storage      |
| cloud-sz-control-b13-03@netapp#FAS8040_01_aggr1_sas | cloud-sz-control-b13-03 | netapp  | FAS8040_01_aggr1_sas |
+--------------------------------------------------------------------------+----------------------------------------------+---------+----------------------+

Manila Type

[root@cloud-02 manila-share]# manila type-create generic yes

yes代表的是driver_handles_share_servers=yes, 我的理解是manila driver是否要创建service instance,Manila backend driver必须明确指定这个参数

参见官方解释
For simplicity, this guide describes configuring the Shared File Systems service to use one of either:

the generic back end with the driver_handles_share_servers mode (DHSS) enabled that uses the Compute service (nova), Image service (glance), Networking service (neutron) and Block storage service (cinder); or,
the LVM back end with driver_handles_share_servers mode (DHSS) disabled.

在对接EMC isilon设备时,通常Openstack环境与存储设备是三层互通,2层不通。
所以这时,就需要设置driver_handles_share_servers 为false.

[root@cloud-sz-control-b13-02 neutron-openvswitch-agent]# manila create --share-type isilon nfs 3 
ERROR: Share network must be set when the driver_handles_share_servers is true. 
[root@cloud-02 manila-share]# manila type-list
+--------------------------------------+---------+------------+------------+--------------------------------------+----------------------+
| ID                                   | Name    | visibility | is_default | required_extra_specs                 | optional_extra_specs |
+--------------------------------------+---------+------------+------------+--------------------------------------+----------------------+
| edeb96d4-ea2d-4421-8641-edbe61ac0426 | generic | public     | -          | driver_handles_share_servers : True  |                      |
+--------------------------------------+---------+------------+------------+--------------------------------------+----------------------+

Create Manila share

[root@cloud-02 manila-share]# manila create --share-network  share-net  --share-type generic nfs
 --name share3 1 
+---------------------------------------+--------------------------------------+
| Property                              | Value                                |
+---------------------------------------+--------------------------------------+
| status                                | creating                             |
| share_type_name                       | generic                              |
| description                           | None                                 |
| availability_zone                     | None                                 |
| share_network_id                      | 91319f52-b3c8-487a-8638-4ed7b0af7d20 |
| share_server_id                       | None                                 |
| share_group_id                        | None                                 |
| host                                  |                                      |
| revert_to_snapshot_support            | False                                |
| access_rules_status                   | active                               |
| snapshot_id                           | None                                 |
| create_share_from_snapshot_support    | False                                |
| is_public                             | False                                |
| task_state                            | None                                 |
| snapshot_support                      | False                                |
| id                                    | b7298f01-0b25-4444-8963-090318586dd9 |
| size                                  | 1                                    |
| source_share_group_snapshot_member_id | None                                 |
| user_id                               | 4fc3ae38619744bf9cccbf0ee7c77274     |
| name                                  | share3                               |
| share_type                            | edeb96d4-ea2d-4421-8641-edbe61ac0426 |
| has_replicas                          | False                                |
| replication_type                      | None                                 |
| created_at                            | 2017-12-13T09:09:02.000000           |
| share_proto                           | NFS                                  |
| mount_snapshot_support                | False                                |
| project_id                            | a3c5f0b64a2042beb10929c4ca58c3bf     |
| metadata                              | {}                                   |
+---------------------------------------+--------------------------------------+

[root@cloud-02 manila-share]# manila list 
+--------------------------------------+--------+------+-------------+-----------+-----------+-----------------+--------------------------------------------------------------+-------------------+
| ID                                   | Name   | Size | Share Proto | Status    | Is Public | Share Type Name | Host                                                         | Availability Zone |
+--------------------------------------+--------+------+-------------+-----------+-----------+-----------------+--------------------------------------------------------------+-------------------+
| b7298f01-0b25-4444-8963-090318586dd9 | share3 | 1    | NFS         | available | False     | generic         | cloud-sz-control-b13-01.sz.cloud.genomics.cn@generic#GENERIC | nova              |
+--------------------------------------+--------+------+-------------+-----------+-----------+-----------------+--------------------------------------------------------------+-------------------+
 
 
[root@cloud-sz-control-b13-02 manila-share]# openstack server list --all 
+------------------------+------------------------+--------+------------------------+----------------------+
| ID                     | Name                   | Status | Networks               | Image Name           |
+------------------------+------------------------+--------+------------------------+----------------------+
| fb6a5295-23a4-491b-    | 2583fb50-21bd-         | BUILD  | manila-service-        | manila-service-image |
| a6ce-55f8e9a980fe      | 416d-b435-0c5c9b3f48f4 |        | network=10.56.60.13    |                      |
注意416d-b435-0c5c9b3f48f4就是service instance.
[root@cloud-sz-control-b13-02 manila-share]# openstack network show manila-service-network 
+---------------------------+--------------------------------------+
| Field                     | Value                                |
+---------------------------+--------------------------------------+
| admin_state_up            | UP                                   |
| availability_zone_hints   |                                      |
| availability_zones        | nova                                 |
| created_at                | 2017-12-13T08:49:24Z                 |
| description               |                                      |
| dns_domain                | None                                 |
| id                        | 5033ac56-a4f5-4d9d-80c0-3139cf74f33d |
| ipv4_address_scope        | None                                 |
| ipv6_address_scope        | None                                 |
| is_default                | None                                 |
| mtu                       | 1450                                 |
| name                      | manila-service-network               |
| port_security_enabled     | False                                |
| project_id                | bb66e61953184400a1a7f75138924a2a     |
| provider:network_type     | vxlan                                |
| provider:physical_network | None                                 |
| provider:segmentation_id  | 26                                   |
| qos_policy_id             | None                                 |
| revision_number           | 4                                    |
| router:external           | Internal                             |
| segments                  | None                                 |
| shared                    | False                                |
| status                    | ACTIVE                               |
| subnets                   | d347b686-8e19-4179-8359-834d92c9a4aa |
| updated_at                | 2017-12-13T09:09:03Z                 |
+---------------------------+--------------------------------------+
 
 
[root@cloud-sz-control-b13-02 manila-share]# manila show share3
+---------------------------------------+-----------------------------------------------------------------------+
| Property                              | Value                                                                 |
+---------------------------------------+-----------------------------------------------------------------------+
| status                                | available                                                             |
| share_type_name                       | generic                                                               |
| description                           | None                                                                  |
| availability_zone                     | nova                                                                  |
| share_network_id                      | 91319f52-b3c8-487a-8638-4ed7b0af7d20                                  |
| export_locations                      |                                                                       |
|                                       | path = 10.56.60.13:/shares/share-3b7fc019-18d2-4a7a-9b08-e5b944f610b9 |
|                                       | preferred = False                                                     |
|                                       | is_admin_only = False                                                 |
|                                       | id = 032f859e-86d7-4d6a-9b05-cbaa75136be8                             |
|                                       | share_instance_id = 3b7fc019-18d2-4a7a-9b08-e5b944f610b9              |
|                                       | path = 10.56.60.13:/shares/share-3b7fc019-18d2-4a7a-9b08-e5b944f610b9 |
|                                       | preferred = False                                                     |
|                                       | is_admin_only = True                                                  |
|                                       | id = 7901bd37-5d97-4009-b62d-96c72a18a863                             |
|                                       | share_instance_id = 3b7fc019-18d2-4a7a-9b08-e5b944f610b9              |
| share_server_id                       | 2583fb50-21bd-416d-b435-0c5c9b3f48f4                                  |
| share_group_id                        | None                                                                  |
| host                                  | cloud-sz-control-b13-01.sz.cloud.genomics.cn@generic#GENERIC          |
| revert_to_snapshot_support            | False                                                                 |
| access_rules_status                   | active                                                                |
| snapshot_id                           | None                                                                  |
| create_share_from_snapshot_support    | False                                                                 |
| is_public                             | False                                                                 |
| task_state                            | None                                                                  |
| snapshot_support                      | False                                                                 |
| id                                    | b7298f01-0b25-4444-8963-090318586dd9                                  |
| size                                  | 1                                                                     |
| source_share_group_snapshot_member_id | None                                                                  |
| user_id                               | 4fc3ae38619744bf9cccbf0ee7c77274                                      |
| name                                  | share3                                                                |
| share_type                            | edeb96d4-ea2d-4421-8641-edbe61ac0426                                  |
| has_replicas                          | False                                                                 |
| replication_type                      | None                                                                  |
| created_at                            | 2017-12-13T09:09:02.000000                                            |
| share_proto                           | NFS                                                                   |
| mount_snapshot_support                | False                                                                 |
| project_id                            | a3c5f0b64a2042beb10929c4ca58c3bf                                      |
| metadata                              | {}                                                                    |
+---------------------------------------+-----------------------------------------------------------------------+

How to use the Nfs?

创建一个vm , 注意,它运行在share network里面。

[root@cloud-02 manila-share]# openstack server create --nic net-id=4e7c6d2a-13f0-48e1-b9ce-9f75d72d0f67 --image CentOS-7 --key-name default manila-user
[root@cloud-02 manila-share]# openstack server list 
+----------------------------+------------------------+--------+-----------------------------+------------+
| ID                         | Name                   | Status | Networks                    | Image Name |
+----------------------------+------------------------+--------+-----------------------------+------------+
| 41d688b3-10f3-41bc-b79f-   | manila-user            | ACTIVE | private62=10.56.62.11,      | CentOS-7   |
| d59da89bcd95               |                        |        | 10.225.0.9                  |            |
\[root@cloud-02 manila-share]# manila access-allow share3 ip 10.56.62.11
+--------------+--------------------------------------+
| Property     | Value                                |
+--------------+--------------------------------------+
| access_key   | None                                 |
| share_id     | b7298f01-0b25-4444-8963-090318586dd9 |
| access_type  | ip                                   |
| access_to    | 10.56.62.11                          |
| access_level | rw                                   |
| state        | queued_to_apply                      |
| id           | 772580ae-3f65-4048-a30e-960c5294e2bb |
+--------------+--------------------------------------+
[root@cloud-02 manila-share]# ssh 10.225.0.9
root@10.225.0.9's password: 
Last login: Wed Dec 13 17:13:21 2017 from 10.225.0.19
[root@manila ~]# mount 10.56.60.13:/shares/share-3b7fc019-18d2-4a7a-9b08-e5b944f610b9 /mnt
[root@manila ~]# 
[root@manila ~]# cd /mnt/
[root@manila mnt]# ls
lost+found

Usual Case

share network 没有上接router

Manila使用geniric driver时, 要求share network的上面必须接到一个router中,为了和service network 打通,如果没有接,则会报如下错误:

2017-12-13 15:18:15.806 21 ERROR oslo_messaging.rpc.server [req-a323e281-b7cb-458b-bf32-6de113bd123e 4fc3ae38619744bf9cccbf0ee7c77274 a3c5f0b64a2042beb10929c4ca58c3bf - - -] Exception during message handling
2017-12-13 15:18:15.806 21 ERROR oslo_messaging.rpc.server Traceback (most recent call last):
2017-12-13 15:18:15.806 21 ERROR oslo_messaging.rpc.server   File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/server.py", line 155, in _process_incoming
2017-12-13 15:18:15.806 21 ERROR oslo_messaging.rpc.server     res = self.dispatcher.dispatch(message)
2017-12-13 15:18:15.806 21 ERROR oslo_messaging.rpc.server   File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 222, in dispatch
2017-12-13 15:18:15.806 21 ERROR oslo_messaging.rpc.server     return self._do_dispatch(endpoint, method, ctxt, args)
2017-12-13 15:18:15.806 21 ERROR oslo_messaging.rpc.server   File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 192, in _do_dispatch
2017-12-13 15:18:15.806 21 ERROR oslo_messaging.rpc.server     result = func(ctxt, **new_args)
2017-12-13 15:18:15.806 21 ERROR oslo_messaging.rpc.server   File "/usr/lib/python2.7/site-packages/manila/share/manager.py", line 167, in wrapped
2017-12-13 15:18:15.806 21 ERROR oslo_messaging.rpc.server     return f(self, *args, **kwargs)
2017-12-13 15:18:15.806 21 ERROR oslo_messaging.rpc.server   File "/usr/lib/python2.7/site-packages/manila/utils.py", line 519, in wrapper
2017-12-13 15:18:15.806 21 ERROR oslo_messaging.rpc.server     return func(self, *args, **kwargs)
2017-12-13 15:18:15.806 21 ERROR oslo_messaging.rpc.server   File "/usr/lib/python2.7/site-packages/manila/share/manager.py", line 1605, in create_share_instance
2017-12-13 15:18:15.806 21 ERROR oslo_messaging.rpc.server     {'status': constants.STATUS_ERROR}
2017-12-13 15:18:15.806 21 ERROR oslo_messaging.rpc.server   File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
2017-12-13 15:18:15.806 21 ERROR oslo_messaging.rpc.server     self.force_reraise()
2017-12-13 15:18:15.806 21 ERROR oslo_messaging.rpc.server   File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
2017-12-13 15:18:15.806 21 ERROR oslo_messaging.rpc.server     six.reraise(self.type_, self.value, self.tb)
2017-12-13 15:18:15.806 21 ERROR oslo_messaging.rpc.server   File "/usr/lib/python2.7/site-packages/manila/share/manager.py", line 1595, in create_share_instance
2017-12-13 15:18:15.806 21 ERROR oslo_messaging.rpc.server     share_group=share_group_ref,
2017-12-13 15:18:15.806 21 ERROR oslo_messaging.rpc.server   File "/usr/lib/python2.7/site-packages/manila/share/manager.py", line 516, in _provide_share_server_for_share
2017-12-13 15:18:15.806 21 ERROR oslo_messaging.rpc.server     return _provide_share_server_for_share()
2017-12-13 15:18:15.806 21 ERROR oslo_messaging.rpc.server   File "/usr/lib/python2.7/site-packages/oslo_concurrency/lockutils.py", line 271, in inner
2017-12-13 15:18:15.806 21 ERROR oslo_messaging.rpc.server     return f(*args, **kwargs)
2017-12-13 15:18:15.806 21 ERROR oslo_messaging.rpc.server   File "/usr/lib/python2.7/site-packages/manila/share/manager.py", line 512, in _provide_share_server_for_share
2017-12-13 15:18:15.806 21 ERROR oslo_messaging.rpc.server     metadata=metadata))
2017-12-13 15:18:15.806 21 ERROR oslo_messaging.rpc.server   File "/usr/lib/python2.7/site-packages/manila/share/manager.py", line 528, in _create_share_server_in_backend
2017-12-13 15:18:15.806 21 ERROR oslo_messaging.rpc.server     metadata=metadata)
2017-12-13 15:18:15.806 21 ERROR oslo_messaging.rpc.server   File "/usr/lib/python2.7/site-packages/manila/share/manager.py", line 3238, in _setup_server
2017-12-13 15:18:15.806 21 ERROR oslo_messaging.rpc.server   File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
2017-12-13 15:18:15.806 21 ERROR oslo_messaging.rpc.server     self.force_reraise()
2017-12-13 15:18:15.806 21 ERROR oslo_messaging.rpc.server   File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
2017-12-13 15:18:15.806 21 ERROR oslo_messaging.rpc.server     six.reraise(self.type_, self.value, self.tb)
2017-12-13 15:18:15.806 21 ERROR oslo_messaging.rpc.server   File "/usr/lib/python2.7/site-packages/manila/share/manager.py", line 3189, in _setup_server
2017-12-13 15:18:15.806 21 ERROR oslo_messaging.rpc.server     network_info, metadata=metadata)
2017-12-13 15:18:15.806 21 ERROR oslo_messaging.rpc.server   File "/usr/lib/python2.7/site-packages/manila/share/driver.py", line 882, in setup_server
2017-12-13 15:18:15.806 21 ERROR oslo_messaging.rpc.server     return self._setup_server(*args, **kwargs)
2017-12-13 15:18:15.806 21 ERROR oslo_messaging.rpc.server   File "/usr/lib/python2.7/site-packages/manila/share/drivers/generic.py", line 877, in _setup_server
2017-12-13 15:18:15.806 21 ERROR oslo_messaging.rpc.server     self.admin_context, network_info)
2017-12-13 15:18:15.806 21 ERROR oslo_messaging.rpc.server   File "/usr/lib/python2.7/site-packages/manila/share/drivers/service_instance.py", line 413, in set_up_service_instance
2017-12-13 15:18:15.806 21 ERROR oslo_messaging.rpc.server     context, instance_name, network_info)
2017-12-13 15:18:15.806 21 ERROR oslo_messaging.rpc.server   File "/usr/lib/python2.7/site-packages/manila/share/drivers/service_instance.py", line 520, in _create_service_instance
2017-12-13 15:18:15.806 21 ERROR oslo_messaging.rpc.server     network_data = self.network_helper.setup_network(network_info)
2017-12-13 15:18:15.806 21 ERROR oslo_messaging.rpc.server   File "/usr/lib/python2.7/site-packages/oslo_concurrency/lockutils.py", line 271, in inner
2017-12-13 15:18:15.806 21 ERROR oslo_messaging.rpc.server     return f(*args, **kwargs)
2017-12-13 15:18:15.806 21 ERROR oslo_messaging.rpc.server   File "/usr/lib/python2.7/site-packages/manila/share/drivers/service_instance.py", line 1037, in _get_private_router
2017-12-13 15:18:15.806 21 ERROR oslo_messaging.rpc.server     _('Subnet gateway is not attached to the router.'))
2017-12-13 15:18:15.806 21 ERROR oslo_messaging.rpc.server ServiceInstanceException: Subnet gateway is not attached to the router.

Share instance是什么?

一个share instance 就是一个nfs share entry.

 
 manila-share.log:82134:2017-12-13 17:09:02.852 21 DEBUG manila.share.manager [req-98882a61-66fe-4d99-9ffd-db73f8926a73 4fc3ae38619744bf9cccbf0ee7c77274 a3c5f0b64a2042beb10929c4ca58c3bf - - -] Using share_server 2583fb50-21bd-416d-b435-0c5c9b3f48f4 for share instance 3b7fc019-18d2-4a7a-9b08-e5b944f610b9 _provide_share_server_for_share /usr/lib/python2.7/site-packages/manila/share/manager.py:498
 
 [root@cloud-sz-control-b13-01 manila]# openstack server list --all 
+------------------------+------------------------+--------+------------------------+----------------------+
| ID                     | Name                   | Status | Networks               | Image Name           |
+------------------------+------------------------+--------+------------------------+----------------------+
| fb6a5295-23a4-491b-    | 2583fb50-21bd-         | ACTIVE | manila-service-        | manila-service-image |
| a6ce-55f8e9a980fe      | 416d-b435-0c5c9b3f48f4 |        | network=10.56.60.13    |                      |

 [root@cloud-sz-control-b13-01 manila]# manila show share3
+---------------------------------------+-----------------------------------------------------------------------+
| Property                              | Value                                                                 |
+---------------------------------------+-----------------------------------------------------------------------+
| status                                | available                                                             |
| share_type_name                       | generic                                                               |
| description                           | None                                                                  |
| availability_zone                     | nova                                                                  |
| share_network_id                      | 91319f52-b3c8-487a-8638-4ed7b0af7d20                                  |
| export_locations                      |                                                                       |
|                                       | path = 10.56.60.13:/shares/share-3b7fc019-18d2-4a7a-9b08-e5b944f610b9 |
|                                       | preferred = False                                                     |
|                                       | is_admin_only = False                                                 |
|                                       | id = 032f859e-86d7-4d6a-9b05-cbaa75136be8                             |
|                                       | share_instance_id = 3b7fc019-18d2-4a7a-9b08-e5b944f610b9              |
|                                       | path = 10.56.60.13:/shares/share-3b7fc019-18d2-4a7a-9b08-e5b944f610b9 |
|                                       | preferred = False                                                     |
|                                       | is_admin_only = True                                                  |
|                                       | id = 7901bd37-5d97-4009-b62d-96c72a18a863                             |
|                                       | share_instance_id = 3b7fc019-18d2-4a7a-9b08-e5b944f610b9              |
| share_server_id                       | 2583fb50-21bd-416d-b435-0c5c9b3f48f4                                  |
| share_group_id                        | None                                                                  |
| host                                  | cloud-sz-control-b13-01.sz.cloud.genomics.cn@generic#GENERIC          |
| revert_to_snapshot_support            | False                                                                 |
| access_rules_status                   | active                                                                |
| snapshot_id                           | None                                                                  |
| create_share_from_snapshot_support    | False                                                                 |
| is_public                             | False                                                                 |
| task_state                            | None                                                                  |
| snapshot_support                      | False                                                                 |
| id                                    | b7298f01-0b25-4444-8963-090318586dd9                                  |
| size                                  | 1                                                                     |
| source_share_group_snapshot_member_id | None                                                                  |
| user_id                               | 4fc3ae38619744bf9cccbf0ee7c77274                                      |
| name                                  | share3                                                                |
| share_type                            | edeb96d4-ea2d-4421-8641-edbe61ac0426                                  |
| has_replicas                          | False                                                                 |
| replication_type                      | None                                                                  |
| created_at                            | 2017-12-13T09:09:02.000000                                            |
| share_proto                           | NFS                                                                   |
| mount_snapshot_support                | False                                                                 |
| project_id                            | a3c5f0b64a2042beb10929c4ca58c3bf                                      |
| metadata                              | {}                                                                    |
+---------------------------------------+-----------------------------------------------------------------------+
## service instance 是如何提供nfs 的?
service instance 会挂载一个cinder volume上来,这个instance把/dev/vdb, vdc 
```bash
[root@cloud-02 neutron-openvswitch-agent]# openstack volume list  --all
+------------------------------+------------------------------+--------+------+-------------------------------+
| ID                           | Display Name                 | Status | Size | Attached to                   |
+------------------------------+------------------------------+--------+------+-------------------------------+
| 909086ba-7002-476b-          | manila-share-3b7fc019-18d2   | in-use |    1 | Attached to fb6a5295-23a4     |
| 9b67-b1202d1c052d            | -4a7a-9b08-e5b944f610b9      |        |      | -491b-a6ce-55f8e9a980fe on    |
|                              |                              |        |      | /dev/vdb                      |
+------------------------------+------------------------------+--------+------+-------------------------------+
[root@cloud-sz-control-b13-02 neutron-openvswitch-agent]# manila show share3 |grep share_instance
|                                       | share_instance_id = 3b7fc019-18d2-4a7a-9b08-e5b944f610b9         
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 203,547评论 6 477
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 85,399评论 2 381
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 150,428评论 0 337
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 54,599评论 1 274
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 63,612评论 5 365
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 48,577评论 1 281
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 37,941评论 3 395
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 36,603评论 0 258
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 40,852评论 1 297
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 35,605评论 2 321
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 37,693评论 1 329
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 33,375评论 4 318
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 38,955评论 3 307
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 29,936评论 0 19
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 31,172评论 1 259
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 43,970评论 2 349
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 42,414评论 2 342

推荐阅读更多精彩内容

  • 第一章 OpenStack基础 OpenStack管理的资源及提供的服务OpenStack做为一个操作系统,...
    sgt_tiger阅读 12,853评论 4 72
  • 发现packstack才是安装openstack环境最安逸的方式 配置环境为英文环境 配置yum源 安装PackS...
    drfung阅读 3,806评论 1 3
  • 1. 要创建share,可以直接在命令行执行这个manila create nfs 10 --name $shar...
    chendihao阅读 2,411评论 0 2
  • 憧憬着憧憬着,年就憧憬着来了,也这么在憧憬中就消走了,想着放假,想着团圆;相聚之后又想着工作学习努力的状态。总是无...
    微冥皇阅读 556评论 2 9
  • 通过使用自带的AAPT工具,查看包名(不需要root) APPT是Android Asset Packaging ...
    ChanYoung阅读 1,260评论 0 0