-
Notifications
You must be signed in to change notification settings - Fork 82
Store peer address provided during peer add #761
Conversation
The commit message and PR description is ambiguous can be more clearer. You mention |
@prashanthpai updated commit message and PR description |
dd6b85d
to
b55d6a7
Compare
@prashanthpai rebased |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
I'll wait for inputs from @aravindavk too as he filed a similar issue.
glusterd2/commands/peers/addpeer.go
Outdated
//if not found prepend the remotePeerAddress to peer details | ||
if !found { | ||
newpeer.PeerAddresses = append([]string{remotePeerAddress}, newpeer.PeerAddresses...) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if found, we can move that address as first address in the list?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if not found, right ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@prashanthpai if found, and if it's not in the index 0, we need to move it to index 0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@aravindavk, done
peer add in ETCD. if peer address already present in store update configuration on startup this allows the users to use peer address provided during peer add, for any other operations(ex:- volume create,expand) Signed-off-by: Madhu Rajanna <mrajanna@redhat.com>
retest this please |
store peer addresses provided during peer add in ETCD.
if peer address already present in the store
update configuration on startup
this allows the users to use peer address
provided during peer add, for any other
operations(ex:- volume create,expand)
Fixes: #725
Fixes: #758
Fixes: #724
Fixes: #721
Signed-off-by: Madhu Rajanna mrajanna@redhat.com