with keystone v3 Could not find domain: default.

Bug #1679934 reported by jianfeng zhang
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-ceilometerclient
Fix Released
Undecided
Mehdi Abaakouk

Bug Description

when we use
export OS_PROJECT_DOMAIN_NAME=default
export OS_USER_DOMAIN_NAME=default
export OS_PROJECT_NAME=admin
export OS_USERNAME=admin
export OS_PASSWORD=huayun
export OS_AUTH_URL=http://ocatacon:35357/v3
export OS_IDENTITY_API_VERSION=3
export OS_IMAGE_API_VERSION=2
we not set project domain id and user domain id.
nova client code will set value to default.

this will lead 401 ceilometer client response.

[root@ocatacon ~]# openstack domain list
+----------------------------------+---------+---------+----------------+
| ID | Name | Enabled | Description |
+----------------------------------+---------+---------+----------------+
| fdc79c4b63e8492d98271412320e8672 | default | True | Default Domain |
+----------------------------------+---------+---------+----------------+

and keystone.log

2017-04-05 10:22:40.978 66364 INFO keystone.common.wsgi [req-0cb4c64c-ce73-4043-9a5f-e6633eef161e - - - - -] GET http://ocatacon:35357/v3/
2017-04-05 10:22:40.995 66362 INFO keystone.common.wsgi [req-af695a0a-f555-4cfb-90ed-1bce2acfe78f - - - - -] POST http://ocatacon:35357/v3/auth/tokens
2017-04-05 10:22:41.001 66362 WARNING keystone.auth.core [req-af695a0a-f555-4cfb-90ed-1bce2acfe78f - - - - -] Could not find domain: default.
2017-04-05 10:22:41.002 66362 WARNING keystone.common.wsgi [req-af695a0a-f555-4cfb-90ed-1bce2acfe78f - - - - -] Authorization failed. The request you have made requires authentication. from 10.51.4.70
2017-04-05 10:23:18.568 66363 INFO keystone.common.wsgi [req-59db17ab-70d8-468f-978c-e14bd6fba950 1c4f9e3e8581443fa89946996e8d37a2 c17580eeed5c4ab78e64a7b680db3cb0 - fdc79c4b63e8492d98271412320e8672 fdc79c4b63e8492d98271412320e8672] GET http://ocatacon:35357/v3/auth/tokens

so we need set cinder code value to None.

Changed in python-ceilometerclient:
assignee: nobody → jianfeng zhang (zhangjianfeng)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-ceilometerclient (master)

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

description: updated
Changed in python-ceilometerclient:
status: New → In Progress
Changed in python-ceilometerclient:
assignee: jianfeng zhang (zhangjianfeng) → Julien Danjou (jdanjou)
Changed in python-ceilometerclient:
assignee: Julien Danjou (jdanjou) → Mehdi Abaakouk (sileht)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-ceilometerclient (master)

Reviewed: https://review.openstack.org/453490
Committed: https://git.openstack.org/cgit/openstack/python-ceilometerclient/commit/?id=499be2f7586698d50ba0e9a82433c535f8017523
Submitter: Jenkins
Branch: master

commit 499be2f7586698d50ba0e9a82433c535f8017523
Author: zhangjianfeng <kill51216@163.com>
Date: Wed Apr 5 15:00:54 2017 +0800

    [bugfix]with keystone v3 Could not find domain: default.

    when we use adminrc with keystone v3 not set OS_PROJECT_DOMAIN_ID
    OS_USER_DOAMIN_ID,default ceilometerclient code will set it to
    string default.this will lead error.

    value is often like fdc79c4b63e8492d98271412320e8672
    so when change this code to set it as None.
    last we delete the user_domain_id and project_domain_id
    because it is not useful.

    closes-bug: 1679934

    Change-Id: I95c994406ed7a0b15ba6446e80f01e4f6787ec20

Changed in python-ceilometerclient:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-ceilometerclient 2.9.0

This issue was fixed in the openstack/python-ceilometerclient 2.9.0 release.

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.