Uploaded image for project: 'Bigtop'
  1. Bigtop
  2. BIGTOP-2774

gradlew toolchain does not work on Ubuntu 16.04.2/Puppet 3.8.5

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.2.0
    • Fix Version/s: 1.2.1
    • Component/s: toolchain
    • Labels:
      None
    • Environment:

      Ubuntu 16.04.2, Puppet 3.8.5

      Description

      After installing devtools and puppetmodules, I ran gradlew toolchain on newly installed machine and got the following error:

      $ ./gradlew toolchain
      
      (snip)
      
      Error: Syntax error at 'Hash'; expected ')' at /etc/puppet/modules/apt/manifests/init.pp:6 on node ubuntu
      Error: Syntax error at 'Hash'; expected ')' at /etc/puppet/modules/apt/manifests/init.pp:6 on node ubuntu
      :toolchain FAILED
      

      This is solved by adding --parser future option to puppet apply command, but another error also occurred:

      Error: Evaluation Error: Error while evaluating a Function Call, Must pass update_defaults to Class[Apt] at /home/sekikn/bigtop/bigtop_toolchain/manifests/jdk.pp:29:7 on node ubuntu
      Error: Evaluation Error: Error while evaluating a Function Call, Must pass update_defaults to Class[Apt] at /home/sekikn/bigtop/bigtop_toolchain/manifests/jdk.pp:29:7 on node ubuntu
      

      It seems to be caused by puppetlabs-apt 3.0.0 and 4.0.0, which are recently released. Actually, their changelog says as follows:

      If you're still running Puppet 3, remain on the latest puppetlabs-apt 2.x release for now, and see the documentation to upgrade to Puppet 4.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sekikn Kengo Seki
                Reporter:
                sekikn Kengo Seki
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: