Handle reception of non-ascii characters in sandesh message in contrail-alarm-gen
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Juniper Openstack | Status tracked in Trunk | |||||
R3.0.3.x |
Fix Committed
|
Undecided
|
Anish Mehta | |||
R3.1 |
Fix Committed
|
High
|
Anish Mehta | |||
R3.2 |
Fix Committed
|
Undecided
|
Anish Mehta | |||
Trunk |
Fix Committed
|
High
|
Anish Mehta |
Bug Description
when non-ascii chars are received, alarm-gen throws exception and restarts the process, we need to handle it more gracefully by catching the exception and ignoring such messages. The appropriate diff should be
rajreddy@
323c323,328
< snhdict = xmltodict.
---
> try:
> snhdict = xmltodict.
> except:
> self._logger.
> continue
>
Review in progress for https:/ /review. opencontrail. org/26727
Submitter: Anish Mehta (<email address hidden>)