2021-01-18 12:33:59 INFO juju.worker.uniter resolver.go:147 found queued "install" hook
2021-01-18 12:36:24 WARNING install Could not find a version that satisfies the requirement importlib_metadata>=1.7.0 (from osprofiler) (from versions: )
2021-01-18 12:36:25 WARNING install No matching distribution found for importlib_metadata>=1.7.0 (from osprofiler)
2021-01-18 12:36:25 WARNING install Traceback (most recent call last):
2021-01-18 12:36:25 WARNING install File "/var/lib/juju/agents/unit-octavia-0/charm/hooks/install", line 8, in <module>
2021-01-18 12:36:25 WARNING install basic.bootstrap_charm_deps()
2021-01-18 12:36:25 WARNING install File "lib/charms/layer/basic.py", line 208, in bootstrap_charm_deps
2021-01-18 12:36:25 WARNING install env=_get_subprocess_env())
2021-01-18 12:36:25 WARNING install File "/usr/lib/python3.6/subprocess.py", line 311, in check_call
2021-01-18 12:36:25 WARNING install raise CalledProcessError(retcode, cmd)
2021-01-18 12:36:25 WARNING install subprocess.CalledProcessError: Command '['/var/lib/juju/agents/unit-octavia-0/.venv/bin/pip', 'install', '-U', '--force-reinstall', '--no-index', '--no-cache-dir', '-f', 'wheelhouse', 'packaging', 'testtools', 'pecan', 'chardet', 'pyparsing', 'oslo.serialization', 'oslo.context', 'osprofiler', 'waitress', 'oslo.i18n', 'keystoneauth1', 'os-service-types', 'python-mimeparse', 'oslo.log', 'wrapt', 'Paste', 'wcwidth', 'SQLAlchemy', 'cliff', 'wheel', 'Mako', 'fasteners', 'pyaml', 'sortedcontainers', 'tinyrpc', 'sqlparse', 'eventlet', 'pbr', 'zipp', 'oslo.db', 'fixtures', 'pytz', 'os-client-config', 'cffi', 'cryptography', 'os-traits', 'WebTest', 'prettytable', 'munch', 'statsd', 'extras', 'PasteDeploy', 'netifaces', 'os-ken', 'futurist', 'python-neutronclient', 'cachetools', 'argparse', 'urllib3', 'unittest2', 'attrs', 'Tempita', 'alembic', 'pyperclip', 'charms.reactive', 'linecache2', 'osc-lib', 'oslo.policy', 'traceback2', 'Routes', 'openstacksdk', 'dogpile.cache', 'charmhelpers', 'decorator', 'Jinja2', 'psutil', 'kombu', 'pycparser', 'netaddr', 'yappi', 'soupsieve', 'PyYAML', 'pyinotify', 'greenlet', 'msgpack', 'charms.openstack', 'ovs', 'MarkupSafe', 'oslo.config', 'logutils', 'certifi', 'simplejson', 'repoze.lru', 'amqp', 'cmd2', 'python-keystoneclient', 'oslo.versionedobjects', 'rfc3986', 'colorama', 'beautifulsoup4', 'WebOb', 'six', 'oslo.concurrency', 'oslo.messaging', 'testscenarios', 'python-editor', 'oslo.utils', 'python-dateutil', 'iso8601', 'debtcollector', 'jmespath', 'python-novaclient', 'appdirs', 'jsonpatch', 'idna', 'oslo.service', 'dnspython', 'jsonpointer', 'stevedore', 'neutron-lib', 'vine', 'setproctitle', 'sqlalchemy-migrate', 'toml', 'testresources', 'requests', 'requestsexceptions', 'pytest-runner', 'oslo.middleware']' returned non-zero exit status 1.
2021-01-18 12:36:25 ERROR juju.worker.uniter.operation runhook.go:136 hook "install" (via explicit, bespoke hook script) failed: exit status 1
Marking this as invalid, as this only happens when the charm is built on a newer system which would not put the necessary wheels into the wheelhouse.
If you build the charm on a Python 3.5 or Python 3.6 system it works fine.