-
Notifications
You must be signed in to change notification settings - Fork 23.7k
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
Issue when creating Azure blob container within Azure China Cloud #35223
Comments
Files identified in the description: If these files are inaccurate, please update the |
Hi @GBT ,I have test on ansible 2.4.2 and 2.6.1,all get pass result ,Could help try again, it may has been fixed, if you test OK ,we will close it , Thanks ! |
Hi @GBT Could you help update the issue status? Thanks! |
this should be fixed already. Currently, storage client is get based on cloud environment. close the issue for now, pls cut one if met any issue using it. |
Did you test with Azure China Cloud ? do you have an 21vianet account ? |
@GBT azure_rm_storageblob module doesn't hardcode specify blob FQDN name. The blob name is got via blob client.When getting blob client, ansible will get correct azure cloud resource endpoint via configuration. Code snippets: To let ansible knows which azure cloud you're using, pls specify cloud environment configuration:
let us know you met any other issue. |
@yungezz I already use cloud_environment in my tasks (check example in summary)
It works good for Storage account creation, but it fails for container creation. Here is below the error if it can help, pls note the host cqcnppsatest.blob.core.windows.net when cloud_environment is AzureChinaCloud
|
@yungezz I validated it and my test passed :-) thank you I updated the PR for my version. Please find it below :
|
@GBT thanks for validating. The fix will be in ansible 2.7 release. And we'll see what's next ansible 2.6 minor release train, and backport it there. |
#44802 merged, backporting to stable2.6 and stable 2.7. |
ISSUE TYPE
COMPONENT NAME
Cloud Azure (azure_rm_storageblob)
ANSIBLE VERSION
CONFIGURATION
Nothing changed
OS / ENVIRONMENT
N/A
SUMMARY
We are using the module azure_rm_storageblob to create a container within a blob storage.
The module use ".blob.core.windows.net" for domain name instead of ".blob.core.chinacloudapi.cn" when
cloud_environment is AzureChinaCloud
STEPS TO REPRODUCE
Within Azure Cloud China,
create a storage account, then create a blob container within the storage account created previously.
EXPECTED RESULTS
Blob container is created
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: