[mos] TRACE ceilometer.alarm.service HTTPUnauthorized: HTTPUnauthorized (HTTP 401)

Bug #1332083 reported by Anastasia Palkina
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Won't Fix
Low
Ivan Berezovskiy
Mirantis OpenStack
Won't Fix
Low
Ivan Berezovskiy

Bug Description

"build_id": "2014-06-19_00-31-14",
"mirantis": "yes",
"build_number": "260",
"ostf_sha": "319d3858b24a962e87191a8d5fd4c1e46e1cd959",
"nailgun_sha": "6a995917e010edb247160ee5333b15fa564ed361",
"production": "docker",
"api": "1.0",
"fuelmain_sha": "7089ffea68000b90e5ba85dbfec64e18a6216eea",
"astute_sha": "694b5a55695e01e1c42185bfac9cc7a641a9bd48",
"release": "5.1",
"fuellib_sha": "a6fe0b4f41e6e251e44fb35f771c48f353e33530"

1. Create new environment (Ubuntu, HA mode)
2. Choose GRE segmentation
3. Choose both Ceph
4. Choose Sahara and Ceilometer
5. Add 3 controllers+ceph, 4 computes, 2 ceph, 1 mongo
6. Start deployment. It was successful
7. But there is error in ceilometer-alarm-evaluator.log on first controller (node-1):

2014-06-19 13:41:34 ERROR

ceilometer.alarm.service [-] alarm evaluation cycle failed
2014-06-19 12:41:34.039 18244 TRACE ceilometer.alarm.service Traceback (most recent call last):
2014-06-19 12:41:34.039 18244 TRACE ceilometer.alarm.service File "/usr/lib/python2.7/dist-packages/ceilometer/alarm/service.py", line 91, in _evaluate_assigned_alarms
2014-06-19 12:41:34.039 18244 TRACE ceilometer.alarm.service alarms = self._assigned_alarms()
2014-06-19 12:41:34.039 18244 TRACE ceilometer.alarm.service File "/usr/lib/python2.7/dist-packages/ceilometer/alarm/service.py", line 134, in _assigned_alarms
2014-06-19 12:41:34.039 18244 TRACE ceilometer.alarm.service 'value': True}])
2014-06-19 12:41:34.039 18244 TRACE ceilometer.alarm.service File "/usr/lib/python2.7/dist-packages/ceilometerclient/v2/alarms.py", line 70, in list
2014-06-19 12:41:34.039 18244 TRACE ceilometer.alarm.service return self._list(options.build_url(self._path(), q))
2014-06-19 12:41:34.039 18244 TRACE ceilometer.alarm.service File "/usr/lib/python2.7/dist-packages/ceilometerclient/common/base.py", line 58, in _list
2014-06-19 12:41:34.039 18244 TRACE ceilometer.alarm.service resp, body = self.api.json_request('GET', url)
2014-06-19 12:41:34.039 18244 TRACE ceilometer.alarm.service File "/usr/lib/python2.7/dist-packages/ceilometerclient/common/http.py", line 190, in json_request
2014-06-19 12:41:34.039 18244 TRACE ceilometer.alarm.service resp, body_iter = self._http_request(url, method, **kwargs)
2014-06-19 12:41:34.039 18244 TRACE ceilometer.alarm.service File "/usr/lib/python2.7/dist-packages/ceilometerclient/common/http.py", line 173, in _http_request
2014-06-19 12:41:34.039 18244 TRACE ceilometer.alarm.service raise exc.from_response(resp, ''.join(body_iter))
2014-06-19 12:41:34.039 18244 TRACE ceilometer.alarm.service HTTPUnauthorized: HTTPUnauthorized (HTTP 401)
2014-06-19 12:41:34.039 18244 TRACE ceilometer.alarm.service

Tags: ceilometer
Revision history for this message
Anastasia Palkina (apalkina) wrote :
Changed in fuel:
importance: Undecided → Medium
Changed in mos:
importance: Undecided → High
assignee: nobody → MOS Ceilometer (mos-ceilometer)
milestone: none → 5.1
Revision history for this message
Dina Belova (dbelova) wrote :

Changed to 'medium' as if is was actually working MOS env, I see no reason to mark this as 'high'.

Changed in mos:
importance: High → Medium
Revision history for this message
Dina Belova (dbelova) wrote :

Currently we're working on the 5.0.1, so we can't confirm (or not) this right now, we'll do that when it'll be the opportunity after 5.0.1 work will be finished.

Dina Belova (dbelova)
Changed in mos:
status: New → Confirmed
Changed in fuel:
status: New → Confirmed
Revision history for this message
Dina Belova (dbelova) wrote :

This is non-related to the working process issue - that's because during the OS the installation alarm evaluator starts before keystone begins actually working - that leads to the no auth passed in the https://github.com/openstack/ceilometer/blob/master/ceilometer/alarm/service.py#L130 that's called from the start method as a periodic task. That seems to be fixed with the alarm evaluator started *after* the keystone.

Changed in fuel:
assignee: Ceilometer Bugs (ceilometer-bugs) → Ivan Berezovskiy (iberezovskiy)
Changed in mos:
assignee: MOS Ceilometer (mos-ceilometer) → Ivan Berezovskiy (iberezovskiy)
importance: Medium → Low
Changed in fuel:
importance: Medium → Low
tags: added: ceilometer
Dmitry Ilyin (idv1985)
summary: - TRACE ceilometer.alarm.service HTTPUnauthorized: HTTPUnauthorized (HTTP
- 401)
+ [mos] TRACE ceilometer.alarm.service HTTPUnauthorized: HTTPUnauthorized
+ (HTTP 401)
Revision history for this message
Dina Belova (dbelova) wrote :

Due to the discussions in the https://bugs.launchpad.net/fuel/+bug/1346335 - logs like that are normal for the not fully started env - if we'll refactor all deployment process not to see them in ceilometer logs, we'll definitely have problems with other services.

Changed in fuel:
status: Confirmed → Won't Fix
Changed in mos:
status: Confirmed → Won't Fix
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.