[ops-messaging] rabbitmq-server not being installed properly on CentOS/RHEL

Bug #1282041 reported by Darren Birkett
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack + Chef
Fix Released
Critical
Darren Birkett

Bug Description

Since the recent changes to use the yum 3.x cookbook, the yum epel repo is not getting configured early enough in a chef run. This manifests in rabbitmq-server not being installed because it needs to be installed from epel:

[2014-02-19T11:09:50+00:00] INFO: template[/etc/yum.repos.d/erlang_solutions.repo] sending create action to ruby_block[yum-cache-reload-erlang_solutions] (immediate)
[2014-02-19T11:09:50+00:00] INFO: ruby_block[yum-cache-reload-erlang_solutions] called
[2014-02-19T11:09:52+00:00] INFO: package[erlang] installing erlang-R16B03-0.2.el6 from erlang_solutions repository

================================================================================
Error executing action `install` on resource 'package[rabbitmq-server]'
================================================================================

Chef::Exceptions::Package
-------------------------
No version specified, and no candidate version available for rabbitmq-server

Resource Declaration:
---------------------
# In /var/chef/cache/cookbooks/rabbitmq/recipes/default.rb

 97: package 'rabbitmq-server'
 98: else

Compiled Resource:
------------------
# Declared in /var/chef/cache/cookbooks/rabbitmq/recipes/default.rb:97:in `from_file'

package("rabbitmq-server") do
  action :install
  retries 0
  retry_delay 2
  package_name "rabbitmq-server"
  cookbook_name "rabbitmq"
  recipe_name "default"
end

[2014-02-19T11:11:00+00:00] INFO: Running queued delayed notifications before re-raising exception
[2014-02-19T11:11:00+00:00] ERROR: Running exception handlers
[2014-02-19T11:11:00+00:00] ERROR: Exception handlers complete
[2014-02-19T11:11:00+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[2014-02-19T11:11:00+00:00] ERROR: package[rabbitmq-server] (rabbitmq::default line 97) had an error: Chef::Exceptions::Package: No version specified, and no candidate version available for rabbitmq-server
[2014-02-19T11:11:00+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)

Changed in openstack-chef:
assignee: nobody → Darren Birkett (darren-birkett)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cookbook-openstack-ops-messaging (master)

Fix proposed to branch: master
Review: https://review.openstack.org/74682

Changed in openstack-chef:
status: New → In Progress
summary: - epel repo not being configured on CentOS properly
+ rabbitmq-server not being installed properly on CentOS/RHEL
summary: - rabbitmq-server not being installed properly on CentOS/RHEL
+ [ops-messaging] rabbitmq-server not being installed properly on
+ CentOS/RHEL
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cookbook-openstack-ops-messaging (master)

Reviewed: https://review.openstack.org/74682
Committed: https://git.openstack.org/cgit/stackforge/cookbook-openstack-ops-messaging/commit/?id=bc66b00cd961b14de971a29a2be6cd7db76dc472
Submitter: Jenkins
Branch: master

commit bc66b00cd961b14de971a29a2be6cd7db76dc472
Author: Darren Birkett <email address hidden>
Date: Wed Feb 19 12:21:40 2014 +0000

    Install rabbitmq-server from rabbit site for CentOS/RHEL

    Fixes: bug 1282041
    Implements: blueprint centos-rhel-for-ops-messaging

    On CentOS/RHEL, the OS base repos don't have a package for
    rabbitmq-server. The rabbitmq cookbook by default expects to be able to
    install the latest rabbitmq-server rpm from the rabbitmq site
    (use_distro_version = false). However, in our cookbooks we are overriding
    'use_distro_version' to true, which works for ubuntu as it has a
    rabbitmq-server package in it's base repo

    This commit basically leaves the use_distro_version flag as false unless
    ubuntu/suse is the platform_family, so that CentOS/RHEL can grab the rpm
    from the rabbitmq site

    Change-Id: I4e31cbb4957f0e696a1528fa3f7c6c80695989ac

Changed in openstack-chef:
status: In Progress → Fix Released
no longer affects: openstack-chef/havana
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.