Bug 859521 - errors with configure if provider already exists
Summary: errors with configure if provider already exists
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: CloudForms Cloud Engine
Classification: Retired
Component: aeolus-configure
Version: 1.1.0
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: beta2
Assignee: John Eckersberg
QA Contact: Rehana
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-09-21 18:03 UTC by Dave Johnson
Modified: 2012-12-04 15:20 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Attempting to add a second provider with the aeolus-configure command would cause an error: "Invalid HTTP Return Code: 400". The aeolus-configure command queried the API when attempting to add a new provider in order to ensure that the provider did not already exist. This required the full provider body, which was no longer returned as a result of other changes to Cloud Engine. This fix adds a 'with_data' parameter so that the providers list action returns the full body for each provider. The check is now successful and running aeolus-configure on the same set of providers a second time runs without errors.
Clone Of:
Environment:
Last Closed: 2012-12-04 15:20:54 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2012:1516 0 normal SHIPPED_LIVE CloudForms Cloud Engine 1.1 update 2012-12-04 19:51:45 UTC

Description Dave Johnson 2012-09-21 18:03:00 UTC
Description of problem:

run aeolus-configure -p rhevm or -p mock twice shows a error, it appears that configure no longer handles pre-existing providers... maybe that is okay?  I would expect we could handle it a little cleaner and print a better error message.

err: /Stage[main]/Aeolus::Profiles::Mock/Aeolus::Conductor::Provider[mock]/Web_request[provider-mock]/post: change from  to https://localhost/conductor/providers.xml failed: An exception was raised when invoking web request: Invalid HTTP Return Code: 400,  was expecting one of 200



Version-Release number of selected component (if applicable):
aeolus-configure-2.8.6-1.el6cf.noarch

How reproducible:
100%

Steps to Reproduce:
1.  run aeolus-configure -p with the same provider twice
2.
3.

Comment 3 John Eckersberg 2012-09-24 14:05:21 UTC
On conductor 1.1 as b801867
On configure 1.1 as a30ff3e

Comment 5 Ronelle Landy 2012-09-25 15:56:28 UTC
Tested rpms:

>> rpm -qa |grep aeolus
aeolus-configure-2.8.7-1.el6cf.noarch
rubygem-aeolus-image-0.3.0-12.el6.noarch
rubygem-aeolus-cli-0.7.2-1.el6cf.noarch
aeolus-conductor-0.13.14-1.el6cf.noarch
aeolus-conductor-daemons-0.13.14-1.el6cf.noarch
aeolus-conductor-doc-0.13.14-1.el6cf.noarch
aeolus-all-0.13.14-1.el6cf.noarch

Running aeolus-configure on the same set of providers a second time runs cleanly ...

[root@qeblade39 ~]# aeolus-configure -p mock,rhevm
Launching aeolus configuration recipe...
notice: /Stage[main]/Aeolus::Deltacloud::Core/Exec[deltacloud-core-startup-wait]/returns: executed successfully
....
notice: /Stage[main]/Aeolus::Profiles::Common/Aeolus::Create_bucket[aeolus]/Exec[create-bucket-aeolus]/returns: executed successfully
notice: Finished catalog run in 38.41 seconds

Checked the mock and rhevm providers on the running Conductor instance. Both providers were still there and I could test their connection.

Comment 7 errata-xmlrpc 2012-12-04 15:20:54 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHEA-2012-1516.html


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