when restart ceilometer-notification, occur AttributeError: 'CollectorService' object has no attribute 'sample_listener'

Bug #1700012 reported by xiexianbin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ceilometer
Invalid
Undecided
xiexianbin

Bug Description

i set ceilometer-notification work gt 1, when i restart ceilometer-notification servie, it occur an exception:

2017-03-20 17:16:48.704 452553 CRITICAL ceilometer [-] AttributeError: 'CollectorService' object has no attribute 'sample_listener'
2017-03-20 17:16:48.704 452553 ERROR ceilometer Traceback (most recent call last):
2017-03-20 17:16:48.704 452553 ERROR ceilometer File "/usr/bin/ceilometer-collector", line 10, in <module>
2017-03-20 17:16:48.704 452553 ERROR ceilometer sys.exit(main())
2017-03-20 17:16:48.704 452553 ERROR ceilometer File "/usr/lib/python2.7/site-packages/ceilometer/cmd/collector.py", line 29, in main
2017-03-20 17:16:48.704 452553 ERROR ceilometer workers=CONF.collector.workers).wait()
2017-03-20 17:16:48.704 452553 ERROR ceilometer File "/usr/lib/python2.7/site-packages/oslo_service/service.py", line 577, in wait
2017-03-20 17:16:48.704 452553 ERROR ceilometer self.stop()
2017-03-20 17:16:48.704 452553 ERROR ceilometer File "/usr/lib/python2.7/site-packages/oslo_service/service.py", line 586, in stop
2017-03-20 17:16:48.704 452553 ERROR ceilometer service.stop()
2017-03-20 17:16:48.704 452553 ERROR ceilometer File "/usr/lib/python2.7/site-packages/ceilometer/collector.py", line 134, in stop
2017-03-20 17:16:48.704 452553 ERROR ceilometer if self.sample_listener:
2017-03-20 17:16:48.704 452553 ERROR ceilometer AttributeError: 'CollectorService' object has no attribute 'sample_listener'

xiexianbin (xianbin)
Changed in ceilometer:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to ceilometer (stable/mitaka)

Fix proposed to branch: stable/mitaka
Review: https://review.openstack.org/476818

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to ceilometer (stable/newton)

Fix proposed to branch: stable/newton
Review: https://review.openstack.org/476821

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to ceilometer (stable/ocata)

Fix proposed to branch: stable/ocata
Review: https://review.openstack.org/476823

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to ceilometer (master)

Fix proposed to branch: master
Review: https://review.openstack.org/476835

Changed in ceilometer:
assignee: nobody → 谢先斌 (xianbin)
Revision history for this message
Julien Danjou (jdanjou) wrote :

Which version of Ceilometer is this?

Revision history for this message
xiexianbin (xianbin) wrote :

it occur in mitaka/neutron/ocata, I am not test it in master branch.

Revision history for this message
moxun (moxun) wrote :
Download full text (4.2 KiB)

I also meet the bugs in celometer newton, when I configure ceilometer.conf

[notification]
workers = 2

the error log in /var/log/ceilometer/agent-notification.log:

2017-06-26 09:27:57.255 3781 INFO cotyledon._service [-] Caught SIGTERM signal, graceful exiting of service NotificationService(1) [3781]
2017-06-26 09:27:57.256 3783 INFO cotyledon._service [-] Caught SIGTERM signal, graceful exiting of service NotificationService(2) [3783]
2017-06-26 09:27:57.245 3780 ERROR cotyledon._utils [-] Unhandled exception
2017-06-26 09:27:57.245 3780 ERROR cotyledon._utils Traceback (most recent call last):
2017-06-26 09:27:57.245 3780 ERROR cotyledon._utils File "/usr/lib/python2.7/site-packages/cotyledon/_utils.py", line 84, in exit_on_exception
2017-06-26 09:27:57.245 3780 ERROR cotyledon._utils yield
2017-06-26 09:27:57.245 3780 ERROR cotyledon._utils File "/usr/lib/python2.7/site-packages/cotyledon/_service.py", line 134, in _terminate
2017-06-26 09:27:57.245 3780 ERROR cotyledon._utils self.terminate()
2017-06-26 09:27:57.245 3780 ERROR cotyledon._utils File "/usr/lib/python2.7/site-packages/ceilometer/notification.py", line 309, in terminate
2017-06-26 09:27:57.245 3780 ERROR cotyledon._utils super(NotificationService, self).terminate()
2017-06-26 09:27:57.245 3780 ERROR cotyledon._utils File "/usr/lib/python2.7/site-packages/ceilometer/service_base.py", line 53, in terminate
2017-06-26 09:27:57.245 3780 ERROR cotyledon._utils if self.refresh_pipeline_periodic:
2017-06-26 09:27:57.245 3780 ERROR cotyledon._utils AttributeError: 'NotificationService' object has no attribute 'refresh_pipeline_periodic'
2017-06-26 09:27:57.245 3780 ERROR cotyledon._utils
2017-06-26 09:27:57.213 3785 ERROR cotyledon._utils [-] Unhandled exception
2017-06-26 09:27:57.213 3785 ERROR cotyledon._utils Traceback (most recent call last):
2017-06-26 09:27:57.213 3785 ERROR cotyledon._utils File "/usr/lib/python2.7/site-packages/cotyledon/_utils.py", line 84, in exit_on_exception
2017-06-26 09:27:57.213 3785 ERROR cotyledon._utils yield
2017-06-26 09:27:57.213 3785 ERROR cotyledon._utils File "/usr/lib/python2.7/site-packages/cotyledon/_service.py", line 134, in _terminate
2017-06-26 09:27:57.213 3785 ERROR cotyledon._utils self.terminate()
2017-06-26 09:27:57.213 3785 ERROR cotyledon._utils File "/usr/lib/python2.7/site-packages/ceilometer/notification.py", line 309, in terminate
2017-06-26 09:27:57.213 3785 ERROR cotyledon._utils super(NotificationService, self).terminate()
2017-06-26 09:27:57.213 3785 ERROR cotyledon._utils File "/usr/lib/python2.7/site-packages/ceilometer/service_base.py", line 53, in terminate
2017-06-26 09:27:57.213 3785 ERROR cotyledon._utils if self.refresh_pipeline_periodic:
2017-06-26 09:27:57.213 3785 ERROR cotyledon._utils AttributeError: 'NotificationService' object has no attribute 'refresh_pipeline_periodic'
2017-06-26 09:27:57.213 3785 ERROR cotyledon._utils
2017-06-26 09:27:57.281 3783 ERROR cotyledon._utils [-] Unhandled exception
2017-06-26 09:27:57.281 3783 ERROR cotyledon._utils Traceback (most recent call last):
2017-06-26 09:27:57.281 3783 ERROR cotyledon._utils File "/usr/lib/python...

Read more...

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on ceilometer (stable/mitaka)

Change abandoned by xiexianbin (<email address hidden>) on branch: stable/mitaka
Review: https://review.openstack.org/476818

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on ceilometer (master)

Change abandoned by gordon chung (<email address hidden>) on branch: master
Review: https://review.openstack.org/476835

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

moxun thanks for doing bug against newton. but your traceback has nothing to do with your patch.

Revision history for this message
moxun (moxun) wrote :
Download full text (3.6 KiB)

2017-06-27 14:30:50.782 10815 INFO cotyledon._service_manager [-] Caught SIGTERM signal, graceful exiting of master process
2017-06-27 14:30:50.782 10815 DEBUG cotyledon._service_manager [-] Killing services with signal SIGTERM _shutdown /usr/lib/python2.7/site-packages/cotyledon/_service_manager.py:255
2017-06-27 14:30:50.783 10815 DEBUG cotyledon._service_manager [-] Waiting services to terminate _shutdown /usr/lib/python2.7/site-packages/cotyledon/_service_manager.py:259
2017-06-27 14:30:50.783 10827 INFO cotyledon._service [-] Caught SIGTERM signal, graceful exiting of service NotificationService(2) [10827]
2017-06-27 14:30:50.783 10834 INFO cotyledon._service [-] Caught SIGTERM signal, graceful exiting of service NotificationService(4) [10834]
2017-06-27 14:30:50.784 10824 INFO cotyledon._service [-] Caught SIGTERM signal, graceful exiting of service NotificationService(0) [10824]
2017-06-27 14:30:50.785 10828 INFO cotyledon._service [-] Caught SIGTERM signal, graceful exiting of service NotificationService(3) [10828]
2017-06-27 14:30:50.793 10825 INFO cotyledon._service [-] Caught SIGTERM signal, graceful exiting of service NotificationService(1) [10825]
2017-06-27 14:30:50.797 10825 ERROR cotyledon._utils [-] Unhandled exception
2017-06-27 14:30:50.797 10825 ERROR cotyledon._utils Traceback (most recent call last):
2017-06-27 14:30:50.797 10825 ERROR cotyledon._utils File "/usr/lib/python2.7/site-packages/cotyledon/_utils.py", line 84, in exit_on_exception
2017-06-27 14:30:50.797 10825 ERROR cotyledon._utils yield
2017-06-27 14:30:50.797 10825 ERROR cotyledon._utils File "/usr/lib/python2.7/site-packages/cotyledon/_service.py", line 134, in _terminate
2017-06-27 14:30:50.797 10825 ERROR cotyledon._utils self.terminate()
2017-06-27 14:30:50.797 10825 ERROR cotyledon._utils File "/usr/lib/python2.7/site-packages/ceilometer/notification.py", line 309, in terminate
2017-06-27 14:30:50.797 10825 ERROR cotyledon._utils super(NotificationService, self).terminate()
2017-06-27 14:30:50.797 10825 ERROR cotyledon._utils File "/usr/lib/python2.7/site-packages/ceilometer/service_base.py", line 53, in terminate
2017-06-27 14:30:50.797 10825 ERROR cotyledon._utils if self.refresh_pipeline_periodic:
2017-06-27 14:30:50.797 10825 ERROR cotyledon._utils AttributeError: 'NotificationService' object has no attribute 'refresh_pipeline_periodic'
2017-06-27 14:30:50.797 10825 ERROR cotyledon._utils
2017-06-27 14:31:05.619 10815 DEBUG cotyledon._service_manager [-] Shutdown finish _shutdown /usr/lib/python2.7/site-packages/cotyledon/_service_manager.py:271
2017-06-27 14:31:07.206 10878 WARNING oslo_reports.guru_meditation_report [-] Guru meditation now registers SIGUSR1 and SIGUSR2 by default for backward compatibility. SIGUSR1 will no longer be registered in a future release, so please use SIGUSR2 to generate reports.
2017-06-27 14:31:07.207 10878 DEBUG cotyledon.oslo_config_glue [-] Full set of CONF: _load_service_manager_options /usr/lib/python2.7/site-packages/cotyledon/oslo_config_glue.py:40
2017-06-27 14:31:07.208 10878 DEBUG cotyledon.oslo_config_glue [-] **************************************************************************...

Read more...

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on ceilometer (stable/newton)

Change abandoned by xiexianbin (<email address hidden>) on branch: stable/newton
Review: https://review.openstack.org/476821

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on ceilometer (stable/ocata)

Change abandoned by xiexianbin (<email address hidden>) on branch: stable/ocata
Review: https://review.openstack.org/476823

xiexianbin (xianbin)
Changed in ceilometer:
status: In Progress → Invalid
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.