Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CA-346583: make set-iscsi-initiator idempotent #519

Merged
merged 1 commit into from
Oct 12, 2020

Conversation

MarkSymsCtx
Copy link
Contributor

Signed-off-by: Mark Syms mark.syms@citrix.com

@coveralls
Copy link

coveralls commented Oct 9, 2020

Coverage Status

Coverage remained the same at 45.216% when pulling 893acaf on MarkSymsCtx:CA-346583 into 1e5864c on xapi-project:master.

echo "InitiatorName=$1" > $TMPFILE
echo "InitiatorAlias=$2" >> $TMPFILE
echo "InitiatorName=$INITIATORNAME" > $TMPFILE
echo "InitiatorAlias=$INITIATORALIAS" >> $TMPFILE

diff $INITIATORFILE $TMPFILE > /dev/null 2>&1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's now doubly idempotent, if i understand lines 63 to 69 correctly.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can delete these lines if we are certain the new method works.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good point. The new bit is required to avoid getting hit with the

there are active sessions so not updating

message if we're not changing anything, which happens when HA is activated

Signed-off-by: Mark Syms <mark.syms@citrix.com>
Copy link
Contributor

@BenSimsCitrix BenSimsCitrix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@MarkSymsCtx MarkSymsCtx merged commit a18b2ee into xapi-project:master Oct 12, 2020
@MarkSymsCtx MarkSymsCtx deleted the CA-346583 branch October 12, 2020 10:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants