Post by jameslundberg on Jun 25, 2022 23:19:14 GMT
I am having trouble with running redfishMockupCreate.py against the local server. It appears to be transmitting with https instead of http but I did not enable security with -s.
Anybody recognize this problem? Is it because of the urllib3 or chardet versions? Which versions of those libaries are compiable?
$ python3 emulator.py
/usr/local/lib/python3.8/dist-packages/requests/__init__.py:109: RequestsDependencyWarning: urllib3 (1.26.9) or chardet (2.0.3)/charset_normalizer (2.1.0) doesn't match a supported version!
warnings.warn(
INFO:root:Mockup folders
['Redfish']
* Redfish endpoint at localhost:5000
* Using static mockup
INFO:root:Init ResourceDictionary.
INFO:root:Loading Redfish static resources
INFO:root:Init ResourceDictionary.
* Use HTTP
* Running in Redfish mode
* Serving Flask app 'g' (lazy loading)
* Environment: production
WARNING: This is a development server. Do not use it in a production deployment.
Use a production WSGI server instead.
* Debug mode: off
INFO:werkzeug: * Running on all addresses (0.0.0.0)
WARNING: This is a development server. Do not use it in a production deployment.
* Running on http://127.0.0.1:5000
* Running on 172.18.138.222:5000 (Press CTRL+C to quit)
ERROR:werkzeug:172.18.138.222 - - [25/Jun/2022 15:58:28] code 400, message Bad request syntax ('\x16\x03\x01\x02\x00\x01\x00\x01ü\x03\x03f³\x99gõ\xado%M¦5\x9eÄ:Ø\x7f{çR¿\x03a\x06dmøÆ5')
INFO:werkzeug:172.18.138.222 - - [25/Jun/2022 15:58:28] "üf³gõo%M¦5Ä:Ø{çR¿admøÆ5" HTTPStatus.BAD_REQUEST -
ERROR:werkzeug:172.18.138.222 - - [25/Jun/2022 15:58:29] code 400, message Bad request version ('Á\x1b>ðc\x15\x07ìL_ç¥ÍêÆ\x91\x02¼^aÆÊ\x0 b\x13\x02\x13\x03\x13\x01À,À0À+À/̨̩\x00£\x00\x9f\x00¢\x00\x9e̪À¯À\xadÀ$À(À')
....
This is the redfishMockupCreate command from another window
(redfish) jimlund@IBM-R912JTS2:~/redfish/mockup$ python3 redfishMockupCreate.py -u jimlund -p ***** -r 172.18.138.222:5000 -S -D /home/jimlund/redfish/mockup/build
Redfish Mockup Creator, Version 1.1.8
Address: 172.18.138.222:5000
Full Output Path: /home/jimlund/redfish/mockup/build
Description:
Starting mockup creation...
ERROR: Aborting; could not authenticate with the Redfish service:
Anybody recognize this problem? Is it because of the urllib3 or chardet versions? Which versions of those libaries are compiable?
$ python3 emulator.py
/usr/local/lib/python3.8/dist-packages/requests/__init__.py:109: RequestsDependencyWarning: urllib3 (1.26.9) or chardet (2.0.3)/charset_normalizer (2.1.0) doesn't match a supported version!
warnings.warn(
INFO:root:Mockup folders
['Redfish']
* Redfish endpoint at localhost:5000
* Using static mockup
INFO:root:Init ResourceDictionary.
INFO:root:Loading Redfish static resources
INFO:root:Init ResourceDictionary.
* Use HTTP
* Running in Redfish mode
* Serving Flask app 'g' (lazy loading)
* Environment: production
WARNING: This is a development server. Do not use it in a production deployment.
Use a production WSGI server instead.
* Debug mode: off
INFO:werkzeug: * Running on all addresses (0.0.0.0)
WARNING: This is a development server. Do not use it in a production deployment.
* Running on http://127.0.0.1:5000
* Running on 172.18.138.222:5000 (Press CTRL+C to quit)
ERROR:werkzeug:172.18.138.222 - - [25/Jun/2022 15:58:28] code 400, message Bad request syntax ('\x16\x03\x01\x02\x00\x01\x00\x01ü\x03\x03f³\x99gõ\xado%M¦5\x9eÄ:Ø\x7f{çR¿\x03a\x06dmøÆ5')
INFO:werkzeug:172.18.138.222 - - [25/Jun/2022 15:58:28] "üf³gõo%M¦5Ä:Ø{çR¿admøÆ5" HTTPStatus.BAD_REQUEST -
ERROR:werkzeug:172.18.138.222 - - [25/Jun/2022 15:58:29] code 400, message Bad request version ('Á\x1b>ðc\x15\x07ìL_ç¥ÍêÆ\x91\x02¼^aÆÊ\x0 b\x13\x02\x13\x03\x13\x01À,À0À+À/̨̩\x00£\x00\x9f\x00¢\x00\x9e̪À¯À\xadÀ$À(À')
....
This is the redfishMockupCreate command from another window
(redfish) jimlund@IBM-R912JTS2:~/redfish/mockup$ python3 redfishMockupCreate.py -u jimlund -p ***** -r 172.18.138.222:5000 -S -D /home/jimlund/redfish/mockup/build
Redfish Mockup Creator, Version 1.1.8
Address: 172.18.138.222:5000
Full Output Path: /home/jimlund/redfish/mockup/build
Description:
Starting mockup creation...
ERROR: Aborting; could not authenticate with the Redfish service: