Skip to content

Example fails on Centos 6 machines due to missing EPEL repo #1

@jonathanq

Description

@jonathanq

A fresh clone of the repo + vagrant up centos-6 fails.

Running chef-solo...
[2013-12-16T22:11:47+00:00] INFO: Forking chef instance to converge...
[2013-12-16T22:11:47+00:00] INFO: *** Chef 11.8.2 ***
[2013-12-16T22:11:47+00:00] INFO: Chef-client pid: 3759
[2013-12-16T22:11:47+00:00] INFO: Setting the run_list to ["recipe[omnibus::default]"] from JSON
[2013-12-16T22:11:47+00:00] INFO: Run List is [recipe[omnibus::default]]
[2013-12-16T22:11:47+00:00] INFO: Run List expands to [omnibus::default]
[2013-12-16T22:11:47+00:00] INFO: Starting Chef Run for sample-python-app-omnibus-build-lab
[2013-12-16T22:11:47+00:00] INFO: Running start handlers
[2013-12-16T22:11:47+00:00] INFO: Start handlers complete.
[2013-12-16T22:11:48+00:00] WARN: An Omnibus platform recipe does not exist for the platform_family: rhel
[2013-12-16T22:11:48+00:00] INFO: directory[/opt/sample-python-app] created directory /opt/sample-python-app
[2013-12-16T22:11:48+00:00] INFO: directory[/opt/sample-python-app] owner changed to 900
[2013-12-16T22:11:48+00:00] INFO: directory[/opt/sample-python-app] mode changed to 755
[2013-12-16T22:11:48+00:00] INFO: directory[/var/cache/omnibus] created directory /var/cache/omnibus
[2013-12-16T22:11:48+00:00] INFO: directory[/var/cache/omnibus] owner changed to 900
[2013-12-16T22:11:48+00:00] INFO: directory[/var/cache/omnibus] mode changed to 755
[2013-12-16T22:12:19+00:00] INFO: Running queued delayed notifications before re-raising exception
[2013-12-16T22:12:19+00:00] ERROR: Running exception handlers
[2013-12-16T22:12:19+00:00] ERROR: Exception handlers complete
[2013-12-16T22:12:19+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[2013-12-16T22:12:19+00:00] ERROR: package[libyaml-devel] (omnibus::ruby line 45) had an error: Chef::Exceptions::Package: No version specified, and no candidate version available for libyaml-devel

================================================================================
Error executing action `install` on resource 'package[libyaml-devel]'
================================================================================


Chef::Exceptions::Package
-------------------------
No version specified, and no candidate version available for libyaml-devel


Resource Declaration:
---------------------
# In /tmp/vagrant-chef-1/chef-solo-1/cookbooks/omnibus/recipes/ruby.rb

 45:     package "libyaml-devel"
 46:     package "openssl-devel"

Compiled Resource:
------------------
# Declared in /tmp/vagrant-chef-1/chef-solo-1/cookbooks/omnibus/recipes/ruby.rb:45:in `from_file'

package("libyaml-devel") do
  action :install
  retries 0
  retry_delay 2
  package_name "libyaml-devel"
  cookbook_name :omnibus
  recipe_name "ruby"
end

The issue appears to be missing EPEL repos from CentOS. However when you look at the output there is a warning line:

[2013-12-16T22:11:48+00:00] WARN: An Omnibus platform recipe does not exist for the platform_family: rhel

Which makes no sense - the pulled in omnibus cookbook version from the Berkshelf.lock file is 1.0.8. And the 1.0.8 version of omnibus does include a rhel recipe: https://github.com/opscode-cookbooks/omnibus/tree/1.0.8/recipes

Just for fun I bumped the omnibus-cookbook version to 1.1.0 and it failed with the same error (and warning about a missing platform recipe for rhel".

I tried to use version 1.2.2 of omnibus but it keeps failing on an rbenv problem trying to interact with git - but that is something to do with my ISP and git which has been causing my lots of problems all day.

On the 1.0.8 attempt I went into the vm and ran these commands:

[vagrant@sample-python-app-omnibus-build-lab ~]$ sudo rpm --import http://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-6
[vagrant@sample-python-app-omnibus-build-lab ~]$ sudo rpm -Kih http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm

And then did vagrant provision centos-6 and it ran fine and built the rpm.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions