Bug 798342 - aeolus-configure does not work properly in kickstart
Summary: aeolus-configure does not work properly in kickstart
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: CloudForms Cloud Engine
Classification: Retired
Component: aeolus-configure
Version: 1.0.0
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: rc
Assignee: Mike Orazi
QA Contact: wes hayutin
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-28 17:06 UTC by Forrest Taylor
Modified: 2012-05-01 15:42 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-03-02 01:44:32 UTC
Embargoed:


Attachments (Terms of Use)

Description Forrest Taylor 2012-02-28 17:06:09 UTC
I have a repository configured for my kickstart installation, and I install aeolus-all.  In %post, I run `aeolus-configure -p ec2`.

First, the output from the command shows:

Launching aeolus configuration recipe...
tr: write error: Broken pipe
tr: write error
...

Everything else seems to have installed correctly.  When I choose a Cloud Resource Provider (I chose ec2-us-east-1) and attempt to associate an account with this provider, I get the following error:

Errors
Cannot add the provider account.
Errors

    * 1 error prohibited this record from being saved:
    Failed to populate cloud resource profiles: PGError: ERROR: duplicate
    key value violates unique constraint "hardware_profiles_pkey" :
    INSERT INTO "hardware_profiles" ("external_key", "cpu_id",
    "provider_id", "updated_at", "architecture_id", "created_at",
    "storage_id", "lock_version", "memory_id", "name") VALUES
    ('t1.micro', 37, 3, '2012-02-28 16:06:39.235836', 38, '2012-02-28
    16:06:39.235836', 36, 0, 35, 't1.micro') RETURNING "id"

It leaves me at the account screen.  When I fill in the values again (exactly as before), it creates the account just fine.

In /var/log/aeolus-conductor/rails.log:
  ^[[1m^[[35mSQL (1.1ms)^[[0m  INSERT INTO "hardware_profiles" ("external_key", "cpu_id", "provider_id", "updated_at", "architecture_id", "created_at", "storage_id", "lock_version", "memory_id", "name") VALUES ('t1.micro', 37, 3, '2012-02-28 16:06:39.235836', 38, '2012-02-28 16:06:39.235836', 36, 0, 35, 't1.micro') RETURNING "id"
PGError: ERROR:  duplicate key value violates unique constraint "hardware_profiles_pkey"
: INSERT INTO "hardware_profiles" ("external_key", "cpu_id", "provider_id", "updated_at", "architecture_id", "created_at", "storage_id", "lock_version", "memory_id", "name") VALUES ('t1.micro', 37, 3, '2012-02-28 16:06:39.235836', 38, '2012-02-28 16:06:39.235836', 36, 0, 35, 't1.micro') RETURNING "id"
  ^[[1m^[[36mSQL (0.2ms)^[[0m  ^[[1mROLLBACK^[[0m

I got a very similar issue with System Engine when running katello-configure during kickstart.
https://bugzilla.redhat.com/show_bug.cgi?id=795454#c8

Comment 1 Forrest Taylor 2012-03-02 01:36:51 UTC
I still get the same error with the 2012-03-01.1 drop:

aeolus-all-0.8.0-39.el6.noarch

Comment 2 wes hayutin 2012-03-02 01:44:32 UTC
not a supported way to install


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