Skip to content

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