<div dir="ltr">Hello guys,<div><br><div>I can control my logic that will separating AZ to Cinder for each Department by using </div><div><a class="gmail_plusreply" id="plusReplyChip-0" href="mailto:abishop@redhat.com" tabindex="-1">@Alan Bishop</a> method, but we need create a new volume and adding metadata as key="RESKEY:availability_zones" and value="az_name"; and key="volume_backend_name" and value="your backend in AZ"</div><div><br></div><div>Thanks All for helping.</div><div><br><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Nguyen Huu Khoi<br></div><br></div></div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jan 4, 2023 at 11:32 PM Nguyễn Hữu Khôi <<a href="mailto:nguyenhuukhoinw@gmail.com">nguyenhuukhoinw@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto">Thanks, I'll check them out. </div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jan 4, 2023, 8:51 PM Alan Bishop <<a href="mailto:abishop@redhat.com" target="_blank">abishop@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jan 4, 2023 at 1:09 AM Sa Pham <<a href="mailto:saphi070@gmail.com" rel="noreferrer" target="_blank">saphi070@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">You have to run cinder-volume service for each AZ. And in your configuration of cinder-volume you need to specify storage_availability_zone for that zone. <br></div></blockquote><div><br></div><div>Alternatively, you can run a single cinder-volume service with multiple backends, and use the backend_availability_zone option [1] to specify each backend's AZ. The backend_availability_zone overrides the storage_availability_zone for that backend.</div><div><br></div><div>[1] <a href="https://github.com/openstack/cinder/blob/d55a004e524f752c228a4a7bda5d24d4223325de/cinder/volume/driver.py#L239" rel="noreferrer" target="_blank">https://github.com/openstack/cinder/blob/d55a004e524f752c228a4a7bda5d24d4223325de/cinder/volume/driver.py#L239</a></div><div><br></div><div>Alan<br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><br>With nova-compute, you have to create a host aggregate with an availability zone option for these compute nodes.<div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jan 4, 2023 at 3:42 PM Nguyễn Hữu Khôi <<a href="mailto:nguyenhuukhoinw@gmail.com" rel="noreferrer" target="_blank">nguyenhuukhoinw@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Ok, thanks for the clarification. :)<br clear="all"><div><div dir="ltr"><div dir="ltr">Nguyen Huu Khoi<br></div></div></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jan 4, 2023 at 3:03 PM Rajat Dhasmana <<a href="mailto:rdhasman@redhat.com" rel="noreferrer" target="_blank">rdhasman@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jan 4, 2023 at 1:01 PM Nguyễn Hữu Khôi <<a href="mailto:nguyenhuukhoinw@gmail.com" rel="noreferrer" target="_blank">nguyenhuukhoinw@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Thanks for the answer. <div>But I cannot find the way to configure the storage backend per AZ, Would you give me some suggestions?<br clear="all"></div></div></blockquote><div><br></div><div>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.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div><div dir="ltr"><div dir="ltr">Nguyen Huu Khoi<br></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jan 4, 2023 at 1:53 PM Rajat Dhasmana <<a href="mailto:rdhasman@redhat.com" rel="noreferrer" target="_blank">rdhasman@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>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.</div><div>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.</div><div>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 <b>cross_az_attach</b>[1] which will allow/disallow cross AZ attachments.</div><div>Hope that helps.</div><div><br></div><div>[1] <a href="https://docs.openstack.org/nova/latest/configuration/config.html#cinder.cross_az_attach" rel="noreferrer" target="_blank">https://docs.openstack.org/nova/latest/configuration/config.html#cinder.cross_az_attach</a></div><div><br></div><div>Thanks</div><div>Rajat Dhasmana</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jan 4, 2023 at 7:31 AM Nguyễn Hữu Khôi <<a href="mailto:nguyenhuukhoinw@gmail.com" rel="noreferrer" target="_blank">nguyenhuukhoinw@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello guys.<div>I took time to search for this question but I can't find the answer.</div><div><br></div><div>I have an Openstack private cloud and I use an AZ to a department. </div><div>For example,</div><div>AZ-IT for IT department</div><div>AZ-Sale for Sale department...</div><div><br></div><div>I will prepare 2 storage backends for each AZ.</div><div><br></div><div>My goal is that when users launch an instance by choosing AZ then It will use only the backend for this AZ.</div><div><br></div><div>Would Openstack support my goal?</div><div><br></div><div>Thanks for reading my email.</div><div><br clear="all"><div><div dir="ltr"><div dir="ltr">Nguyen Huu Khoi<br></div></div></div></div></div>
</blockquote></div>
</blockquote></div>
</blockquote></div></div>
</blockquote></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div dir="ltr">Sa Pham Dang</div><div dir="ltr"><div>Skype: great_bn</div><div>Phone/Telegram: 0986.849.582</div><div><br><div><br></div></div></div></div></div></div></div>
</blockquote></div></div>
</blockquote></div>
</blockquote></div>