Managed OpenStack
Latest
Frequently Asked Questions
Solution
How To
Internal Only
Templates
Powered By

Title
Message
Create new category
What is the title of your new category?
Edit page index title
What is the title of the page index?
Edit category
What is the new title of your category?
Edit link
What is the new title and URL of your link?
Hosts With pf9-glance Role Failing To Converge With Error "inconsistent use of tabs and spaces in indentation
Copy Markdown
Open in ChatGPT
Open in Claude
Problem
Hosts with pf9-glance role fail to converge. The following error is observed in the glance-api.log:
ERROR stevedore.extension [-] Could not load 'cinder': inconsistent use of tabs and spaces in indentation (rbd.py, line 704): File "/opt/pf9/glance/lib/python3.6/site-packages/rbd.py", line 704Environment
- Platform9 Managed OpenStack - v5.0 and below
- Ceph
- Glance
Cause
Use of tabs and spaces for indentation in the rbd.py file.
Resolution
- Add the following environment variables on the Glance host.
LD_LIBRARY_PATH="/opt/pf9/python/pf9-lib:$LD_LIBRARY_PATH"LD_LIBRARY_PATH="/opt/pf9/glance/lib:${LD_LIBRARY_PATH}"export LD_LIBRARY_PATHPYTHONPATH="/opt/pf9/python/lib/python3.6:${PYTHONPATH}"PYTHONPATH="/opt/pf9/glance/lib/python3.6/site-packages:${PYTHONPATH}"export PYTHONPATH2. Install autopep8 using pip.
xxxxxxxxxx~$ /opt/pf9/glance/bin/python /opt/pf9/glance/bin/pip install autopep8==1.5.13. Correct the formatting issues by running the following command.
~$ /opt/pf9/python/bin/python /opt/pf9/python/lib/python3.6/site-packages/autopep8.py -i /opt/pf9/glance/lib/python3.6/site-packages/rbd.py4. Restart the pf9-glance-api service.
xxxxxxxxxx~$ sudo service pf9-glance-api restart~$ service pf9-glance-api statusVariableType to search · ESC to discard
GlossaryType to search · ESC to discard
InsertType to search · ESC to discard
No matches
Last updated on
Was this page helpful?
Next to read:
User ID Displayed Instead of User Name For SSO UsersDiscard Changes
Do you want to discard your current changes and overwrite with the template?
Archive Synced Block
Message
Create new Template
What is this template's title?
Delete Template
Message