on python if ctx request id is a str  request id startswith b req fails with a typeerror python req x  startswith b req typeerror  startswith first arg must be str or a tuple of str  not bytes you can try by modifying generate request id of oslo context context py  of  tox py virtual environment  to return a string 