Chef 0.8.10 CentOS/RHEL 5 packages - testing


#1

Chef 0.8.10 CentOS/RHEL 5 packages as provided by ELFF
(http://elff.bravenet.com/) are ready for testing.

Installation instructions have been updated here

http://wiki.opscode.com/display/chef/Installation+on+RHEL+and+CentOS+5+with+RPMs

These packages are derived from the 0.8.10 gems with 2 patches from

to make chef-solr happy. These are tracked in this branch

They also include rewritten init scripts, new configs and man pages
borrowed from the Debian work by Mr Timberman. The updated packaging
material and init scripts will be sent upstream shortly.

I’ve run through a few test installs (install chef server/client, using
chef-repo, uploading cookbooks/roles etc) on fresh vm’s without issue
but am looking for further testing.

Please note I have not yet tested the upgrade path from the 0.7.16
packages as time is a bit tight lately. If you want to try do let me
know how it goes.

Unless I here of any issues I’ll bump the new packages over to the
stable repository soon.

Matthew Kent | http://magoazul.com


#2

Just did a fresh install of chef-client on Centos 5.4 and everything
seems to be working swimmingly.

Thanks for the work :smiley:


Mathieu Sauve-Frankel


#3

Matthew Kent wrote:

Unless I here of any issues I’ll bump the new packages over to the
stable repository soon.

Updated packages have been moved into the stable repository.

Thanks to those who tested :slight_smile:

Matthew Kent | http://magoazul.com


#4

Hi Matthew,

Thanks for the update! Unfortunately for me I had installed the Chef
server manually yesterday :frowning: Anyway I erased my installation to test
your packages. Here is the first problem I encountered while installing
the packages: some files belong to the group “mockbuild” instead of
"chef".

[...]
   Installing     :
chef-common                                                                                        
44/49
   Installing     :
chef-solr                                                                                          
45/49
attention: /etc/sysconfig/chef-solr créé en tant que
/etc/sysconfig/chef-solr.rpmnew
attention: /etc/sysconfig/chef-solr-indexer créé en tant que
/etc/sysconfig/chef-solr-indexer.rpmnew
attention: groupe mockbuild inexistant - utilisation de root
attention: groupe mockbuild inexistant - utilisation de root
attention: groupe mockbuild inexistant - utilisation de root
attention: groupe mockbuild inexistant - utilisation de root
attention: groupe mockbuild inexistant - utilisation de root
attention: groupe mockbuild inexistant - utilisation de root
[...]

Here is a list of the packages and files you need to correct:

  • chef:
    drwxr-xr-x 2 chef mockbuil 0 avr 12 22:10 /var/cache/chef
    drwxr-xr-x 2 chef mockbuil 0 avr 12 22:10 /var/log/chef
    drwxr-xr-x 2 chef mockbuil 0 avr 12 22:10 /var/run/chef

  • chef-server:
    drwxr-xr-x 2 chef mockbuil 0 avr 12 22:12 /var/cache/chef
    drwxr-xr-x 2 chef mockbuil 0 avr 12 22:12 /var/lib/chef
    drwxr-xr-x 2 chef mockbuil 0 avr 12 22:12 /var/log/chef
    drwxr-xr-x 2 chef mockbuil 0 avr 12 22:12 /var/run/chef

  • chef-solr:
    drwxr-xr-x 2 chef mockbuil 0 avr 12 22:15
    /var/cache/chef/solr
    drwxr-xr-x 2 chef mockbuil 0 avr 12 22:15
    /var/lib/chef/solr
    drwxr-xr-x 2 chef mockbuil 0 jun 22 2009
    /var/lib/chef/solr/bin
    drwxr-xr-x 2 chef mockbuil 0 jui 17 2009
    /var/lib/chef/solr/conf
    -rw-r–r-- 1 chef mockbuil 1094 jun 22 2009
    /var/lib/chef/solr/conf/admin-extra.html
    -rw-r–r-- 1 chef mockbuil 9919 jui 17 2009
    /var/lib/chef/solr/conf/schema.xml
    -rw-r–r-- 1 chef mockbuil 921 jun 22 2009
    /var/lib/chef/solr/conf/scripts.conf
    -rw-r–r-- 1 chef mockbuil 27721 jui 17 2009
    /var/lib/chef/solr/conf/solrconfig.xml
    drwxr-xr-x 2 chef mockbuil 0 avr 12 22:15
    /var/lib/chef/solr/solr-jetty
    drwxr-xr-x 2 chef mockbuil 0 aoû 14 2009
    /var/lib/chef/solr/solr-jetty/etc
    -rw-r–r-- 1 chef mockbuil 9811 jun 22 2009
    /var/lib/chef/solr/solr-jetty/etc/jetty.xml
    -rw-r–r-- 1 chef mockbuil 22622 jun 22 2009
    /var/lib/chef/solr/solr-jetty/etc/webdefault.xml
    drwxr-xr-x 2 chef mockbuil 0 aoû 14 2009
    /var/lib/chef/solr/solr-jetty/lib
    -rw-r–r-- 1 chef mockbuil 472383 jun 22 2009
    /var/lib/chef/solr/solr-jetty/lib/jetty-6.1.3.jar
    -rw-r–r-- 1 chef mockbuil 128058 jun 22 2009
    /var/lib/chef/solr/solr-jetty/lib/jetty-util-6.1.3.jar
    drwxr-xr-x 2 chef mockbuil 0 aoû 14 2009
    /var/lib/chef/solr/solr-jetty/lib/jsp-2.1
    -rw-r–r-- 1 chef mockbuil 1034049 jun 22 2009
    /var/lib/chef/solr/solr-jetty/lib/jsp-2.1/ant-1.6.5.jar
    -rw-r–r-- 1 chef mockbuil 3566844 jun 22 2009
    /var/lib/chef/solr/solr-jetty/lib/jsp-2.1/core-3.1.1.jar
    -rw-r–r-- 1 chef mockbuil 637087 jun 22 2009
    /var/lib/chef/solr/solr-jetty/lib/jsp-2.1/jsp-2.1.jar
    -rw-r–r-- 1 chef mockbuil 515250 jun 22 2009
    /var/lib/chef/solr/solr-jetty/lib/jsp-2.1/jsp-api-2.1.jar
    -rw-r–r-- 1 chef mockbuil 131998 jun 22 2009
    /var/lib/chef/solr/solr-jetty/lib/servlet-api-2.5-6.1.3.jar
    drwxr-xr-x 2 chef mockbuil 0 jui 17 2009
    /var/lib/chef/solr/solr-jetty/logs
    -rw-r–r-- 1 chef mockbuil 16411 jun 22 2009
    /var/lib/chef/solr/solr-jetty/start.jar
    drwxr-xr-x 2 chef mockbuil 0 aoû 14 2009
    /var/lib/chef/solr/solr-jetty/webapps
    -rw-r–r-- 1 chef mockbuil 12334877 jun 22 2009
    /var/lib/chef/solr/solr-jetty/webapps/solr.war
    drwxr-xr-x 2 chef mockbuil 0 jui 17 2009
    /var/lib/chef/solr/solr-jetty/work
    drwxr-xr-x 2 chef mockbuil 0 avr 12 22:15 /var/log/chef
    drwxr-xr-x 2 chef mockbuil 0 avr 12 22:15 /var/run/chef

Regards

Le 13/04/2010 03:11, Matthew Kent a écrit :

Chef 0.8.10 CentOS/RHEL 5 packages as provided by ELFF
(http://elff.bravenet.com/) are ready for testing.

Installation instructions have been updated here

http://wiki.opscode.com/display/chef/Installation+on+RHEL+and+CentOS+5+with+RPMs

These packages are derived from the 0.8.10 gems with 2 patches from

to make chef-solr happy. These are tracked in this branch

http://github.com/mdkent/chef/tree/0.8.10-el5

They also include rewritten init scripts, new configs and man pages
borrowed from the Debian work by Mr Timberman. The updated packaging
material and init scripts will be sent upstream shortly.

I’ve run through a few test installs (install chef server/client,
using chef-repo, uploading cookbooks/roles etc) on fresh vm’s without
issue but am looking for further testing.

Please note I have not yet tested the upgrade path from the 0.7.16
packages as time is a bit tight lately. If you want to try do let me
know how it goes.

Unless I here of any issues I’ll bump the new packages over to the
stable repository soon.


Farzad FARID / Architecte Open Source
Pragmatic Source / http://www.pragmatic-source.com
Tel : +33 9 53 19 21 90 / Mob : +33 6 03 70 65 46


#5

On Tue, 13 Apr 2010 14:56:57 +0200, Farzad FARID
ffarid@pragmatic-source.com wrote:

Hi Matthew,

Thanks for the update! Unfortunately for me I had installed the Chef
server manually yesterday :frowning: Anyway I erased my installation to test
your packages. Here is the first problem I encountered while installing
the packages: some files belong to the group “mockbuild” instead of
"chef".

Thank you, I’ll correct these.

Any other issues or observations yet? :slight_smile:


#6

it appears that these rpm’s are not installing init scripts (the gems still have them), but the rpm’s are not putting them in the right spots.

also theres some issues with json and json-pure co-existance, but i don’t know if those are resolvable in the scope of chef.

On Apr 13, 2010, at 4:16 PM, Matthew Kent wrote:

On Tue, 13 Apr 2010 14:56:57 +0200, Farzad FARID
ffarid@pragmatic-source.com wrote:

Hi Matthew,

Thanks for the update! Unfortunately for me I had installed the Chef
server manually yesterday :frowning: Anyway I erased my installation to test
your packages. Here is the first problem I encountered while installing
the packages: some files belong to the group “mockbuild” instead of
"chef".

Thank you, I’ll correct these.

Any other issues or observations yet? :slight_smile:


#7

Jesse Nelson wrote:

it appears that these rpm’s are not installing init scripts (the gems still have them), but the rpm’s are not putting them in the right spots.

also theres some issues with json and json-pure co-existance, but i don’t know if those are resolvable in the scope of chef.

Odd, I received pretty much the same email offlist from someone else.

json_pure shouldn’t be required if you are starting from scratch as I’ve
patched it out for rubygem-json. Are you seeing it pulled in and which
version? Is this an upgrade?

Init scripts are in subpackages:

mkent@el-test:~$ rpm -q --filesbypkg chef | grep init.d
chef /etc/rc.d/init.d/chef-client

Are you not seeing them?

For upgrades I don’t have a nice way to force them in, you’ll have to
install the subpackages outlined on the wiki page.

Need more details.

Matthew Kent | http://magoazul.com


#8

was an upgrade that i hit the pure conflicts. not a huge deal as its just on a test server, but if this happens on client too thats sorta a pain.

i did a clean install using rubygem-chef-server as well to test if init scripts got in place with the result of no init scripts. seems weird i can test again on a fresh install. i had just rpm -e’d all rubygem-* stuff to clean up.

On Apr 13, 2010, at 10:23 PM, Matthew Kent wrote:

Jesse Nelson wrote:

it appears that these rpm’s are not installing init scripts (the gems still have them), but the rpm’s are not putting them in the right spots. also theres some issues with json and json-pure co-existance, but i don’t know if those are resolvable in the scope of chef.

Odd, I received pretty much the same email offlist from someone else.

json_pure shouldn’t be required if you are starting from scratch as I’ve patched it out for rubygem-json. Are you seeing it pulled in and which version? Is this an upgrade?

Init scripts are in subpackages:

mkent@el-test:~$ rpm -q --filesbypkg chef | grep init.d
chef /etc/rc.d/init.d/chef-client

Are you not seeing them?

For upgrades I don’t have a nice way to force them in, you’ll have to install the subpackages outlined on the wiki page.

Need more details.

Matthew Kent | http://magoazul.com


#9

On Wed, 14 Apr 2010 08:19:20 -0700, Jesse Nelson spheromak@gmail.com
wrote:

i did a clean install using rubygem-chef-server as well to test if init
scripts got in place with the result of no init scripts. seems weird i
can test again on a fresh install. i had just rpm -e’d all rubygem-*
stuff to clean up.

You’ve probably seen them by now but the server init scripts have moved
into the chef-server package. I tried to separate the gem from the system
level stuff such as configs/init scripts/man pages.

  • Matt

#10

Hi,

Le 14/04/2010 01:16, Matthew Kent a écrit :

Any other issues or observations yet? :slight_smile:

Yes, please add a redirection to /dev/null in "/etc/logrotate.d/chef*"
in the postrotate action before the ops here get tired of received
useless Chef restart mails :slight_smile:


Farzad FARID / Architecte Open Source
Pragmatic Source / http://www.pragmatic-source.com
Tel : +33 9 53 19 21 90 / Mob : +33 6 03 70 65 46


#11

On Thu, 15 Apr 2010 11:11:17 +0200, Farzad FARID
ffarid@pragmatic-source.com wrote:

Hi,

Le 14/04/2010 01:16, Matthew Kent a écrit :

Any other issues or observations yet? :slight_smile:

Yes, please add a redirection to /dev/null in "/etc/logrotate.d/chef*"
in the postrotate action before the ops here get tired of received
useless Chef restart mails :slight_smile:

Good catch! Thanks.


#12

I was smoking some crack here. didn’t see that there are “chef-client” and “chef-server” packages, and was instead installing rubygem-chef-server"

Just a failure on my part to RTFM

On Apr 14, 2010, at 9:02 AM, Matthew Kent wrote:

On Wed, 14 Apr 2010 08:19:20 -0700, Jesse Nelson spheromak@gmail.com
wrote:

i did a clean install using rubygem-chef-server as well to test if init
scripts got in place with the result of no init scripts. seems weird i
can test again on a fresh install. i had just rpm -e’d all rubygem-*
stuff to clean up.

You’ve probably seen them by now but the server init scripts have moved
into the chef-server package. I tried to separate the gem from the system
level stuff such as configs/init scripts/man pages.

  • Matt