chaostoolkit-kubernetes icon indicating copy to clipboard operation
chaostoolkit-kubernetes copied to clipboard

Drain Node Error

Open dstrebel opened this issue 4 years ago • 2 comments

Receive the following error when running drain_nodes function.

`failed: TypeError: Got an unexpected keyword argument 'include_uninitialized' to method list_pod_for_all_namespaces'

Installed chaostoolkit-kubernetes using pip3 with Python 3.7.4. Using version chaostoolkit version 1.2.0

Below is the action I'm using:

  39   │     "method": [
  40   │         {
  41   │             "type": "action",
  42   │             "name": "drain_node",
  43   │             "provider": {
  44   │                 "type": "python",
  45   │                 "module": "chaosk8s.node.actions",
  46   │                 "func": "drain_nodes",
  47   │                 "arguments": {
  48 ~ │                     "name": "aks-agentpool-24917760-1"
  49   │                 }
  50   │             }
  51   │         }
  52   │     ],

dstrebel avatar Aug 20 '19 01:08 dstrebel

Apologize for not being able to get on this straight away. Spent the last few days working on run loop testing stability issues, and now Thanksgiving.

I suspect I have another day of testing work to do.

dbashford avatar Nov 25 '16 02:11 dbashford

@dbashford no problem - I'm off for a long holiday weekend myself. I wanted to revert so new developers who might pick this up over the break have a stable/solid version to work with. I'm certain we will find out why this didn't work but to avoid rushing you (and keep the addon truly stable) I think it's best we revert until we know more about this corner case.

toranb avatar Nov 25 '16 02:11 toranb

Hi,

Sorry for being so long to respond. The API had indeed changed and it's been fixed in master but it's not released it yet. I should be releasing this week a new version of that's fine?

Lawouach avatar Sep 02 '19 06:09 Lawouach

This has now been released. Could you please try and let us know if it solved the pb?

Lawouach avatar Sep 05 '19 14:09 Lawouach