cloudfoundry / cf-for-k8s

The open source deployment manifest for Cloud Foundry on Kubernetes
Apache License 2.0
300 stars 115 forks source link

Buildpack "php_buildpack" must be an existing buildpack configured for use with kpack #678

Open sathishbob opened 3 years ago

sathishbob commented 3 years ago

Describe the bug

While deploying php apps, the php build pack is not getting used. its throwing below eror Buildpack "php_buildpack" must be an existing buildpack configured for use with kpack

To Reproduce*

Steps to reproduce the behavior: trying to deploy sample php app https://github.com/cloudfoundry-samples/cf-ex-composer https://github.com/cloudfoundry-samples/cf-ex-stand-alone

It's helpful to include snippets of the error response or logs output cf push Pushing app cf-ex-stand-alone to org my-org / space my-space as admin... Applying manifest file /root/pcf/cf-ex-stand-alone/manifest.yml... Manifest applied Packaging files to upload... Uploading files... 816 B / 816 B [==========================================================================================================================================================================] 100.00% 1s

Waiting for API to complete processing files...

Staging app and tracing logs... Buildpack "php_buildpack" must be an existing buildpack configured for use with kpack FAILED

cf buildpacks Getting buildpacks as admin...

position name stack enabled locked filename 0 paketo-buildpacks/ruby io.buildpacks.stacks.bionic true false paketo-buildpacks/ruby@0.7.1 0 paketo-buildpacks/dotnet-core io.buildpacks.stacks.bionic true false paketo-buildpacks/dotnet-core@0.4.1 0 paketo-buildpacks/nodejs io.buildpacks.stacks.bionic true false paketo-buildpacks/nodejs@0.5.0 0 paketo-buildpacks/go io.buildpacks.stacks.bionic true false paketo-buildpacks/go@0.9.0 0 paketo-community/python io.buildpacks.stacks.bionic true false paketo-community/python@0.4.3 0 paketo-buildpacks/php io.buildpacks.stacks.bionic true false paketo-buildpacks/php@0.5.0 0 paketo-buildpacks/nginx io.buildpacks.stacks.bionic true false paketo-buildpacks/nginx@0.3.1 0 paketo-buildpacks/httpd io.buildpacks.stacks.bionic true false paketo-buildpacks/httpd@0.1.0 0 paketo-buildpacks/java io.buildpacks.stacks.bionic true false paketo-buildpacks/java@5.10.0 0 paketo-buildpacks/procfile io.buildpacks.stacks.bionic true false paketo-buildpacks/procfile@4.2.2

cf-for-k8s SHA

Please paste cf-for-k8s SHA hyperlink cf-for-k8s-5.1.0 dc0e2df6d2d1c1296bdde8cc2f10e466b4ff0ffe

Deploy instructions

kind create cluster --config=./deploy/kind/cluster.yml --image kindest/node:v1.20.2

Cluster information

kind

CLI versions

paste output of the following commands

  1. ytt --version: ytt version 0.35.1
  2. kapp --version: kapp version 0.37.0
  3. kubectl version: Client Version: version.Info{Major:"1", Minor:"21", GitVersion:"v1.21.3", GitCommit:"ca643a4d1f7bfe34773c74f79527be4afd95bf39", GitTreeState:"clean", BuildDate:"2021-07-15T21:04:39Z", GoVersion:"go1.16.6", Compiler:"gc", Platform:"linux/amd64"} Server Version: version.Info{Major:"1", Minor:"20", GitVersion:"v1.20.2", GitCommit:"faecb196815e248d3ecfb03c680a4507229c2a56", GitTreeState:"clean", BuildDate:"2021-03-11T06:23:38Z", GoVersion:"go1.15.5", Compiler:"gc", Platform:"linux/amd64"}
  4. cf version: cf version 7.2.0+be4a5ce2b.2020-12-10
cf-gitbot commented 3 years ago

We have created an issue in Pivotal Tracker to manage this:

https://www.pivotaltracker.com/story/show/179032707

The labels on this github issue will be updated when the story is started.