Ask Your Question

pm's profile - activity

2019-09-20 12:42:24 -0500 received badge  Famous Question (source)
2019-06-19 04:05:49 -0500 received badge  Famous Question (source)
2019-06-19 04:05:49 -0500 received badge  Notable Question (source)
2019-04-20 00:40:10 -0500 received badge  Notable Question (source)
2019-04-18 14:35:52 -0500 received badge  Famous Question (source)
2019-02-20 03:13:44 -0500 received badge  Famous Question (source)
2019-02-04 01:21:32 -0500 commented question How to configure devstack with ceilometer and gnocchi to show cpu metrics?

Try runnning command "sudo systemctl status devstack@*" and check if all the services are active and running without any error. (especially nova services)

2019-02-04 01:21:32 -0500 commented answer Debugging in Ceilometer

That helped. Thankyou :)

2019-02-01 20:00:14 -0500 received badge  Popular Question (source)
2019-02-01 20:00:14 -0500 received badge  Notable Question (source)
2019-01-22 03:57:52 -0500 commented question Debugging in Ceilometer

Ohh . Got your point. Thank you.

Just in case I want to debug using pdb (for genral purpose), how can it be done?

2019-01-22 02:43:01 -0500 received badge  Commentator
2019-01-22 02:03:22 -0500 asked a question Debugging in Ceilometer

I am working on a bug in ceilometer and wanted to learn the functionality of the code in file gnocchi.py (ceilometer/publisher/gnocchi.py). Let me first tell what bug I am working on.

When we create an instance in nova using command "openstack server create", ceilometer/gnocchi creates a metric named "cpu" corresponding to the instance id. While deleting the instance using command "openstack server delete", the metric that was created corresponding that insatnce still remains.

To understand how does ceilometer/gnocchi creates this metric, I used command "sudo journalctl -f --unit devstack@ceilometer-a*" to check logs and then created a new instance.

I got following logs,

Jan 22 06:50:13 ubuntu-bionic ceilometer-agent-notification[28894]: 2019-01-22 06:50:13.657 29022 DEBUG ceilometer.publisher.gnocchi [-] No gnocchi definition for event type: scheduler.select_destinations.end publish_events /opt/stack/ceilometer/ceilometer/publisher/gnocchi.py:489 Jan 22 06:50:13 ubuntu-bionic ceilometer-agent-notification[28894]: 2019-01-22 06:50:13.687 29022 DEBUG oslo_db.sqlalchemy.engines [-] MySQL server mode set to STRICT_TRANS_TABLES,STRICT_ALL_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,TRADITIONAL,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION _check_effective_sql_mode /usr/local/lib/python2.7/dist-packages/oslo_db/sqlalchemy/engines.py:307

I inserted ,

def _create_resource(self, resource_type, resource):
    import pdb;pdb.set_trace()
    self._gnocchi.resource.create(resource_type, resource)
    LOG.debug('Resource %s created', resource["id"])

Ceilometer has 3 services , devstack@ceilometer-acentral.service devstack@ceilometer-acompute.service devstack@ceilometer-anotification.ser...

Then ran each service individually and got error in ceilometer-anotification.service relating to pdb.

Can someone suggest how do I debug the code using pdb or some other way.

Thanks

2019-01-10 04:32:58 -0500 received badge  Popular Question (source)
2019-01-10 03:47:43 -0500 commented answer Aodh alarm create command unexpected output

Yes I did verify it. The granularity of Gnocchi was set to 300.

Do you believe that there must be an argument to specify the archive policy of our choice in "aodh alarm create" ? Because it seems a bit wierd to change the pipeline.yaml and polling.yaml every time.

Thank you so much

2019-01-09 23:27:22 -0500 asked a question Aodh alarm create command unexpected output

Hi, I tried executing two commands,

  1. aodh alarm create --name cpu_usage_hi_check --type gnocchi_resources_threshold --description 'Instance running on high CPU usage' --metric cpu --threshold 70.0 --comparison-operator gt --aggregation-method mean --granularity 600 --evaluation-periods 3 --alarm-action 'log://' --resource-id 493fabc5-763c-442d-ac86-4b0db47f18eb --resource-type instance

  2. aodh alarm create --name cpu_usage_hi_check_1 --type gnocchi_resources_threshold --description 'Instance running on high CPU usage' --metric cpu --threshold 70.0 --comparison-operator gt --aggregation-method mean --granularity 300 --evaluation-periods 3 --alarm-action 'log://' --resource-id 493fabc5-763c-442d-ac86-4b0db47f18eb --resource-type instance

The only parameter change between the two is the granularity.

Running >> aodh alarm list, I get

+--------------------------------------+-----------------------------+----------------------+-------------------+----------+---------+ | alarm_id | type | name | state | severity | enabled | +--------------------------------------+-----------------------------+----------------------+-------------------+----------+---------+

| bb078936-3893-4bf7-9101-b7dc2781c3af | gnocchi_resources_threshold | cpu_usage_hi_check_1 | alarm | low | True |

| 96439128-fd30-47ac-9a58-0b25756bda20 | gnocchi_resources_threshold | cpu_usage_hi_check | insufficient data | low | True |

Can someone help me understand how is this parameter value change is resulting in a different result.

Note: I have observed the same results for 2 hours.

2018-12-26 04:39:16 -0500 received badge  Notable Question (source)
2018-12-21 03:10:29 -0500 commented answer Where does gnocchi store the metric data in local system?

I have installed Ceilometer using devstack. This is the default config file. It might be a case where devstack sets the storage driver to redis. But it is contradicting the official Ceilometer https://docs.openstack.org/ceilometer/queens/install/install-base-ubuntu.html#install-gnocchi (docs).

2018-12-21 02:56:22 -0500 received badge  Scholar (source)
2018-12-21 02:55:22 -0500 received badge  Popular Question (source)
2018-12-21 02:01:03 -0500 commented answer Where does gnocchi store the metric data in local system?

I have installed Ceilometer using Devstack. This is the default config file.

2018-12-20 04:20:16 -0500 commented answer How to configure Devstack with Ceilometer, Gnocchi and Aodh components?

Thankyou Bernd, your replies are really helpful. Had one more thing in mind seeing https://gnocchi.xyz/stable_4.2/intro.html#incoming-and-storage-drivers (this) ; there is no default aggregate storage (expecting Ceph) in gnocchi conf file. Do you recommend adding something in conf file?

2018-12-20 03:50:07 -0500 asked a question Where does gnocchi store the metric data in local system?

I went through my gnocchi conf file:

[DEFAULT] debug = True

[indexer]

url = mysql+pymysql://root:stackdb@127.0.0.1/gnocchi?charset=utf8

[storage] coordination_url = redis://localhost:6379 redis_url = redis://localhost:6379 driver = redis

[metricd] metric_processing_delay = 5

[api] auth_mode = keystone

I needed to understand where does the metric data generated from Ceilometer get stored in the local system.

2018-12-20 01:28:03 -0500 commented answer How to configure Devstack with Ceilometer, Gnocchi and Aodh components?

HI, I too was wondering why gnocchi is using redis instead of swift The only reason I could think of is redis is a in-memory database storage system, which implies that it will be lot quicker.

Do anyone have any idea where does the metric files get stored in the local system ?

2018-12-19 00:27:19 -0500 received badge  Popular Question (source)
2018-12-13 02:39:18 -0500 received badge  Enthusiast
2018-12-12 01:29:34 -0500 asked a question Why does ceilometer not use gnocchi as default backend database?

I have been studying about the evolution of gnocchi. In my understanding, (ref. https://www.youtube.com/watch?v=W5KT5GJKJw8 (https://www.youtube.com/watch?v=W5KT5...) )

  • Ceilometer legacy storage captures full resolution data. Each data point has a timestamp, measurements, ID's, resource metadata, metric metadata etc.
  • Gnocchi stores aggregated data in time series. Each data point is timestamp and measurement. Resource metadata is stored seperately and linked to measurement.

Seeing the advantages of using gnocchi, why do we not have this as the defualt database of ceilometer.

Thanks in advance.

2018-12-10 02:14:46 -0500 received badge  Popular Question (source)
2018-12-07 04:37:16 -0500 commented answer How does aodh/panko use data from Ceilometer?

But does it not make things a bit complicated for aodh and panko. Rather than sending the API request to Ceilometer for whatever data required, it is the ceilometer that has to push the data to the two. I am just being curious. and maybe wrong.

2018-12-07 03:44:43 -0500 received badge  Notable Question (source)
2018-12-07 03:34:23 -0500 commented answer How does aodh/panko use data from Ceilometer?

Thank you.

2018-12-07 02:45:23 -0500 received badge  Popular Question (source)
2018-12-07 01:45:42 -0500 commented answer How does aodh/panko use data from Ceilometer?

Ohh things seems a clearer now thank you. But still i am wondering that you said Panko uses Ceilometer as a data source., but how does it manages to do that in the absence of ceilometer API. Does the data get stored in database for Panko to access? Or is there any other logic?

2018-12-06 05:37:27 -0500 asked a question How does aodh/panko use data from Ceilometer?

In the current release Ceilometer API has been deprecated. As far as I understand , aodh and panko are extensions of ceilometer(all are treated as seperate projects) . But how do they manage to use data metrics from ceilometer ?

2018-11-28 23:07:45 -0500 received badge  Supporter (source)
2018-11-28 22:24:59 -0500 asked a question Why are there different repositories in openstack monasca?

I am new to openstack and came across two projects mistral and monasca. While mistral docs did not mention anything about the repositories and I installed it using devstack adding a single line "enable_plugin mistral https://github.com/openstack/mistral ". While trying to do the same for monasca , I came to know about different repositories of monasco Eg. monasca-api, monasca-agent and so on.

I understand the need for each but not able to understand why are these repositories seperately defined.

2018-10-29 18:16:40 -0500 commented answer Error: could not install dependencies - tempest

I tried the above solution but it didnot work. I am having the same problem.