Open andreas-theswede opened 2 years ago
I'm wondering if the Rancher API has changed. It looks like the pagination
result wasn't returned by the API.
@andreas-theswede Please provide the version of Rancher you're using as well as the code for the task where this failed.
We are running rancher 2.6.2, @seancallaway
At the moment we run
- name: Drain Node
ignore_errors: True
rancher_node:
name: '{{NODE}}'
rancher_url: 'https://{{RANCHER_URL}}.domain.se'
api_bearer_key: '{{API_KEY}}'
force: true
ignoreDaemonSets: true
deleteLocalData: true
state: drained
Then we wait for 60 sec and run this command which completes sucessfully
- name: Drain Node
rancher_node:
name: '{{NODE}}'
rancher_url: 'https://{{RANCHER_URL}}.domain.se'
api_bearer_key: '{{API_KEY}}'
force: true
ignoreDaemonSets: true
deleteLocalData: true
state: drained
Interesting. I am going to see if the API has changed.
Hi
I am getting the following error when using the drain function.
The drain start and completes, so it is only the "ansible job" which in indicating something went wrong. Unfortunately I am a terrible at python...