Bug 753258 - aeolus-configure overwrites contents in /etc/imagefactory/imagefactory.conf every time its executed
Summary: aeolus-configure overwrites contents in /etc/imagefactory/imagefactory.conf e...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: CloudForms Cloud Engine
Classification: Retired
Component: aeolus-configure
Version: 1.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
Assignee: John Eckersberg
QA Contact: wes hayutin
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-11-11 18:11 UTC by wes hayutin
Modified: 2012-05-15 20:43 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-05-15 20:43:43 UTC


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2012:0586 0 normal SHIPPED_LIVE new packages: aeolus-configure 2012-05-15 22:31:34 UTC

Description wes hayutin 2011-11-11 18:11:29 UTC
Description of problem:

[root@qeblade30 ~]# cat /etc/imagefactory/imagefactory.conf
{
  "warehouse": "http://localhost:9090/",
  "warehouse_key": "H5tYodL9nAfGAuTNL1BGRvORnRBDUo4Z",
  "warehouse_secret": "GJDywwyf/1EomhP0NHtCvnXCMZmF1YVY",
  "image_bucket": "images",
  "build_bucket": "builds",
  "target_bucket": "target_images",
  "template_bucket": "templates",
  "icicle_bucket": "icicles",
  "provider_bucket": "provider_images",
  "imgdir": "/BBBLLLLLLAAAAARRRGGG/var/lib/imagefactory/images",
  "ec2_build_style": "snapshot",
  "ec2_ami_type": "s3",
  "clients": {
    "7cpfEBC8ipuCc7SDpr+uBaDxi0+hagco": "wwaJ97AMmY8UhMwEMhTvW8kiQZ9jTil/"
    },
  "proxy_ami_id": "ami-id"
}
[root@qeblade30 ~]# aeolus-configure -p mock 
Launching aeolus configuration recipe...
notice: /Stage[main]/Apache/Exec[permit-http-networking]/returns: executed successfully
notice: /Stage[main]/Aeolus::Conductor/Selinux::Mode[permissive]/Exec[set_selinux_permissive]/returns: executed successfully
err: /File[/etc/rsyslog.d/aeolus.conf]/ensure: change from absent to file failed: Could not set 'file on ensure: No such file or directory - /etc/rsyslog.d/aeolus.conf.puppettmp_1338 at /usr/share/aeolus-configure/modules/aeolus/manifests/conductor.pp:37
notice: /Stage[main]/Aeolus::Conductor/Service[rsyslog]: Dependency File[/etc/rsyslog.d/aeolus.conf] has failures: true
warning: /Stage[main]/Aeolus::Conductor/Service[rsyslog]: Skipping because of failed dependencies
notice: /Stage[main]/Aeolus::Conductor/Service[rsyslog]: Triggered 'refresh' from 1 events
notice: /File[/etc/imagefactory/imagefactory.conf]/content: content changed '{md5}3f96573bc59519068dce6c5e6bf8386d' to '{md5}ce5ad1428334a2f0c635d49487860017'
notice: /Stage[main]/Aeolus::Deltacloud::Core/Service[deltacloud-core]/ensure: ensure changed 'stopped' to 'running'
notice: /Stage[main]/Aeolus::Deltacloud::Core/Exec[deltacloud-core-startup-wait]/returns: executed successfully
notice: /Stage[main]/Aeolus::Profiles::Mock/Aeolus::Create_bucket[aeolus]/Exec[create-bucket-aeolus]/returns:   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
notice: /Stage[main]/Aeolus::Profiles::Mock/Aeolus::Create_bucket[aeolus]/Exec[create-bucket-aeolus]/returns:                                  Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0[create-bucket-aeolus]/returns: 
notice: /Stage[main]/Aeolus::Profiles::Mock/Aeolus::Create_bucket[aeolus]/Exec[create-bucket-aeolus]/returns: executed successfully
notice: /Stage[main]/Aeolus::Conductor/Rails::Create::Db[create_aeolus_database]/Exec[create_rails_database]/returns: conductor already exists
notice: /Stage[main]/Aeolus::Conductor/Rails::Create::Db[create_aeolus_database]/Exec[create_rails_database]/returns: Using gem require instead of bundler
notice: /Stage[main]/Aeolus::Conductor/Rails::Create::Db[create_aeolus_database]/Exec[create_rails_database]/returns: executed successfully
notice: /Stage[main]/Aeolus::Conductor/Rails::Migrate::Db[migrate_aeolus_database]/Exec[migrate_rails_database]/returns: executed successfully
notice: /Stage[main]/Aeolus::Profiles::Mock/Aeolus::Conductor::Login[admin]/Web_request[admin-conductor-login]/post: post changed '' to 'https://localhost/conductor/user_session'
notice: /Stage[main]/Aeolus::Profiles::Mock/Aeolus::Conductor::Hwp[hwp1]/Web_request[hwp-hwp1]/post: post changed '' to 'https://localhost/conductor/hardware_profiles'
err: /Stage[main]/Aeolus::Profiles::Mock/Aeolus::Conductor::Provider[mock]/Web_request[provider-mock]/post: change from  to https://localhost/conductor/providers failed: An exception was raised when invoking web request: Expecting //html/body//li[text() = 'Provider added.'] in the result
notice: /Stage[main]/Aeolus::Profiles::Mock/Aeolus::Conductor::Provider::Account[mockuser]/Web_request[provider-account-mockuser]: Dependency Web_request[provider-mock] has failures: true
warning: /Stage[main]/Aeolus::Profiles::Mock/Aeolus::Conductor::Provider::Account[mockuser]/Web_request[provider-account-mockuser]: Skipping because of failed dependencies
notice: /Stage[main]/Aeolus::Profiles::Mock/Aeolus::Conductor::Logout[admin]/Web_request[admin-conductor-logout]: Dependency Web_request[provider-mock] has failures: true
warning: /Stage[main]/Aeolus::Profiles::Mock/Aeolus::Conductor::Logout[admin]/Web_request[admin-conductor-logout]: Skipping because of failed dependencies
notice: Finished catalog run in 33.41 seconds
[root@qeblade30 ~]# cat /etc/imagefactory/imagefactory.conf 
{
  "warehouse": "http://localhost:9090/",
  "warehouse_key": "H5tYodL9nAfGAuTNL1BGRvORnRBDUo4Z",
  "warehouse_secret": "GJDywwyf/1EomhP0NHtCvnXCMZmF1YVY",
  "image_bucket": "images",
  "build_bucket": "builds",
  "target_bucket": "target_images",
  "template_bucket": "templates",
  "icicle_bucket": "icicles",
  "provider_bucket": "provider_images",
  "imgdir": "/var/lib/imagefactory/images",
  "ec2_build_style": "snapshot",
  "ec2_ami_type": "s3",
  "clients": {
    "7cpfEBC8ipuCc7SDpr+uBaDxi0+hagco": "wwaJ97AMmY8UhMwEMhTvW8kiQZ9jTil/"
    },
  "proxy_ami_id": "ami-id"
}

[root@qeblade30 ~]# rpm -qa | grep aeol
rubygem-arel-2.0.10-0.aeolus.el6.noarch
aeolus-conductor-doc-0.6.0-0.20111111170238gitf4b8e77.el6.noarch
rubygem-ZenTest-4.3.3-2.aeolus.el6.noarch
rubygem-aeolus-cli-0.1.0-3.20111110160653gitbe66ffb.el6.noarch
rubygem-aeolus-image-0.1.0-4.20111024205454git6b2b696.el6.noarch
aeolus-conductor-daemons-0.6.0-0.20111111170238gitf4b8e77.el6.noarch
aeolus-configure-2.3.0-0.20111111105756gite3054ab.el6.noarch
aeolus-conductor-0.6.0-0.20111111170238gitf4b8e77.el6.noarch
aeolus-all-0.6.0-0.20111111170238gitf4b8e77.el6.noarch
rubygem-rack-mount-0.7.1-3.aeolus.el6.noarch

Comment 1 John Eckersberg 2011-11-15 17:18:22 UTC
Proposed fix available here:
git://github.com/jeckersb/aeolus-configure.git
commit fa3f661f8a4f0eab74feff4d92cd3468a7622f3d

Comment 2 wes hayutin 2011-11-16 23:22:16 UTC
[root@qeblade30 ~]# rpm -qa | grep aeolus-configure
aeolus-configure-2.3.0-0.20111115131840git8f363c4.fc15.noarch
[root@qeblade30 ~]# cat /etc/imagefactory/imagefactory.conf 
{
  "warehouse": "http://localhost:9090/",
  "warehouse_key": "rfmHyBx6z9cO68o4zaYk2kZ52YOqJga9",
  "warehouse_secret": "qPmndXBrSyo7PmhxIXb7qKu77QGwoa5Q",
  "image_bucket": "images",
  "build_bucket": "builds",
  "target_bucket": "target_images",
  "template_bucket": "templates",
  "icicle_bucket": "icicles",
  "provider_bucket": "provider_images",
  "imgdir": "/home/var/lib/imagefactory/images",
  "ec2_build_style": "snapshot",
  "ec2_ami_type": "s3",
  "clients": {
    "0tZEPpI403FSkh3ARlr8Esz/2U1e/bFs": "KaWl8RMf73UpYNoCjJTIflgeRpXVEE1e"
    },
  "proxy_ami_id": "ami-id"
}
[root@qeblade30 ~]#

Comment 3 wes hayutin 2011-11-28 01:16:45 UTC
removing bugs from ce-sprint from the tracker.. you can find these bugs by querying the "qa whiteboard" for ce-sprint-60

Comment 5 errata-xmlrpc 2012-05-15 20:43:43 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-0586.html


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