Hi, Dilip

Did your driver set the key pool_name and value when init_capabilities called 
in cinder volume init_host?
If didn’t set the key pool_name and value, it will be none.

BR
Wang Hao
发件人: Dilip Sunkum Manjunath [mailto:dilip.sunkummanjun...@toshiba-tsip.com]
发送时间: 2016年2月2日 15:30
收件人: Dilip Sunkum Manjunath; openstack@lists.openstack.org
抄送: 'itzdi...@gmail.com'
主题: Re: [Openstack] [OpenStack] [CINDER] Scheduler Support for pools issue, not 
picking free pools

Does it have anything to do with capabilities option?

Pool_name seems to be none.


[cid:image001.png@01D15DD9.4533BCC0]



Thanks
Dilip

From: Dilip Sunkum Manjunath [mailto:dilip.sunkummanjun...@toshiba-tsip.com]
Sent: Tuesday, February 02, 2016 7:19 AM
To: openstack@lists.openstack.org<mailto:openstack@lists.openstack.org>
Cc: 'itzdi...@gmail.com'
Subject: [Openstack] [CINDER] Scheduler Support for pools issue, not picking 
free pools

Hi all,


Use Case :

Step 1

*  I have multiple backend pools,

*  Updated the get_volume_stats() method to hold the pools information returned 
from storage API’s

Sample log :

[{'pool_name': '0', 'total_capacity_gb': 838, 'QoS_support': False, 
'thick_provisioning_support': True, 'reserved_percentage': 1, 
'consistencygroup_support': False, 'thin_provisioning_support': True, 
'free_capacity_gb': 83.79999999999995}, {'pool_name': '1', 'total_capacity_gb': 
1126, 'QoS_support': False, 'thick_provisioning_support': True, 
'reserved_percentage': 1, 'consistencygroup_support': False, 
'thin_provisioning_support': True, 'free_capacity_gb': 67.56000000000017}]


Step 2



*         In Create volume method am reading the pool information as storage 
api need pool info(on which pool in need to create)

*         Like pool_id = volume_utils.extract_host(volume['host'], 
level='pool') by making use of below import


from cinder.volume import utils as volume_utils

Problem am facing is:

                                                The scheduler is not always 
picking the free pool which has space, it returns the pool which don’t have 
space.
                                                I came to know when I printed 
the volume['host'] and above pool id.


Is there anything else I must do? Please suggest.



Thanks
Dilip





The information contained in this e-mail message and in any 
attachments/annexure/appendices is confidential to the
recipient and may contain privileged information. If you are not the intended 
recipient, please notify the
sender and delete the message along with any attachments/annexure/appendices. 
You should not disclose,
copy or otherwise use the information contained in the message or any annexure. 
Any views expressed in this e-mail
are those of the individual sender except where the sender specifically states 
them to be the views of
Toshiba Software India Pvt. Ltd. (TSIP),Bangalore.
Although this transmission and any attachments are believed to be free of any 
virus or other defect that might affect any computer system into which it is 
received and opened, it is the responsibility of the recipient to ensure that 
it is virus free and no responsibility is accepted by Toshiba Software India 
Pvt. Ltd, for any loss or damage arising in any way from its use.

The information contained in this e-mail message and in any 
attachments/annexure/appendices is confidential to the
recipient and may contain privileged information. If you are not the intended 
recipient, please notify the
sender and delete the message along with any attachments/annexure/appendices. 
You should not disclose,
copy or otherwise use the information contained in the message or any annexure. 
Any views expressed in this e-mail
are those of the individual sender except where the sender specifically states 
them to be the views of
Toshiba Software India Pvt. Ltd. (TSIP),Bangalore.
Although this transmission and any attachments are believed to be free of any 
virus or other defect that might affect any computer system into which it is 
received and opened, it is the responsibility of the recipient to ensure that 
it is virus free and no responsibility is accepted by Toshiba Software India 
Pvt. Ltd, for any loss or damage arising in any way from its use.
_______________________________________________
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to     : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack

Reply via email to