contail-api couldn't list domains using project scope auth

Bug #1724691 reported by Ignatious Johnson Christopher
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R3.2
Fix Committed
Medium
Ignatious Johnson Christopher
R4.0
Fix Committed
Medium
Ignatious Johnson Christopher
R4.1
Fix Committed
Medium
Ignatious Johnson Christopher
Trunk
Fix Committed
Medium
Ignatious Johnson Christopher

Bug Description

contail-api couldn't list domains when using Keystone v3 with project scope auth

contrail-status
----------------

contrail-api:0 initializing (Generic Connection:Keystone[Error: You are not authorized to perform the requested action: identity:list_domains (HTTP 403) (Request-ID: req-db15781b-3c3e-4efd-a01a-7131ed4e6c2e) at UTC 2017-10-20 17:17:26.950781] connection down)

description: updated
Revision history for this message
Ignatious Johnson Christopher (ijohnson-x) wrote :

Project scoped auth don't have access to list-projects and list-domains.
Api-server do list-domains during initialization.

So when project scoped auth parameters are used in contrail-keystone-auth.conf api-server is in initializing state.

Solutions:

1. Use domain scope auth parameters in contrail-keystone-auth.conf instead of project scope.

contrail-keystone-auth.conf
-----------------------------
[KEYSTONE]
auth_url=https://keystoneIp:35357/v3
auth_host=<keystoneIp>
auth_protocol=https
auth_port=35357
admin_user=admin
admin_password=c0ntrail123
admin_tenant_name=admin
memcache_servers=127.0.0.1:11211
insecure=False
certfile=/etc/contrail/ssl/certs/keystone.pem
keyfile=/etc/contrail/ssl/certs/keystone.pem
cafile=/etc/contrail/ssl/certs/keystone_ca.pem
auth_type = password
user_domain_name = Default
domain_name = Default <<<<<<<<< Domain scope auth

2. Use project scoped auth parameters in contrail-keystone-auth.conf, also set admin_project_name and admin_project_domain_name in [resource] section of keystone.conf

contrail-keystone-auth.conf
-----------------------------
[KEYSTONE]
auth_url=https://keystoneIp:35357/v3
auth_host=<keystoneIp>
auth_protocol=https
auth_port=35357
admin_user=admin
admin_password=c0ntrail123
admin_tenant_name=admin
memcache_servers=127.0.0.1:11211
insecure=False
certfile=/etc/contrail/ssl/certs/keystone.pem
keyfile=/etc/contrail/ssl/certs/keystone.pem
cafile=/etc/contrail/ssl/certs/keystone_ca.pem
auth_type = password
user_domain_name = Default
project_domain_name = Default <<<<< Project scope auth

keystone.conf
---------------
[resource]
admin_project_domain_name = Default <<<<<
#admin_project_name = admin <<<<<

description: updated
tags: added: releasenote
Revision history for this message
Ignatious Johnson Christopher (ijohnson-x) wrote :

In contrial-fabric provisioned setups, solution #1 of using domain scope auth params in contrail-keystone-auth.conf will be used to fix this issue.

Changed in juniperopenstack:
milestone: none → r3.2.8.0
importance: Undecided → Medium
milestone: r3.2.8.0 → r5.0.0
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/36750
Submitter: Ignatious Johnson Christopher (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R4.1

Review in progress for https://review.opencontrail.org/36751
Submitter: Ignatious Johnson Christopher (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R4.0

Review in progress for https://review.opencontrail.org/36752
Submitter: Ignatious Johnson Christopher (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R3.2

Review in progress for https://review.opencontrail.org/36753
Submitter: Ignatious Johnson Christopher (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/36807
Submitter: Ignatious Johnson Christopher (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R4.1

Review in progress for https://review.opencontrail.org/36808
Submitter: Ignatious Johnson Christopher (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/36809
Submitter: Ignatious Johnson Christopher (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R4.1

Review in progress for https://review.opencontrail.org/36810
Submitter: Ignatious Johnson Christopher (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R4.0

Review in progress for https://review.opencontrail.org/36811
Submitter: Ignatious Johnson Christopher (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Review in progress for https://review.opencontrail.org/36812
Submitter: Ignatious Johnson Christopher (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/36809
Submitter: Ignatious Johnson Christopher (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R4.1

Review in progress for https://review.opencontrail.org/36810
Submitter: Ignatious Johnson Christopher (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R4.0

Review in progress for https://review.opencontrail.org/36812
Submitter: Ignatious Johnson Christopher (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/36807
Submitter: Ignatious Johnson Christopher (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R4.1

Review in progress for https://review.opencontrail.org/36810
Submitter: Ignatious Johnson Christopher (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R4.0

Review in progress for https://review.opencontrail.org/36812
Submitter: Ignatious Johnson Christopher (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R4.1

Review in progress for https://review.opencontrail.org/36808
Submitter: Ignatious Johnson Christopher (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R4.0

Review in progress for https://review.opencontrail.org/36811
Submitter: Ignatious Johnson Christopher (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/36753
Committed: http://github.com/Juniper/contrail-provisioning/commit/e28fd94d10284b0c11846daef6a69fbd6f00e8c3
Submitter: Zuul (<email address hidden>)
Branch: R3.2

commit e28fd94d10284b0c11846daef6a69fbd6f00e8c3
Author: Ignatious Johnson Christopher <email address hidden>
Date: Mon Oct 23 22:05:26 2017 -0700

Project scoped auth don't have access to

list-projects and list-domains.api-server
do list-domains during initialization.

So using project scoped auth parameters
in contrail-keystone-auth.conf

Change-Id: I68efee8d47787376457f723a6fb1bd38ca93695a
Closes-Bug: 1724691

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/36809
Committed: http://github.com/Juniper/contrail-ansible-internal/commit/657528bef6b4a78ecc1868b5b3c9ce5d9b6a06a2
Submitter: Zuul (<email address hidden>)
Branch: master

commit 657528bef6b4a78ecc1868b5b3c9ce5d9b6a06a2
Author: Ignatious Johnson Christopher <email address hidden>
Date: Tue Oct 24 23:15:29 2017 -0700

Project scoped auth don't have access to

list-projects and list-domains.api-server
do list-domains during initialization.

So using domian scoped auth parameters
in contrail-keystone-auth.conf

Change-Id: I29ebdbdf60ae174e2587d0108b3cd605c9f220ae
Closes-Bug: 1724691

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/36810
Committed: http://github.com/Juniper/contrail-ansible-internal/commit/f1fbc6833ab06e74396d16248e36082761cf0d6a
Submitter: Zuul (<email address hidden>)
Branch: R4.1

commit f1fbc6833ab06e74396d16248e36082761cf0d6a
Author: Ignatious Johnson Christopher <email address hidden>
Date: Tue Oct 24 23:15:29 2017 -0700

Project scoped auth don't have access to

list-projects and list-domains.api-server
do list-domains during initialization.

So using domian scoped auth parameters
in contrail-keystone-auth.conf

Change-Id: I29ebdbdf60ae174e2587d0108b3cd605c9f220ae
Closes-Bug: 1724691

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/36751
Committed: http://github.com/Juniper/contrail-provisioning/commit/9f245d656e9bd88e520bfafc2eb8f04849662f2d
Submitter: Zuul (<email address hidden>)
Branch: R4.1

commit 9f245d656e9bd88e520bfafc2eb8f04849662f2d
Author: Ignatious Johnson Christopher <email address hidden>
Date: Mon Oct 23 22:05:26 2017 -0700

Project scoped auth don't have access to

list-projects and list-domains.api-server
do list-domains during initialization.

So using project scoped auth parameters
in contrail-keystone-auth.conf

Change-Id: I68efee8d47787376457f723a6fb1bd38ca93695a
Closes-Bug: 1724691

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/36812
Committed: http://github.com/Juniper/contrail-ansible-internal/commit/a32e1737de949093bf5fa1ec777e9b0a2e144dd6
Submitter: Zuul (<email address hidden>)
Branch: R4.0

commit a32e1737de949093bf5fa1ec777e9b0a2e144dd6
Author: Ignatious Johnson Christopher <email address hidden>
Date: Tue Oct 24 23:15:29 2017 -0700

Project scoped auth don't have access to

list-projects and list-domains.api-server
do list-domains during initialization.

So using domian scoped auth parameters
in contrail-keystone-auth.conf

Change-Id: I29ebdbdf60ae174e2587d0108b3cd605c9f220ae
Closes-Bug: 1724691

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/36808
Committed: http://github.com/Juniper/contrail-docker/commit/e3e3483af9db5f8ee0cc58915f687d74aff57c49
Submitter: Zuul (<email address hidden>)
Branch: R4.1

commit e3e3483af9db5f8ee0cc58915f687d74aff57c49
Author: Ignatious Johnson Christopher <email address hidden>
Date: Tue Oct 24 23:04:34 2017 -0700

Allow configuring domin_id in the contrailctl

config files.

Change-Id: I85e3c5f758ba65b5f0f6626654a517249bdfd64e
Partial-Bug: 1724691

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/36750
Committed: http://github.com/Juniper/contrail-provisioning/commit/bfa8e2d8f489d163f9bcbf1125bb5c24e004082e
Submitter: Zuul (<email address hidden>)
Branch: master

commit bfa8e2d8f489d163f9bcbf1125bb5c24e004082e
Author: Ignatious Johnson Christopher <email address hidden>
Date: Mon Oct 23 22:05:26 2017 -0700

Project scoped auth don't have access to

list-projects and list-domains.api-server
do list-domains during initialization.

So using project scoped auth parameters
in contrail-keystone-auth.conf

Change-Id: I68efee8d47787376457f723a6fb1bd38ca93695a
Closes-Bug: 1724691

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/36807
Committed: http://github.com/Juniper/contrail-docker/commit/2506f60ee25a59843d7045d99ec39a298f0efacd
Submitter: Zuul (<email address hidden>)
Branch: master

commit 2506f60ee25a59843d7045d99ec39a298f0efacd
Author: Ignatious Johnson Christopher <email address hidden>
Date: Tue Oct 24 23:04:34 2017 -0700

Allow configuring domin_id in the contrailctl

config files.

Change-Id: I85e3c5f758ba65b5f0f6626654a517249bdfd64e
Partial-Bug: 1724691

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/36811
Committed: http://github.com/Juniper/contrail-docker/commit/be8179348209b56759ea8f19e8af301f279661a6
Submitter: Zuul (<email address hidden>)
Branch: R4.0

commit be8179348209b56759ea8f19e8af301f279661a6
Author: Ignatious Johnson Christopher <email address hidden>
Date: Tue Oct 24 23:04:34 2017 -0700

Allow configuring domin_id in the contrailctl

config files.

Change-Id: I85e3c5f758ba65b5f0f6626654a517249bdfd64e
Partial-Bug: 1724691

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/36752
Committed: http://github.com/Juniper/contrail-provisioning/commit/48bceb0e7f9a1255931b3a83cb775ee580e75140
Submitter: Zuul (<email address hidden>)
Branch: R4.0

commit 48bceb0e7f9a1255931b3a83cb775ee580e75140
Author: Ignatious Johnson Christopher <email address hidden>
Date: Mon Oct 23 22:05:26 2017 -0700

Project scoped auth don't have access to

list-projects and list-domains.api-server
do list-domains during initialization.

So using project scoped auth parameters
in contrail-keystone-auth.conf

Change-Id: I68efee8d47787376457f723a6fb1bd38ca93695a
Closes-Bug: 1724691

information type: Proprietary → Public
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.