Last active
June 22, 2022 15:42
-
-
Save benmoss/6f36a43ee9560a483ca1c9a96a818303 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=== RUN Test_PackageInstallAndRepo_CanAuthenticateToPrivateRepository_UsingPlaceholderSecret | |
Running 'kubectl delete apps/placeholder-private-auth-pkgi -n foo'... | |
Running 'kapp delete -a placeholder-private-auth-pkgi -n foo --yes'... | |
Running 'kapp delete -a placeholder-private-auth-pkgr -n foo --yes'... | |
Running 'kapp delete -a test-registry-ca-cert-config -n foo --yes'... | |
Running 'kapp delete -a secret-export -n foo --yes'... | |
Running 'kapp delete -a test-registry -n registry -n foo --yes'... | |
==> deploy controller config to skip registry TLS verify | |
Running 'kapp deploy -f - -a test-registry-ca-cert-config -n foo --yes'... | |
==> deploy registry with self signed certs | |
Running 'kapp deploy -a test-registry -f ../assets/registry/registry2.yml -f ../assets/registry/certs-for-skip-tls.yml -f ../assets/registry/htpasswd-auth -f ../assets/registry/registry-contents.yml -n foo --yes'... | |
==> create exported registry secret | |
Running 'kapp deploy -a secret-export -f - -n foo --yes'... | |
==> deploy PackageInstall that auths to registry | |
Running 'kapp deploy -a placeholder-private-auth-pkgi -f - -n foo --yes'... | |
Running 'kubectl get app placeholder-private-auth -oyaml -n foo'... | |
OnErrKubectl error: Execution error: stderr: 'Error from server (NotFound): apps.kappctrl.k14s.io "placeholder-private-auth" not found | |
' error: 'exit status 1' | |
kapp.go:92: Failed to successfully execute 'kapp deploy -a placeholder-private-auth-pkgi -f - -n foo --yes': Execution error: stdout: 'Target cluster 'https://192.168.49.2:8443' (nodes: minikube) | |
Changes | |
Namespace Name Kind Age Op Op st. Wait to Rs Ri | |
foo kappctrl-e2e-ns-role Role - create - reconcile - - | |
^ kappctrl-e2e-ns-role-binding RoleBinding - create - reconcile - - | |
^ kappctrl-e2e-ns-sa ServiceAccount - create - reconcile - - | |
^ pkg.test.carvel.dev.1.0.0 Package - create - reconcile - - | |
^ placeholder-private-auth-pkgi PackageInstall - create - reconcile - - | |
Op: 5 create, 0 delete, 0 update, 0 noop, 0 exists | |
Wait to: 5 reconcile, 0 delete, 0 noop | |
11:33:30AM: ---- applying 2 changes [0/5 done] ---- | |
11:33:30AM: create role/kappctrl-e2e-ns-role (rbac.authorization.k8s.io/v1) namespace: foo | |
11:33:30AM: create serviceaccount/kappctrl-e2e-ns-sa (v1) namespace: foo | |
11:33:30AM: ---- waiting on 2 changes [0/5 done] ---- | |
11:33:30AM: ok: reconcile role/kappctrl-e2e-ns-role (rbac.authorization.k8s.io/v1) namespace: foo | |
11:33:30AM: ok: reconcile serviceaccount/kappctrl-e2e-ns-sa (v1) namespace: foo | |
11:33:30AM: ---- applying 1 changes [2/5 done] ---- | |
11:33:30AM: create rolebinding/kappctrl-e2e-ns-role-binding (rbac.authorization.k8s.io/v1) namespace: foo | |
11:33:30AM: ---- waiting on 1 changes [2/5 done] ---- | |
11:33:30AM: ok: reconcile rolebinding/kappctrl-e2e-ns-role-binding (rbac.authorization.k8s.io/v1) namespace: foo | |
11:33:30AM: ---- applying 1 changes [3/5 done] ---- | |
11:33:30AM: create package/pkg.test.carvel.dev.1.0.0 (data.packaging.carvel.dev/v1alpha1) namespace: foo | |
11:33:30AM: ---- waiting on 1 changes [3/5 done] ---- | |
11:33:30AM: ok: reconcile package/pkg.test.carvel.dev.1.0.0 (data.packaging.carvel.dev/v1alpha1) namespace: foo | |
11:33:30AM: ---- applying 1 changes [4/5 done] ---- | |
11:33:31AM: create packageinstall/placeholder-private-auth-pkgi (packaging.carvel.dev/v1alpha1) namespace: foo | |
11:33:31AM: ---- waiting on 1 changes [4/5 done] ---- | |
11:33:31AM: ongoing: reconcile packageinstall/placeholder-private-auth-pkgi (packaging.carvel.dev/v1alpha1) namespace: foo | |
11:33:31AM: ^ Reconciling | |
11:34:08AM: fail: reconcile packageinstall/placeholder-private-auth-pkgi (packaging.carvel.dev/v1alpha1) namespace: foo | |
11:34:08AM: ^ Reconcile failed: (message: Error (see .status.usefulErrorMessage for details)) | |
' stderr: 'kapp: Error: waiting on reconcile packageinstall/placeholder-private-auth-pkgi (packaging.carvel.dev/v1alpha1) namespace: foo: | |
Finished unsuccessfully (Reconcile failed: (message: Error (see .status.usefulErrorMessage for details))) | |
' error: 'exit status 1' | |
--- FAIL: Test_PackageInstallAndRepo_CanAuthenticateToPrivateRepository_UsingPlaceholderSecret (56.59s) | |
FAIL | |
FAIL github.com/vmware-tanzu/carvel-kapp-controller/test/e2e/secretgencontroller 282.380s | |
FAIL |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: packaging.carvel.dev/v1alpha1 | |
kind: PackageInstall | |
metadata: | |
annotations: | |
kapp.k14s.io/change-group: kappctrl-e2e.k14s.io/packageinstalls | |
kapp.k14s.io/change-rule: upsert after upserting package | |
kapp.k14s.io/identity: v1;foo/packaging.carvel.dev/PackageInstall/placeholder-private-auth-pkgi;packaging.carvel.dev/v1alpha1 | |
kapp.k14s.io/original: '{"apiVersion":"packaging.carvel.dev/v1alpha1","kind":"PackageInstall","metadata":{"annotations":{"kapp.k14s.io/change-group":"kappctrl-e2e.k14s.io/packageinstalls","kapp.k14s.io/change-rule":"upsert | |
after upserting package"},"labels":{"kapp.k14s.io/app":"1655912502358029523","kapp.k14s.io/association":"v1.bdc273de46c409e040fec69ff7a7d2b8"},"name":"placeholder-private-auth-pkgi","namespace":"foo"},"spec":{"packageRef":{"refName":"pkg.test.carvel.dev","versionSelection":{"constraints":"1.0.0"}},"serviceAccountName":"kappctrl-e2e-ns-sa","syncPeriod":"30s"}}' | |
kapp.k14s.io/original-diff-md5: 58e0494c51d30eb3494f7c9198986bb9 | |
creationTimestamp: "2022-06-22T15:41:42Z" | |
finalizers: | |
- finalizers.packageinstall.packaging.carvel.dev/delete | |
generation: 1 | |
labels: | |
kapp.k14s.io/app: "1655912502358029523" | |
kapp.k14s.io/association: v1.bdc273de46c409e040fec69ff7a7d2b8 | |
name: placeholder-private-auth-pkgi | |
namespace: foo | |
resourceVersion: "79826" | |
uid: f7d31214-c1e3-489c-90a2-6b152fb8c526 | |
spec: | |
packageRef: | |
refName: pkg.test.carvel.dev | |
versionSelection: | |
constraints: 1.0.0 | |
serviceAccountName: kappctrl-e2e-ns-sa | |
syncPeriod: 30s | |
status: | |
conditions: | |
- message: Error (see .status.usefulErrorMessage for details) | |
status: "True" | |
type: ReconcileFailed | |
friendlyDescription: 'Reconcile failed: Error (see .status.usefulErrorMessage for | |
details)' | |
lastAttemptedVersion: 1.0.0 | |
observedGeneration: 1 | |
usefulErrorMessage: | | |
vendir: Error: Syncing directory '0': | |
Syncing directory '.' with imgpkgBundle contents: | |
Imgpkg: exit status 1 (stderr: imgpkg: Error: Checking if image is bundle: | |
Fetching image: | |
Error while preparing a transport to talk with the registry: | |
Unable to create round tripper: | |
Get "https://registry-svc.registry.svc.cluster.local:443/v2/": dial tcp 10.102.159.152:443: connect: no route to host; Get "http://registry-svc.registry.svc.cluster.local:443/v2/": dial tcp 10.102.159.152:443: connect: no route to host | |
) | |
version: 1.0.0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment