chaostoolkit-incubator / chaostoolkit-azure

Chaos Toolkit Extension for Azure
https://chaostoolkit.org/
Apache License 2.0
22 stars 28 forks source link

Putting it all together sample does not work #120

Open YanumVlad opened 3 years ago

YanumVlad commented 3 years ago

Team,

Please assist. I am facing the next issue with Putting it all together sample: 2020-10-30 21:55:31 INFO] Playing your experiment's method now... [2020-10-30 21:55:31 INFO] Action: restart-node-at-random [2020-10-30 21:55:31 WARNING] Azure cloud not provided. Using AZURE_PUBLIC_CLOUD as default [2020-10-30 21:55:33 WARNING] Azure cloud not provided. Using AZURE_PUBLIC_CLOUD as default [2020-10-30 21:55:34 ERROR] => failed: TypeError: init() missing 1 required positional argument: 'credential' [2020-10-30 21:55:34 INFO] Steady state hypothesis: Services are all available and healthy [2020-10-30 21:55:34 INFO] Probe: consumer-service-must-still-respond [2020-10-30 21:55:34 INFO] Steady state hypothesis is met!

So: TypeError: init() missing 1 required positional argument: 'credential' Action failes. I am using the latest modules (following the sample article).

YanumVlad commented 3 years ago

I found an issue in init.py file.

client = ComputeManagementClient( credentials=authentication

However, official MS module has a typo in parameter name (credential instead of credentials)... computemangement client

All the rest MS modules have no typo.

YanumVlad commented 3 years ago

PR was created to fix it: https://github.com/chaostoolkit-incubator/chaostoolkit-azure/pull/121

YanumVlad commented 3 years ago

Actually, I just pinned MS package to 4.3.1. It helped. Such steps should be clearly stated somewhere: I spent many hours trying to find a reason during my POC (CHaos platform selection). pip install azure-mgmt-compute==4.3.1 -I

Durgashini28 commented 3 years ago

Hi All, I'm facing the same issue. If I pin the ms package or change the crential in my local package it results in below error: 'ComputeManagementClient' object has no attribute 'web_apps'. Can someone please help on the same