Wednesday, 2021-05-19

*** sboyron has joined #cloudkitty05:47
*** vishalmanchanda has joined #cloudkitty06:35
*** cylopez has joined #cloudkitty06:43
*** ChanServ has quit IRC07:54
*** ChanServ has joined #cloudkitty07:54
*** services. sets mode: +o ChanServ07:54
*** Akki58 has joined #cloudkitty08:38
*** Akki5842 has joined #cloudkitty08:42
*** Akki5842 has quit IRC08:42
*** Akki5810 has joined #cloudkitty08:43
*** Akki58 has quit IRC08:44
openstackgerritLars Wiegman proposed openstack/cloudkitty master: Update .gitreview for stable/ussuri  https://review.opendev.org/c/openstack/cloudkitty/+/79208908:50
openstackgerritLars Wiegman proposed openstack/cloudkitty master: Fixed PyScripts.start_script method to return the updated data object  https://review.opendev.org/c/openstack/cloudkitty/+/79209008:50
openstackgerritPierre Riteau proposed openstack/cloudkitty master: Fixed PyScripts.start_script method to return the updated data object  https://review.opendev.org/c/openstack/cloudkitty/+/79209008:51
Akki5810Hi All,09:05
Akki5810I have a cloudkitty setup , but i am getting blank report tenant list and no metric collection logs on processor.09:06
priteauHi Akki581009:06
priteauWhat kind of fetcher and collector are you using?09:07
Akki5810i have all roles already created, i.e. rating , monitoring-delegate09:07
Akki5810monasca for collector09:07
Akki5810- keystone for fetcher09:07
Akki5810elasticsearch for storage09:08
Akki5810I am having these logs in processor:09:10
Akki5810WARNING cloudkitty.storage [-] V2 Storage is in beta. Its API is considered stable but its implementation may still evolve.09:10
Akki58102021-05-19 08:59:25.129 244 WARNING cloudkitty.storage.v2.elasticsearch [-] The Elasticsearch storage driver is experimental. DO NOT USE IT IN PRODUCTION.09:10
Akki58102021-05-19 08:59:25.142 244 WARNING cloudkitty.storage [-] V2 Storage is in beta. Its API is considered stable but its implementation may still evolve.09:10
Akki58102021-05-19 08:59:25.142 244 WARNING cloudkitty.storage.v2.elasticsearch [-] The Elasticsearch storage driver is experimental. DO NOT USE IT IN PRODUCTION.09:10
Akki58102021-05-19 08:59:25.265 244 DEBUG cotyledon._service [-] Run service Orchestrator(0) [244] wait_forever /usr/lib/python2.7/site-packages/cotyledon/_service.py:24109:10
Akki58102021-05-19 08:59:25.268 244 DEBUG cloudkitty.orchestrator [-] Started worker 0. run /usr/lib/python2.7/site-packages/cloudkitty/orchestrator.py:38109:10
Akki58102021-05-19 08:59:25.282 1 INFO cotyledon._service_manager [-] Child 233 killed by signal None09:10
Akki58102021-05-19 08:59:25.284 1 INFO cotyledon._service_manager [-] Forking too fast, sleeping09:10
Akki58102021-05-19 08:59:25.455 240 INFO cloudkitty.orchestrator [-] [Worker: 28] Tenants loaded for fetcher keystone09:10
Akki58102021-05-19 08:59:25.455 240 DEBUG cloudkitty.orchestrator [-] [Worker: 28] Trying to acquire lock "28c7489995b8b8809ed326f79d189766fc75513dea64642939e976164f27edfb" ... run /usr/lib/python2.7/site-packages/cloudkitty/orchestrator.py:39309:10
Akki58102021-05-19 08:59:26.232 254 DEBUG monascaclient.client [-] Reusing session _session /usr/lib/python2.7/site-packages/monascaclient/client.py:5909:10
*** vishalmanchanda has quit IRC09:14
Akki5810priteau Any suggestions ?09:21
priteauYou should share your metrics.yml09:21
Akki5810metrics:09:23
Akki5810  cpu:09:23
Akki5810    alt_name: instance09:23
Akki5810    unit: instance09:24
Akki5810  image.size:09:24
Akki5810    factor: 1/104857609:24
Akki5810    unit: MiB09:24
Akki5810  volume.size:09:24
Akki5810    unit: GiB09:24
Akki5810priteau09:26
priteauYou may need to use extra_args: forced_project_id: to select the tenant to use for monasca queries09:27
priteauOtherwise they will probably be done via the service project09:27
*** vishalmanchanda has joined #cloudkitty09:38
Akki5810priteau10:06
Akki5810I am getting this in processor logs:10:06
Akki58102021-05-19 10:03:41.652 1 INFO cotyledon._service_manager [-] Child 23688 exited with status 1^[[00m10:06
Akki58102021-05-19 10:03:41.655 1 INFO cotyledon._service_manager [-] Forking too fast, sleeping^[[00m10:06
Akki58102021-05-19 10:03:41.693 23228 DEBUG oslo_db.api [-] Loading backend 'sqlalchemy' from 'cloudkitty.db.sqlalchemy.api' _load_backend /usr/lib/python2.7/site-packages/oslo_db/api.py:261^[[00m10:06
Akki58102021-05-19 10:03:41.712 23228 DEBUG oslo_db.api [-] Loading backend 'sqlalchemy' from 'cloudkitty.rating.pyscripts.db.sqlalchemy.api' _load_backend /usr/lib/python2.7/site-packages/oslo_db/api.py:261^[[00m10:06
Akki58102021-05-19 10:03:41.746 23228 DEBUG cloudkitty.orchestrator [-] [scope: c89e2d5182a142ba9b71a9e1d94f646d, worker: 25] Collecting 3 metrics. _do_collection /usr/lib/python2.7/site-packages/cloudkitty/orchestrator.py:298^[[00m10:06
Akki58102021-05-19 10:03:41.776 23680 DEBUG monascaclient.client [-] Reusing session _session /usr/lib/python2.7/site-packages/monascaclient/client.py:59^[[00m10:06
Akki5810this is admin project's ID10:06
Akki5810Also I see :10:07
Akki5810ERROR cloudkitty.orchestrator [-] [scope: c89e2d5182a142ba9b71a9e1d94f646d, worker: 25] Error while collecting metric image.size at timestamp 2021-05-01 00:00:00+00:00: The repository was unable to process your request (HTTP 500) (Request-ID: req-35d9c821-9234-4a86-aede-b8c2f735fd6d). Exiting.: InternalServerError: The repository was unable to10:07
Akki5810process your request (HTTP 500) (Request-ID: req-35d9c821-9234-4a86-aede-b8c2f735fd6d)10:07
priteauCan you do queries against monasca manually?10:14
Akki5810The DB for monasca was somehow missing, it is in place now.11:14
Akki5810priteau Now i can see admin tenant in report tenant list11:15
Akki5810but not services tenant11:15
Akki5810But still no summary for admin tenant11:16
Akki5810query against monasca  for admin tenant is giving list of metrics11:19
Akki5810but query against monasca  for service tenant is giving blank11:20
priteauAkki5810: There are two tenants to consider: the one you are using to do the monasca query (i.e. where your metrics live), and the one labelled in metrics dimensions11:25
priteauIt really depends on how your monasca is set up11:26
*** Akki5810 has quit IRC12:17
*** Akki58 has joined #cloudkitty12:56
Akki58Ok priteau12:56
Akki58another issue is:12:56
Akki58INFO cloudkitty.orchestrator [-] [scope: c89e2d5182a142ba9b71a9e1d94f646d, worker: 13] No data collected for metric image.size at timestamp 2021-05-01 04:50:30+00:00^[[00m12:57
Akki582021-05-19 12:49:05.832 19288 INFO cloudkitty.orchestrator [-] [scope: c89e2d5182a142ba9b71a9e1d94f646d, worker: 13] No data collected for metric cpu at timestamp 2021-05-01 04:50:30+00:00^[[00m12:57
Akki582021-05-19 12:49:05.843 19288 INFO cloudkitty.orchestrator [-] [scope: c89e2d5182a142ba9b71a9e1d94f646d, worker: 13] No data collected for metric volume.size at timestamp 2021-05-01 04:50:30+00:00^[[00m12:57
Akki58it is only getting data for this default timestamp, it should be 2021-05-1912:58
Akki58any idea for this ?12:58
priteaucloudkitty starts collecting data from the beginning of the month by default12:59
priteauI am surprised about the timestamp though, what did you use as [collect]/period13:00
priteauBy default it is 3600, so it will collect 2021-05-01 00:00 to 01:00, then 2021-05-01 01:00 to 02:00, etc.13:00
Akki58it is 7013:16
Akki58for testing13:16
Akki58to save time13:16
priteauI don't think that will save you time. It will mean lots of requests to monasca until it reaches current date13:19
priteauAlso any period which doesn't have monasca measurements will produce this "No data collected" message13:20
openstackgerritPierre Riteau proposed openstack/python-cloudkittyclient master: [ussuri][goal] Update contributor documentation  https://review.opendev.org/c/openstack/python-cloudkittyclient/+/79125813:33
*** Akki58 has quit IRC13:58
openstackgerritGhanshyam proposed openstack/python-cloudkittyclient master: [ussuri][goal] Update contributor documentation  https://review.opendev.org/c/openstack/python-cloudkittyclient/+/79125815:09
openstackgerritMerged openstack/python-cloudkittyclient master: Fix PDF docs build  https://review.opendev.org/c/openstack/python-cloudkittyclient/+/79189716:08
*** cylopez has quit IRC17:22
*** cylopez has joined #cloudkitty17:24
*** cylopez has quit IRC18:00
*** vishalmanchanda has quit IRC18:22
*** MrClayPole_ has joined #cloudkitty20:15

Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!