1 Reply Latest reply on Nov 17, 2010 12:45 PM by goldmann

    Boxgrinder build failed -> TypeError

    tompouce

      Hi everybody,

       

      I'm trying to build a simple fedora appliance using quickstart. I've some trouble with the boxgrinder build command.

       

      Here is the error I have :

       

      -bash-4.1# boxgrinder-build --trace -V f13-basic.appl -p vmware -d local
      D, [2010-11-17T15:19:53.367860 #2471] DEBUG -- : Loading os plugins...
      D, [2010-11-17T15:19:53.368173 #2471] DEBUG -- : We have 1 os plugin(s) registered
      D, [2010-11-17T15:19:53.368602 #2471] DEBUG -- : - fedora plugin for Fedora.
      D, [2010-11-17T15:19:53.368880 #2471] DEBUG -- : Plugins loaded.
      D, [2010-11-17T15:19:53.368967 #2471] DEBUG -- : Loading platform plugins...
      D, [2010-11-17T15:19:53.369052 #2471] DEBUG -- : We have 1 platform plugin(s) registered
      D, [2010-11-17T15:19:53.369134 #2471] DEBUG -- : - vmware plugin for VMware.
      D, [2010-11-17T15:19:53.369211 #2471] DEBUG -- : Plugins loaded.
      D, [2010-11-17T15:19:53.369290 #2471] DEBUG -- : Loading delivery plugins...
      D, [2010-11-17T15:19:53.369369 #2471] DEBUG -- : We have 0 delivery plugin(s) registered
      D, [2010-11-17T15:19:53.369446 #2471] DEBUG -- : Plugins loaded.
      D, [2010-11-17T15:19:53.369530 #2471] DEBUG -- : Reading definition from 'f13-basic.appl' file...
      /usr/lib/ruby/gems/1.8/gems/boxgrinder-core-0.1.2/lib/boxgrinder-core/helpers/appliance-config-helper.rb:119:in `[]': can't convert String into Integer (TypeError)
          from /usr/lib/ruby/gems/1.8/gems/boxgrinder-core-0.1.2/lib/boxgrinder-core/helpers/appliance-config-helper.rb:119:in `merge_partitions'
          from /usr/lib/ruby/gems/1.8/gems/boxgrinder-core-0.1.2/lib/boxgrinder-core/helpers/appliance-config-helper.rb:107:in `each'
          from /usr/lib/ruby/gems/1.8/gems/boxgrinder-core-0.1.2/lib/boxgrinder-core/helpers/appliance-config-helper.rb:107:in `merge_partitions'
          from /usr/lib/ruby/gems/1.8/gems/boxgrinder-core-0.1.2/lib/boxgrinder-core/helpers/appliance-config-helper.rb:223:in `merge_field'
          from /usr/lib/ruby/gems/1.8/gems/boxgrinder-core-0.1.2/lib/boxgrinder-core/helpers/appliance-config-helper.rb:220:in `each'
          from /usr/lib/ruby/gems/1.8/gems/boxgrinder-core-0.1.2/lib/boxgrinder-core/helpers/appliance-config-helper.rb:220:in `merge_field'
          from /usr/lib/ruby/gems/1.8/gems/boxgrinder-core-0.1.2/lib/boxgrinder-core/helpers/appliance-config-helper.rb:106:in `merge_partitions'
          from /usr/lib/ruby/gems/1.8/gems/boxgrinder-core-0.1.2/lib/boxgrinder-core/helpers/appliance-config-helper.rb:94:in `merge_hardware'
           ... 8 levels...
          from /usr/lib/ruby/gems/1.8/gems/commander-4.0.3/lib/commander/runner.rb:74:in `run!'
          from /usr/lib/ruby/gems/1.8/gems/commander-4.0.3/lib/commander/delegates.rb:7:in `run!'
          from /usr/lib/ruby/gems/1.8/gems/commander-4.0.3/lib/commander/import.rb:10
          from /usr/bin/boxgrinder-build:19

       

      And my f13-basic.appl file contains the following lines :

       

      name: f13-basic
      summary: Just enough operating system based on Fedora 13
      os:
        name: fedora
        version: 13
      hardware:
        partitions:
          /:
          size: 2
      packages:
        includes:
          - bash
          - yum
          - vim-minimal
          - openssh-server

       

      Could you please help me to solve this problem.

       

      Thx.

       

      Tom

       

      I did not find how to auto reply my question. so I just modify my post. I found the problem. It was just an indentation problem in my appl file.

       

      Here is the correct f13-basic.appl file :

       

      name: f13-basic
      summary: Just enough operating system based on Fedora 13
      os:
        name: fedora
        version: 13
      hardware:
        partitions:
          /:
            size: 2
      packages:
        includes:
          - bash
          - yum
          - vim-minimal
          - openssh-server