[groovy-victoria] "gwcli /iscsi-targets/ create ..." fails with 1, GatewayError
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Ceph iSCSI Charm |
Invalid
|
Undecided
|
Unassigned | ||
ceph-iscsi (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Visible here: https:/
AssertionError: Action 'create-target' exited with status 'failed': 'exit status 1'
INFO juju-log gwcli /iscsi-targets/ ...
ERROR juju-log gwcli failed with 1
ERROR juju-log stdout: b'Warning: Could not load preferences file /root/.
ERROR juju-log stderr: b''
ERROR juju-log Uncaught exception while in charm code:
Traceback (most recent call last):
File "./src/charm.py", line 551, 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 513, in on_create_
gw_
File "/var/lib/
self.run(
File "/var/lib/
raise RuntimeError(
RuntimeError: gwcli failed with 1
I don;t think this is a charm issue. It looks like an incompatibility between ceph-isci and python3-werkzeug in groovy.
# /usr/bin/ rbd-target- api rbd-target- api", line 2952, in <module> rbd-target- api", line 2889, in main run(host= settings. config. api_host, python3/ dist-packages/ flask/app. py", line 990, in run simple( host, port, self, **options) python3/ dist-packages/ werkzeug/ serving. py", line 1052, in run_simple python3/ dist-packages/ werkzeug/ serving. py", line 996, in inner python3/ dist-packages/ werkzeug/ serving. py", line 847, in make_server python3/ dist-packages/ werkzeug/ serving. py", line 766, in __init__ wrap_socket( sock, server_side=True)
* Serving Flask app "rbd-target-api" (lazy loading)
* Environment: production
WARNING: This is a development server. Do not use it in a production deployment.
Use a production WSGI server instead.
* Debug mode: off
Traceback (most recent call last):
File "/usr/bin/
main()
File "/usr/bin/
app.
File "/usr/lib/
run_
File "/usr/lib/
inner()
File "/usr/lib/
srv = make_server(
File "/usr/lib/
return ThreadedWSGIServer(
File "/usr/lib/
self.socket = ssl_context.
AttributeError: 'Context' object has no attribute 'wrap_socket'