Skip to content
This repository has been archived by the owner on Mar 20, 2023. It is now read-only.

aad credentials error when trying to use custom images #197

Closed
zhf526 opened this issue May 16, 2018 · 3 comments
Closed

aad credentials error when trying to use custom images #197

zhf526 opened this issue May 16, 2018 · 3 comments
Labels

Comments

@zhf526
Copy link

zhf526 commented May 16, 2018

I was trying to allocate a pool with a custom image by following the steps here: http://batch-shipyard.readthedocs.io/en/latest/63-batch-shipyard-custom-images/

When I ran shipyard pool add, I got the following error message:
` File "/home/caffe/batch-shipyard/convoy/fleet.py", line 983, in _construct_pool_object
'cannot allocate a pool with a custom image without AAD '
RuntimeError: cannot allocate a pool with a custom image without AAD credentials

I tried different ways of adding the aad configs in the credentials.yaml but none of them worked. I still got the same error message.

Can anyone help me here? Thanks!

@alfpark
Copy link
Collaborator

alfpark commented May 17, 2018

Can you check to ensure that you don't have an account_key set for the batch section? That takes precedence over aad.

@zhf526
Copy link
Author

zhf526 commented May 17, 2018

Thanks @alfpark. I removed account_key and now it works

@zhf526 zhf526 closed this as completed May 17, 2018
@alfpark
Copy link
Collaborator

alfpark commented May 17, 2018

I'm going to make a change where it will now raise an error if both are specified. This has tripped up quite a few users.

alfpark added a commit that referenced this issue May 17, 2018
- These options are now mutually exclusive
- Addresses #197
alfpark added a commit that referenced this issue May 17, 2018
- These options are now mutually exclusive
- Addresses #197
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants