doc build is broken with pillow>=10.0.0
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
New
|
Undecided
|
Unassigned |
Bug Description
Description
===========
Since pillow in upper-constraints was bumped to >=10.0.0, doc build (tox -e docs) consistently fails with the following error.
```
$ tox -e docs
...
done
WARNING: dot code 'seqdiag {\n API; Conductor; Scheduler; Source; Destination;\n edge_length = 300;\n span_height = 15;\n activation = none;\n default_note_color = white;\n\n API ->> Conductor [label = "cast", note = "resize_
WARNING: dot code 'seqdiag {\n API; Conductor; Source;\n edge_length = 300;\n span_height = 15;\n activation = none;\n default_note_color = white;\n\n API ->> Conductor [label = "cast (or call if deleting)", note = "confirm_
WARNING: dot code 'seqdiag {\n API; Conductor; Source; Destination;\n edge_length = 300;\n span_height = 15;\n activation = none;\n default_note_color = white;\n\n API ->> Conductor [label = "cast", note = "revert_
WARNING: dot code 'seqdiag {\n API; Conductor; Scheduler; Source; Destination;\n edge_length = 300;\n span_height = 15;\n activation = none;\n default_note_color = white;\n\n API -> Conductor [label = "cast", note = "resize_
WARNING: dot code 'seqdiag {\n API; Source;\n edge_length = 300;\n span_height = 15;\n activation = none;\n default_note_color = white;\n\n API -> Source [label = "cast (or call if deleting)", note = "confirm_
WARNING: dot code 'seqdiag {\n API; Source; Destination;\n edge_length = 300;\n span_height = 15;\n activation = none;\n default_note_color = white;\n\n API -> Destination [label = "cast", note = "revert_resize"];\n Source <- Destination [label = "cast", leftnote = "finish_
WARNING: dot code 'actdiag {\n build-spec -> send-spec -> send-reqs -> query -> return-rps ->\n create -> filter -> claim -> return-hosts -> send-hosts;\n\n lane conductor {\n label = "Conductor";\n build-spec [label = "Build request spec object", height = 38];\n send-spec [label = "Submit request spec to scheduler", height = 38];\n send-hosts [label = "Submit list of suitable hosts to target cell", height = 51];\n }\n\n lane scheduler {\n label = "Scheduler";\n send-reqs [label = "Submit resource requirements to placement", height = 64];\n create [label = "Create a HostState object for each RP returned from Placement", height = 64];\n filter [label = "Filter and weigh results", height = 38];\n return-hosts [label = "Return a list of selected host & alternates, along with their allocations, to the conductor", height = 89];\n }\n\n lane placement {\n label = "Placement";\n query [label = "Query to determine the RPs representing compute nodes to satisfy requirements", height = 64];\n return-rps [label = "Return list of resource providers and their corresponding allocations to scheduler", height = 89];\n claim [label = "Create allocations against selected compute node", height = 64];\n }\n}': 'ImageDraw' object has no attribute 'textsize'
Sphinx parallel build error:
AssertionError: len(context) = 1
```
pillow 10.0.0 removed the deprecated interfaces including textsize which is seen in the error.
https:/
Steps to reproduce
==================
- Build documentation using the current master
$ tox -e docs
Expected result
===============
Build completes without error
Actual result
=============
Build fails with the error described above
Environment
===========
N/A
Logs & Configs
==============
N/A
We can probably attempt to fix https:/ /opendev. org/openstack/ nova/src/ branch/ master/ doc/source/ conf.py# L260 . Note that the same problem was reported in upstream blockdiag[1].
[1] https:/ /github. com/blockdiag/ blockdiag/ issues/ 178
One important note is that blockdiag looks unmaintained[2]. NO PR has been merged since 2021. We probably have to even replace it by something else.
[2] https:/ /github. com/blockdiag/ blockdiag/ issues/ 177