Uploaded image for project: 'BoxGrinder Build'
  1. BoxGrinder Build
  2. BGBUILD-243

Misleading error messages when YUM mirrors/mirror-lists are unreachable.

    Details

      Description

      Consider the following log message after a fairly common problem with YUM where it can't pull down the fedora mirror-list. It is usually just a transient problem. However, in info mode all you get is:

      F, [2011-06-22T23:41:45.256667 #5235] FATAL -- : RuntimeError: Packages system-config-firewall-base, dhclient, kernel for f15-jeos appliance not found in repositories. Please check package names in appliance definition file.
      

      Which is misleading, and probably not helpful for people scripting against BG

      debug mode:

      D, [2011-06-22T23:41:34.827451 #5235] DEBUG -- : Executing operating system plugin for fedora...
      I, [2011-06-22T23:41:34.848026 #5235]  INFO -- : Resolving packages added to f15-jeos appliance definition file...
      D, [2011-06-22T23:41:34.887945 #5235] DEBUG -- : Querying package database...
      D, [2011-06-22T23:41:34.888661 #5235] DEBUG -- : Executing command: 'repoquery --quiet --disablerepo=* --enablerepo=boxgrinder-fedora-15-base,boxgrinder-fedora-15-updates -c 'build/appliances/x86_64/fedora/15/f15-jeos/fedora-plugin/tmp/yum.conf' list available system-config-firewall-base dhclient kernel --nevra --archlist=x86_64,noarch'
      D, [2011-06-22T23:41:45.237703 #5235] DEBUG -- : Could not retrieve mirrorlist http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-15&arch=x86_64 error was
      D, [2011-06-22T23:41:45.240322 #5235] DEBUG -- : Could not match packages: Cannot retrieve repository metadata (repomd.xml) for repository: boxgrinder-fedora-15-base. Please verify its path and try again
      D, [2011-06-22T23:41:45.242459 #5235] DEBUG -- : 14: curl#6 - "Couldn't resolve host"
      F, [2011-06-22T23:41:45.256667 #5235] FATAL -- : RuntimeError: Packages system-config-firewall-base, dhclient, kernel for f15-jeos appliance not found in repositories. Please check package names in appliance definition file.
      /usr/lib64/ruby/gems/1.8/gems/boxgrinder-build-0.9.2/lib/boxgrinder-build/plugins/os/rpm-based/rpm-dependency-validator.rb:65:in `resolve_packages'
      /usr/lib64/ruby/gems/1.8/gems/boxgrinder-build-0.9.2/lib/boxgrinder-build/plugins/os/rpm-based/rpm-based-os-plugin.rb:96:in `build_with_appliance_creator'
      /usr/lib64/ruby/gems/1.8/gems/boxgrinder-build-0.9.2/lib/boxgrinder-build/plugins/os/fedora/fedora-plugin.rb:44:in `execute'
      /usr/lib64/ruby/gems/1.8/gems/boxgrinder-build-0.9.2/lib/boxgrinder-build/plugins/base-plugin.rb:132:in `run'
      /usr/lib64/ruby/gems/1.8/gems/boxgrinder-build-0.9.2/lib/boxgrinder-build/appliance.rb:105:in `execute_os_plugin'
      /usr/lib64/ruby/gems/1.8/gems/boxgrinder-build-0.9.2/lib/boxgrinder-build/appliance.rb:79:in `execute_plugin_chain'
      /usr/lib64/ruby/gems/1.8/gems/boxgrinder-build-0.9.2/lib/boxgrinder-build/appliance.rb:90:in `create'
      /usr/lib64/ruby/gems/1.8/gems/boxgrinder-build-0.9.2/bin/boxgrinder-build:177
      /usr/bin/boxgrinder-build:19:in `load'
      /usr/bin/boxgrinder-build:19
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                goldmann Marek Goldmann
                Reporter:
                msavy Marc Savy
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: