Project

General

Profile

Actions

Bug #52473

closed

mgr/dashboard: added accidently wrong value in api and password string for gaetways

Added by jose f over 2 years ago. Updated over 1 year ago.

Status:
Rejected
Priority:
Low
Assignee:
Category:
Component - iSCSI
Target version:
% Done:

0%

Source:
Support
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

Description of problem

Accidently i added wrong values for api_password and api_port while creating and adding the iscsi service/gateways to the dashboard
now the dashboard brings the internal error 500 on main dashboard page and iscsi page

if i try to add, list or remove the iscsi-gateways i get this error

root@cd133-ceph-mon-01:~# ceph dashboard iscsi-gateway-list
Error EINVAL: Traceback (most recent call last):
  File "/usr/share/ceph/mgr/mgr_module.py", line 1350, in _handle_command
    return CLICommand.COMMANDS[cmd['prefix']].call(self, cmd, inbuf)
  File "/usr/share/ceph/mgr/mgr_module.py", line 393, in call
    return self.func(mgr, **kwargs)
  File "/usr/share/ceph/mgr/dashboard/services/iscsi_cli.py", line 22, in list_iscsi_gateways
    return 0, json.dumps(IscsiGatewaysConfig.get_gateways_config()), ''
  File "/usr/share/ceph/mgr/dashboard/services/iscsi_config.py", line 105, in get_gateways_config
    return cls._load_config_from_store()
  File "/usr/share/ceph/mgr/dashboard/services/iscsi_config.py", line 48, in _load_config_from_store
    cls.update_iscsi_config(config)
  File "/usr/share/ceph/mgr/dashboard/services/iscsi_config.py", line 65, in update_iscsi_config
    service_url=service_url).get_hostname()['data']
  File "/usr/share/ceph/mgr/dashboard/services/iscsi_client.py", line 43, in instance
    port = url.port
  File "/lib64/python3.6/urllib/parse.py", line 170, in port
    port = int(port, 10)
ValueError: invalid literal for int() with base 10: 'admin'

can someone help me to fix that? or how or where can i change those values?

Environment

  • ceph version 16.2.5
  • Platform (OS/distro/release): ubuntu
  • Cluster details (nodes, monitors, OSDs): 8xnodes, 3 mon, 2 rgw, 2 iscsi gw, 60 osd
  • Browser used (e.g.: Version 86.0.4240.198 (Official Build) (64-bit)):

How reproducible

Actual results

Expected results

command or file/db location to change the values of the registered iscsi gateways or to reset them all or to modify the api port and password

Additional info

Actions

Also available in: Atom PDF