Bug 1347834

Summary: Unable to configure/add distributed appliance to region via appliance_console_cli
Product: Red Hat CloudForms Management Engine Reporter: Alex Newman <anewman>
Component: ReplicationAssignee: Nick Carboni <ncarboni>
Status: CLOSED NOTABUG QA Contact: Alex Newman <anewman>
Severity: high Docs Contact:
Priority: high    
Version: 5.6.0CC: anewman, cpelland, dajohnso, fcambi, jhardy, jmatthew, jprause, ncarboni, obarenbo
Target Milestone: GAKeywords: ZStream
Target Release: 5.7.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: appliance:cli
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1358325 (view as bug list) Environment:
Last Closed: 2016-08-01 19:27:41 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:
Bug Depends On:    
Bug Blocks: 1282895, 1351654, 1358325    

Comment 4 Nick Carboni 2016-07-20 13:58:06 UTC
Alex, I think that you should not have passed "--region 0".
That caused us to attempt to create a new region rather than joining an existing one.

Can you re-test without that parameter? I will also look into providing some feedback about incorrect combinations of parameters when using appliance_console_cli

Comment 7 Nick Carboni 2016-07-20 14:24:25 UTC
So you can use the "--region" flag with an external database, but only if you want a new region created.

My theory is that using that flag caused us to attempt to create a new region in the specified external database which failed because the database was already initialized, but we don't seem to be checking the result of that operation.

Because we didn't see that the region create failed we attempted to start evmserverd with the *old* database.yml which made it look like the database was local.

There may have been some additional information in the appliance_console.log file, but it would have been nice for it to be on the screen either way.

If the command works without the "--region" flag we can probably close this (as this is labeled a blocker right now) and open a new bug for how we should handle that case which would be a lower priority and probably an RFE.

What do you think?

Comment 8 Nick Carboni 2016-07-20 14:26:31 UTC
Also, is there any documentation that describes what you tried as the correct command for joining an existing region? That would need to change.

Comment 10 Nick Carboni 2016-08-01 19:27:41 UTC
Okay, in that case I'm going to close this as NOTABUG as the combination of parameters provided was working correctly (just not as you were expecting them to).

I also made a change to improve error reporting in the case you hit here https://github.com/ManageIQ/manageiq/pull/9953

Comment 11 Nick Carboni 2016-08-08 14:24:19 UTC
*** Bug 1331852 has been marked as a duplicate of this bug. ***