RIBCL is broken with requests (2.11.0)

Bug #1613994 reported by Shivanand Tendulker
This bug affects 1 person
Affects Status Importance Assigned to Milestone
In Progress

Bug Description

With requests library 2.11.0, ribcl operations fails

Sample Program:-
import proliantutils.ilo.client as client
import proliantutils.ilo.ris as ris

obj = client.IloClient("", "Administrator", "12iso*help")

print 'get_host_power_status %(stat)s.' % obj.get_host_power_status()

Error o/p
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/opt/stack/proliantutils/proliantutils/ilo/client.py", line 70, in __init__
    self.model = self.ribcl.get_product_name()
  File "/opt/stack/proliantutils/proliantutils/ilo/ribcl.py", line 328, in get_product_name
  File "/opt/stack/proliantutils/proliantutils/ilo/ribcl.py", line 311, in _execute_command
    d = self._request_ilo(xml)
  File "/opt/stack/proliantutils/proliantutils/ilo/ribcl.py", line 124, in _request_ilo
    raise exception.IloConnectionError(e)
proliantutils.exception.IloConnectionError: Header value 182 must be of type str or bytes, not <type 'int'>

Requests library expects 'Content-length' value to be str or bytes type. but we pass it as int.

deray (debayan-ray)
Changed in ironic:
status: New → In Progress
Dmitry Tantsur (divius)
affects: ironic → proliantutils
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.