Comment 1 for bug 1681955

Revision history for this message
gordon chung (chungg) wrote :

something is wrong with cleanup process but i can't tell because of pifpaf. seems deleted metric is not cleaned up so it can't delete archivepolicy. patch here: https://review.openstack.org/#/c/456413/3

state after 'delete archive policy' attempt

2017-04-21 17:14:08.958924 | #### get all metrics to verify ####
2017-04-21 17:14:08.964021 | > GET http://localhost:8041/v1/metric
2017-04-21 17:14:08.966243 | > x-auth-token:
2017-04-21 17:14:08.989412 | > authorization: basic YWRtaW46
2017-04-21 17:14:08.995254 | > user-agent: gabbi/1.33.0 (Python urllib3)
2017-04-21 17:14:08.995377 |
2017-04-21 17:14:08.996602 | < 200 OK
2017-04-21 17:14:09.001726 | < Date: Fri, 21 Apr 2017 17:14:08 GMT
2017-04-21 17:14:09.007103 | < Server: WSGIServer/0.2 CPython/3.5.2
2017-04-21 17:14:09.009870 | < Content-Length: 2
2017-04-21 17:14:09.028967 | < Content-Type: application/json
2017-04-21 17:14:09.029094 |
2017-04-21 17:14:09.029363 | []
2017-04-21 17:14:09.029479 |
2017-04-21 17:14:09.054252 | #### get all deleted metrics to verify ####
2017-04-21 17:14:09.064531 | > GET http://localhost:8041/v1/metric?status=delete
2017-04-21 17:14:09.066197 | > x-auth-token:
2017-04-21 17:14:09.069386 | > authorization: basic YWRtaW46
2017-04-21 17:14:09.073763 | > user-agent: gabbi/1.33.0 (Python urllib3)
2017-04-21 17:14:09.073883 |
2017-04-21 17:14:09.074737 | < 200 OK
2017-04-21 17:14:09.078506 | < Date: Fri, 21 Apr 2017 17:14:08 GMT
2017-04-21 17:14:09.082348 | < Server: WSGIServer/0.2 CPython/3.5.2
2017-04-21 17:14:09.084569 | < Content-Length: 496
2017-04-21 17:14:09.087811 | < Content-Type: application/json
2017-04-21 17:14:09.087931 |
2017-04-21 17:14:09.088123 | [
2017-04-21 17:14:09.088533 | {
2017-04-21 17:14:09.091966 | "created_by_user_id": "admin",
2017-04-21 17:14:09.094340 | "creator": "admin",
2017-04-21 17:14:09.096846 | "resource_id": null,
2017-04-21 17:14:09.098885 | "name": "vcpus",
2017-04-21 17:14:09.102184 | "created_by_project_id": "",
2017-04-21 17:14:09.104037 | "unit": null,
2017-04-21 17:14:09.115264 | "id": "e9f190a7-2f71-42a0-8021-74e680745aa4",
2017-04-21 17:14:09.121779 | "archive_policy": {
2017-04-21 17:14:09.129021 | "name": "gabbilive",
2017-04-21 17:14:09.134894 | "definition": [
2017-04-21 17:14:09.137582 | {
2017-04-21 17:14:09.147791 | "timespan": "0:01:00",
2017-04-21 17:14:09.150210 | "points": 60,
2017-04-21 17:14:09.153689 | "granularity": "0:00:01"
2017-04-21 17:14:09.154780 | },
2017-04-21 17:14:09.155769 | {
2017-04-21 17:14:09.159013 | "timespan": "0:01:00",
2017-04-21 17:14:09.161415 | "points": 30,
2017-04-21 17:14:09.164898 | "granularity": "0:00:02"
2017-04-21 17:14:09.165949 | },
2017-04-21 17:14:09.166924 | {
2017-04-21 17:14:09.175654 | "timespan": "0:05:00",
2017-04-21 17:14:09.178018 | "points": 5,
2017-04-21 17:14:09.181525 | "granularity": "0:01:00"
2017-04-21 17:14:09.182506 | }
2017-04-21 17:14:09.183385 | ],
2017-04-21 17:14:09.186458 | "aggregation_methods": [
2017-04-21 17:14:09.188172 | "max",
2017-04-21 17:14:09.189760 | "mean",
2017-04-21 17:14:09.191136 | "min"
2017-04-21 17:14:09.192057 | ],
2017-04-21 17:14:09.194339 | "back_window": 0
2017-04-21 17:14:09.194928 | }
2017-04-21 17:14:09.195330 | }
2017-04-21 17:14:09.195523 | ]
2017-04-21 17:14:09.195638 |
2017-04-21 17:14:09.200476 | #### get all archive policy rules to verify ####
2017-04-21 17:14:09.210868 | > GET http://localhost:8041/v1/archive_policy_rule
2017-04-21 17:14:09.212577 | > x-auth-token:
2017-04-21 17:14:09.215648 | > authorization: basic YWRtaW46
2017-04-21 17:14:09.220010 | > user-agent: gabbi/1.33.0 (Python urllib3)
2017-04-21 17:14:09.220132 |
2017-04-21 17:14:09.221013 | < 200 OK
2017-04-21 17:14:09.230009 | < Date: Fri, 21 Apr 2017 17:14:08 GMT
2017-04-21 17:14:09.233954 | < Server: WSGIServer/0.2 CPython/3.5.2
2017-04-21 17:14:09.235968 | < Content-Length: 74
2017-04-21 17:14:09.244536 | < Content-Type: application/json
2017-04-21 17:14:09.244657 |
2017-04-21 17:14:09.244850 | [
2017-04-21 17:14:09.245191 | {
2017-04-21 17:14:09.247481 | "name": "default",
2017-04-21 17:14:09.255948 | "archive_policy_name": "low",
2017-04-21 17:14:09.268833 | "metric_pattern": "*"
2017-04-21 17:14:09.269223 | }
2017-04-21 17:14:09.269417 | ]
2017-04-21 17:14:09.269550 |
2017-04-21 17:14:09.273268 | #### get all resources to verify ####
2017-04-21 17:14:09.278014 | > GET http://localhost:8041/v1/resource/generic
2017-04-21 17:14:09.279719 | > x-auth-token:
2017-04-21 17:14:09.282869 | > authorization: basic YWRtaW46
2017-04-21 17:14:09.287215 | > user-agent: gabbi/1.33.0 (Python urllib3)
2017-04-21 17:14:09.287333 |
2017-04-21 17:14:09.288186 | < 200 OK
2017-04-21 17:14:09.291949 | < Date: Fri, 21 Apr 2017 17:14:08 GMT
2017-04-21 17:14:09.306075 | < Server: WSGIServer/0.2 CPython/3.5.2
2017-04-21 17:14:09.308260 | < Content-Length: 407
2017-04-21 17:14:09.311569 | < Content-Type: application/json
2017-04-21 17:14:09.311688 |
2017-04-21 17:14:09.311879 | [
2017-04-21 17:14:09.312237 | {
2017-04-21 17:14:09.315735 | "created_by_user_id": "admin",
2017-04-21 17:14:09.318121 | "creator": "admin",
2017-04-21 17:14:09.320315 | "ended_at": null,
2017-04-21 17:14:09.323510 | "created_by_project_id": "",
2017-04-21 17:14:09.325584 | "user_id": null,
2017-04-21 17:14:09.330527 | "id": "21519505-995d-4a09-87ed-e89a78160508",
2017-04-21 17:14:09.335883 | "started_at": "2017-04-21T17:12:58.270179+00:00",
2017-04-21 17:14:09.347749 | "original_resource_id": "21519505-995d-4a09-87ed-e89a78160508",
2017-04-21 17:14:09.350312 | "revision_end": null,
2017-04-21 17:14:09.352721 | "project_id": null,
2017-04-21 17:14:09.359402 | "type": "generic",
2017-04-21 17:14:09.363717 | "revision_start": "2017-04-21T17:12:58.270192+00:00",
2017-04-21 17:14:09.365109 | "metrics": {}
2017-04-21 17:14:09.365455 | }
2017-04-21 17:14:09.365640 | ]