Hosts With pf9-glance Role Failing To Converge With Error "inconsistent use of tabs and spaces in indentation

Problem

Hosts with pf9-glance role fail to converge. The following error is observed in the glance-api.log:

Copy

Environment

  • Platform9 Managed OpenStack - v5.0 and below
  • Ceph
  • Glance

Cause

Use of tabs and spaces for indentation in the rbd.py file.

Resolution

  1. Add the following environment variables on the Glance host.
Copy

2. Install autopep8 using pip.

Copy

3. Correct the formatting issues by running the following command.

Copy

4. Restart the pf9-glance-api service.

Copy
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard