[Bug 1904199] Re: [groovy-victoria] "gwcli /iscsi-targets/ create ..." fails with 1, GatewayError
Liam Young
1904199 at bugs.launchpad.net
Mon Jan 18 08:38:16 UTC 2021
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
* 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/rbd-target-api", line 2952, in <module>
main()
File "/usr/bin/rbd-target-api", line 2889, in main
app.run(host=settings.config.api_host,
File "/usr/lib/python3/dist-packages/flask/app.py", line 990, in run
run_simple(host, port, self, **options)
File "/usr/lib/python3/dist-packages/werkzeug/serving.py", line 1052, in run_simple
inner()
File "/usr/lib/python3/dist-packages/werkzeug/serving.py", line 996, in inner
srv = make_server(
File "/usr/lib/python3/dist-packages/werkzeug/serving.py", line 847, in make_server
return ThreadedWSGIServer(
File "/usr/lib/python3/dist-packages/werkzeug/serving.py", line 766, in __init__
self.socket = ssl_context.wrap_socket(sock, server_side=True)
AttributeError: 'Context' object has no attribute 'wrap_socket'
** Also affects: ceph-iscsi (Ubuntu)
Importance: Undecided
Status: New
** Changed in: charm-ceph-iscsi
Status: New => Invalid
--
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to ceph-iscsi in Ubuntu.
https://bugs.launchpad.net/bugs/1904199
Title:
[groovy-victoria] "gwcli /iscsi-targets/ create ..." fails with 1,
GatewayError
Status in OpenStack Ceph iSCSI Charm:
Invalid
Status in ceph-iscsi package in Ubuntu:
New
Bug description:
Visible here: https://review.opendev.org/#/c/761534/
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/.gwcli/prefs.bin.\n\x1b[31;1mGatewayError: \x1b[0m\n'
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(ops_openstack.core.get_charm_class_for_release())
File "/var/lib/juju/agents/unit-ceph-iscsi-1/charm/venv/ops/main.py", line 401, in main
_emit_charm_event(charm, dispatcher.event_name)
File "/var/lib/juju/agents/unit-ceph-iscsi-1/charm/venv/ops/main.py", line 140, in _emit_charm_event
event_to_emit.emit(*args, **kwargs)
File "/var/lib/juju/agents/unit-ceph-iscsi-1/charm/venv/ops/framework.py", line 234, in emit
framework._emit(event)
File "/var/lib/juju/agents/unit-ceph-iscsi-1/charm/venv/ops/framework.py", line 678, in _emit
self._reemit(event_path)
File "/var/lib/juju/agents/unit-ceph-iscsi-1/charm/venv/ops/framework.py", line 723, in _reemit
custom_handler(event)
File "./src/charm.py", line 513, in on_create_target_action
gw_client.create_target(target)
File "/var/lib/juju/agents/unit-ceph-iscsi-1/charm/src/gwcli_client.py", line 30, in create_target
self.run(
File "/var/lib/juju/agents/unit-ceph-iscsi-1/charm/src/gwcli_client.py", line 27, in run
raise RuntimeError(error_msg)
RuntimeError: gwcli failed with 1
To manage notifications about this bug go to:
https://bugs.launchpad.net/charm-ceph-iscsi/+bug/1904199/+subscriptions
More information about the Ubuntu-openstack-bugs
mailing list