[Bug 1904199] Re: [groovy-victoria] "gwcli /iscsi-targets/ create ..." fails with 1, GatewayError

Liam Young 1904199 at bugs.launchpad.net
Tue Jan 19 15:23:30 UTC 2021


I have tested focal and groovy and is only happening on groovy. I have
not tried Hirsute.

-- 
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