Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Putting it all together sample does not work #120

Open
YanumVlad opened this issue Oct 30, 2020 · 4 comments
Open

Putting it all together sample does not work #120

YanumVlad opened this issue Oct 30, 2020 · 4 comments

Comments

@YanumVlad
Copy link

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
Copy link
Author

YanumVlad commented Oct 30, 2020

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
Copy link
Author

PR was created to fix it:
#121

@YanumVlad
Copy link
Author

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
Copy link

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

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

No branches or pull requests

2 participants