<div dir="ltr">Hi Karl,<div><br></div><div>The volume creation time is 10 seconds. Below is the log in nova-compute. I would like to optimize nova-compute first .</div><div><br></div><div><br></div><div><br></div><div>3414:2023-08-07 08:33:08.436 8 INFO nova.compute.claims [req-33bf9cfd-38c5-40c3-aceb-2c4c0bfa986c 125406d260d24c77aca1b09206825437 f64e241d000441d292b91e85138e325c - default default] [instance: c54db6fe-7bf0-4ca3-8167-20ec2763b79f] Claim successful on node compute-004<br>3415:2023-08-07 08:33:08.702 8 INFO nova.virt.libvirt.driver [req-33bf9cfd-38c5-40c3-aceb-2c4c0bfa986c 125406d260d24c77aca1b09206825437 f64e241d000441d292b91e85138e325c - default default] [instance: c54db6fe-7bf0-4ca3-8167-20ec2763b79f] Ignoring supplied device name: /dev/vda. Libvirt can't honour user-supplied dev names<br>3416:2023-08-07 08:33:08.815 8 INFO nova.virt.block_device [req-33bf9cfd-38c5-40c3-aceb-2c4c0bfa986c 125406d260d24c77aca1b09206825437 f64e241d000441d292b91e85138e325c - default default] [instance: c54db6fe-7bf0-4ca3-8167-20ec2763b79f] Booting with volume 37d1487e-9118-4231-9908-fb662b626977 at /dev/vda<br>3417:2023-08-07 08:33:34.269 8 INFO nova.virt.libvirt.driver [req-33bf9cfd-38c5-40c3-aceb-2c4c0bfa986c 125406d260d24c77aca1b09206825437 f64e241d000441d292b91e85138e325c - default default] [instance: c54db6fe-7bf0-4ca3-8167-20ec2763b79f] Creating image<br>3418:2023-08-07 08:33:35.967 8 INFO os_vif [req-33bf9cfd-38c5-40c3-aceb-2c4c0bfa986c 125406d260d24c77aca1b09206825437 f64e241d000441d292b91e85138e325c - default default] Successfully plugged vif VIFBridge(active=False,address=fa:16:3e:1e:06:ae,bridge_name='qbr2ea5e4e0-a9',has_traffic_filtering=True,id=2ea5e4e0-a934-404d-ac4c-a4deadf2aa73,network=Network(a4e1151a-9671-4fb6-b620-66b80d7dce8d),plugin='ovs',port_profile=VIFPortProfileOpenVSwitch,preserve_on_delete=True,vif_name='tap2ea5e4e0-a9')<br>3419:2023-08-07 08:33:37.763 8 INFO os_vif [req-33bf9cfd-38c5-40c3-aceb-2c4c0bfa986c 125406d260d24c77aca1b09206825437 f64e241d000441d292b91e85138e325c - default default] Successfully plugged vif VIFBridge(active=False,address=fa:16:3e:b0:e6:12,bridge_name='qbre636e020-ec',has_traffic_filtering=True,id=e636e020-ec99-47d4-bad3-9c87c65e080f,network=Network(5f7989ab-cb9d-493b-a8c5-edf688782f81),plugin='ovs',port_profile=VIFPortProfileOpenVSwitch,preserve_on_delete=True,vif_name='tape636e020-ec')<br>3425:2023-08-07 08:33:45.725 8 INFO nova.compute.manager [req-33bf9cfd-38c5-40c3-aceb-2c4c0bfa986c 125406d260d24c77aca1b09206825437 f64e241d000441d292b91e85138e325c - default default] [instance: c54db6fe-7bf0-4ca3-8167-20ec2763b79f] Took 11.46 seconds to spawn the instance on the hypervisor.<br>3459:2023-08-07 08:34:02.909 8 INFO nova.compute.manager [req-33bf9cfd-38c5-40c3-aceb-2c4c0bfa986c 125406d260d24c77aca1b09206825437 f64e241d000441d292b91e85138e325c - default default] [instance: c54db6fe-7bf0-4ca3-8167-20ec2763b79f] Took 61.40 seconds to build instance.<br></div><div><br></div><div><br></div><div>As you can see, the first log, instance was claimed on node compute 004 at 08:33:08, Then it takes 1 minute (04:34:02) to build instance.</div><div><br></div><div><br></div><div>Thanks </div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Aug 4, 2023 at 10:25 PM Ha Noi <<a href="mailto:hanoi952022@gmail.com">hanoi952022@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 everyone,<div><br></div><div>We have a openstack with one region and more than 100 compute nodes. We are using ceph for block storage. </div><div><br></div><div>I don't know why my instance was provisioned too slow: more than 1 minutes. </div><div><br></div><div>Nova compute log: <dl><dd style="box-sizing:border-box;margin:0px;padding:0px;border:none;vertical-align:baseline;display:inline;color:rgb(52,55,65);font-family:"Roboto Mono",Consolas,Menlo,Courier,monospace;font-size:12px;letter-spacing:-0.08px"><span style="box-sizing:border-box;margin:0px;padding:0px;border:none;vertical-align:baseline">Took 56.47 seconds to build instance.</span></dd></dl><span style="color:rgb(52,55,65);font-family:"Roboto Mono",Consolas,Menlo,Courier,monospace;font-size:12px;letter-spacing:-0.08px"> </span></div><div><span style="color:rgb(52,55,65);font-family:"Roboto Mono",Consolas,Menlo,Courier,monospace;font-size:12px;letter-spacing:-0.08px"><br></span></div><div><span style="color:rgb(52,55,65);font-family:"Roboto Mono",Consolas,Menlo,Courier,monospace;font-size:12px;letter-spacing:-0.08px"><br></span></div><div><font color="#343741" face="arial, sans-serif"><span style="font-size:12px;letter-spacing:-0.08px">So I would like to optimize and speed up instance build time. </span></font></div><div><font color="#343741" face="arial, sans-serif"><span style="font-size:12px;letter-spacing:-0.08px"><br></span></font></div><div><font color="#343741" face="arial, sans-serif"><span style="font-size:12px;letter-spacing:-0.08px"><br></span></font></div><div><font color="#343741" face="arial, sans-serif"><span style="font-size:12px;letter-spacing:-0.08px">Thanks and Best Regards</span></font></div></div>
</blockquote></div>