<div dir="ltr">Hi Rajat,<div>I was using the 1st link as a reference. As per the 2nd link The rbd mirroring in ceph is configured properly, we've tested by creating an image in ceph itself the mirroring is functioning properly. The problem we are facing is in cinder, apparently there is a bug <a href="https://bugs.launchpad.net/cinder/+bug/1898728">https://bugs.launchpad.net/cinder/+bug/1898728</a> which states that cinder retype (to replication enabled volume type) does not enable replication and when we are creating a volume directly in cinder using replication enabled volume type, the volume is getting created in ceph but in cinder the volume stays in error state (as a result we are unable to use it in instances primary disk)</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jun 25, 2021 at 9:57 AM Rajat Dhasmana <<a href="mailto:rdhasman@redhat.com">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>Hi,</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jun 24, 2021 at 6:11 PM Swogat Pradhan <<a href="mailto:swogatpradhan22@gmail.com" target="_blank">swogatpradhan22@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">Hi,<div>I am trying to configure cinder replication with ceph as backend and i followed this URL to configure the cinder replication: <a href="https://netapp.io/2016/10/14/cinder-replication-netapp-perfect-cheesecake-recipe/" target="_blank">https://netapp.io/2016/10/14/cinder-replication-netapp-perfect-cheesecake-recipe/</a> and <a href="http://www.sebastien-han.fr/blog/2017/06/19/OpenStack-Cinder-configure-replication-api-with-ceph/" target="_blank">http://www.sebastien-han.fr/blog/2017/06/19/OpenStack-Cinder-configure-replication-api-with-ceph/</a></div><div><br></div></div></blockquote><div><br></div><div>The first link is specific to netapp driver so I'm not sure how it helps with ceph replication. For the second link, did you configure two ceph clusters properly and set the needed values with <span style="background-color:initial;font-family:Inconsolata,monospace,sans-serif;font-size:inherit;white-space:pre-wrap;color:rgb(49,48,48)">replication_device </span>parameter?</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>i created a Volume type - REPL, with replication enabled <is> True and colume backend name parameter.</div><div><br></div><div>But when i am trying to create a volume using the created volume type the volume is getting created in ceph but in cinder the status is showing error. and when checked log getting the following error:</div><div><br></div><div>2021-06-24 17:59:39.556 28472 ERROR cinder.volume.drivers.rbd [req-6e6b901e-f2dd-43a4-a089-6c734b279e17 d576181b6a444541b8ec7f37d750a4c1 a9ac2eba50d84d64ac44b179bbcc9183 - default default] Error creating rbd image volume-361f35c4-a589-4653-b404-fb93d2f598cf.: cinder.exception.ReplicationError: Volume 361f35c4-a589-4653-b404-fb93d2f598cf replication error: Failed to enable image replication<br></div><div><br></div></div></blockquote><div><br></div><div>Any operation could be failing in this method[1] on rbd side to raise the above error. I suggest it's better to check if you've setup replication correctly.</div><div><br></div><div>[1] <a href="https://github.com/openstack/cinder/blob/stable/victoria/cinder/volume/drivers/rbd.py#L802" target="_blank">https://github.com/openstack/cinder/blob/stable/victoria/cinder/volume/drivers/rbd.py#L802</a></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>I tried to create a volume using volume type- default and then later changed the volume type using command 'cinder retype' to the created volume type and it changed without any issue.</div><div><br></div><div>I am using openstack victoria .</div><div><br></div><div>With regards,</div><div>Swogat Pradhan</div></div>
</blockquote></div></div>
</blockquote></div>