<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=koi8-r">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div class="elementToProof"><span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">Kolla only uses a single controller if you use file based backend by default.  If you want
 to continue using the file backend, you can use something like an NFS share to share images between controllers and then change the <span class="pl-s ContentPasted0">glance_file_datadir_volume parameter which will result in the api being deployed on all controllers</span></span></div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> pradeep <pradeep8985@gmail.com><br>
<b>Sent:</b> 12 December 2022 04:53<br>
<b>To:</b> Dmitriy Rabotyagov <noonedeadpunk@gmail.com><br>
<b>Cc:</b> openstack-discuss <openstack-discuss@lists.openstack.org><br>
<b>Subject:</b> Re: auto switch of glance-api containers to other controllers</font>
<div> </div>
</div>
<div>
<div dir="ltr">
<div class="x_mc-ip-hide">
<div style="color:#000000; font-size:12px; text-align:left; font-family:Helvetica,Arial,sans-serif">
<strong><br>
<div class="x_caution" style="background-color:#F47F53; font-family:sans-serif"><span style="font-size:14pt"><strong>CAUTION:</strong></span>
<span style="font-size:11pt; font-weight:400">This email originates from outside THG</span>
</div>
</strong><br>
</div>
<hr>
</div>
Any help is highly appreciated.
<div><br>
</div>
<div>Thank you!</div>
</div>
<br>
<div class="x_gmail_quote">
<div dir="ltr" class="x_gmail_attr">On Fri, 9 Dec 2022 at 21:46, pradeep <<a href="mailto:pradeep8985@gmail.com">pradeep8985@gmail.com</a>> wrote:<br>
</div>
<blockquote class="x_gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
<div dir="ltr">Hi Dmitriy, Thanks for the response.  Sorry, I forgot to mention that i used kolla ansible for deployment. As per kolla docs, glance-api container runs only in one controller. So i am looking from kolla perspective if it can automatically switch it
 over other available controllers.
<div><br>
</div>
<div>Regards</div>
<div>Pradeep</div>
</div>
<br>
<div class="x_gmail_quote">
<div dir="ltr" class="x_gmail_attr">On Fri, 9 Dec 2022 at 14:51, Dmitriy Rabotyagov <<a href="mailto:noonedeadpunk@gmail.com" target="_blank">noonedeadpunk@gmail.com</a>> wrote:<br>
</div>
<blockquote class="x_gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
<div dir="auto">
<div>Hi,
<div dir="auto"><br>
</div>
<div dir="auto">I'm not sure if you used any deployment tool for your environment, but usually for such failover there's a load balancer in conjunction with VRRP or Anycast, that able to detect when controller1 is down and forward traffic to another controller.</div>
<div dir="auto"><br>
</div>
<div dir="auto">As example, OpenStack-Ansible as default option installs haproxy to each controller and keepalived to implement VRRP and Virtual IPs. So when glance is down on controller1, haproxy will detect that and forward traffic to other controllers. If
 controller1 is down as a whole, keepalived will detect that and raise VIP on controller2, so all client traffic will go there. Since controller2 also have haproxy, it will pass traffic to available backends based on the source IP.</div>
<br>
<br>
<div class="x_gmail_quote">
<div dir="ltr" class="x_gmail_attr">ΠΤ, 9 ΔΕΛ. 2022 Η., 09:06 pradeep <<a href="mailto:pradeep8985@gmail.com" target="_blank">pradeep8985@gmail.com</a>>:<br>
</div>
<blockquote class="x_gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
<div dir="ltr">Hello All,
<div><br>
</div>
<div>I understand that glance-api container run only one controller always. I have tried to check if the glance-api container to switch over to the next available controller by means of rebooting and stopping the containers, but nothing happened. Is there a
 way to make sure that glance-api container switches to other controllers if controller 1 is not available.</div>
<div><br>
</div>
<div>Thanks for you help</div>
<div><br>
</div>
<div>Regards</div>
<div>Pradeep<br clear="all">
<div><br>
</div>
<div dir="ltr"><br style="font-family:"comic sans ms",sans-serif; color:rgb(51,51,51)">
</div>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</blockquote>
</div>
<br clear="all">
<div><br>
</div>
-- <br>
<div dir="ltr"><span style="color:rgb(51,51,51); font-family:"comic sans ms",sans-serif">-----------------------</span><br style="color:rgb(51,51,51); font-family:"comic sans ms",sans-serif">
<span style="color:rgb(51,51,51); font-family:"comic sans ms",sans-serif">Regards</span><br style="color:rgb(51,51,51); font-family:"comic sans ms",sans-serif">
<span style="color:rgb(51,51,51); font-family:"comic sans ms",sans-serif">Pradeep Kumar</span><br style="font-family:"comic sans ms",sans-serif; color:rgb(51,51,51)">
</div>
</blockquote>
</div>
<br clear="all">
<div><br>
</div>
-- <br>
<div dir="ltr" class="x_gmail_signature"><span style="color:rgb(51,51,51); font-family:"comic sans ms",sans-serif">-----------------------</span><br style="color:rgb(51,51,51); font-family:"comic sans ms",sans-serif">
<span style="color:rgb(51,51,51); font-family:"comic sans ms",sans-serif">Regards</span><br style="color:rgb(51,51,51); font-family:"comic sans ms",sans-serif">
<span style="color:rgb(51,51,51); font-family:"comic sans ms",sans-serif">Pradeep Kumar</span><br style="font-family:"comic sans ms",sans-serif; color:rgb(51,51,51)">
</div>
</div>
<table style="font-family: 'Times New Roman'; font-size: 11pt; width: 100%; height: 233.477px;" border="0;">
<tbody>
<tr style="height: 19.668px;">
<td style="width: 99.1264%; height: 19.668px;"> </td>
</tr>
<tr style="height: 41.3086px;">
<td style="width: 99.1264%; height: 41.3086px;"><span style="font-family: helvetica, arial, sans-serif;"><strong>Danny Webb</strong></span></td>
</tr>
<tr style="height: 19.668px;">
<td style="width: 99.1264%; height: 19.668px;"><span style="font-family: helvetica, arial, sans-serif;">Principal OpenStack Engineer</span></td>
</tr>
<tr style="height: 19.668px;">
<td style="width: 99.1264%; height: 19.668px;"><span style="font-family: helvetica, arial, sans-serif;">Danny.Webb@thehutgroup.com</span></td>
</tr>
<tr style="height: 19.668px;">
<td style="width: 99.1264%; height: 19.668px;"><span style="font-family: helvetica, arial, sans-serif;"></span></td>
</tr>
<tr style="height: 36.2305px;">
<td style="width: 99.1264%; height: 36.2305px;"><img src="https://d2csxpduxe849s.cloudfront.net/media/8015BC36-E2AC-48BD-BBE683CC28878C75/50C8967B-5340-4D71-B93BF46CBBCCE91D/webimage-C7E5E55C-28BD-4C6B-973765C855A66BC9.jpg" alt="THG Ingenuity Logo" width="211" height="25"></td>
</tr>
<tr style="height: 19.668px; font-size: 10pt;">
<td style="width: 99.1264%; height: 19.668px;"><span style="font-family: helvetica, arial, sans-serif;"><a title="THG Website" href="https://www.thg.com">www.thg.com</a></span></td>
</tr>
<tr style="height: 42.5977px;">
<td style="height: 42.5977px;"><a href="https://www.linkedin.com/company/thg-ingenuity/?originalSubdomain=uk"><img src="https://i.imgur.com/wbpVRW6.png" alt="" width="25" height="25"></a> <a href="https://twitter.com/thgingenuity?lang=en"><img src="https://i.imgur.com/c3040tr.png" alt="" width="25" height="25"></a></td>
</tr>
</tbody>
</table>
<div></div>
<p><span style="font-size:10.5pt;font-family:"Arial","sans-serif";color:black">Danny Webb</span>
<br>
<span style="font-size:8.5pt;font-family:"Arial","sans-serif";color:black">Principal OpenStack Engineer</span><br>
<span style="font-size:8.5pt;font-family:"Arial","sans-serif";color:#019EEB"><a href="http://www.thehutgroup.com/" target="_blank"><span style="color:#575a5d;
text-decoration:none;text-underline:none">The Hut Group</span></a></span>
<br>
<br>
<span style="font-size:8.5pt;font-family:"Arial","sans-serif";color:black">Tel: </span>
<br>
<span style="font-size:8.5pt;font-family:"Arial","sans-serif";color:black">Email:
<a href="mailto:Danny.Webb@thehutgroup.com">Danny.Webb@thehutgroup.com</a></span></p>
<p style="margin-bottom:12.0pt"><br>
<span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:#666666">For the purposes of this email, the "company" means The Hut Group Limited, a company registered in England and Wales (company number 6539496) whose registered office is at Fifth Floor,
 Voyager House, Chicago Avenue, Manchester Airport, M90 3DQ and/or any of its respective subsidiaries.</span>
<br>
<br>
<b><span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:#666666">Confidentiality Notice</span></b>
<br>
<span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:#666666">This e-mail is confidential and intended for the use of the named recipient only. If you are not the intended recipient please notify us by telephone immediately on +44(0)1606 811888
 or return it to us by e-mail. Please then delete it from your system and note that any use, dissemination, forwarding, printing or copying is strictly prohibited. Any views or opinions are solely those of the author and do not necessarily represent those of
 the company.</span> <br>
<br>
<b><span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:#666666">Encryptions and Viruses</span></b>
<br>
<span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:#666666">Please note that this e-mail and any attachments have not been encrypted. They may therefore be liable to be compromised. Please also note that it is your responsibility to scan this
 e-mail and any attachments for viruses. We do not, to the extent permitted by law, accept any liability (whether in contract, negligence or otherwise) for any virus infection and/or external compromise of security and/or confidentiality in relation to transmissions
 sent by e-mail.</span> <br>
<br>
<b><span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:#666666">Monitoring</span></b>
<br>
<span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:#666666">Activity and use of the company's systems is monitored to secure its effective use and operation and for other lawful business purposes. Communications using these systems will also
 be monitored and may be recorded to secure effective use and operation and for other lawful business purposes.</span>
</p>
<span style="font-size:4pt;color:#FFFFFF">hgvyjuv</span>
<div></div>
</body>
</html>