Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.
This repository was 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

@JineshPaul

Description

@JineshPaul
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions