TypeError when calling render_with_interfaces
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Tempest Charm (Deprecated) |
Invalid
|
Undecided
|
Unassigned | ||
charms.openstack |
Fix Released
|
High
|
Liam Young |
Bug Description
Rebuilding the Barbican charm and deploying it results in an Exception when the charm renders its config. This is also true of AODH and probably any other charm that used render_
This issue has appeared since https:/
The issue appears to be that charms have created child classes of OpenStackRelati
Example stack trace is:
2016-09-15 11:34:08 INFO shared-
2016-09-15 11:34:08 INFO shared-
2016-09-15 11:34:08 INFO shared-
2016-09-15 11:34:08 INFO shared-
2016-09-15 11:34:08 INFO shared-
2016-09-15 11:34:08 INFO shared-
2016-09-15 11:34:08 INFO shared-
2016-09-15 11:34:08 INFO shared-
2016-09-15 11:34:08 INFO shared-
2016-09-15 11:34:08 INFO shared-
2016-09-15 11:34:08 INFO shared-
2016-09-15 11:34:08 INFO shared-
2016-09-15 11:34:08 INFO shared-
2016-09-15 11:34:08 INFO shared-
2016-09-15 11:34:08 INFO shared-
2016-09-15 11:34:08 INFO shared-
2016-09-15 11:34:08 INFO shared-
2016-09-15 11:34:08 INFO shared-
2016-09-15 11:34:08 ERROR juju.worker.
Changed in charms.openstack: | |
status: | New → Confirmed |
importance: | Undecided → High |
assignee: | nobody → Liam Young (gnuoy) |
Changed in charm-tempest: | |
status: | New → Invalid |
Reviewed: https:/ /review. openstack. org/370793 /git.openstack. org/cgit/ openstack/ charms. openstack/ commit/ ?id=832e0b3b873 f5d2f4d1ce55557 f849264f02d1c7
Committed: https:/
Submitter: Jenkins
Branch: master
commit 832e0b3b873f5d2 f4d1ce55557f849 264f02d1c7
Author: Liam Young <email address hidden>
Date: Thu Sep 15 13:00:08 2016 +0000
Fix TypeError when calling render_ with_interfaces
The issue appears to be that charms have created child classes of lationAdapter or OpenStackAPIRel ationAdapters to implement instance' keyword arg in their init method. So when with_interfaces calls the adapter class with instance= self' it explodes.
OpenStackRe
bespoke relation adapters. These child classes do not have the
'charm_
render_
'charm_
This issue wat introduced in https:/ /review. openstack. org/#/c/ 366776/
Change-Id: I50e0dfcb37b26a 86ead6e2318e945 d7efa0875fc
Closes-Bug: #1623917