charms.openstack should fail gracefully when release_pkg is unset
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
charms.openstack |
Fix Committed
|
High
|
Linda Guo |
Bug Description
Generated a freenas Cinder storage plugin charm for an iscsi backend by:
$cookiecutter https:/
Charm install failed, because in lib/charm/
charms_openstack should fail gracefully when release_pkg is unset and provide more helpful debug info
-------
2020-11-17 03:30:31 WARNING install Traceback (most recent call last):
2020-11-17 03:30:31 WARNING install File "/var/lib/
2020-11-17 03:30:31 WARNING install main()
2020-11-17 03:30:31 WARNING install File "/var/lib/
2020-11-17 03:30:31 WARNING install bus.dispatch(
2020-11-17 03:30:31 WARNING install File "/var/lib/
2020-11-17 03:30:31 WARNING install _invoke(
2020-11-17 03:30:31 WARNING install File "/var/lib/
2020-11-17 03:30:31 WARNING install handler.invoke()
2020-11-17 03:30:31 WARNING install File "/var/lib/
2020-11-17 03:30:31 WARNING install self._action(*args)
2020-11-17 03:30:31 WARNING install File "/var/lib/
2020-11-17 03:30:31 WARNING install with charm.provide_
2020-11-17 03:30:31 WARNING install File "/var/lib/
2020-11-17 03:30:31 WARNING install return BaseOpenStackCh
2020-11-17 03:30:31 WARNING install File "/var/lib/
2020-11-17 03:30:31 WARNING install release = _release_
2020-11-17 03:30:31 WARNING install File "/var/lib/
2020-11-17 03:30:31 WARNING install apt_cache_
2020-11-17 03:30:31 WARNING install File "/var/lib/
2020-11-17 03:30:31 WARNING install pkg = cache[package]
2020-11-17 03:30:31 WARNING install File "/var/lib/
2020-11-17 03:30:31 WARNING install apt_result = self._apt_
2020-11-17 03:30:31 WARNING install File "/var/lib/
2020-11-17 03:30:31 WARNING install universal_
2020-11-17 03:30:31 WARNING install File "/usr/lib/
2020-11-17 03:30:31 WARNING install **kwargs).stdout
2020-11-17 03:30:31 WARNING install File "/usr/lib/
2020-11-17 03:30:31 WARNING install with Popen(*popenargs, **kwargs) as process:
2020-11-17 03:30:31 WARNING install File "/usr/lib/
2020-11-17 03:30:31 WARNING install restore_signals, start_new_session)
2020-11-17 03:30:31 WARNING install File "/usr/lib/
2020-11-17 03:30:31 WARNING install restore_signals, start_new_session, preexec_fn)
2020-11-17 03:30:31 WARNING install TypeError: Can't convert 'NoneType' object to str implicitly
2020-11-17 03:30:31 ERROR juju.worker.
-------
Changed in charms.openstack: | |
status: | New → Triaged |
importance: | Undecided → High |
Changed in charms.openstack: | |
assignee: | nobody → Linda Guo (lihuiguo) |
Changed in charms.openstack: | |
status: | Triaged → In Progress |
Changed in charms.openstack: | |
status: | In Progress → Fix Committed |
Fix proposal:
charms.openstack raised a RuntimeError when release_pkg is not set