Bug 1468676

Summary: After node removal, heketi dont allow to enable/readd the node.
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Humble Chirammal <hchiramm>
Component: heketiAssignee: Mohamed Ashiq <mliyazud>
Status: CLOSED NOTABUG QA Contact: Anoop <annair>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: cns-3.6CC: hchiramm, mliyazud, rhs-bugs, storage-qa-internal
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-08-02 15:41:00 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Humble Chirammal 2017-07-07 16:02:37 UTC
Description of problem:
	
#heketi-cli node disable 513a2e3cd7d61df6d41259590ee31e9b

#heketi-cli node remove 513a2e3cd7d61df6d41259590ee31e9b

Current topology:


Node Id: 513a2e3cd7d61df6d41259590ee31e9b
	State: failed
	Cluster Id: 24b9bdc3348be97789ef658ce32d527f
	Zone: 1
	Management Hostname: 192.168.35.5
	Storage Hostname: 192.168.35.5
	Devices:
		Id:1b3e759d7dbaa9caf8cea834b0602d78   Name:/dev/vdd            State:failed    Size (GiB):499     Used (GiB):0       Free (GiB):499     
			Bricks:
		Id:7a60c1ed433a646fbdcb3d7760810a20   Name:/dev/vdf            State:failed    Size (GiB):499     Used (GiB):0       Free (GiB):499     
			Bricks:
		Id:ec128143868cc926ba14c44ad266478f   Name:/dev/vde            State:failed    Size (GiB):499     Used (GiB):0       Free (GiB):499     
			Bricks:


# heketi-cli node enable 513a2e3cd7d61df6d41259590ee31e9b
Error: Cannot move a failed/removed node to online state
^^
If above is expected, 

# heketi-cli node add --zone=1 --cluster=24b9bdc3348be97789ef658ce32d527f  --management-host-name=192.168.35.5 --storage-host-name=192.168.35.5
Error: Hostname 192.168.35.5 already used by node with id 513a2e3cd7d61df6d41259590ee31e9b


Version-Release number of selected component (if applicable):
Heketi 5.0.0


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 3 Humble Chirammal 2017-08-02 15:41:00 UTC
It was a setup issue hence closing this bug.