Bug 1416118

Summary: Failed to list events in Panko
Product: Red Hat OpenStack Reporter: Yurii Prokulevych <yprokule>
Component: python-ceilometerclientAssignee: Julien Danjou <jdanjou>
Status: CLOSED ERRATA QA Contact: Sasha Smolyak <ssmolyak>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 11.0 (Ocata)CC: jruzicka, mabaakou, mburns, pkilambi, rhel-osp-director-maint, srevivo
Target Milestone: Upstream M3Keywords: Triaged
Target Release: 11.0 (Ocata)   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: python-ceilometerclient-2.8.1-1.el7ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-05-17 19:42:31 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Yurii Prokulevych 2017-01-24 16:01:25 UTC
Description of problem:
RHOS-11 installation with Panko enabled.
But attempt to list events fails:

ceilometer event-list
You must provide a project_id via either --os-project-id or via env[OS_PROJECT_ID] and a domain_name via either --os-user-domain-name or via env[OS_USER_DOMAIN_NAME] or a domain_id via either --os-user-domain-id or via env[OS_USER_DOMAIN_ID]

ceilometer --debug  event-list
Traceback (most recent call last):
  File "/bin/ceilometer", line 10, in <module>
  File "/usr/lib/python2.7/site-packages/ceilometerclient/shell.py", line 292, in main
  File "/usr/lib/python2.7/site-packages/ceilometerclient/shell.py", line 220, in main
    raise exc.CommandError("You must provide a project_id via "
ceilometerclient.exc.CommandError: You must provide a project_id via either --os-project-id or via env[OS_PROJECT_ID] and a domain_name via either --os-user-domain-name or via env[OS_USER_DOMAIN_NAME] or a domain_id via either --os-user-domain-id or via env[OS_USER_DOMAIN_ID]

Other commands are working as expected:
gnocchi resource list
| id                                   | type    | project_id | user_id | original_resource_id | started_at                       | ended_at | revision_start                   | revision_end |
| 0a8b55df-f90f-491c-8cb9-7cdecec6fc26 | generic | None       | None    | None                 | 2017-01-24T09:16:59.160974+00:00 | None     | 2017-01-24T09:16:59.161004+00:00 | None         |

openstack catalog show panko
| Field     | Value                                  |
| endpoints | regionOne                              |
|           |   publicURL:   |
|           |   internalURL: |
|           |   adminURL:    |
|           |                                        |
| name      | panko                                  |
| type      | event                                  |
env | grep ^OS

Version-Release number of selected component (if applicable):



Comment 1 Julien Danjou 2017-01-25 17:58:35 UTC
Please include version of ceilometerclient used too.

Comment 2 Julien Danjou 2017-01-25 18:24:08 UTC
Post a patch upstream that should fix it https://review.openstack.org/425327

Comment 5 Mehdi ABAAKOUK 2017-02-23 15:05:48 UTC
python-ceilometerclient-2.8.0-0.20170208143627.658d7e2.el7ost does not fix the issue.

This package is built on top of commit 658d7e2, but the fix is the next commit :( https://github.com/openstack/python-ceilometerclient/commit/536ebe20547c5f69255c698a1d1da9ea26d9bcac

Comment 6 Pradeep Kilambi 2017-03-16 20:49:54 UTC
the patch mentioned is not in stable/ocata i just pulled it in:


Comment 9 errata-xmlrpc 2017-05-17 19:42:31 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.