Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sumologic Cleanup fails with tcp: dial tcp: lookup '': no such host error #2928

Closed
ib-ak opened this issue Mar 14, 2023 · 0 comments · Fixed by #2932
Closed

Sumologic Cleanup fails with tcp: dial tcp: lookup '': no such host error #2928

ib-ak opened this issue Mar 14, 2023 · 0 comments · Fixed by #2932
Labels
bug Something isn't working

Comments

@ib-ak
Copy link
Contributor

ib-ak commented Mar 14, 2023

Describe the bug A clear and concise description of what the bug is.

cleanup.sh is looking for HTTP_PROXY = ''(single-quotes) instead of assigning it null/blank value.

Logs Logs which can be helpful in investigating the issue.

Initializing the backend...

Initializing provider plugins...
- Reusing previous version of sumologic/sumologic from the dependency lock file
- Reusing previous version of hashicorp/kubernetes from the dependency lock file
╷
│ Error: Failed to query available provider packages
│
│ Could not retrieve the list of available versions for provider
│ sumologic/sumologic: could not connect to registry.terraform.io: Failed to
│ request discovery document: Get
│ "https://registry.terraform.io/.well-known/terraform.json": proxyconnect
│ tcp: dial tcp: lookup '': no such host
╵

╷
│ Error: Failed to query available provider packages
│
│ Could not retrieve the list of available versions for provider
│ hashicorp/kubernetes: could not connect to registry.terraform.io: Failed to
│ request discovery document: Get
│ "https://registry.terraform.io/.well-known/terraform.json": proxyconnect
│ tcp: dial tcp: lookup '': no such host
╵

Command used to install/upgrade Collection Direct command which you used to install/upgrade collection.

Configuration Configuration used for Collection e.g. user-values.yaml for helm.

default values.yaml

To Reproduce Steps to reproduce the behavior.

  1. Install sumo logic chart
  2. Delete the installed helm chart

Expected behavior A clear and concise description of what you expected to happen.

  1. Helmchart should be uninstalled.

Environment (please complete the following information):

  • Collection version (e.g. helm ls -n sumologic):
  • Kubernetes version (e.g. kubectl version): 1.24
  • Cloud provider: AWS
  • Others:

Fix:

Update cleanup.sh similar to the value in setup.sh. Change single quotes to double quotes

setup.sh

export HTTP_PROXY=${HTTP_PROXY:=""}
export HTTPS_PROXY=${HTTPS_PROXY:=""}
export NO_PROXY=${NO_PROXY:=""}

cleanup.sh

export HTTP_PROXY="${HTTP_PROXY:=''}"
export HTTPS_PROXY="${HTTPS_PROXY:=''}"
export NO_PROXY="${NO_PROXY:=''}"

Anything else do we need to know Add any other context about the problem here, e.g. issue happens only occasionally.

@ib-ak ib-ak added the bug Something isn't working label Mar 14, 2023
ib-ak added a commit to ib-ak/sumologic-kubernetes-collection that referenced this issue Mar 14, 2023
@ib-ak ib-ak mentioned this issue Mar 14, 2023
4 tasks
swiatekm pushed a commit that referenced this issue Mar 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant