storwize ssh_execute always sleeps on failure.

Bug #1640925 reported by Gerald McBrearty
This bug affects 1 person
Affects Status Importance Assigned to Milestone
IBM Storage

Bug Description

    def _ssh_execute(self, sshpool, command,
                     check_exit_code = True, attempts=1):
            with sshpool.item() as ssh:
                while attempts > 0:
                    attempts -= 1
                        return processutils.ssh_execute(
                    except Exception as e:
                        LOG.error(_LE('Error has occurred: %s'), e)
                        last_exception = e

If attempts is down to zero (meaning this is the last try) is there a reason to sleep?

tags: added: drivers ibm
Isaac Beckman (isaacb)
Changed in cinder:
assignee: nobody → IBM Storage (ibm-storage)
Revision history for this message
jiamin (shljia) wrote :

it is not recommended to retry immediately after failed, wait for a short time is better, i think this may be the reason.

Eric Harney (eharney)
tags: added: storwize
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers