configuration API server: A slash is appended to vhost name for accessing rabbitmq

Bug #1477814 reported by Tony Liu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R2.20
Fix Committed
Medium
Ranjeet R
R2.21.x
Fix Committed
Medium
Ranjeet R
R2.22.x
Fix Committed
Medium
Ranjeet R
R3.0
Fix Committed
Medium
Ranjeet R
Trunk
Fix Committed
Medium
Ranjeet R

Bug Description

Hi,

In contrail-api.conf, vhost = contrail, but on rabbitmq server
side, log shows the user tries to access vhost 'contrail/'.
Could anyone check the code, see if API server appends a '/' to
the vhost name? This is 2.20-64.

contrail-api.conf
----------------------------------
rabbit_server = 10.84.29.62
rabbit_user = contrail
rabbit_password = gbNC9HX6z7sG2JxsZWJTVVLSmSp5G4pwqmBk6rX3R2y8W8NKLmtYzT4NWJPpJfX3
rabbit_vhost = contrail
----------------------------------

rabbitmq log
----------------------------------
=INFO REPORT==== 17-Jul-2015::22:06:08 ===
accepting AMQP connection <0.9841.1> (10.84.29.69:41322 -> 10.84.29.62:5672)

=ERROR REPORT==== 17-Jul-2015::22:06:11 ===
closing AMQP connection <0.9841.1> (10.84.29.69:41322 -> 10.84.29.62:5672):
{handshake_error,opening,0,
                 {amqp_error,access_refused,
                             "access to vhost 'contrail/' refused for user 'contrail'",
                             'connection.open'}}
----------------------------------

Thanks!

Tony

Tags: provisioning
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R2.20

Review in progress for https://review.opencontrail.org/12656
Submitter: Ranjeet R (<email address hidden>)

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

Reviewed: https://review.opencontrail.org/12656
Committed: http://github.org/Juniper/contrail-controller/commit/665071b254f93f4d42aa1e056b06db5e87f2c902
Submitter: Zuul
Branch: R2.20

commit 665071b254f93f4d42aa1e056b06db5e87f2c902
Author: Ranjeet R <email address hidden>
Date: Mon Jul 27 20:38:18 2015 -0700

Fixes: configuration API server: A slash is appended to vhost name for accessing rabbitmq

RabbitMQ URL has an extra / which fails RMQ connection

Change-Id: Iafc1b69c5e76623189376783747a8724b75747cc
ClosesBug:1477814

tags: added: provisioning
Changed in juniperopenstack:
importance: Undecided → Medium
assignee: nobody → Ranjeet R (rranjeet-n)
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R2.22-dev

Review in progress for https://review.opencontrail.org/13927
Submitter: Vinay Vithal Mahuli (<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/16202
Submitter: Ranjeet R (<email address hidden>)

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

Review in progress for https://review.opencontrail.org/18272
Submitter: Ranjeet R (<email address hidden>)

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

Review in progress for https://review.opencontrail.org/18273
Submitter: Ranjeet R (<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/18272
Submitter: Ranjeet R (<email address hidden>)

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

Review in progress for https://review.opencontrail.org/18273
Submitter: Ranjeet R (<email address hidden>)

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

Reviewed: https://review.opencontrail.org/18272
Committed: http://github.org/Juniper/contrail-controller/commit/85ccb1189cdd95ed8426470bd63a81ad00d238cc
Submitter: Zuul
Branch: master

commit 85ccb1189cdd95ed8426470bd63a81ad00d238cc
Author: Ranjeet R <email address hidden>
Date: Tue Mar 8 16:28:17 2016 -0800

Fixes: API server: A slash is appended to vhost name for accessing rabbitmq

RabbitMQ URL has an extra / which fails RMQ connection

Change-Id: I265bd3d02f33a5e7a1165e6fc269ef8ff8592912
ClosesBug:1477814

Changed in juniperopenstack:
milestone: r3.0-fcs → r3.1.0.0-fcs
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/18273
Committed: http://github.org/Juniper/contrail-controller/commit/5d31e9f5526fb3b33ff664b4c969aaeb1b90898e
Submitter: Zuul
Branch: R3.0

commit 5d31e9f5526fb3b33ff664b4c969aaeb1b90898e
Author: Ranjeet R <email address hidden>
Date: Tue Mar 8 16:32:13 2016 -0800

Fixes: API server: A slash is appended to vhost name for accessing rabbitmq

RabbitMQ URL has an extra / which fails RMQ connection

Change-Id: I6ce35dcf7b49221f65acef6cef516a29e31a5174
ClosesBug:1477814

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Review in progress for https://review.opencontrail.org/18572
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/18571
Committed: http://github.org/Juniper/contrail-controller/commit/2d6a398baa4e3e36711a05b87173ad0288d2d70a
Submitter: Zuul
Branch: R2.21.x

commit 2d6a398baa4e3e36711a05b87173ad0288d2d70a
Author: Ignatious Johnson Christopher <email address hidden>
Date: Mon Mar 21 21:29:32 2016 +0000

Removing distribute from test-requirements, becaause distribute is deprecated
in favour of setuptools

python-keystoneclient latest has moved middleware to keystonemiddleware.
fixing it in unit-test and code. Also detecting failure of .venv building
is broken so invoke testr run with pipefail.

Closes-Bug: 1559867

Fixes: API server: A slash is appended to vhost name for accessing rabbitmq
RabbitMQ URL has an extra / which fails RMQ connection
Closes-Bug:1477814

Change-Id: I8a82905ff960cf73ec8f4d6702ae8d2b087adbfa

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

Reviewed: https://review.opencontrail.org/18573
Committed: http://github.org/Juniper/contrail-controller/commit/32f8880e4e034fec50215ca8bc4498900cc4a638
Submitter: Zuul
Branch: R2.20

commit 32f8880e4e034fec50215ca8bc4498900cc4a638
Author: Ignatious Johnson Christopher <email address hidden>
Date: Mon Mar 21 21:43:35 2016 +0000

Removing distribute from test-requirements, becaause distribute is deprecated
in favour of setuptools

python-keystoneclient latest has moved middleware to keystonemiddleware.
fixing it in unit-test and code. Also detecting failure of .venv building
is broken so invoke testr run with pipefail.

Closes-Bug: 1559867

Fixes: API server: A slash is appended to vhost name for accessing rabbitmq
RabbitMQ URL has an extra / which fails RMQ connection
Closes-Bug:1477814

Change-Id: I8a82905ff960cf73ec8f4d6702ae8d2b087adbfa

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

Reviewed: https://review.opencontrail.org/18572
Committed: http://github.org/Juniper/contrail-controller/commit/265c737a69ddbfa51465f6719f9039f5175ba9ee
Submitter: Zuul
Branch: R2.22.x

commit 265c737a69ddbfa51465f6719f9039f5175ba9ee
Author: Ignatious Johnson Christopher <email address hidden>
Date: Mon Mar 21 21:39:54 2016 +0000

Removing distribute from test-requirements, becaause distribute is deprecated
in favour of setuptools

python-keystoneclient latest has moved middleware to keystonemiddleware.
fixing it in unit-test and code. Also detecting failure of .venv building
is broken so invoke testr run with pipefail.

Closes-Bug: 1559867

Fixes: API server: A slash is appended to vhost name for accessing rabbitmq
RabbitMQ URL has an extra / which fails RMQ connection
Closes-Bug:1477814

Change-Id: I8a82905ff960cf73ec8f4d6702ae8d2b087adbfa

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.