Schema-error : routing-instance fails to reinitialize (which has unicode FQNAME)

Bug #1808132 reported by sureshkvl
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Fix Committed
Undecided
Unassigned
R3.2
Fix Committed
Undecided
Unassigned

Bug Description

In Contrail 3.2,

During the schema startup, routing instance(which has unicode chars in FQNAME) fails to reinitialize with below error.

Error in reinit routing instance default-domain:xxxxxxxxxxUNICODE CHARSxxxxxxxx: 'NoneType' object has no attribute 'items'

Root cause:
------------

schema-transformer sends the key(routing instance FQNAME) as unicode data type to get route target. But It receives the response as encoded(utf-8) key and value. Hence key doesnot match with the requested one.

1. schema(unicode key)
2. pycassa(unicode key)
3. pycassa(receives utf-8 encoded unicode key)
4. schema(receives utf-8 encoded unicode key)
 and it fails to match.

Proposed Fix:

In the config/common/vnc_cassandra.py,
convert the keys in to the utf-8 encoded form.

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

Review in progress for https://review.opencontrail.org/48191
Submitter: Jean-Philippe Braun (<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/48542
Submitter: Édouard Thuleau (<email address hidden>)

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

Review in progress for https://review.opencontrail.org/48543
Submitter: Édouard Thuleau (<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/48544
Submitter: Édouard Thuleau (<email address hidden>)

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

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

commit d7cad149c26325790f5f0dfb9059c8cb50452fe4
Author: Jean-Philippe Braun <email address hidden>
Date: Thu Dec 13 18:04:01 2018 +0100

vnc_cassandra: encode keys before calling pycassa

Closes-Bug: #1808132
Change-Id: I53c6cc08b6a00be54d7e0fdfbbe136e97abc89a4

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

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

commit 07729cef9793cba0e3f6541d56289878d6c4a612
Author: Jean-Philippe Braun <email address hidden>
Date: Thu Dec 13 18:04:01 2018 +0100

vnc_cassandra: encode keys before calling pycassa

Closes-Bug: #1808132
Change-Id: I53c6cc08b6a00be54d7e0fdfbbe136e97abc89a4
(cherry picked from commit d7cad149c26325790f5f0dfb9059c8cb50452fe4)

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

Reviewed: https://review.opencontrail.org/48542
Committed: http://github.com/Juniper/contrail-controller/commit/66a7b709f304d6178bc13e556b1d89609bc0d3d3
Submitter: Zuul v3 CI (<email address hidden>)
Branch: master

commit 66a7b709f304d6178bc13e556b1d89609bc0d3d3
Author: Jean-Philippe Braun <email address hidden>
Date: Thu Dec 13 18:04:01 2018 +0100

vnc_cassandra: encode keys before calling pycassa

Closes-Bug: #1808132
Change-Id: I53c6cc08b6a00be54d7e0fdfbbe136e97abc89a4
(cherry picked from commit d7cad149c26325790f5f0dfb9059c8cb50452fe4)

Changed in juniperopenstack:
status: New → Fix Committed
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/48543
Committed: http://github.com/Juniper/contrail-controller/commit/87ba14bb55669df4bbba225af9ad9698ace36e55
Submitter: Zuul v3 CI (<email address hidden>)
Branch: R5.0

commit 87ba14bb55669df4bbba225af9ad9698ace36e55
Author: Jean-Philippe Braun <email address hidden>
Date: Thu Dec 13 18:04:01 2018 +0100

vnc_cassandra: encode keys before calling pycassa

Closes-Bug: #1808132
Change-Id: I53c6cc08b6a00be54d7e0fdfbbe136e97abc89a4
(cherry picked from commit d7cad149c26325790f5f0dfb9059c8cb50452fe4)

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.