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

Fixing issue with doryd service not coming up #586

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

farhan7500
Copy link
Contributor

No description provided.

@farhan7500
Copy link
Contributor Author

@imran-ansari @wdurairaj @sneharai4 @prablr79 Kindly review

section: Service
option: ExecStart
value: /usr/libexec/kubernetes/kubelet-plugins/volume/exec/hpe.com~hpe/doryd /etc/origin/master/admin.kubeconfig hpe.com
when: services_state['ansible_facts']['services']['doryd.service']['state'] == "stopped"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can there be a possible race condition between the two attempts to start the service?
E.g. the admin.conf, is good and the service is about to come up but the state is still "stopped" so the attempt to start service with admin.kubeconfig is also made. Is some sleep or wait required between the two attempts? Please check.

daemon_reload: yes
enabled: yes
name: doryd.service
when: services_state['ansible_facts']['services']['doryd.service']['state'] == "stopped"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to check against started rather than stopped

path: /etc/systemd/system/doryd.service
section: Service
option: ExecStart
value: /usr/libexec/kubernetes/kubelet-plugins/volume/exec/hpe.com~hpe/doryd /etc/origin/master/admin.kubeconfig hpe.com
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stopgap fix. The long term fix would be to understand which config file works for which version of openshift/kubernetes

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

Successfully merging this pull request may close these issues.

2 participants