[Ovirt-devel] How I installed ovirt on fc 12

Arthur Clement clement.arthur at gmail.com
Tue Jan 19 08:56:29 UTC 2010


Hi, 

I installed ovirt on fedora 12 (64 bits) successfully but I had to make some changes to make it work.

1. Installation from rpms builded from the lastest git version

2. Patch ace : missing backslashes in sed commands

vim /usr/share/ace/modules/ovirt/manifests/freeipa.pp

line 33 : '/\\[kdcdefaults\\]/a \\ kdc_ports = 88' 
        single_exec {"set_kdc_defaults":
                command => "/bin/sed -i '/\\[kdcdefaults\\]/a \\ kdc_ports = 88' /usr/share/ipa/kdc.conf.template",
                require => Package[ipa-server]
        }

Line 44 : <Proxy \\*>

        file_replacement{"ipa_proxy_config_1":
               file => "/etc/httpd/conf.d/ipa.conf",
               pattern => "^<Proxy \\*>",
               replacement => "<ProxyMatch ^.*/ipa/ui.*$>",
               require => Single_exec[replace_line_returns]
       }

3. Patch ipa-server

https://bugzilla.redhat.com/show_bug.cgi?id=544927 
https://www.redhat.com/archives/freeipa-devel/2010-January/msg00054.html

I had to install ipa-server before running ace to patch /usr/lib/python2.6/site-packages/ipaserver/funcs.py.

yum install ipa-server

diff -u /usr/lib/python2.6/site-packages/ipaserver/funcs.py.orig /usr/lib/python2.6/site-packages/ipaserver/funcs.py
--- /usr/lib/python2.6/site-packages/ipaserver/funcs.py.orig 2010-01-15 15:57:56.000000000 -0500
+++ /usr/lib/python2.6/site-packages/ipaserver/funcs.py 2010-01-15 16:00:40.000000000 -0500
@@ -332,7 +332,7 @@

schema_entry = self.__get_base_entry("", "objectclass=*", ['dn','subschemasubentry'], opts)
schema_cn = schema_entry.get('subschemasubentry')
- schema = self.__get_base_entry(schema_cn, "objectclass=*", ['*'], opts)
+ schema = self.__get_base_entry(schema_cn, "objectclass=*", ['*', 'objectclasses','attributetypes','matchingrules'], opts)

return schema


Ruby from fedora packages causes some compatibility troubles : /usr/bin/rake db:migrate (modules/ovirt/manifests/ovirt.pp) crash and a lot of compatibility errors raise when mongrel and other ruby dependances try to start.


4. Change ruby environment to 2.3.4

vim /usr/share/ovirt-server/config/environment.rb

Line 23
RAILS_GEM_VERSION = '2.3.4' unless defined? RAILS_GEM_VERSION



5. Patch ruby initializers

http://webtips-seja.blogspot.com/2009/10/undefined-method-quoteident-for.html

vim /usr/share/ovirt-server/config/initializers/new_rails_defaults.rb

Add :

def PGconn.quote_ident(name)
%("#{name}")
end



6. Adapt ruby gems


You must have :
                

*** LOCAL GEMS ***

actionmailer (2.3.4)
actionpack (2.3.4)
activeldap (1.2.0)
activerecord (2.3.4)
activeresource (2.3.4)
activesupport (2.3.4)
cgi_multipart_eof_fix (2.5.0)
cobbler (1.6.1)
columnize (0.3.1)
daemons (1.0.10)
fastthread (1.0.7)
flexmock (0.8.6)
gem_plugin (0.2.3)
gettext (2.0.4)
gettext_activerecord (2.0.4)
gettext_rails (2.0.4)
highline (1.5.1)
hoe (2.3.3)
krb5-auth (0.7)
linecache (0.43)
locale (2.0.4)
locale_rails (2.0.4)
mongrel (1.1.5)
postgres (0.7.9.2008.01.28)
rack (1.0.1)
rails (2.3.4)
rake (0.8.7)
ruby-debug (0.10.3)
ruby-debug-base (0.10.3)
rubyforge (1.0.5)


gem uninstall rack -v 1.0.0
gem install columnize -v 0.3.1
gem install gettext gettext_activerecord gettext_rails -v 2.0.4
gem install rubydebug -v 0.10.3
gem install ruby-debug -v 0.10.3
gem install locale locale_rails -v 2.0.4
gem uninstall actionmailer actionpack activerecord activeresource activesupport -v 2.3.5
gem uninstall locale locale_rails -v 2.0.5
gem uninstall gettext -v 2.1.0
gem uninstall gettext gettext_activerecord gettext_rails -v 2.1.0
gem uninstall locale locale_rails -v 2.0.5


7. Launch ovirt-installer

ovirt-installer
ace -d -l logfile install ovirt


8. Fix bug in /etc/httpd/aliases

libnssckbi.so -> ../../../lib64/libnssckbi.so
to
libnssckbi.so -> ../../../usr/lib64/libnssckbi.so


I had some troubles to make the proxy and ssl working but the problem solved itself after a while...

For more information, me (arthurc) and my colleague (pierre-gilles) are available on #ovirt at freenode.












More information about the ovirt-devel mailing list