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

dial tcp: lookup $(ARGOCD_REDIS_SERVICE): no such host #13214

Closed
3 tasks done
azkore opened this issue Apr 13, 2023 · 7 comments · Fixed by #13396
Closed
3 tasks done

dial tcp: lookup $(ARGOCD_REDIS_SERVICE): no such host #13214

azkore opened this issue Apr 13, 2023 · 7 comments · Fixed by #13396
Labels
bug Something isn't working

Comments

@azkore
Copy link

azkore commented Apr 13, 2023

Checklist:

  • I've searched in the docs and FAQ for my answer: https://bit.ly/argocd-faq.
  • I've included steps to reproduce the bug.
  • I've pasted the output of argocd version.

Describe the bug

After updating ArgoCD to v2.7.0-rc2 there are errors in argocd-repo-server logs:

argocd-repo-server time="2023-04-13T08:07:37Z" level=warning msg="manifest cache error &ApplicationSource{RepoURL:https://***,Path:***,TargetRevision:HEAD,Helm:nil,Kust
omize:nil,Directory:nil,Plugin:nil,Chart:,Ref:,}: dial tcp: lookup $(ARGOCD_REDIS_SERVICE): no such host"

Looks like the issue was introduced here 25badeb#diff-13c44d9d61d8213832a7e70890e8d2a6fdab6b3c2170d364e3b71ff3ac73805aL15834-R15837

I think env vars in k8s manifests are not supposed to be expanded

To Reproduce

There are no specific steps to reproduce, I guess. Just deploy ArgoCD v2.7.0-rc2 using https://github.com/argoproj/argo-cd/blob/v2.7.0-rc2/manifests/install.yaml and look for the error in the logs

Expected behavior

argocd-repo-server is able to connect to redis, no errors in the logs

Version

argocd: v2.6.7+5bcd846.dirty
  BuildDate: 2023-03-23T17:25:30Z
  GitCommit: 5bcd846fa16e4b19d8f477de7da50ec0aef320e5
  GitTreeState: dirty
  GoVersion: go1.20.2
  Compiler: gc
  Platform: linux/amd64
argocd-server: v2.7.0-rc2+483d26b.dirty

Logs

argocd-repo-server time="2023-04-13T08:07:37Z" level=warning msg="manifest cache error &ApplicationSource{RepoURL:https://***,Path:***,TargetRevision:HEAD,Helm:nil,Kust
omize:nil,Directory:nil,Plugin:nil,Chart:,Ref:,}: dial tcp: lookup $(ARGOCD_REDIS_SERVICE): no such host"
@azkore azkore added the bug Something isn't working label Apr 13, 2023
@yasirub
Copy link

yasirub commented Apr 13, 2023

I also got the issue and was able to fix it by manually editing argocd-repo-server deployment

crenshaw-dev added a commit to crenshaw-dev/argo-cd that referenced this issue Apr 15, 2023
Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>
@crenshaw-dev
Copy link
Collaborator

Thanks for testing! I think this should fix it: #13252

@3bbbeau
Copy link

3bbbeau commented Apr 16, 2023

In the meantime, after looking at @crenshaw-dev's PR to see the underlying issue I was able to fix it with:

kubectl patch deploy argocd-repo-server -n argocd --type "json" -p '[
{"op":"replace","path":"/spec/template/spec/containers/0/args","value":["/usr/local/bin/argocd-repo-server"]}]'

34fathombelow added a commit to 34fathombelow/argo-cd that referenced this issue Apr 16, 2023
Signed-off-by: Justin Marquis <34fathombelow@protonmail.com>
crenshaw-dev added a commit to crenshaw-dev/argo-cd that referenced this issue May 1, 2023
…13214)

Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>
crenshaw-dev added a commit that referenced this issue May 1, 2023
…13396)

* fix(manifests): use params CM and env var for redis server (#13214)

Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>

* add release note

Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>

* rephrase

Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>

* rephrase

Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>

---------

Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>
@azkore
Copy link
Author

azkore commented May 2, 2023

Although the issue has been resolved in the master branch, it has not been addressed in the 2.7.0 tag, and as a result, it is not included in the manifest file available at https://raw.githubusercontent.com/argoproj/argo-cd/v2.7.0/manifests/install.yaml. This raises the question of whether this was an oversight or if the bug was intentionally left in the 2.7.0 release.

Would it be possible to update the tag to include the fix, or was the decision made to release 2.7.0 with the bug?

@ldacey
Copy link

ldacey commented May 2, 2023

Just ran into this issue today when I upgraded to 2.7.0 as well

@crenshaw-dev
Copy link
Collaborator

The fix should have been in 2.7.0... maybe I fired off the release too fast?

gcp-cherry-pick-bot bot pushed a commit that referenced this issue May 2, 2023
…13396)

* fix(manifests): use params CM and env var for redis server (#13214)

Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>

* add release note

Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>

* rephrase

Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>

* rephrase

Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>

---------

Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>
@crenshaw-dev
Copy link
Collaborator

I simply failed to cherry-pick the fix. It's what I get for cutting releases after 5pm. :-) Will cut 2.7.1 to fix it.

crenshaw-dev added a commit that referenced this issue May 2, 2023
…13396) (#13417)

* fix(manifests): use params CM and env var for redis server (#13214)



* add release note



* rephrase



* rephrase



---------

Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>
Co-authored-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>
schakrad pushed a commit to schakrad/argo-cd that referenced this issue Jul 24, 2023
…13214) (argoproj#13396) (argoproj#13417)

* fix(manifests): use params CM and env var for redis server (argoproj#13214)

* add release note

* rephrase

* rephrase

---------

Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>
Co-authored-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>
Signed-off-by: schakrad <58915923+schakrad@users.noreply.github.com>
yyzxw pushed a commit to yyzxw/argo-cd that referenced this issue Aug 9, 2023
…13214) (argoproj#13396)

* fix(manifests): use params CM and env var for redis server (argoproj#13214)

Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>

* add release note

Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>

* rephrase

Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>

* rephrase

Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>

---------

Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>
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
5 participants