TypeError: do_indent() got an unexpected keyword argument 'indentfirst'

Bug #1976269 reported by Felipe Reyes
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Glance-Simplestreams-Sync Charm
Fix Committed
Undecided
Unassigned

Bug Description

Running glance-simplestream-sync on jammy fails with the following stacktrace:

2022-05-30 10:28:46 INFO unit.glance-simplestreams-sync/0.juju-log server.go:327 certificates:9: Loaded template from templates/identity.yaml
2022-05-30 10:28:46 INFO unit.glance-simplestreams-sync/0.juju-log server.go:327 certificates:9: Rendering from template: /etc/glance-simplestreams-sync/identity.yaml
2022-05-30 10:28:46 WARNING unit.glance-simplestreams-sync/0.certificates-relation-changed logger.go:60 Traceback (most recent call last):
2022-05-30 10:28:46 WARNING unit.glance-simplestreams-sync/0.certificates-relation-changed logger.go:60 File "/var/lib/juju/agents/unit-glance-simplestreams-sync-0/charm/hooks/certificates-relation-changed", line 436, in <module>
2022-05-30 10:28:46 WARNING unit.glance-simplestreams-sync/0.certificates-relation-changed logger.go:60 hooks.execute(sys.argv)
2022-05-30 10:28:46 WARNING unit.glance-simplestreams-sync/0.certificates-relation-changed logger.go:60 File "/var/lib/juju/agents/unit-glance-simplestreams-sync-0/charm/charmhelpers/core/hookenv.py", line 963, in execute
2022-05-30 10:28:46 WARNING unit.glance-simplestreams-sync/0.certificates-relation-changed logger.go:60 self._hooks[hook_name]()
2022-05-30 10:28:46 WARNING unit.glance-simplestreams-sync/0.certificates-relation-changed logger.go:60 File "/var/lib/juju/agents/unit-glance-simplestreams-sync-0/charm/hooks/certificates-relation-changed", line 417, in certs_changed
2022-05-30 10:28:46 WARNING unit.glance-simplestreams-sync/0.certificates-relation-changed logger.go:60 configs.write_all()
2022-05-30 10:28:46 WARNING unit.glance-simplestreams-sync/0.certificates-relation-changed logger.go:60 File "/var/lib/juju/agents/unit-glance-simplestreams-sync-0/charm/charmhelpers/contrib/openstack/templating.py", line 325, in write_all
2022-05-30 10:28:46 WARNING unit.glance-simplestreams-sync/0.certificates-relation-changed logger.go:60 self.write(k)
2022-05-30 10:28:46 WARNING unit.glance-simplestreams-sync/0.certificates-relation-changed logger.go:60 File "/var/lib/juju/agents/unit-glance-simplestreams-sync-0/charm/charmhelpers/contrib/openstack/templating.py", line 313, in write
2022-05-30 10:28:46 WARNING unit.glance-simplestreams-sync/0.certificates-relation-changed logger.go:60 _out = self.render(config_file).encode('UTF-8')
2022-05-30 10:28:46 WARNING unit.glance-simplestreams-sync/0.certificates-relation-changed logger.go:60 File "/var/lib/juju/agents/unit-glance-simplestreams-sync-0/charm/charmhelpers/contrib/openstack/templating.py", line 303, in render
2022-05-30 10:28:46 WARNING unit.glance-simplestreams-sync/0.certificates-relation-changed logger.go:60 return template.render(ctxt)
2022-05-30 10:28:46 WARNING unit.glance-simplestreams-sync/0.certificates-relation-changed logger.go:60 File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 1291, in render
2022-05-30 10:28:46 WARNING unit.glance-simplestreams-sync/0.certificates-relation-changed logger.go:60 self.environment.handle_exception()
2022-05-30 10:28:46 WARNING unit.glance-simplestreams-sync/0.certificates-relation-changed logger.go:60 File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 925, in handle_exception
2022-05-30 10:28:46 WARNING unit.glance-simplestreams-sync/0.certificates-relation-changed logger.go:60 raise rewrite_traceback_stack(source=source)
2022-05-30 10:28:46 WARNING unit.glance-simplestreams-sync/0.certificates-relation-changed logger.go:60 File "templates/identity.yaml", line 18, in top-level template code
2022-05-30 10:28:46 WARNING unit.glance-simplestreams-sync/0.certificates-relation-changed logger.go:60 {{ ssl_ca | indent( width=2, indentfirst=True) }}
2022-05-30 10:28:46 WARNING unit.glance-simplestreams-sync/0.certificates-relation-changed logger.go:60 TypeError: do_indent() got an unexpected keyword argument 'indentfirst'

Seen at this ci job: https://openstack-ci-reports.ubuntu.com/artifacts/0c1/843811/1/check/jammy-yoga/0c10aed/

Revision history for this message
Felipe Reyes (freyes) wrote :
Changed in charm-glance-simplestreams-sync:
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.