Bug 1314447

Summary: Node re-initialization fails
Product: Red Hat Storage Console Reporter: Lubos Trilety <ltrilety>
Component: coreAssignee: gowtham <gshanmug>
Status: CLOSED CURRENTRELEASE QA Contact: sds-qe-bugs
Severity: medium Docs Contact:
Priority: unspecified    
Version: 2CC: nthomas, sankarshan
Target Milestone: ---Keywords: TestBlocker
Target Release: 2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: rhscon-ceph-0.0.23-1.el7scon.x86_64, rhscon-core-0.0.24-1.el7scon.x86_64, rhscon-ui-0.0.39-1.el7scon.noarch Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-11-19 05:31:57 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:

Description Lubos Trilety 2016-03-03 16:00:54 UTC
Description of problem:
If the node initialization fail, there's possibility to run it again. However it always fails.

Version-Release number of selected component (if applicable):
rhscon-core-0.0.8-10.el7.x86_64
rhscon-ui-0.0.19-1.el7.noarch
rhscon-ceph-0.0.6-10.el7.x86_64

How reproducible:
100%

Steps to Reproduce:
1. Accept the node on UI
2. Stop salt-minion and systemd-skynetd services on the node before the initialization is completed
3. Start those services again and trigger re-initialization of the node

Actual results:
The initialization task fails with
Unable to add details of node: <node_hostname> to DB. error: Node with id: <some_id> already exists

Expected results:
Node re-initialization task is finished successfully

Additional info:

Comment 2 Nishanth Thomas 2016-04-27 14:44:33 UTC
Require a setup to reproduce this issue

Comment 3 Lubos Trilety 2016-05-10 13:20:52 UTC
(In reply to Nishanth Thomas from comment #2)
> Require a setup to reproduce this issue

I was not able to reproduce it on the new build:
rhscon-ui-0.0.29-1.el7scon.noarch
rhscon-ceph-0.0.13-1.el7scon.x86_64
rhscon-core-0.0.16-1.el7scon.x86_64

Comment 4 gowtham 2016-05-13 09:34:12 UTC
All the changes which is discussed in this bug are fixed successfully.
https://review.gerrithub.io/#/c/264225/

Comment 5 Lubos Trilety 2016-07-19 19:24:33 UTC
Tested on:
rhscon-ui-0.0.48-1.el7scon.noarch
rhscon-core-selinux-0.0.34-1.el7scon.noarch
rhscon-ceph-0.0.33-1.el7scon.x86_64
rhscon-core-0.0.34-1.el7scon.x86_64