Uploaded image for project: 'Coopr'
  1. Coopr
  2. COOPR-723

coopr install fails for docker-base template with centos images (yum-epel not found)

    Details

    • Rank:
      1|hzyo3j:

      Description

      Relevant Error: "Recipe `yum-epel` is not in the run_list, and cookbook 'yum-epel' is not a dependency of any cookbook in the run_list.

      ===============================
      Full error message from logs:
      [2015-02-27T23:31:53+00:00] INFO: Run List expands to [docker]
      [2015-02-27T23:31:53+00:00] INFO: Starting Chef Run for david-docker-base-rs-centos30-1000.local
      [2015-02-27T23:31:53+00:00] INFO: Running start handlers
      [2015-02-27T23:31:53+00:00] INFO: Start handlers complete.
      [2015-02-27T23:31:53+00:00] WARN: MissingCookbookDependency:
      Recipe `yum-epel` is not in the run_list, and cookbook 'yum-epel'
      is not a dependency of any cookbook in the run_list. To load this recipe,
      first add a dependency on cookbook 'yum-epel' in the cookbook you're
      including it from in that cookbook's metadata.

      ================================================================================
      Recipe Compile Error in /var/chef/cookbooks/docker/recipes/default.rb
      ================================================================================

      NoMethodError
      -------------
      undefined method `[]' for nil:NilClass

      Cookbook Trace:
      ---------------
      /var/chef/cookbooks/yum-epel/recipes/default.rb:19:in `from_file'
      /var/chef/cookbooks/docker/recipes/package.rb:5:in `from_file'
      /var/chef/cookbooks/docker/recipes/default.rb:83:in `from_file'

      Relevant File Content:
      ----------------------
      /var/chef/cookbooks/yum-epel/recipes/default.rb:

      12: #
      13: # Unless required by applicable law or agreed to in writing, software
      14: # distributed under the License is distributed on an "AS IS" BASIS,
      15: # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
      16: # See the License for the specific language governing permissions and
      17: # limitations under the License.
      18:
      19>> node['yum-epel']['repositories'].each do |repo|
      20:
      21: if node['yum'][repo]['managed']
      22: yum_repository repo do
      23: baseurl node['yum'][repo]['baseurl']
      24: cost node['yum'][repo]['cost']
      25: description node['yum'][repo]['description']
      26: enabled node['yum'][repo]['enabled']
      27: enablegroups node['yum'][repo]['enablegroups']
      28: exclude node['yum'][repo]['exclude']

      [2015-02-27T23:31:53+00:00] ERROR: Running exception handlers
      [2015-02-27T23:31:53+00:00] ERROR: Exception handlers complete
      [2015-02-27T23:31:53+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
      [2015-02-27T23:31:53+00:00] ERROR: undefined method `[]' for nil:NilClass
      [2015-02-27T23:31:53+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)

        Attachments

          Activity

            People

            • Assignee:
              dbajot David Bajot
              Reporter:
              dbajot David Bajot
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: