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

coopr install fails for docker-base template with ubuntu 12 images (cannot find apt)

    Details

    • Rank:
      1|hzyo3r:

      Description

      Relevant error msg:
      "Recipe `apt` is not in the run_list, and cookbook 'apt'
      is not a dependency of any cookbook in the run_list."

      =================================
      Full log output:
      [2015-02-28T00:41:47+00:00] INFO: Starting Chef Run for david-docker-base-gce-ubuntu31-1000.local
      [2015-02-28T00:41:47+00:00] INFO: Running start handlers
      [2015-02-28T00:41:47+00:00] INFO: Start handlers complete.
      [2015-02-28T00:41:47+00:00] WARN: MissingCookbookDependency:
      Recipe `apt` is not in the run_list, and cookbook 'apt'
      is not a dependency of any cookbook in the run_list. To load this recipe,
      first add a dependency on cookbook 'apt' 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
      -------------
      No resource or method named `apt_installed?' for `Chef::Recipe "default"'

      Cookbook Trace:
      ---------------
      /var/chef/cookbooks/apt/recipes/default.rb:26:in `from_file'
      /var/chef/cookbooks/docker/recipes/default.rb:26:in `from_file'

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

      19: #
      20:
      21: # On systems where apt is not installed, the resources in this recipe are not
      22: # executed. However, they must still be present in the resource collection
      23: # or other cookbooks which notify these resources will fail on non-apt-enabled
      24: # systems.
      25:
      26>> Chef::Log.debug 'apt is not installed. Apt-specific resources will not be executed.' unless apt_installed?
      27:
      28: first_run_file = File.join(Chef::Config[:file_cache_path], "apt_compile_time_update_first_run")
      29:
      30: # If compile_time_update run apt-get update at compile time
      31: if node['apt']['compile_time_update'] && ( !::File.exist?('/var/lib/apt/periodic/update-success-stamp') || !::File.exist?(first_run_file) )
      32: e = bash 'apt-get-update at compile time' do
      33: code <<-EOH
      34: apt-get update
      35: touch #

      {first_run_file}

      [2015-02-28T00:41:47+00:00] ERROR: Running exception handlers
      [2015-02-28T00:41:47+00:00] ERROR: Exception handlers complete
      [2015-02-28T00:41:47+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
      [2015-02-28T00:41:47+00:00] ERROR: No resource or method named `apt_installed?' for `Chef::Recipe "default"'
      [2015-02-28T00:41:47+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: