cloudfoundry / cf-for-k8s

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

registry-buddy error #697

Open mckunkel opened 2 years ago

mckunkel commented 2 years ago

Greetings,

Using the tutorial found on https://cf-for-k8s.io/docs/

I am using AWS ECR setup as prescribed in sample-cf-install-values.yml

When I come to the section

Experiencing your first cf push

I get an error after

cf push test-app Here is the error:

Pushing app test-app to org my-org / space my-space as admin...
Applying manifest file /media/data_crypt/trvuser/code/test-app/manifest.yml...
Manifest applied
Packaging files to upload...
Uploading files...
 36.87 KiB / 36.87 KiB [=================================================================================================] 100.00% 1s

Waiting for API to complete processing files...
Package failed to process correctly after upload
FAILED

When I take a look for causes, ie. github issues, I stumble into the idea of registry-buddy and the error is located in the uploadFunc(). See error below.

kubectl logs -n cf-system cf-api-server-85fb4b886-6zvxs -c registry-buddy

2022/03/08 22:18:10 Processing request: {PackageZipPath:/tmp/packages/registry_bits_packer20220308-1-m7hjhl/copied_app_package.zip PackageGuid:4c63df3a-2016-4562-ba38-61884bc67aff RegistryBasePath:246701835898.dkr.ecr.us-east-1.amazonaws.com/cf_4_k8}
2022/03/08 22:18:11 Error from uploadFunc(/tmp/packages/registry_bits_packer20220308-1-m7hjhl/copied_app_package.zip, 246701835898.dkr.ecr.us-east-1.amazonaws.com/cf_4_k8/4c63df3a-2016-4562-ba38-61884bc67aff): Post "https://246701835898.dkr.ecr.us-east-1.amazonaws.com/v2/cf_4_k8/4c63df3a-2016-4562-ba38-61884bc67aff/blobs/uploads/": EOF

Expected behavior

Produce successful test-app deployment

Additional context

cf-for-k8s SHA

latest branch as of 03/08/2022

Deploy instructions

kapp deploy -a cf -f <(ytt -f config -f ${TMP_DIR}/cf-values.yml)

Cluster information

kind

CLI versions

  1. ytt --version: ytt version 0.40.1
  2. kapp --version: kapp version 0.46.0
  3. kubectl version:Client Version: version.Info{Major:"1", Minor:"23", GitVersion:"v1.23.4", GitCommit:"e6c093d87ea4cbb530a7b2ae91e54c0842d8308a", GitTreeState:"clean", BuildDate:"2022-02-16T12:30:48Z", GoVersion:"go1.17.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"} WARNING: version difference between client (1.23) and server (1.20) exceeds the supported minor version skew of +/-1
  4. cf version: cf version 7.4.0+e55633fed.2021-11-15

EDIT: I also saw this morning Server is listening at 127.0.0.1:8080... 2022/03/09 13:31:14 Error from healthyFunc(246701835898.dkr.ecr.us-east-1.amazonaws.com/cf_4_k8): unable to reach the registry, status code: %!s(int=403)