Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Action instances failed with status code 400: Provided API key could not be found #7

Open
JineshPaul opened this issue Jan 7, 2022 · 0 comments

Comments

@JineshPaul
Copy link

Hi, 

I'm trying to stop&start instance on internal IBMCloud staging environment. But facing error for API key not found. 
{
  "version": "1.0.0",
  "title": "What is the impact of stopping Server?",
  "description": "This a dummy experiment.",
  "tags": [
    "tls"
  ],
  "configuration": {
    "api_key": "QNu-ASQ-#########################",
    "generation": "2",
    "service_url": "https://us-south-stage01.iaasdev.cloud.ibm.com/v1"
  },
  "method": [
    {
      "type": "action",
      "name": "Stop chaos test server",
      "provider": {
        "type": "python",
        "module": "ibmcloud.vpc.actions",
        "func": "create_instance_action",
        "arguments": {
          "instance_id": "0716_782c4c57-ebb8-4bc4-ab75-#########",
          "type": "stop",
          "force": false,
          "tag": true
        }
      },
      "pauses": {
        "after": 30
      }
    }

  ]
}

Log Output

(chaos-test) root@jinesh-test-instance:~/chaostoolkit-ibm/example/vpc# chaos run shutdown-start.json
[2022-01-06 13:52:10 WARNING]
    There is a new version (1.11.0) of the chaostoolkit available.
    You may upgrade by typing:

    $ pip install -U chaostoolkit

    Please review changes at https://github.com/chaostoolkit/chaostoolkit/blob/master/CHANGELOG.md

[2022-01-06 13:52:10 INFO] Validating the experiment's syntax
[2022-01-06 13:52:10 INFO] Experiment looks valid
[2022-01-06 13:52:10 INFO] Running experiment: What is the impact of stopping Server?
[2022-01-06 13:52:10 INFO] Steady-state strategy: default
[2022-01-06 13:52:10 INFO] Rollbacks strategy: default
[2022-01-06 13:52:10 INFO] No steady state hypothesis defined. That's ok, just exploring.
[2022-01-06 13:52:10 INFO] Playing your experiment's method now...
[2022-01-06 13:52:10 INFO] Action: Stop chaos test server
[2022-01-06 13:52:10 ERROR] Action instances failed with status code 400: Provided API key could not be found
[2022-01-06 13:52:10 INFO] Pausing after activity for 30s...
[2022-01-06 13:52:41 INFO] Let's rollback...
[2022-01-06 13:52:41 INFO] Rollback: Re-start chaos test Server
[2022-01-06 13:52:41 INFO] Action: Re-start chaos test Server
[2022-01-06 13:52:41 ERROR] Action instances failed with status code 400: Provided API key could not be found
[2022-01-06 13:52:41 INFO] Pausing after activity for 60s...
[2022-01-06 13:53:41 INFO] Experiment ended with status: completed

Please help me out . Thank you

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant