-
Notifications
You must be signed in to change notification settings - Fork 8
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
Fix missing ROS_MASTER_URI on master deployment #2
base: master
Are you sure you want to change the base?
Conversation
Care to give this a review? @diegoferigo thanks! 😃 |
@marcoshuck The
I'm not sure exporting this variable is the cleanest way to handle it. I suspect you encountered this problem after entering the container with My point is that if you don't have that variable defined, your setup is not sourcing the ROS initialization script. Exporting manually the variable will only provide a partially configured setup that could miss something else perhaps in other cases. The best way is always source the script. |
Hey @diegoferigo, thanks for your response. I agree it's not the cleanest solution, but I should mention that I got this problem while initializing the set of pods on my minikube cluster. That being said, images for those pods were generated as described in the docs using Taking everything into account, I imagine the problem, even if it's related to what you've described, is happening somewhere else. |
This problem only happens on the ROS master, and that's not the case for the workers (talker and listener deployments) |
Does it make sense to reproduce this problem to see if I'm the only one who's having it? |
At the moment I don't have access to a machine in which I can install and configure minikube. Can you make sure that the entrypoint is called in the master deployment? If you browse the logs, you should read the echoed lines:
Another attempt could be to inspect the environment that ros-kubernetes/k8s/master-deployment.yaml Lines 23 to 29 in 316101e
|
Sure, thanks @diegoferigo, will get back as soon as I have some logs. |
Change
This PR solves an error while deploying the ROS application on Kubernetes
The
ROS_MASTER_URI
was not configured on the master node, and therefore a new env var was added to the master deployment.Issue
While launching the ROS master deployment on Kubernetes, the following error was returned:
/opt/ros/melodic/etc/catkin/profile.d/10.roslaunch.sh: line 3: ROS_MASTER_URI: unbound variable