Comment 0 for bug 1658753

Revision history for this message
Vinoth Kannan Ganapathy (vganapathy) wrote : heat test cases failed in the case of SSL enabled

Heat test case failed in the SSL enabled cluster, need a fix in the test infra

resp undefined
self = <heatclient.common.http.HTTPClient object>
self._http_request = <bound method HTTPClient._http_request of <heatclient.common.http.HTTPClient object>>
url = '/stacks?'
method = 'GET'
kwargs = {'headers': {'Accept': 'application/json', 'Content-Type': 'application/json'}}

 /usr/lib/python2.7/dist-packages/heatclient/common/http.py in _http_request(self=<heatclient.common.http.HTTPClient object>, url='/stacks?', method='GET', **kwargs={'headers': {'Accept': 'application/json', 'Content-Type': 'application/json', 'User-Agent': 'python-heatcl
ient', 'X-Auth-Token': u'b8728946dc124ad88baa2396c36f9ed8'}})
  216 'option': '--include-password',
  217 'var': 'HEAT_INCLUDE_PASSWORD=1',
  218 'content': resp.content
  219 })
  220 elif 400 <= resp.status_code < 600:
resp = <Response [401]>
resp.content = 'Authentication required'
<class 'heatclient.exc.HTTPUnauthorized'>: ERROR: Authentication failed. Please try again with option --include-password or export HEAT_INCLUDE_PASSWORD=1
Authentication required
    __class__ = <class 'heatclient.exc.HTTPUnauthorized'>
    __delattr__ = <method-wrapper '__delattr__' of HTTPUnauthorized object>
    __dict__ = {'error': {'error': {'message': u'Authentication failed. Please try again with o...HEAT_INCLUDE_PASSWORD=1\nAuthentication required'}}, 'message': u'Authentication failed. Please try again with o...HEAT_INCLUDE_PASSWORD=1\nAuthentication required'}
    __doc__ = None
    __format__ = <built-in method __format__ of HTTPUnauthorized object>
    __getattribute__ = <method-wrapper '__getattribute__' of HTTPUnauthorized object>
    __getitem__ = <method-wrapper '__getitem__' of HTTPUnauthorized object>
    __getslice__ = <method-wrapper '__getslice__' of HTTPUnauthorized object>
    __hash__ = <method-wrapper '__hash__' of HTTPUnauthorized object>
    __init__ = <bound method HTTPUnauthorized.__init__ of HTTPUnauthorized()>
    __module__ = 'heatclient.exc'
    __new__ = <built-in method __new__ of type object>
    __reduce__ = <built-in method __reduce__ of HTTPUnauthorized object>
    __reduce_ex__ = <built-in method __reduce_ex__ of HTTPUnauthorized object>
    __repr__ = <method-wrapper '__repr__' of HTTPUnauthorized object>
    __setattr__ = <method-wrapper '__setattr__' of HTTPUnauthorized object>
    __setstate__ = <built-in method __setstate__ of HTTPUnauthorized object>
    __sizeof__ = <built-in method __sizeof__ of HTTPUnauthorized object>
    __str__ = <bound method HTTPUnauthorized.__str__ of HTTPUnauthorized()>
    __subclasshook__ = <built-in method __subclasshook__ of type object>
    __unicode__ = <built-in method __unicode__ of HTTPUnauthorized object>
    __weakref__ = None
    args = ()
    code = 401
    error = {'error': {'message': u'Authentication failed. Please try again with o...HEAT_INCLUDE_PASSWORD=1\nAuthentication required'}}
    message = u'Authentication failed. Please try again with o...HEAT_INCLUDE_PASSWORD=1\nAuthentication required'