Created attachment 1647584 [details] group_vars, inventory and rolling_upgrade logs Description of problem: The upgrade from 3.x to 4.x fails on rhel 7.7 with [1]. [1]TASK [ceph-dashboard : add iscsi gateways]failed: [magna062 -> magna062] (item=magna086) => changed=false ansible_loop_var: item cmd: - docker - exec - ceph-mon-magna062 - ceph - --cluster - ceph - dashboard - iscsi-gateway-add - http://admin:admin@10.8.128.86:5000 delta: '0:00:00.677514' end: '2019-12-24 07:50:40.393695' invocation: module_args: _raw_params: docker exec ceph-mon-magna062 ceph --cluster ceph dashboard iscsi-gateway-add http://admin:admin@10.8.128.86:5000 _uses_shell: false argv: null chdir: null creates: null executable: null removes: null stdin: null stdin_add_newline: true strip_empty_ends: true warn: true item: magna086 msg: non-zero return code rc: 22 start: '2019-12-24 07:50:39.716181' stderr: 'Error EINVAL: iscsi REST API cannot be reached: Connection refused [errno 111]. Please check your configuration and that the API endpoint is accessible' stderr_lines: <omitted> stdout: '' stdout_lines: <omitted> Version-Release number of selected component (if applicable): ceph version 14.2.4-85.el8cp ansible-2.8.7-1.el7ae.noarch ceph-ansible-4.0.6-1.el7cp.noarch How reproducible: 3/3 Steps to Reproduce: 1.Deploy 3.x cluster with dashboard and iscsi-gw 2.upgrade to 4.x Actual results: Upgrade failed with [1] Expected results: Cluster upgrade should be successful Additional info: the rbd-target-api service is down on the iscsi gateways. Dec 24 09:05:42 magna062 docker[8528]: Traceback (most recent call last): Dec 24 09:05:42 magna062 docker[8528]: File "/usr/bin/rbd-target-api", line 2917, in <module> Dec 24 09:05:42 magna062 docker[8528]: config = Config(logger) Dec 24 09:05:42 magna062 docker[8528]: File "/usr/lib/python3.6/site-packages/ceph_iscsi_config/common.py", line 88, in __init__ Dec 24 09:05:42 magna062 docker[8528]: self._upgrade_config() Dec 24 09:05:42 magna062 docker[8528]: File "/usr/lib/python3.6/site-packages/ceph_iscsi_config/common.py", line 189, in _upgrade_config Dec 24 09:05:42 magna062 docker[8528]: iqn = self.config['gateways']['iqn'] Dec 24 09:05:42 magna062 docker[8528]: KeyError: 'iqn' Dec 24 09:05:42 magna062 dockerd-current[29634]: config = Config(logger) Dec 24 09:05:42 magna062 dockerd-current[29634]: File "/usr/lib/python3.6/site-packages/ceph_iscsi_config/common.py", line 88, in __init__ Dec 24 09:05:42 magna062 dockerd-current[29634]: self._upgrade_config() Dec 24 09:05:42 magna062 dockerd-current[29634]: File "/usr/lib/python3.6/site-packages/ceph_iscsi_config/common.py", line 189, in _upgrade_config Dec 24 09:05:42 magna062 dockerd-current[29634]: iqn = self.config['gateways']['iqn'] Dec 24 09:05:42 magna062 dockerd-current[29634]: KeyError: 'iqn'
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2020:0312