openstack metric measures aggregation CMD not working

Bug #1828061 reported by Peng Peng
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StarlingX
Fix Released
Low
Lin Shuicheng

Bug Description

Brief Description
-----------------
As title

Severity
--------
Major

Steps to Reproduce
------------------
....
TC-name: ceilometer/test_ceilometer_statistics.py::test_measurements_for_metric[image.size]

Expected Behavior
------------------

Actual Behavior
----------------

Reproducibility
---------------
Reproducible

System Configuration
--------------------
One node system

Lab-name: SM-2

Branch/Pull Time/Commit
-----------------------
stx master as of 20190506T233000Z

Last Pass
---------
20190505T233000Z

Timestamp/Logs
--------------
[2019-05-07 09:17:09,790] 262 DEBUG MainThread ssh.send :: Send 'openstack --os-username 'admin' --os-password 'Li69nux*' --os-project-name admin --os-auth-url http://keystone.openstack.svc.cluster.local/v3 --os-user-domain-name Default --os-project-domain-name Default --os-identity-api-version 3 --os-interface internal --os-region-name RegionOne metric measures aggregation --resource-type=image --start=2019-05-07T09:07:09 --metric=image.size --query "name='tis-centos-guest'"'
[2019-05-07 09:17:11,747] 387 DEBUG MainThread ssh.expect :: Output:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>500 Internal Server Error</title>
</head><body>
<h1>Internal Server Error</h1>
<p>The server encountered an internal error or
misconfiguration and was unable to complete
your request.</p>
<p>Please contact the server administrator at
 root@localhost to inform them of the time this error occurred,
 and the actions you performed just before this error.</p>
<p>More information about this error may be available
in the server error log.</p>
</body></html>
 (HTTP 500)
[wrsroot@controller-0 ~(keystone_admin)]$

Test Activity
-------------
nightly

Revision history for this message
Peng Peng (ppeng) wrote :
Numan Waheed (nwaheed)
tags: added: stx.retestneeded
Revision history for this message
Ghada Khalil (gkhalil) wrote :

Appears to be an openstack related issue; assigning to PL to review/triage

tags: added: stx.distro.openstack
Changed in starlingx:
assignee: nobody → Bruce Jones (brucej)
Bruce Jones (brucej)
Changed in starlingx:
status: New → Confirmed
Bruce Jones (brucej)
Changed in starlingx:
importance: Undecided → Medium
Cindy Xie (xxie1)
Changed in starlingx:
assignee: Bruce Jones (brucej) → Cindy Xie (xxie1)
Revision history for this message
Ghada Khalil (gkhalil) wrote :

Since Bruce set the priority to Medium, I am adding the stx.2.0 release tag. Non gating bugs must be set to Low priority.

tags: added: stx.2.0
Revision history for this message
Bruce Jones (brucej) wrote :

Setting this to Low / not release gating.

Changed in starlingx:
importance: Medium → Low
Changed in starlingx:
assignee: Cindy Xie (xxie1) → Lin Shuicheng (shuicheng)
Revision history for this message
Lin Shuicheng (shuicheng) wrote :

Hi Peng,
I could run the cmd successfully with latest code. Could you help check the issue again with latest ISO?
Thanks.
[wrsroot@controller-0 ~(keystone_admin)]$ openstack --os-username 'admin' --os-password 'Local.123' --os-project-name admin --os-auth-url http://keystone.openstack.svc.cluster.local/v3 --os-user-domain-name Default --os-project-domain-name Default --os-identity-api-version 3 --os-interface internal --os-region-name RegionOne metric measures aggregation --resource-type=image --metric=image.size --query "name='cirros'"
+---------------------------+-------------+------------+
| timestamp | granularity | value |
+---------------------------+-------------+------------+
| 2019-05-23T07:45:00+00:00 | 300.0 | 12716032.0 |
+---------------------------+-------------+------------+

It is simplex deploy with this week's (around 5/20) code.

Is there any thing I need care for the issue reproduce? Thanks.

Revision history for this message
Lin Shuicheng (shuicheng) wrote :

Need reporter check the issue again with latest build.

Changed in starlingx:
status: Confirmed → Incomplete
Revision history for this message
Peng Peng (ppeng) wrote :

CMD is working on
Lab: WCP_99_103
Load: 2019-05-24_17-39-51

[2019-05-25 16:27:58,532] 262 DEBUG MainThread ssh.send :: Send 'openstack --os-username 'admin' --os-password 'Li69nux*' --os-project-name admin --os-auth-url http://keystone.openstack.svc.cluster.local/v3 --os-user-domain-name Default --os-project-domain-name Default --os-identity-api-version 3 --os-interface internal --os-region-name RegionOne metric measures aggregation --metric=image.size --start=2019-05-25T16:17:58 --resource-type=image --query "name='tis-centos-guest'"'
[2019-05-25 16:28:00,026] 387 DEBUG MainThread ssh.expect :: Output:
+---------------------------+-------------+--------------+
| timestamp | granularity | value |
+---------------------------+-------------+--------------+
| 2019-05-25T16:15:00+00:00 | 300.0 | 1612339200.0 |
| 2019-05-25T16:25:00+00:00 | 300.0 | 1612339200.0 |
+---------------------------+-------------+--------------+
controller-1:~$

tags: removed: stx.retestneeded
Revision history for this message
Lin Shuicheng (shuicheng) wrote :

Thanks Peng for the update.
Close the issue as "Fix-Released" since latest build doesn't have the issue.

Changed in starlingx:
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.