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

CentOS 5 ec2 platform plugin issues, yum runs before having a proper /etc/resolv.conf and fails to resolve mirrors (Error: Cannot find a valid baseurl for repo: base)

    Details

      Description

      ec2 platform plugin fails to create a CentOS 5 ec2 image:

      Error: Cannot find a valid baseurl for repo: base
      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.10.1/lib/boxgrinder-build/helpers/guestfs-helper.rb:295:in `sh'
      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.10.1/lib/boxgrinder-build/helpers/guestfs-helper.rb:295:in `sh'
      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.10.1/lib/boxgrinder-build/plugins/platform/ec2/ec2-plugin.rb:50:in `execute'
      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.10.1/lib/boxgrinder-build/helpers/image-helper.rb:130:in `customize'
      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.10.1/lib/boxgrinder-build/helpers/guestfs-helper.rb:176:in `customize'
      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.10.1/lib/boxgrinder-build/helpers/guestfs-helper.rb:123:in `initialize_guestfs'
      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.10.1/lib/boxgrinder-build/helpers/guestfs-helper.rb:169:in `prepare_guestfs'
      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.10.1/lib/boxgrinder-build/helpers/guestfs-helper.rb:123:in `initialize_guestfs'
      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.10.1/lib/boxgrinder-build/helpers/guestfs-helper.rb:77:in `log_callback'
      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.10.1/lib/boxgrinder-build/helpers/guestfs-helper.rb:123:in `initialize_guestfs'
      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.10.1/lib/boxgrinder-build/helpers/guestfs-helper.rb:173:in `customize'
      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.10.1/lib/boxgrinder-build/helpers/image-helper.rb:129:in `customize'
      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.10.1/lib/boxgrinder-build/plugins/platform/ec2/ec2-plugin.rb:43:in `execute'
      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.10.1/lib/boxgrinder-build/plugins/base-plugin.rb:172:in `run'
      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.10.1/lib/boxgrinder-build/appliance.rb:184:in `execute_plugin'
      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.10.1/lib/boxgrinder-build/appliance.rb:207:in `execute_without_userchange'
      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.10.1/lib/boxgrinder-build/appliance.rb:129:in `execute_plugin_chain'
      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.10.1/lib/boxgrinder-build/appliance.rb:125:in `each'
      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.10.1/lib/boxgrinder-build/appliance.rb:125:in `execute_plugin_chain'
      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.10.1/lib/boxgrinder-build/appliance.rb:164:in `create'
      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.10.1/bin/boxgrinder-build:202
      /usr/bin/boxgrinder-build:19:in `load'
      /usr/bin/boxgrinder-build:19
      

      An invalid /etc/resolv.conf (empty?) file is created inside the ec2 template image and yum fails to install a proper kernel-xen package because the resolver isn't working.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                rubiojr Sergio Rubio
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: