which was _logger.debug('Making authentication request to %s', token_url)
so I wanted to adjust it to: _logger.debug('Making authentication request to %s with body= %s', token_url, str(body))
but mistyped and wrote: _logger.debug('Making authentication request to %s with body= $s', token_url, str(body))
that is why I had this in the error log:
Traceback (most recent call last):
File "/usr/lib64/python2.7/logging/__init__.py", line 859, in emit
msg = self.format(record)
File "/usr/lib64/python2.7/logging/__init__.py", line 732, in format
return fmt.format(record)
File "/usr/lib64/python2.7/logging/__init__.py", line 471, in format
record.message = record.getMessage()
File "/usr/lib64/python2.7/logging/__init__.py", line 335, in getMessage
msg = msg % self.args
TypeError: not all arguments converted during string formatting
Logged from file base.py, line 172
but after correcting it I have some more info in the log now - instead of the trace above I now have the body logged:
DEBUG: keystoneclient.auth.identity.v3.base Making authentication request to https://host:5000/v3/auth/tokens with body= {'auth': {'scope': {'project': {'domain': {'id': 'default'}, 'name': 'Project1'}}, 'identity': {'token': {'id': '935259242f3c46c6853863394b9882f6'}, 'methods': ['token']}}}
where 935259242f3c46c6853863394b9882f6 is the scoped token.
One more update. Since I wanted to debug the process I changed the line 172 in
/usr/lib/ python2. 7/site- packages/ keystoneclient/ auth/identity/ v3/base. py
which was
_logger. debug(' Making authentication request to %s', token_url)
_logger. debug(' Making authentication request to %s with body= %s', token_url, str(body))
_logger. debug(' Making authentication request to %s with body= $s', token_url, str(body))
so I wanted to adjust it to:
but mistyped and wrote:
that is why I had this in the error log:
Traceback (most recent call last): python2. 7/logging/ __init_ _.py", line 859, in emit python2. 7/logging/ __init_ _.py", line 732, in format python2. 7/logging/ __init_ _.py", line 471, in format python2. 7/logging/ __init_ _.py", line 335, in getMessage
File "/usr/lib64/
msg = self.format(record)
File "/usr/lib64/
return fmt.format(record)
File "/usr/lib64/
record.message = record.getMessage()
File "/usr/lib64/
msg = msg % self.args
TypeError: not all arguments converted during string formatting
Logged from file base.py, line 172
but after correcting it I have some more info in the log now - instead of the trace above I now have the body logged:
DEBUG: keystoneclient. auth.identity. v3.base Making authentication request to https:/ /host:5000/ v3/auth/ tokens with body= {'auth': {'scope': {'project': {'domain': {'id': 'default'}, 'name': 'Project1'}}, 'identity': {'token': {'id': '935259242f3c46 c6853863394b988 2f6'}, 'methods': ['token']}}}
where 935259242f3c46c 6853863394b9882 f6 is the scoped token.
Sorry for the inconvenience.