Skip to content
This repository has been archived by the owner on Oct 10, 2023. It is now read-only.

TKR-SOURCE-CONTROLLER package not getting proxy value propogated #3754

Closed
lubronzhan opened this issue Oct 25, 2022 · 1 comment
Closed

TKR-SOURCE-CONTROLLER package not getting proxy value propogated #3754

lubronzhan opened this issue Oct 25, 2022 · 1 comment
Labels
kind/bug PR/Issue related to a bug needs-triage Indicates an issue or PR needs to be triaged

Comments

@lubronzhan
Copy link
Contributor

Bug description
tkr-source-controller package didn't get proxy settings

Affected product area (please put an X in all that apply)

  • ( ) APIs
  • (x) Addons
  • ( ) CLI
  • ( ) Docs
  • ( ) IAM
  • ( ) Installation
  • ( ) Plugin
  • ( ) Security
  • ( ) Test and Release
  • ( ) User Experience
  • ( ) Developer Experience

Expected behavior
When creating management cluster with proxy settings, the tkr-source-controller config should have proxy settings
Steps to reproduce the bug
Create management cluster with proxy setting, tkr failed to fetch image from registry

1.6667180674366395e+09	ERROR	tkr-fetcher	Failed to fetch TKRs, retrying	{"error": "[failed to list compatibility metadata image tags: Get \"https://projects-stg.registry.vmware.com/v2/\": dial tcp 10.200.72.25:443: connect: connection refused, failed to list current available TKR Package Repository image tags: Get \"https://projects-stg.registry.vmware.com/v2/\": dial tcp 10.200.72.25:443: connect: connection refused, failed to list current available BOM image tags: Get \"https://projects-stg.registry.vmware.com/v2/\": dial tcp 10.200.72.25:443: connect: connection refused]", "errorCauses": [{"error": "failed to list compatibility metadata image tags: Get \"https://projects-stg.registry.vmware.com/v2/\": dial tcp 10.200.72.25:443: connect: connection refused", "errorVerbose": "Get \"https://projects-stg.registry.vmware.com/v2/\": dial tcp 10.200.72.25:443: connect: connection refused\nfailed to list compatibility metadata image tags\ngithub.heygears.com/vmware-tanzu/tanzu-framework/tkr/controller/tkr-source/fetcher.(*Fetcher).fetchCompatibilityMetadata\n\t/workspace/tkr/controller/tkr-source/fetcher/fetcher.go:169\ngithub.heygears.com/vmware-tanzu/tanzu-framework/tkr/controller/tkr-source/fetcher.(*Fetcher).fetchTKRCompatibilityCM\n\t/workspace/tkr/controller/tkr-source/fetcher/fetcher.go:138\ngithub.heygears.com/vmware-tanzu/tanzu-framework/tkr/controller/tkr-source/fetcher.(*Fetcher).fetchAll.func1\n\t/workspace/tkr/controller/tkr-source/fetcher/fetcher.go:119\nk8s.io/apimachinery/pkg/util/errors.AggregateGoroutines.func1\n\t/go/pkg/mod/k8s.io/apimachinery@v0.24.2/pkg/util/errors/errors.go:237\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1571"}, {"error": "failed to list current available TKR Package Repository image tags: Get \"https://projects-stg.registry.vmware.com/v2/\": dial tcp 10.200.72.25:443: connect: connection refused", "errorVerbose": "Get \"https://projects-stg.registry.vmware.com/v2/\": dial tcp 10.200.72.25:443: connect: connection refused\nfailed to list current available TKR Package Repository image tags\ngithub.heygears.com/vmware-tanzu/tanzu-framework/tkr/controller/tkr-source/fetcher.(*Fetcher).fetchTKRPackages\n\t/workspace/tkr/controller/tkr-source/fetcher/fetcher.go:316\ngithub.heygears.com/vmware-tanzu/tanzu-framework/tkr/controller/tkr-source/fetcher.(*Fetcher).fetchAll.func3\n\t/workspace/tkr/controller/tkr-source/fetcher/fetcher.go:127\nk8s.io/apimachinery/pkg/util/errors.AggregateGoroutines.func1\n\t/go/pkg/mod/k8s.io/apimachinery@v0.24.2/pkg/util/errors/errors.go:237\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1571"}, {"error": "failed to list current available BOM image tags: Get \"https://projects-stg.registry.vmware.com/v2/\": dial tcp 10.200.72.25:443: connect: connection refused", "errorVerbose": "Get \"https://projects-stg.registry.vmware.com/v2/\": dial tcp 10.200.72.25:443: connect: connection refused\nfailed to list current available BOM image tags\ngithub.heygears.com/vmware-tanzu/tanzu-framework/tkr/controller/tkr-source/fetcher.(*Fetcher).fetchTKRBOMConfigMaps\n\t/workspace/tkr/controller/tkr-source/fetcher/fetcher.go:224\ngithub.heygears.com/vmware-tanzu/tanzu-framework/tkr/controller/tkr-source/fetcher.(*Fetcher).fetchAll.func2\n\t/workspace/tkr/controller/tkr-source/fetcher/fetcher.go:123\nk8s.io/apimachinery/pkg/util/errors.AggregateGoroutines.func1\n\t/go/pkg/mod/k8s.io/apimachinery@v0.24.2/pkg/util/errors/errors.go:237\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1571"}]}
github.com/vmware-tanzu/tanzu-framework/tkr/controller/tkr-source/fetcher.(*Fetcher).Start
	/workspace/tkr/controller/tkr-source/fetcher/fetcher.go:72
sigs.k8s.io/controller-runtime/pkg/manager.(*runnableGroup).reconcile.func1
	/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.12.3/pkg/manager/runnable_group.go:219

Version (include the SHA if the version is not obvious)

Environment where the bug was observed (cloud, OS, etc)

Relevant Debug Output (Logs, manifests, etc)

@lubronzhan lubronzhan added kind/bug PR/Issue related to a bug needs-triage Indicates an issue or PR needs to be triaged labels Oct 25, 2022
@lubronzhan
Copy link
Contributor Author

Duplicate of #3744

@lubronzhan lubronzhan marked this as a duplicate of #3744 Oct 25, 2022
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
kind/bug PR/Issue related to a bug needs-triage Indicates an issue or PR needs to be triaged
Projects
None yet
Development

No branches or pull requests

1 participant