<div dir="ltr"><div>Franck, this help you a lot.</div><div>Thanks Radoslaw</div><div>Ignazio<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il giorno ven 19 nov 2021 alle ore 12:03 Radosław Piliszek <<a href="mailto:radoslaw.piliszek@gmail.com">radoslaw.piliszek@gmail.com</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">If one sets glance_file_datadir_volume to non-default, then glance-api<br>
gets deployed on all hosts.<br>
<br>
-yoctozepto<br>
<br>
On Fri, 19 Nov 2021 at 10:51, Ignazio Cassano <<a href="mailto:ignaziocassano@gmail.com" target="_blank">ignaziocassano@gmail.com</a>> wrote:<br>
><br>
> Hello Franck, glance is not deployed on all nodes at default.<br>
> I got the same problem<br>
> In my case I have 3 controllers.<br>
> I created an nfs share on a storage server where to store images.<br>
> Before deploying glance, I create /var/lib/glance/images on the 3 controllers and I mount the nfs share.<br>
> This is my fstab on the 3 controllers:<br>
><br>
> 10.102.189.182:/netappopenstacktst2_glance /var/lib/glance nfs  rw,user=glance,soft,intr,noatime,nodiratime<br>
><br>
> In my globals.yml I have:<br>
> glance_file_datadir_volume: "/var/lib/glance"<br>
> glance_backend_file: "yes"<br>
><br>
> This means images are on /var/lib/glance and since it is a nfs share all my 3 controlles can share images.<br>
> Then you must deploy.<br>
> To be sure the glance container is started on all controllers, since I have 3 controllers, I deployed 3 times changing the order in the inventory.<br>
> First time:<br>
> [control]<br>
> A<br>
> B<br>
> C<br>
><br>
> Second time:<br>
> [control]<br>
> B<br>
> C<br>
> A<br>
><br>
> Third time:<br>
> [control]<br>
> C<br>
> B<br>
> A<br>
><br>
> Or you can deploy glance 3 times using -t glance and -l <controllername><br>
><br>
> As far as the instance  stopped, I got I bug with a version of kolla.<br>
> <a href="https://bugs.launchpad.net/kolla-ansible/+bug/1941706" rel="noreferrer" target="_blank">https://bugs.launchpad.net/kolla-ansible/+bug/1941706</a><br>
> Now is corrected and with kolla 12.2.0 it works.<br>
> Ignazio<br>
><br>
><br>
> Il giorno mer 17 nov 2021 alle ore 23:17 Franck VEDEL <<a href="mailto:franck.vedel@univ-grenoble-alpes.fr" target="_blank">franck.vedel@univ-grenoble-alpes.fr</a>> ha scritto:<br>
>><br>
>> Hello and thank you for the help.<br>
>> I was able to move forward on my problem, without finding a satisfactory solution.<br>
>> Normally, I have 2 servers with the role [glance] but I noticed that all my images were on the first server (in / var / lib / docker / volumes / glance / _data / images) before the reconfigure, none on the second. But since the reconfiguration, the images are placed on the second, and no longer on the first. I do not understand why. I haven't changed anything to the multinode file.<br>
>> so, to get out of this situation quickly as I need this openstack for the students, I modified the multinode file and put only one server in [glance] (I put server 1, the one that had the images before reconfigure), I did a reconfigure -t glance and now I have my images usable for instances.<br>
>> I don't understand what happened. There is something wrong.<br>
>><br>
>> Is it normal that after updating the certificates, all instances are turned off?<br>
>> thanks again<br>
>><br>
>> Franck<br>
>><br>
>> Le 17 nov. 2021 à 21:11, Cyril Roelandt <<a href="mailto:cyril@redhat.com" target="_blank">cyril@redhat.com</a>> a écrit :<br>
>><br>
>> Hello,<br>
>><br>
>><br>
>> On 2021-11-17 08:59, Franck VEDEL wrote:<br>
>><br>
>> Hello everyone<br>
>><br>
>> I have a strange problem and I haven't found the solution yet.<br>
>> Following a certificate update I had to do a "kolla-ansible -t multinode reconfigure ».<br>
>> Well, after several attempts (it is not easy to use certificates with Kolla-ansible, and from my advice, not documented enough for beginners), I have my new functional certificates. Perfect ... well almost.<br>
>><br>
>> I am trying to create a new instance to check general operation. ERROR.<br>
>> Okay, I look in the logs and I see that Cinder is having problems creating volumes with an error that I never had ("TypeError: 'NoneType' object is not iterable).<br>
>><br>
>><br>
>> We'd like to see the logs as well, especially the stacktrace.<br>
>><br>
>> I dig and then I wonder if it is not the Glance images which cannot be used, while they are present (openstack image list is OK).<br>
>><br>
>> I create an empty volume: it works.<br>
>> I am creating a volume from an image: Failed.<br>
>><br>
>><br>
>> What commands are you running? What's the output? What's in the logs?<br>
>><br>
>><br>
>> However, I have my list of ten images in glance.<br>
>><br>
>> I create a new image and create a volume with this new image: it works.<br>
>> I create an instance with this new image: OK.<br>
>><br>
>> What is the problem ? The images present before the "reconfigure" are listed, visible in horizon for example, but unusable.<br>
>> Is there a way to fix this, or do we have to reinstall them all?<br>
>><br>
>><br>
>> What's your configuration? What version of OpenStack are you running?<br>
>><br>
>><br>
>><br>
>> Cyril<br>
>><br>
>><br>
</blockquote></div>