woodpecker fails to deploy on baremetal
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Woodpecker Charm |
Triaged
|
Medium
|
Unassigned |
Bug Description
This is the traceback I'm getting right after doing
`juju deploy cs:~openstack-
Tried leaving out bindings and deploying on other machines, the result is the same.
2021-03-29 07:06:23 INFO juju-log Installing ['ceph-common', 'fio'] with options: ['--option=
2021-03-29 07:06:23 DEBUG config-changed Reading package lists...
2021-03-29 07:06:23 DEBUG config-changed Building dependency tree...
2021-03-29 07:06:23 DEBUG config-changed Reading state information...
2021-03-29 07:06:24 DEBUG config-changed fio is already the newest version (3.1-1).
2021-03-29 07:06:24 DEBUG config-changed ceph-common is already the newest version (12.2.12-
2021-03-29 07:06:24 DEBUG config-changed The following packages were automatically installed and are no longer required:
2021-03-29 07:06:24 DEBUG config-changed libauparse0 libfreetype6
2021-03-29 07:06:24 DEBUG config-changed Use 'apt autoremove' to remove them.
2021-03-29 07:06:24 DEBUG config-changed 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2021-03-29 07:06:24 INFO juju-log Updating status
2021-03-29 07:06:24 DEBUG config-changed lxc
2021-03-29 07:06:24 WARNING juju-log No snap resource available, install blocked, deferring event: CephBenchmarkin
2021-03-29 07:06:24 DEBUG juju-log Found event: CephBenchmarkin
2021-03-29 07:06:24 DEBUG juju-log Deferring CephBenchmarkin
2021-03-29 07:06:24 DEBUG juju-log Emitting Juju event config_changed.
2021-03-29 07:06:24 INFO juju-log Setting swift key
2021-03-29 07:06:24 ERROR juju-log Uncaught exception while in charm code:
Traceback (most recent call last):
File "./src/charm.py", line 964, in <module>
main(
File "/var/lib/
_emit_
File "/var/lib/
event_
File "/var/lib/
framework.
File "/var/lib/
self.
File "/var/lib/
custom_
File "./src/charm.py", line 385, in render_config
self.
File "./src/charm.py", line 676, in get_swift_key
self.
File "/var/lib/
self.
AttributeError: 'NoneType' object has no attribute 'data'
2021-03-29 07:06:24 ERROR juju.worker.
idk if this is enough of a fix, but adding the below patch at least makes the charm deployable.
--- interface_ woodpecker_ peers.py 2021-03-31 11:47:19.170943605 +0000 woodpecker_ peers.py. patched 2021-03-31 12:03:46.441972755 +0000
+++ interface_
@@ -47,7 +47,8 @@
def set_swift_key(self, password):
logging. info("Setting swift key") rel.data[ self.peers_ rel.app] [self.SWIFT_ KEY] = password rel.data[ self.peers_ rel.app] [self.SWIFT_ KEY] = password
- self.peers_
+ if self.peers_rel:
+ self.peers_
def set_swift_ user_created( self, user):
logging. info("Setting swift user created")