SM API needs to encode/decode when communicate with SM
Bug #1976515 reported by
Bin Qian
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
Medium
|
Bin Qian |
Bug Description
SM API communicate to SM via socket. In python2 the str is automatically encoded to/decoded from ascii. Python3 requires explicitly encode/decode. This fails the communication between SM API and SM.
step to reporduce
-----------------
install a Debian StarlingX, try to unlock controller-1
Expected Behavior
-----------------
host unlocked
Actual Behavior
-----------------
Nothing happens, mtcAgent log 500 error from SM API request
Changed in starlingx: | |
status: | Invalid → In Progress |
Changed in starlingx: | |
importance: | Undecided → Medium |
assignee: | nobody → Bin Qian (bqian20) |
tags: | added: stx.7.0 stx.ha |
To post a comment you must log in.
Fix proposed to branch: master /review. opendev. org/c/starlingx /ha/+/844302
Review: https:/