[openstack][cinder] Assign each storage backend to each AZ
Rajat Dhasmana
rdhasman at redhat.com
Wed Jan 4 08:03:30 UTC 2023
On Wed, Jan 4, 2023 at 1:01 PM Nguyễn Hữu Khôi <nguyenhuukhoinw at gmail.com>
wrote:
> Thanks for the answer.
> But I cannot find the way to configure the storage backend per AZ, Would
> you give me some suggestions?
>
It totally depends on the deployment method you're using. It could be
either tripleo, ansible etc and every deployment method should provide a
way to set an availability zone for a volume backend. I'm not a deployment
expert but a specific deployment team needs to be consulted for the same.
> Nguyen Huu Khoi
>
>
> On Wed, Jan 4, 2023 at 1:53 PM Rajat Dhasmana <rdhasman at redhat.com> wrote:
>
>> Hi,
>>
>> From the description, I'm assuming the instances will be boot from
>> volume. In that case, you will need to create a volume type for each
>> backend and you can use 'extra_specs' properties in the volume type to
>> assign a volume type to a particular AZ. In this case, if you're already
>> creating one backend per AZ then a volume type linked to that backend
>> should be good.
>> Now you will need to create a bootable volume and launch an instance with
>> it. Again, the instance should be launched in the AZ as used in the volume
>> type to support your use case.
>> Also if you want to restrict volumes of a particular AZ to be attached to
>> the instance of the same AZ, you can use the config option
>> *cross_az_attach*[1] which will allow/disallow cross AZ attachments.
>> Hope that helps.
>>
>> [1]
>> https://docs.openstack.org/nova/latest/configuration/config.html#cinder.cross_az_attach
>>
>> Thanks
>> Rajat Dhasmana
>>
>> On Wed, Jan 4, 2023 at 7:31 AM Nguyễn Hữu Khôi <nguyenhuukhoinw at gmail.com>
>> wrote:
>>
>>> Hello guys.
>>> I took time to search for this question but I can't find the answer.
>>>
>>> I have an Openstack private cloud and I use an AZ to a department.
>>> For example,
>>> AZ-IT for IT department
>>> AZ-Sale for Sale department...
>>>
>>> I will prepare 2 storage backends for each AZ.
>>>
>>> My goal is that when users launch an instance by choosing AZ then It
>>> will use only the backend for this AZ.
>>>
>>> Would Openstack support my goal?
>>>
>>> Thanks for reading my email.
>>>
>>> Nguyen Huu Khoi
>>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.openstack.org/pipermail/openstack-discuss/attachments/20230104/ba90320e/attachment-0001.htm>
More information about the openstack-discuss
mailing list