-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[Service Bus]"Preparer failure when creating resource ServiceBusNamespacePreparer, Resource group could not be found" on UsGov and China cloud #20517
Comments
If you change |
By reporting the error message, we suspect that it is still under the Do you have any ideas? |
@v-xuto sorry this is my mistake! Looks like it's called |
@benbp We updated |
@v-xuto I didn't see that it was in the dev tools location. You might try instead setting Looking at your branch, you also need to update the azure environment values to reference the dynamic cloud subscription config variables instead of the hardcoded public cloud variable group. That's why it's looking in public: azure-sdk-for-python/sdk/servicebus/tests.yml Lines 14 to 17 in a0ae039
https://dev.azure.com/azure-sdk/internal/_build/results?buildId=1093075&view=logs&j=eb4e8fab-410d-5462-8da4-6074733a2525&t=5877313e-8ad1-5e16-7cf7-7ae7932c113c&l=3300
|
@benbp - I have updated the code by your comments. But we encountered the following error, for more details please check here: China: Do you have any ideas? |
@v-xuto it seems like the tenant id is still not getting set for the sovereign cloud properly, which is generally the issue for errors like |
@benbp If all the surface level stuff appears legit, it's going to be something esoteric. Is this the only python package having issues cross-cloud? Following up offline to get a bit more context. |
Ok if all the others work, it's either A) configuration issue with the servicebus tests specifically (I'm leaning towards this, |
@benbp What do you think about these comments? Do you think it is a servicebus configuration problem? How do we solve the issue? |
@yunhaoling can you look at this in addition to #20875? Or is there a better sdk service owner? |
@benbp , I will first try to verify it locally before deploying it to CI, if it can't work locally, then might be an issue in the SDK |
@yunhaoling Any progress? |
@benbp, @yunhaoling By my investigation locally, the errors on usgov and china should be related to the scope
Regarding these two methods, which one do you prefer? Please give me some advice. |
@v-xuto I think we should change places in the test framework that are causing problems, and we should not be deploying via the test code, only the ARM template. I think this is mostly done across the python repository but there are still a few places that use the legacy deployment method. @yunhaoling do you know if/where this work is tracked, or am I wrong? |
@yunhaoling Do you have any ideas? |
hey @benbp @v-xuto , apologize for missing the threads here. I agree that we should update the code within the test framework (to be more specific, it's ServiceBusPreparer) to get tests work on UsGov and China Cloud. However, I think it might take extra time if we want to embrace the ARM template approach completely using PowerShellPreparer (or even not feasible). Here's my findings:
I think there is one easy fix: within each
However, I am unsure whether those envs could just be put under the CloudConfig section like this or has to be in other format, @benbp would you be able to help tell what is the right format?
@v-xuto , I think you could try step 1 with local envs to see if it works, if this approach works, then same change could be applied to your EH PR. |
@yunhaoling Thanks for your help. I have tried step 1 with local envs and also add same code in Besides, can I directly modify the code in tools @benbp Please help to set environment variables |
@v-xuto I think instead of updating the Note that there're six |
@rakshith91 Do you have any ideas instead of modifying the resource_testcase.py file? |
@v-xuto im currently working on getting rid of it completely and using the arm template. That will fix this issue. It should be done in a couple of weeks. Sorry for the late update. |
@rakshith91 How is the current progress of this issue? |
@rakshith91 How is your PR going so far? When will this PR be merged? |
@v-xuto I have a few more tests to fix before merging the PR. Meanwhile, feel free to test it on my branch. You'd be seeing some test failures, but no set up failures. cc: @kashifkhan |
@rakshith91 Thank you for your prompt reply. I'm looking forward to your PR being merged soon. |
@rakshith91 How is your PR going so far to fix this issue? |
[Microsoft.StorageSync] New API version 2022-06-01 (Azure#20227) * Adds base for updating Microsoft.StorageSync from version stable/2020-09-01 to version 2022-06-01 * Updates readme * Updates API version in new specs and examples * Swagger API Spec Update for adding Low Disk Mode to Storage Sync (Azure#19725) * Added Low Disk Mode property * Updated API Spec for introducing Low Disk Mode * Updated Examples for API Spec for Low Disk Mode * Updated Examples for Cloud Tiering Status (Azure#19885) * [Microsoft.StorageSync] Add AFS file share metadata certificate public keys API to version 2022-06-01 (S360 compliance) (Azure#20517) * Fix readme.md file so that tag information includes full API version 2022-06-01 * Add afs share metadata certificate public keys API https://portal.azure-devex-tools.com/amekpis/completeness/detail?errorId=DBF8D800-EB0B-48E0-B665-BC91CB1A17B9 * Fix casing of afssharemetadatacertificatepublickeys * Temporarily rename examples file to fix casing issue. * Fix casing of new example file Co-authored-by: ankushbindlish2 <[email protected]> Co-authored-by: Juan Carlos Juarez <[email protected]>
@swathipil What is the current progress on the fix of this issue? |
We are running live Tests against other clouds like US Gov and Azure China Cloud. The goal is to check whether new azure sdk package work with other clouds or not.
Error Description:
When running the test tests\test_queues.py::ServiceBusQueueTests::test_github_issue_6178 on UsGov and China cloud, it runs failed and the error message is shown as following, for more details please check here:
Error Track:
The code that failed is here:
code link2:
Note: We guessed that the environment variable did not set the value of
RESOURCE_REGION
, so the default value ‘westus’ was used, so the resource group was not created successfully in UsGov and China Cloud.Expected Behavior:
The resource group was successfully created and it can be found.
@benbp , @jameszliao-msft , @lmazuel , @lilyjma , @ramya-rao-a and @annatisch for notification.
The text was updated successfully, but these errors were encountered: