InvalidRequestException: (Invalid byte for ascii: -61) is returned by cassandra for collector

Bug #1433021 reported by Numan Siddique
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R2.1
Fix Committed
Undecided
Numan Siddique
R2.20
Fix Committed
Undecided
Numan Siddique
Trunk
Fix Committed
Undecided
Numan Siddique
OpenContrail
In Progress
Undecided
Numan Siddique

Bug Description

InvalidRequestException: (Invalid byte for ascii: -61) is returned by cassandra when collector tries to add db entries and if the data has unicode characters.

The issue is seen when I try to create any resource with unicode characters
eg. neutron net-create netéù

Tags: analytics
tags: added: analytics
Changed in opencontrail:
assignee: nobody → Numan Siddique (numansiddique)
status: New → In Progress
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : master

Review in progress for https://review.opencontrail.org/8433
Submitter: Numan Siddique (<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/8433
Submitter: Numan Siddique (<email address hidden>)

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

Reviewed: https://review.opencontrail.org/8433
Committed: http://github.org/Juniper/contrail-controller/commit/358765ed4e89430414284185f0acd4f149aeba73
Submitter: Zuul
Branch: master

commit 358765ed4e89430414284185f0acd4f149aeba73
Author: Numan Siddique <email address hidden>
Date: Wed Mar 18 15:42:02 2015 +0530

Update the collector column families from Ascii to UTF8

Cassandra returns InvalidRequestException when collector
tries to add a column and if the column data contains
unicode characters.

The issue is seen when any resource is created or deleted and
the resource name has unicode characters.

This patch fixes the issue by changing the collector column
family validation types from AsciiType to UTF8Type.
The patch also takes care of upgrading the existing column families
if they exist in the db.

Change-Id: I54ae9e756f7f67ce684ef9e3ba557038bc8f8731
Closes-bug: #1433021

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

Review in progress for https://review.opencontrail.org/12341
Submitter: Numan Siddique (<email address hidden>)

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

Review in progress for https://review.opencontrail.org/12342
Submitter: Numan Siddique (<email address hidden>)

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

Reviewed: https://review.opencontrail.org/12341
Committed: http://github.org/Juniper/contrail-controller/commit/1be13eb4b1c22fd1ccbb6966bc854b01a2529409
Submitter: Zuul
Branch: R2.20

commit 1be13eb4b1c22fd1ccbb6966bc854b01a2529409
Author: Numan Siddique <email address hidden>
Date: Wed Mar 18 15:42:02 2015 +0530

Update the collector column families from Ascii to UTF8

Cassandra returns InvalidRequestException when collector
tries to add a column and if the column data contains
unicode characters.

The issue is seen when any resource is created or deleted and
the resource name has unicode characters.

This patch fixes the issue by changing the collector column
family validation types from AsciiType to UTF8Type.
The patch also takes care of upgrading the existing column families
if they exist in the db.

(cherry-picked from commit 358765ed4e89430414284185f0acd4f149aeba73)

Change-Id: I54ae9e756f7f67ce684ef9e3ba557038bc8f8731
Closes-bug: #1433021

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

Reviewed: https://review.opencontrail.org/12342
Committed: http://github.org/Juniper/contrail-controller/commit/45e2ef0a8997cae84db2cf218ad2f46370972dad
Submitter: Zuul
Branch: R2.1

commit 45e2ef0a8997cae84db2cf218ad2f46370972dad
Author: Numan Siddique <email address hidden>
Date: Wed Mar 18 15:42:02 2015 +0530

Update the collector column families from Ascii to UTF8

Cassandra returns InvalidRequestException when collector
tries to add a column and if the column data contains
unicode characters.

The issue is seen when any resource is created or deleted and
the resource name has unicode characters.

This patch fixes the issue by changing the collector column
family validation types from AsciiType to UTF8Type.
The patch also takes care of upgrading the existing column families
if they exist in the db.

(cherry-picked from commit 358765ed4e89430414284185f0acd4f149aeba73)

Change-Id: I54ae9e756f7f67ce684ef9e3ba557038bc8f8731
Closes-bug: #1433021

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>)

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.