<div dir="ltr"><div>Hi,</div><div><br></div><div>We are using Openstack Mitaka. Find the usecase as given below,</div><div><br></div><div>After placing openstack instance/image order, checked the response using meter API (refer below Reference section).Status is build.</div><div><br></div><div>Question 1:</div><div>Not sure this status "build" will be the output for how long ? </div><div><br></div><div>Question 2:</div><div>Even after deleting the instance with status "ERROR" still I could see the response with status as "build".</div><div>Not sure whether this is a bug from openstack..?</div><div><br></div><div><br></div><div><br></div><div>Reference:</div><div>MeterApi: </div><div>http://<IPAddress>:8777/v2/meters/instance?q.field=timestamp&q.op=ge&q.value=2017-08-14T00:00:00&q.field=timestamp&q.op=lt&q.value=2017-08-15T23:59:59&q.field=project_id&q.op=eq&q.value=dd90792db9a448e8a23e8b464da49845</div><div><br></div><div><br></div><div>response:</div><div>[</div><div>  {</div><div>    "counter_name": "instance",</div><div>    "user_id": "641fbaf3ba094992addfff522eecace7",</div><div>    "resource_id": "90b3f27c-ce81-467c-b11f-e7526e9196f3",</div><div>    "timestamp": "2017-08-10T23:55:17.968000",</div><div>    "recorded_at": "2017-08-10T23:55:18.130000",</div><div>    "message_id": "5c8d7594-7e27-11e7-b203-7054d21b4d24",</div><div>    "source": "openstack",</div><div>    "counter_unit": "instance",</div><div>    "counter_volume": 1,</div><div>    "project_id": "dd90792db9a448e8a23e8b464da49845",</div><div>    "resource_metadata": {</div><div>      "instance_host": "newton",</div><div>      "ephemeral_gb": "0",</div><div>      "flavor.vcpus": "1",</div><div>      "flavor.ephemeral": "0",</div><div>      "instance_id": "90b3f27c-ce81-467c-b11f-e7526e9196f3",</div><div>      "display_name": "Swapninginst",</div><div>      "<a href="http://image.name">image.name</a>": "window_2012_server_image",</div><div>      "state": "building",</div><div>      "flavor.ram": "2048",</div><div>      "status": "build",</div><div>      "ramdisk_id": "None",</div><div>      "<a href="http://flavor.name">flavor.name</a>": "m1.small",</div><div>      "disk_gb": "20"</div><div>    },</div><div>    "counter_type": "gauge"</div><div>  }</div><div>]</div><div><br></div><div><br></div><div>Regards,</div><div>Prajwal</div><div>Billing Architect</div></div>