Aeolus on Fedora 17 / Ruby 1.9.3 (rev 2)

Mo Morsi mmorsi at redhat.com
Thu Feb 16 22:09:49 UTC 2012


The patchset has been rebased against the lastest HEADs and incorporated conditionalizing the Ruby 1.9.3 specific bits

Instructions:

- install F16 on a fresh vm, yum update
- Prep the system and migrate to F17 as described here: http://fedoraproject.org/wiki/Upgrading_Fedora_using_yum#Fedora_16_-.3E_Fedora_17
- install build dependencies:
sudo yum install --releasever=17 --nogpgcheck git autoconf automake bison flex patch gperf gettext-devel gcc-c++ libcurl-devel jansson-devel libmicrohttpd-devel libuuid-devel liboauth-devel hail-devel libxml2-devel libgc-devel mongodb-devel help2man rpm-build mongodb-server   python-setuptools rubygem-rspec-core  rubygem-rspec-rails rubygem-factory_girl_rails rubygem-timecop rubygem-cucumber rubygem-database_cleaner
- sudo setenforce 0
- git clone iwhd, imagefactory, aeolus-image, conducutor sources

- install deltacloud
- sudo yum --releasever=17 --nogpgcheck install deltacloud-core
- start up deltacloud via "deltacloudd -i mock" & verify

- cd iwhd
- Comment out 'make -s check' in iwhd.spec.in as problems interfacing / launching mongodb caused error when running the test suite (this will need to be looked into)
-  build iwhd: ./autogen.sh && ./configure && make rpm
- start iwhd
sudo yum install --releasever=17 --nogpgcheck ~/rpmbuild/RPMS/x86_64/iwhd-1.2.11.642c.dirty-1.fc16.x86_64.rpm
sudo service mongod start
sudo service iwhd start

- cd imagefactory
- make rpm
- sudo yum install --releasever=17 --nogpgcheck  ~/rpmbuild/RPMS/noarch/imagefactory-1.0.0rc4-1.fc16.noarch.rpm
- sudo service imagefactory start

- cd aeolus-image-rubygem
- git am the patch in the attached patchset
- rake rpms
- sudo yum install --releasever=17 --nogpgcheck ~/rpmbuild/RPMS/noarch/rubygem-aeolus-image...rpm

- cd condcutor
- git am the patches in the attached patchset
- You will need to install a few additional dependencies:
    - rubygem-net-ldap - replaces rubygem-ruby-net-ldap (in flight to land in Fedora): http://mo.morsi.org/files/rpms/rubygem-net-ldap-0.2.2-1.fc16.noarch.rpm
    - rubygem-deltacloud-client - an incorrect build was pushed to Fedora (situation is being resolved): http://mo.morsi.org/files/rpms/rubygem-deltacloud-client-0.5.0-2.fc17.rc1.noarch.rpm
    - rubygem-addressable - install the latest version from koji (in flight to Fedora): http://koji.fedoraproject.org/koji/getfile?taskID=3797024&name=rubygem-addressable-2.2.6-3.fc18.noarch.rpm
    - rubygem-crack - needs to be updated in Fedora to build against 1.9: http://koji.fedoraproject.org/koji/getfile?taskID=3797446&name=rubygem-crack-0.1.8-5.fc18.noarch.rpm
    - rubygem-webmock - install the updated version from koji (in flight to Fedora):  http://kojipkgs.fedoraproject.org/packages/rubygem-webmock/1.7.10/1.fc18/noarch/rubygem-webmock-1.7.10-1.fc18.noarch.rpm
    - rubygem-capybara - install the latest version from rawhide:  sudo yum install fedora-release-rawhide  && sudo yum install --enablerepo=rawhide rubygem-capybara
- make rpms
- sudo yum install --nogpgcheck --enablerepo=ruby   <conductor rpms just built>
- optionally rake spec (will require yum installing a few additional dependencies but the test suite now works against rspec2)

At this point I manually verified the app,
- cd /usr/share/aeolus-conductor
- sudo cp config/database.sqlite config/database.yml
- sudo RAILS_ENV='production' rake db:create
-  sudo RAILS_ENV='production' rake db:migrate
- sudo RAILS_ENV='production' rake db:seed
- sudo RAILS_ENV='production' rake "dc:create_user[admin, password, root at localhost.localdomain, admin, istrator]"
- sudo rake dc:oauth_keys
-. Create a /usr/share/aeolus-configure/config/initializers/secret_token.rb with the following contents:
Conductor::Application.config.secret_token = '<rails_token/>'   # where rails_token is generated by running sudo rake secret
- Fix permissions on db file:
sudo chown -R aeolus.aeolus /usr/share/aeolus-configure/db
- sudo service aeolus-conductor start
- sudo service httpd start

aeolus-configure still needs some more work for F17 as it depends on puppet which in return, along w/ it's ruby-shadow dependency needs to be built against Ruby 1.9

  -Mo



More information about the aeolus-devel mailing list