All shares created end up with status "error" (this was encountered when running the functional tests for the charm). The manila-share service is down:
root@juju-d30013-zaza-424bd7b027e7-3:~# manila service-list
+----+------------------+-----------------------------------------+------+---------+-------+----------------------------+
| Id | Binary | Host | Zone | Status | State | Updated_at |
+----+------------------+-----------------------------------------+------+---------+-------+----------------------------+
| 1 | manila-scheduler | juju-d30013-zaza-424bd7b027e7-3 | nova | enabled | up | 2020-06-16T18:17:14.000000 |
| 2 | manila-data | juju-d30013-zaza-424bd7b027e7-3 | nova | enabled | up | 2020-06-16T18:17:18.000000 |
| 3 | manila-share | juju-d30013-zaza-424bd7b027e7-3@generic | nova | enabled | down | None |
+----+------------------+-----------------------------------------+------+---------+-------+----------------------------+
and the manila-share.log shows the following:
2020-06-16 18:17:45.423 22879 WARNING manila.share.drivers.generic [req-78aaa3e0-a973-4f9d-b9f9-5cdf813d29a6 - - - - -] Waiting for the common service VM to become available. Driver is currently uninitialized. Share server: None Retry interval: 5: ConnectFailure: Unable to establish connection to http://localhost:5000/v2.0/tokens: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /v2.0/tokens (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb3cf8d9710>: Failed to establish a new connection: [Errno 111] ECONNREFUSED',))
2020-06-16 18:17:45.432 22879 ERROR manila.share.drivers.generic [req-78aaa3e0-a973-4f9d-b9f9-5cdf813d29a6 - - - - -] Unable to establish connection to http://localhost:5000/v2.0/tokens: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /v2.0/tokens (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb3cf937fd0>: Failed to establish a new connection: [Errno 111] ECONNREFUSED',)): ConnectFailure: Unable to establish connection to http://localhost:5000/v2.0/tokens: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /v2.0/tokens (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb3cf937fd0>: Failed to establish a new connection: [Errno 111] ECONNREFUSED',))
After some digging seems like Manila is attempting to contact Nova using the wrong context (i.e., the default values defined within manila-compute.inc provided by Charm Manila), although the reason is still unclear.
I have attached the following files in a tar:
- bundle.yaml deployed (bionic.train.yaml)
- manila.conf
- manila-share.log (debug mode was enabled)
The Placement charm was required and consequently added through:
juju deploy --series bionic --config openstack- origin= cloud:bionic- train cs:placement controller
juju add-relation placement percona-cluster
juju add-relation placement keystone
juju add-relation placement nova-cloud-