<div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div><div><br /></div><div>Hi Zhipeng,</div><div><br /></div><div>I have succeeded to create the vm in openstack upstream(master, code is two weeks ago) now. I deployed the environment with kolla-ansible(ceph as the backend storage).</div><div>In my nova.conf file, the section of libvirt is as followed:</div><div><div><span style="font-size: 10px;">[libvirt]</span></div><div><span style="font-size: 10px;">connection_uri = qemu+tcp://172.16.140.14/system</span></div><div><span style="font-size: 10px;">images_type = rbd</span></div><div><span style="font-size: 10px;">images_rbd_pool = vms</span></div><div><span style="font-size: 10px;">images_rbd_ceph_conf = /etc/ceph/ceph.conf</span></div><div><span style="font-size: 10px;">rbd_user = nova</span></div><div><span style="font-size: 10px;">disk_cachemodes = network=writeback</span></div><div><span style="font-size: 10px;">hw_disk_discard = unmap</span></div><div><span style="font-size: 10px;">rbd_secret_uuid = 5c79d567-e142-4ab4-87f6-0fdf53060ab9</span></div><div><span style="font-size: 10px;">virt_type = kvm</span></div></div><div><br /></div><div>The default value of 'force_raw_images' in nova is True, so I did not set it as True again in my nova.conf file.</div><div>I use the min image cirros with qcow2 format and created the vm without volume which is created by cinder.</div><div>It's my image's info:</div><div><span style="font-size: 10px;">(nova-compute)[root@zbx-allinone /]# qemu-img info cirros-0.4.0-x86_64-disk.img</span></div><div><span style="font-size: 10px;">image: cirros-0.4.0-x86_64-disk.img</span></div><div><span style="font-size: 10px;">file format: qcow2</span></div><div><span style="font-size: 10px;">virtual size: 44M (46137344 bytes)</span></div><div><span style="font-size: 10px;">disk size: 12M</span></div><div><span style="font-size: 10px;">cluster_size: 65536</span></div><div><span style="font-size: 10px;">Format specific information:</span></div><div><span style="font-size: 10px;"> compat: 1.1</span></div><div><span style="font-size: 10px;"> lazy refcounts: false</span></div><div><span style="font-size: 10px;"> refcount bits: 16</span></div><div><span style="font-size: 10px;"> corrupt: false</span></div><div><br /></div><div>So as you said, command qemu-img failed to convert the image from qcow2 to raw. BTW, is it a phenomenon that must recur now in STX?</div><div>Are there other error logs in nova-compute or other nova-* services?</div></div><div><br /></div><div style="position:relative;zoom:1">--<br /><div>Thanks,</div><div>Boxiang</div><div style="clear:both"></div></div><br />发件人:"Liu, ZhipengS" <zhipengs.liu@intel.com><br />发送日期:2019-10-31 10:14:44<br />收件人:"Liu, ZhipengS" <zhipengs.liu@intel.com>,"Xie, Cindy" <cindy.xie@intel.com>,"Lemus Contreras, Cristopher J" <cristopher.j.lemus.contreras@intel.com>,"'朱博祥'" <zhu.boxiang@99cloud.net>,"'starlingx-discuss@lists.starlingx.io'" <starlingx-discuss@lists.starlingx.io><br />抄送人:"Alonso, Juan Carlos" <juan.carlos.alonso@intel.com>,"Hu, Yong" <yong.hu@intel.com>,"Cabrales, Ada" <ada.cabrales@intel.com>,"Jones, Bruce E" <bruce.e.jones@intel.com>,"Martinez Monroy, Elio" <elio.martinez.monroy@intel.com><br />主题:RE: [Starlingx-discuss] About EB verification for openstack train upgrade<br /><blockquote id="isReplyContent" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<style></style>
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt">Hi Boxiang and all,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt">In fetch_to_raw(),<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt">After force convert image from qcow2 to raw, the format is still not raw, then throw below error.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt">It seems qemu-image convert image failed.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt">Zhipeng<o:p></o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><a name="_____replyseparator"></a><b><span lang="EN-US">From:</span></b><span lang="EN-US"> Liu, ZhipengS <zhipengs.liu@intel.com>
<br />
<b>Sent:</b> 2019</span><span style="font-family:SimSun">年</span><span lang="EN-US">10</span><span style="font-family:SimSun">月</span><span lang="EN-US">31</span><span style="font-family:SimSun">日</span><span lang="EN-US"> 9:35<br />
<b>To:</b> Xie, Cindy <cindy.xie@intel.com>; Lemus Contreras, Cristopher J <cristopher.j.lemus.contreras@intel.com>; '</span><span style="font-family:SimSun">朱博祥</span><span lang="EN-US">' <zhu.boxiang@99cloud.net>; 'starlingx-discuss@lists.starlingx.io' <starlingx-discuss@lists.starlingx.io><br />
<b>Cc:</b> Alonso, Juan Carlos <juan.carlos.alonso@intel.com>; Hu, Yong <yong.hu@intel.com>; Cabrales, Ada <ada.cabrales@intel.com>; Jones, Bruce E <bruce.e.jones@intel.com>; Martinez Monroy, Elio <elio.martinez.monroy@intel.com><br />
<b>Subject:</b> Re: [Starlingx-discuss] About EB verification for openstack train upgrade<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span lang="EN-US">From:</span></b><span lang="EN-US"> Liu, ZhipengS
<br />
<b>Sent:</b> 2019</span><span style="font-family:SimSun">年</span><span lang="EN-US">10</span><span style="font-family:SimSun">月</span><span lang="EN-US">30</span><span style="font-family:SimSun">日</span><span lang="EN-US"> 23:24<br />
<b>To:</b> Xie, Cindy <<a href="mailto:cindy.xie@intel.com">cindy.xie@intel.com</a>>; Lemus Contreras, Cristopher J <<a href="mailto:cristopher.j.lemus.contreras@intel.com">cristopher.j.lemus.contreras@intel.com</a>>;
</span><span style="font-family:SimSun">朱博祥</span><span lang="EN-US"> <<a href="mailto:zhu.boxiang@99cloud.net">zhu.boxiang@99cloud.net</a>>;
<a href="mailto:starlingx-discuss@lists.starlingx.io">starlingx-discuss@lists.starlingx.io</a><br />
<b>Cc:</b> Alonso, Juan Carlos <<a href="mailto:juan.carlos.alonso@intel.com">juan.carlos.alonso@intel.com</a>>; Hu, Yong <<a href="mailto:yong.hu@intel.com">yong.hu@intel.com</a>>; Cabrales, Ada <<a href="mailto:ada.cabrales@intel.com">ada.cabrales@intel.com</a>>;
Jones, Bruce E <<a href="mailto:bruce.e.jones@intel.com">bruce.e.jones@intel.com</a>>; Martinez Monroy, Elio <<a href="mailto:elio.martinez.monroy@intel.com">elio.martinez.monroy@intel.com</a>><br />
<b>Subject:</b> RE: [Starlingx-discuss] About EB verification for openstack train upgrade<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt">Hi Boxiang,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt">It should be an issue in nova train.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt">Error log is below:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt">build of instance 363dddce-7af6-4701-8cea-52630b91ebcf aborted: Image 70f74018-24f6-4d7d-8f99-2194a4449cfd is unacceptable: Converted to raw, but format is now qcow2'<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt">You tried to fix this issue before in nova LP:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><a href="https://bugs.launchpad.net/nova/+bug/1816686">https://bugs.launchpad.net/nova/+bug/1816686</a><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">In your patch: <a href="https://review.opendev.org/#/c/640271">
https://review.opendev.org/#/c/640271</a> (This patch is already in train release now)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt">You added below commit message in the patch.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt">“When we import image into rbd, check the format of cache<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt">images. If the format is not raw, remove it first and<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt">fetch it again. It will be raw format now.”<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt">However, it seems not work! Below code will throw error when image format is not raw and block the VM creation.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt">In nova/virt/images.py<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:15.75pt"><span lang="EN-US" style="font-size:10.5pt">def fetch_to_raw()
</span><span lang="EN-US" style="font-size:10.5pt;font-family:Wingdings">è</span><span lang="EN-US" style="font-size:10.5pt">
<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:36.75pt"><span lang="EN-US" style="font-size:10.5pt">if data.file_format != "raw":<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt"> raise exception.ImageUnacceptable(image_id=image_href,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt"> reason=_("Converted to raw, but format is now %s")<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt">Not sure if your patch fixed this issue or is there any regression introduced in nova code later.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt">Any comment from you?
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt">I will check nova code further tomorrow and sync with you.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt">We may need a patch for nova</span><span lang="EN-US" style="font-size:10.5pt;font-family:"Segoe UI Emoji",sans-serif">☹</span><span lang="EN-US" style="font-size:10.5pt"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt">Thanks!<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt">Zhipeng<o:p></o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US">From:</span></b><span lang="EN-US"> Xie, Cindy <<a href="mailto:cindy.xie@intel.com">cindy.xie@intel.com</a>>
<br />
<b>Sent:</b> 2019</span><span style="font-family:SimSun">年</span><span lang="EN-US">10</span><span style="font-family:SimSun">月</span><span lang="EN-US">30</span><span style="font-family:SimSun">日</span><span lang="EN-US"> 22:49<br />
<b>To:</b> Lemus Contreras, Cristopher J <<a href="mailto:cristopher.j.lemus.contreras@intel.com">cristopher.j.lemus.contreras@intel.com</a>>; Liu, ZhipengS <<a href="mailto:zhipengs.liu@intel.com">zhipengs.liu@intel.com</a>>;
</span><span style="font-family:SimSun">朱博祥</span><span lang="EN-US"> <<a href="mailto:zhu.boxiang@99cloud.net">zhu.boxiang@99cloud.net</a>>;
<a href="mailto:starlingx-discuss@lists.starlingx.io">starlingx-discuss@lists.starlingx.io</a><br />
<b>Cc:</b> Alonso, Juan Carlos <<a href="mailto:juan.carlos.alonso@intel.com">juan.carlos.alonso@intel.com</a>>; Hu, Yong <<a href="mailto:yong.hu@intel.com">yong.hu@intel.com</a>>; Cabrales, Ada <<a href="mailto:ada.cabrales@intel.com">ada.cabrales@intel.com</a>>;
Jones, Bruce E <<a href="mailto:bruce.e.jones@intel.com">bruce.e.jones@intel.com</a>>; Martinez Monroy, Elio <<a href="mailto:elio.martinez.monroy@intel.com">elio.martinez.monroy@intel.com</a>><br />
<b>Subject:</b> RE: [Starlingx-discuss] About EB verification for openstack train upgrade<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">+ mailing list in case anybody can help on debug the issue.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US">From:</span></b><span lang="EN-US"> Lemus Contreras, Cristopher J <<a href="mailto:cristopher.j.lemus.contreras@intel.com">cristopher.j.lemus.contreras@intel.com</a>>
<br />
<b>Sent:</b> Wednesday, October 30, 2019 7:45 PM<br />
<b>To:</b> Liu, ZhipengS <<a href="mailto:zhipengs.liu@intel.com">zhipengs.liu@intel.com</a>>;
</span><span style="font-family:"Microsoft YaHei",sans-serif">朱博祥</span><span lang="EN-US"> <<a href="mailto:zhu.boxiang@99cloud.net">zhu.boxiang@99cloud.net</a>><br />
<b>Cc:</b> Alonso, Juan Carlos <<a href="mailto:juan.carlos.alonso@intel.com">juan.carlos.alonso@intel.com</a>>; Hu, Yong <<a href="mailto:yong.hu@intel.com">yong.hu@intel.com</a>>; Cabrales, Ada <<a href="mailto:ada.cabrales@intel.com">ada.cabrales@intel.com</a>>;
Xie, Cindy <<a href="mailto:cindy.xie@intel.com">cindy.xie@intel.com</a>>; Jones, Bruce E <<a href="mailto:bruce.e.jones@intel.com">bruce.e.jones@intel.com</a>>; Martinez Monroy, Elio <<a href="mailto:elio.martinez.monroy@intel.com">elio.martinez.monroy@intel.com</a>><br />
<b>Subject:</b> Re: [Starlingx-discuss] About EB verification for openstack train upgrade<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="ES">Hi Zhipeng,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="ES"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="ES">The results are OK for Simplex, Duplex and Standard Local Storage, all Test Cases PASSED.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="ES"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="ES">For Standard External Storage (2+2+2) there is a high quantity of Test Cases failing because we cannot launch instances. Here’s</span><span lang="EN-US"> a sample output:
<a href="http://paste.openstack.org/show/785641/">http://paste.openstack.org/show/785641/</a> with the error that matches what is described on the launchpad.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Sanity summary for this specific configuration:
<a href="http://paste.openstack.org/show/785655/">http://paste.openstack.org/show/785655/</a><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Please, let us know if you need additional details.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Thanks & Regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Cristopher Lemus<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
</blockquote></div><br>