cloud-builders: gcr.io/cloud-builders/mvn:latest missing python - sdk install fails

Affected builder image

gcr.io/cloud-builders/mvn

Expected Behavior

mvn appengine:deploy command success

Actual Behavior

Step #1 - "AppEngine Deploy": Sep 09, 2020 2:54:57 PM com.google.cloud.tools.managedcloudsdk.install.Downloader download
Step #1 - "AppEngine Deploy": INFO: Downloading https://dl.google.com/dl/cloudsdk/channels/rapid/google-cloud-sdk.tar.gz to /root/.cache/google-cloud-tools-java/managed-cloud-sdk/downloads/google-cloud-sdk.tar.gz
Step #1 - "AppEngine Deploy": Welcome to the Google Cloud SDK!
Step #1 - "AppEngine Deploy": WARNING: You appear to be running this script as root. This may cause 
Step #1 - "AppEngine Deploy": the installation to be inaccessible to users other than the root user.
Step #1 - "AppEngine Deploy": /root/.cache/google-cloud-tools-java/managed-cloud-sdk/LATEST/google-cloud-sdk/install.sh: line 180: python: command not found
Step #1 - "AppEngine Deploy": [INFO] ------------------------------------------------------------------------
Step #1 - "AppEngine Deploy": [INFO] BUILD FAILURE
Step #1 - "AppEngine Deploy": [INFO] ------------------------------------------------------------------------
Step #1 - "AppEngine Deploy": [INFO] Total time:  17.552 s
Step #1 - "AppEngine Deploy": [INFO] Finished at: 2020-09-09T14:55:01Z
Step #1 - "AppEngine Deploy": [INFO] ------------------------------------------------------------------------
Step #1 - "AppEngine Deploy": [ERROR] Failed to execute goal com.google.cloud.tools:appengine-maven-plugin:2.2.0:deploy (default-cli) on project REDACTED: Execution default-cli of goal com.google.cloud.tools:appengine-maven-plugin:2.2.0:deploy failed: com.google.cloud.tools.managedcloudsdk.command.CommandExitException: Process failed with exit code: 127 -> [Help 1]

Steps to Reproduce the Problem

steps:
  - id: "AppEngine Deploy"
    name: "gcr.io/cloud-builders/mvn"
    entrypoint: "bash"
    args:
      - -c
      - mvn appengine:deploy -P cloud-gcp

Additional Info

Worked as of yesterday Sep 8 2020, today isn’t working anymore Sep 9 2020

Found a local image that has python installed. Tested cloudbuild with pinned image sha256 and now it works

  - id: "AppEngine Deploy"
    name: "gcr.io/cloud-builders/mvn@sha256:87877ba911c20b9cf622142e990739ecf6c25f3b380970e672d19913238b57a4"
    entrypoint: "bash"
    args:
      - -c
      - mvn appengine:deploy -P cloud-gcp
Step #1 - "AppEngine Deploy": Sep 09, 2020 3:56:13 PM com.google.cloud.tools.managedcloudsdk.install.Downloader download
Step #1 - "AppEngine Deploy": INFO: Downloading https://dl.google.com/dl/cloudsdk/channels/rapid/google-cloud-sdk.tar.gz to /root/.cache/google-cloud-tools-java/managed-cloud-sdk/downloads/google-cloud-sdk.tar.gz
Step #1 - "AppEngine Deploy": Welcome to the Google Cloud SDK!
Step #1 - "AppEngine Deploy": WARNING: You appear to be running this script as root. This may cause 
Step #1 - "AppEngine Deploy": the installation to be inaccessible to users other than the root user.
Step #1 - "AppEngine Deploy": 
Step #1 - "AppEngine Deploy": 
Step #1 - "AppEngine Deploy": Your current Cloud SDK version is: 309.0.0
Step #1 - "AppEngine Deploy": Installing components from version: 309.0.0
Step #1 - "AppEngine Deploy": 
Step #1 - "AppEngine Deploy": +-----------------------------------------------------------------------------+
Step #1 - "AppEngine Deploy": |                     These components will be installed.                     |
Step #1 - "AppEngine Deploy": +-----------------------------------------------------+------------+----------+
Step #1 - "AppEngine Deploy": |                         Name                        |  Version   |   Size   |
Step #1 - "AppEngine Deploy": +-----------------------------------------------------+------------+----------+
Step #1 - "AppEngine Deploy": | BigQuery Command Line Tool                          |     2.0.60 |  < 1 MiB |
Step #1 - "AppEngine Deploy": | BigQuery Command Line Tool (Platform Specific)      |     2.0.58 |  < 1 MiB |
Step #1 - "AppEngine Deploy": | Cloud SDK Core Libraries (Platform Specific)        | 2020.07.10 |  < 1 MiB |
Step #1 - "AppEngine Deploy": | Cloud Storage Command Line Tool                     |       4.53 |  3.5 MiB |
Step #1 - "AppEngine Deploy": | Cloud Storage Command Line Tool (Platform Specific) |       4.51 |  < 1 MiB |
Step #1 - "AppEngine Deploy": | Default set of gcloud commands                      |            |          |
Step #1 - "AppEngine Deploy": | anthoscli                                           |      0.2.7 | 51.7 MiB |
Step #1 - "AppEngine Deploy": | anthoscli                                           |      0.2.7 |          |
Step #1 - "AppEngine Deploy": | gcloud cli dependencies                             | 2020.06.12 |  < 1 MiB |
Step #1 - "AppEngine Deploy": +-----------------------------------------------------+------------+----------+
Step #1 - "AppEngine Deploy": 
Step #1 - "AppEngine Deploy": For the latest full release notes, please visit:
Step #1 - "AppEngine Deploy":   https://cloud.google.com/sdk/release_notes
Step #1 - "AppEngine Deploy": 
Step #1 - "AppEngine Deploy": #============================================================#
Step #1 - "AppEngine Deploy": #= Creating update staging area                             =#
Step #1 - "AppEngine Deploy": #============================================================#
Step #1 - "AppEngine Deploy": #= Installing: BigQuery Command Line Tool                   =#
Step #1 - "AppEngine Deploy": #============================================================#
Step #1 - "AppEngine Deploy": #= Installing: BigQuery Command Line Tool (Platform Spec... =#
Step #1 - "AppEngine Deploy": #============================================================#
Step #1 - "AppEngine Deploy": #= Installing: Cloud SDK Core Libraries (Platform Specific) =#
Step #1 - "AppEngine Deploy": #============================================================#
Step #1 - "AppEngine Deploy": #= Installing: Cloud Storage Command Line Tool              =#
Step #1 - "AppEngine Deploy": #============================================================#
Step #1 - "AppEngine Deploy": #= Installing: Cloud Storage Command Line Tool (Platform... =#
Step #1 - "AppEngine Deploy": #============================================================#
Step #1 - "AppEngine Deploy": #= Installing: Default set of gcloud commands               =#
Step #1 - "AppEngine Deploy": #============================================================#
Step #1 - "AppEngine Deploy": #= Installing: anthoscli                                    =#
Step #1 - "AppEngine Deploy": #============================================================#
Step #1 - "AppEngine Deploy": #= Installing: anthoscli                                    =#
Step #1 - "AppEngine Deploy": #============================================================#
Step #1 - "AppEngine Deploy": #= Installing: gcloud cli dependencies                      =#
Step #1 - "AppEngine Deploy": #============================================================#
Step #1 - "AppEngine Deploy": #= Creating backup and activating new installation          =#
Step #1 - "AppEngine Deploy": #============================================================#
Step #1 - "AppEngine Deploy": 
Step #1 - "AppEngine Deploy": Performing post processing steps...
Step #1 - "AppEngine Deploy": ...........................................................done.

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 3
  • Comments: 18 (9 by maintainers)

Commits related to this issue

Most upvoted comments

I apologize that this is taking time; sometimes big companies move slowly. 😦

In the interim, to ease your work-around, I have tagged the last image with python support as gcr.io/cloud-builders/mvn:python – that will be easier to use as a work-around rather than pulling by sha. (It’s the identical image as previously identified in this issue.)