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

The path mentioned does not exist. source action fails #355

Closed
Stef1010 opened this issue Apr 15, 2019 · 6 comments
Closed

The path mentioned does not exist. source action fails #355

Stef1010 opened this issue Apr 15, 2019 · 6 comments

Comments

@Stef1010
Copy link

https://github.com/openshift-metalkube/dev-scripts/blob/ecf60de2ea62593bb1613c5ee1af2a888ed3d261/assets/files/etc/kubernetes/manifests/mdns-publisher.yaml#L47

[core@master-1 ~]$ source /etc/kubernetes/static-pod-resources/clusterrc
-bash: /etc/kubernetes/static-pod-resources/clusterrc: No such file or directory
[core@master-1 ~]$ source /etc/kubernetes/static-pod-resources/mdns/clusterrc
[core@master-1 ~]$

@karmab
Copy link
Contributor

karmab commented Apr 15, 2019

from the yaml file you indicate, this file is supposed to be created by the init container clusterrc-generation but the corresponding file is indeed not there

@Stef1010
Copy link
Author

Thanks for the quick response. Is this one being deleted ? After deployment I do not see that file.

@karmab
Copy link
Contributor

karmab commented Apr 15, 2019

i dont think it should get deleted.
i believe that the issue is that /etc/kubernetes/static-pod-resources/kubeconfig doesnt seem to exist, so clusterrc doesnt get generated by the init container
@celebdor @cybertron @yboaronn thoughts ?

@cybertron
Copy link
Contributor

I think this is because we're mounting /etc/kubernetes/static-pod-resources/mdns/ as /etc/kubernetes/static-pod-resources/ in the container. So on the host the file does not exist at the specified location, but when the container runs it will be there.

Looking at the masters in my local dev env I do see /etc/kubernetes/static-pod-resources/mdns/clusterrc so I think this is working as intended.

@russellb
Copy link
Member

@cybertron should this be closed then?

@cybertron
Copy link
Contributor

@russellb Yes, I think so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants