Re: [Openstack] [Cinder] Facing a problem in cinder manage code

2016-06-14 Thread Dilip Sunkum Manjunath
Could you just point me which driver has done this?

Thanks
Dilip

From: Trinath Somanchi [mailto:trinath.soman...@nxp.com]
Sent: Tuesday, June 14, 2016 1:25 PM
To: Dilip Sunkum Manjunath; 'openstack@lists.openstack.org'
Cc: 'itzdi...@gmail.com'
Subject: RE: [Cinder] Facing a problem in cinder manage code

You may check the other vendor alike drivers for your reference.

/ Trinath

From: Dilip Sunkum Manjunath [mailto:dilip.sunkummanjun...@toshiba-tsip.com]
Sent: Tuesday, June 14, 2016 1:00 PM
To: 'openstack@lists.openstack.org' 
mailto:openstack@lists.openstack.org>>
Cc: 'itzdi...@gmail.com' mailto:itzdi...@gmail.com>>
Subject: [Openstack] [Cinder] Facing a problem in cinder manage code

Hi all,


I was implementing the cinder driver for cinder mange existing volume,

Base line:


1.   Our storage api has a unique number alone to 
recognise the lun in storage

2.   When I import using the horizon I have to enter the same unique number 
to fetch the details from storage api

Problem facing :


1.   Same same unique ID am able import more then one time (duplicate 
imports)



I know we should not use the "DB " calss in drivers,  am not sure how to fetch 
avilable volume and run check over it, to ensure same LUN from storage is not 
imported more then once!

When I went though the different driver, I saw LVM has the below method, which 
needs refrence to DB

Question :
Is  it ok to use like this?
Or
Is there any better solution?



Please suggest

Thanks
Dilip



[cid:image001.png@01D1C644.01496CC0]



[cid:image002.png@01D1C644.01496CC0]

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 Embedded 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


[Openstack] [Cinder] Facing a problem in cinder manage code

2016-06-14 Thread Dilip Sunkum Manjunath
Hi all,


I was implementing the cinder driver for cinder mange existing volume,

Base line:


1.   Our storage api has a unique number alone to 
recognise the lun in storage

2.   When I import using the horizon I have to enter the same unique number 
to fetch the details from storage api

Problem facing :


1.   Same same unique ID am able import more then one time (duplicate 
imports)



I know we should not use the "DB " calss in drivers,  am not sure how to fetch 
avilable volume and run check over it, to ensure same LUN from storage is not 
imported more then once!

When I went though the different driver, I saw LVM has the below method, which 
needs refrence to DB

Question :
Is  it ok to use like this?
Or
Is there any better solution?



Please suggest

Thanks
Dilip



[cid:image001.png@01D1C63C.ACED3820]



[cid:image002.png@01D1C63C.ACED3820]
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 Embedded 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


Re: [Openstack] [OpenStack] [CINDER] how to get updated pool info when multi users create volumes on pool configured?

2016-02-15 Thread Dilip Sunkum Manjunath
Hi Xing,


Thanks for replay,



I tried because the use case was to support both in single pool.

I was thinking in same as to read the volume type in scheduler,  however since 
it is a new requirement that affects everyone it might not be good to change 
now.

I shall try with the other approach pools for thin /thick and update you.


Thanks
Dilip








-Original Message-
From: yang, xing [mailto:xing.y...@emc.com] 
Sent: Friday, February 12, 2016 12:42 PM
To: Dilip Sunkum Manjunath
Cc: openstack@lists.openstack.org; itzdi...@gmail.com
Subject: Re: [OpenStack] [CINDER] how to get updated pool info when multi users 
create volumes on pool configured?

Hi Dilip,

I see.  If thin_provisioning is true and max_over_subscription_ratio is valid, 
the scheduler will treat it as thin provisioning.  We do not prevent driver 
from reporting both thin and thick support to be true.  However, I think we 
need to make a change.

I suggest that you have one pool for thin and the other one for thick but don't 
report both thin and thick support from the same pool.  That will avoid this 
problem.

Another possible alternative is to require thin/thick provisioning to be in 
extra specs and use that info in the scheduler, however that will be a new 
requirement that affects everyone.  So I am not in favor of that approach.

Can you use one pool for thin and another for thick in your testing?

Thanks,
Xing



> On Feb 12, 2016, at 12:05 AM, Dilip Sunkum Manjunath 
>  wrote:
> 
> max_over_subscription_ratio
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 Embedded 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


Re: [Openstack] [OpenStack] [CINDER] how to get updated pool info when multi users create volumes on pool configured?

2016-02-11 Thread Dilip Sunkum Manjunath
(pid=22860) _task_receiver 
/usr/local/lib/python2.7/dist-packages/taskflow/listeners/logging.py:178
2016-02-04 14:55:02.386 DEBUG cinder.scheduler.manager 
[req-123b1df9-912a-4158-9185-f97b0b28db02 f3623b79d1554018b543beab7bf5bc32 
61983bcbb6ed4decb8019adc6f28a343] Flow 'volume_create_scheduler' 
(36c3617e-bdd1-4583-9f2b-758294d3704c) transitioned into state 'SUCCESS' from 
state 'RUNNING' from (pid=22860) _flow_receiver 
/usr/local/lib/python2.7/dist-packages/taskflow/listeners/logging.py:140
2016-02-04 14:55:03.838 DEBUG oslo_messaging._drivers.amqpdriver [-] received 
message unique_id: c59ef0b3373b425999e997f47b3db1b4  from (pid=22860) __call__ 
/usr/local/lib/python2.7/dist-packages/oslo_messaging/_drivers/amqpdriver.py:195
2016-02-04 14:55:03.840 DEBUG cinder.scheduler.host_manager 
[req-0e703203-354e-420a-91dc-653d2a831490 None None] Received volume service 
update from devstack@sc3000: {u'filter_function': None, u'goodness_function': 
None, u'volume_backend_name': u'sc3000', u'reserved_percentage': 1, u'pools': 
[{u'pool_name': u'0', u'QoS_support': False, u'thick_provisioning_support': 
True, u'allocated_capacity_gb': 0, u'thin_provisioning_support': True, 
u'free_capacity_gb': 343.580004, u'total_capacity_gb': 838, 
u'reserved_percentage': 1, u'consistencygroup_support': False}, {u'pool_name': 
u'1', u'QoS_support': False, u'thick_provisioning_support': True, 
u'allocated_capacity_gb': 200, u'thin_provisioning_support': True, 
u'free_capacity_gb': 112.62, u'total_capacity_gb': 1126, 
u'reserved_percentage': 1, u'consistencygroup_support': False}], 
u'QoS_support': False, u'vendor_name': u'toshiba'} from (pid=22860) 
update_service_capabilities 
/opt/stack/cinder/cinder/scheduler/host_manager.py:450
2







Thanks
Dilip

From: yang, xing [mailto:xing.y...@emc.com]
Sent: Thursday, February 11, 2016 4:10 AM
To: Dilip Sunkum Manjunath; 'openstack@lists.openstack.org'
Cc: 'itzdi...@gmail.com'
Subject: Re: [Openstack] [CINDER] how to get updated pool info when multi users 
create volumes on pool configured?

Hi Dilip,

Can you please clarify your question?  If a driver reports both 
thin_provisioning and thick_provisioning  to True and reports free_capacity 
based on thin provisioning , and you want to provision a thick volume, the 
scheduler won’t block it and it fail when the driver tries to create volume?  
If you can describe the exact problem, we can try to find a solution.

Thanks,
Xing


From: Dilip Sunkum Manjunath 
mailto:dilip.sunkummanjun...@toshiba-tsip.com>>
Date: Monday, February 8, 2016 at 12:52 AM
To: "'openstack@lists.openstack.org'" 
mailto:openstack@lists.openstack.org>>
Cc: "'itzdi...@gmail.com'" 
mailto:itzdi...@gmail.com>>
Subject: Re: [Openstack] [CINDER] how to get updated pool info when multi users 
create volumes on pool configured?

Hi all,

The problem what I noticed is, in update stats we send thick and thin volume 
support as true. This issue can be reproduced.

So the over provision and thick and thin parameters are reason, scheduler is 
not blocking for thick volume based on the capacity if it is thick, it Is 
passing to the driver which forces driver to handle a particular use case!!

I believe this has to handle at the above layer, however it will not know what 
kind of volume is created using volume types, I think this also has to be 
considered in scheduler!


Any one has a better approach? For this or is it better to write own filters to 
avoid writing in driver?



Thanks
Dilip



From: Wanghao (S) [mailto:wanghao...@huawei.com]
Sent: Thursday, February 04, 2016 11:48 AM
To: Dilip Sunkum Manjunath; 
'openstack@lists.openstack.org'
Cc: 'itzdi...@gmail.com'
Subject: 答复: [CINDER] how to get updated pool info when multi users create 
volumes on pool configured?

Hi, Dilip

Generally, Cinder scheduler will consume the free_capacity_gb after chose the 
host for a volume creation,  could see the consume_from_volume function in 
host_manager.py.
That keep the pool capacity gb updated correctly when multi users are creating 
volume.

Thanks
Wang Hao

发件人: Dilip Sunkum Manjunath [mailto:dilip.sunkummanjun...@toshiba-tsip.com]
发送时间: 2016年2月3日 17:50
收件人: 'openstack@lists.openstack.org'
抄送: 'itzdi...@gmail.com'
主题: [Openstack] [CINDER] how to get updated pool info when multi users create 
volumes on pool configured?


Hi All,


the get_volume_stats method runs 60 sec once,

am using the multi pools configured in it, while creating volumes,

if more than one user is creating how will the pool information be reliable 
which is from pool

Re: [Openstack] [CINDER] how to get updated pool info when multi users create volumes on pool configured?

2016-02-07 Thread Dilip Sunkum Manjunath
Hi all,

The problem what I noticed is, in update stats we send thick and thin volume 
support as true. This issue can be reproduced.

So the over provision and thick and thin parameters are reason, scheduler is 
not blocking for thick volume based on the capacity if it is thick, it Is 
passing to the driver which forces driver to handle a particular use case!!

I believe this has to handle at the above layer, however it will not know what 
kind of volume is created using volume types, I think this also has to be 
considered in scheduler!


Any one has a better approach? For this or is it better to write own filters to 
avoid writing in driver?



Thanks
Dilip



From: Wanghao (S) [mailto:wanghao...@huawei.com]
Sent: Thursday, February 04, 2016 11:48 AM
To: Dilip Sunkum Manjunath; 'openstack@lists.openstack.org'
Cc: 'itzdi...@gmail.com'
Subject: 答复: [CINDER] how to get updated pool info when multi users create 
volumes on pool configured?

Hi, Dilip

Generally, Cinder scheduler will consume the free_capacity_gb after chose the 
host for a volume creation,  could see the consume_from_volume function in 
host_manager.py.
That keep the pool capacity gb updated correctly when multi users are creating 
volume.

Thanks
Wang Hao

发件人: Dilip Sunkum Manjunath [mailto:dilip.sunkummanjun...@toshiba-tsip.com]
发送时间: 2016年2月3日 17:50
收件人: 'openstack@lists.openstack.org'
抄送: 'itzdi...@gmail.com'
主题: [Openstack] [CINDER] how to get updated pool info when multi users create 
volumes on pool configured?


Hi All,


the get_volume_stats method runs 60 sec once,

am using the multi pools configured in it, while creating volumes,

if more than one user is creating how will the pool information be reliable 
which is from pooling job? As it runs once in 60 sec!


Am getting the old values and request is failing , has any one faced it before?


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 Embedded 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


Re: [Openstack] [CINDER] how to get updated pool info when multi users create volumes on pool configured?

2016-02-03 Thread Dilip Sunkum Manjunath
Thanks for the information  Wanghao,  will check out

From: Wanghao (S) [mailto:wanghao...@huawei.com]
Sent: Thursday, February 04, 2016 11:48 AM
To: Dilip Sunkum Manjunath; 'openstack@lists.openstack.org'
Cc: 'itzdi...@gmail.com'
Subject: 答复: [CINDER] how to get updated pool info when multi users create 
volumes on pool configured?

Hi, Dilip

Generally, Cinder scheduler will consume the free_capacity_gb after chose the 
host for a volume creation,  could see the consume_from_volume function in 
host_manager.py.
That keep the pool capacity gb updated correctly when multi users are creating 
volume.

Thanks
Wang Hao

发件人: Dilip Sunkum Manjunath [mailto:dilip.sunkummanjun...@toshiba-tsip.com]
发送时间: 2016年2月3日 17:50
收件人: 'openstack@lists.openstack.org'
抄送: 'itzdi...@gmail.com'
主题: [Openstack] [CINDER] how to get updated pool info when multi users create 
volumes on pool configured?


Hi All,


the get_volume_stats method runs 60 sec once,

am using the multi pools configured in it, while creating volumes,

if more than one user is creating how will the pool information be reliable 
which is from pooling job? As it runs once in 60 sec!


Am getting the old values and request is failing , has any one faced it before?


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 Embedded 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


[Openstack] [CINDER] how to get updated pool info when multi users create volumes on pool configured?

2016-02-03 Thread Dilip Sunkum Manjunath

Hi All,


the get_volume_stats method runs 60 sec once,

am using the multi pools configured in it, while creating volumes,

if more than one user is creating how will the pool information be reliable 
which is from pooling job? As it runs once in 60 sec!


Am getting the old values and request is failing , has any one faced it before?


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 Embedded 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


Re: [Openstack] [OpenStack] [CINDER] Scheduler Support for pools issue, not picking free pools

2016-02-01 Thread Dilip Sunkum Manjunath
Does it have anything to do with capabilities option?

Pool_name seems to be none.


[cid:image001.png@01D15DB9.35C968E0]



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
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.75}, {'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.560017}]


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 Embedded 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


[Openstack] [CINDER] Scheduler Support for pools issue, not picking free pools

2016-02-01 Thread Dilip Sunkum Manjunath
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.75}, {'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.560017}]


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 Embedded 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


[Openstack] OpenStack [CINDER] : frequency of execution of get volume stats

2016-01-04 Thread Dilip Sunkum Manjunath
Hi all,


I would like to know that, is it possible to configure the time frequency for 
executing the method get_volume_stats  ()?




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 Embedded 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


[Openstack] Cinder Driver contacting to REST Api always says 503.

2015-03-10 Thread Dilip Sunkum Manjunath
Hello All,


In my driver am trying to contact the REST api management layer of Storage,  
However It is throwing  HTTP error code in particular network where certificate 
signing is enabled,


And always returns error 503, service unavailable,


Is it have to do anything with proxy? Or certificate signing?


I tried all possible things I could think off.


I need some help on this, Kindly if some can answer me it would be of great 
help.


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 Embedded 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


[Openstack] How does the Cinder Iscsi IQN for the multiple controller is handled in the Code

2015-02-26 Thread Dilip Sunkum Manjunath
Hi all,

I wanted to know the Iqn mapping for source and targets handled in the Cinder,

Unable to understand this, is there any advice where I can ease my effort in 
understanding?


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 Embedded 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


[Openstack] Cinder Driver, unable to invoke create volume method

2015-02-19 Thread Dilip Sunkum Manjunath



Hello all,

Am stuck with this from quite some time,  I desperately need some help. I thank 
in advance for Time of yours.



Problem statement :

I am writing a driver which contacts the rest api in back end for creating 
volume.

now There is a file called ToshibaDriver in the Driver and a class which 
extends SanISCSIDriver.

Init and setup error two methods have been over written which is getting 
invoked. However the flow is not hitting the create volume method which is over 
ridden in the driver class.

Is there any other methods which I have to override?

So that when I Create a volume, It Hits the method in the Driver class?

My detailed question is posted here, in the above link. I request you help in 
suggesting what am I Missing.
https://answers.launchpad.net/ubuntu/+source/cinder/+question/261988



Is there any control flow or implementation documents which will guide me? If 
you share or suggest that Would be really helpful!
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 Embedded 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


Re: [Openstack] Instance in error state

2015-02-19 Thread Dilip Sunkum Manjunath
Reasons could be many, Can you send the log files so that easily we try to 
point out ?


Thanks
Dilip

From: Janki Chhatbar [mailto:jankihchhat...@gmail.com]
Sent: Thursday, February 19, 2015 2:54 PM
To: openstack@lists.openstack.org
Subject: [Openstack] Instance in error state

Hi all
I am 3 node architecture non-devstack setup of OpenStack. Wheneve I launch an 
instance, it goes into error state. What could be the possible reason and its 
remedy?
Janki Chhatbar
M.Tech (Embedded Systems)
Nirma University
(+91) 9409239106
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 Embedded 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


[Openstack] Cinder Driver, unable to invoke create volume method

2015-02-18 Thread Dilip Sunkum Manjunath




Hello all,

Am stuck with this from quite some time,  I desperately need some help. I thank 
in advance for Time of yours.



Problem statement :

I am writing a driver which contacts the rest api in back end for creating 
volume.

now There is a file called ToshibaDriver in the Driver and a class which 
extends SanISCSIDriver.

Init and setup error two methods have been over written which is getting 
invoked. However the flow is not hitting the create volume method which is over 
ridden in the driver class.

Is there any other methods which I have to override?

So that when I Create a volume, It Hits the method in the Driver class?

My detailed question is posted here, in the above link. I request you help in 
suggesting what am I Missing.
https://answers.launchpad.net/ubuntu/+source/cinder/+question/261988



Is there any control flow or implementation documents which will guide me? If 
you share or suggest that Would be really helpful!



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 Embedded 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