#integration #pomba #integration #log

Geora Barsky

Hello Integration team,

I was trying to run robot scripts for init and instantiation  ./demo-k8s.sh  init  or ./demo-k8s.sh  instantiateVFW

and it was failing every time in the step of getting OpenStack credentials: 

This is from robot output.xml

<msg level="TRACE" timestamp="20180926 15:21:46.751">Arguments: [ "echo -n a1bbe8dfc3c184b7d4ae3adce7170158 | xxd -r -p | openssl enc -aes-128-ecb -d -nopad -nosalt -K aa3871669d893c7fb8abbcda31b88b4f | tr -d '\x08'" ]</msg>

<msg level="TRACE" timestamp="20180926 15:21:46.766">Return: 'georab\n\n\n\n\n\n\n\n\n'</msg>

<msg level="INFO" timestamp="20180926 15:21:46.766">${DECRYPTED_OPENSTACK_PASSWORD} = georab </msg>

<status starttime="20180926 15:21:46.751" endtime="20180926 15:21:46.766" status="PASS"/>
<msg level="TRACE" timestamp="20180926 15:21:46.781">Arguments: [ '{\n "auth": {\n "tenantId" : "1ee88fe5d2364046818dc901090a0602",\n "passwordCredentials": {\n "username": "georab",\n "password": "georab\n\n\n\n\n\n\n\n\n"\n }\n }\n}\n' ]</msg>
<msg level="FAIL" timestamp="20180926 15:21:46.782">ValueError: Invalid control character at: line 6 column 26 (char 149)</msg>
<msg level="DEBUG" timestamp="20180926 15:21:46.782">Traceback (most recent call last): File "/var/opt/OpenECOMP_ETE/robot/library/RequestsLibrary/RequestsKeywords.py", line 307, in to_json json_ = json.loads(content) File "/usr/lib/python2.7/json/__init__.py", line 339, in loads return _default_decoder.decode(s) File "/usr/lib/python2.7/json/decoder.py", line 364, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/lib/python2.7/json/decoder.py", line 380, in raw_decode obj, end = self.scan_once(s, idx)</msg>

As you can see, the returned password after decryption has extra "\n\n\n" at the end

I modified keystone_interface.robot , "Get Openstack Credentials", appending deletion '\n'   :

 ${DECRYPTED_OPENSTACK_PASSWORD}=   Run    echo -n ${GLOBAL_INJECTED_OPENSTACK_API_KEY} | xxd -r -p | openssl enc -aes-128-ecb -d -nopad -nosalt -K aa3871669d893c7fb8abbcda31b88b4f | tr -d '\x08' | tr -d '\n'

and it solved the problem.

Just wanted to know if it is known issue or there is something specific for my environment ?


Join onap-discuss@lists.onap.org to automatically receive all group messages.