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

bg-build 0.9.6 complains about file validation based upon file name

    Details

      Description

      Boxgrinder reports an invalid appliance definition file if the filename doesn't include .appl.
      I had a definition file named f14.aapl with the following content:

      name: f14-basic
      summary: Just Enough Operating System based on Fedora 14
      os:
      name: fedora
      version: 14
      files:
      "/root":
      - "/home/ke4qqq/Documents/clouddotcom/uploads/CloudStack-oss-2.2.12.1219-fedora14.tar.gz"
      hardware:
      partitions:
      "/":
      size: 2
      packages:
      - @core
      - vim-enhanced
      - screen
      - puppet
      - openssh-server
      

      That generated:

      [ke4qqq@nalleyx200 mnt]$ sudo boxgrinder-build ./f14.aapl
      F, [2011-09-16T17:33:56.730687 #32256] FATAL -- : BoxGrinder::ValidationError: Couldn't read appliance definition file: f14.aapl.
      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.9.6/lib/boxgrinder-build/appliance.rb:58:in `read_definition'
      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.9.6/lib/boxgrinder-build/appliance.rb:114:in `create'
      /usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.9.6/bin/boxgrinder-build:177
      /usr/bin/boxgrinder-build:19:in `load'
      /usr/bin/boxgrinder-build:19
      

      after minutes and minute of reparsing, I caught my typing mistake in the filename, not in the definition content.
      renaming the file to f14.appl worked just fine.

      IMO the name of the definition file shouldn't matter. However, in the case that it does, the error should not complain about the 'validity of the definition' and should instead give a sensible error like 'change the filename suffix to something we arbitrarily decided on'

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                msavy Marc Savy
                Reporter:
                ke4qqq David Nalley
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: