Bug 1347834 - Unable to configure/add distributed appliance to region via appliance_console_cli
Summary: Unable to configure/add distributed appliance to region via appliance_console...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Replication
Version: 5.6.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: GA
: 5.7.0
Assignee: Nick Carboni
QA Contact: Alex Newman
URL:
Whiteboard: appliance:cli
: 1331852 (view as bug list)
Depends On:
Blocks: RHCS-CFME 1351654 1358325
TreeView+ depends on / blocked
 
Reported: 2016-06-17 18:49 UTC by Alex Newman
Modified: 2016-08-26 14:18 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1358325 (view as bug list)
Environment:
Last Closed: 2016-08-01 19:27:41 UTC
Category: ---
Cloudforms Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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. ***


Note You need to log in before you can comment on or make changes to this bug.