-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Virtual Wan point to site feature redesign:- #7238
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
Virtual Wan point to site feature redesign:- #7238
Conversation
Automation for azure-sdk-for-pythonEncountered a Subprocess error: (azure-sdk-for-python)
Command: ['/usr/local/bin/autorest', '/tmp/tmpuefj4e8u/rest/specification/network/resource-manager/readme.md', '--keep-version-file', '--multiapi', '--no-async', '--python', '--python-mode=update', '--python-sdks-folder=/tmp/tmpuefj4e8u/sdk/sdk', '[email protected]/[email protected]', '--version=preview'] AutoRest code generation utility [version: 2.0.4283; node: v10.15.3]
(C) 2018 Microsoft Corporation.
https://aka.ms/autorest
Loading AutoRest core '/root/.autorest/@[email protected]/node_modules/@microsoft.azure/autorest-core/dist' (2.0.4399)
Loading AutoRest extension '@microsoft.azure/autorest.python' (4.0.70->4.0.70)
Loading AutoRest extension '@microsoft.azure/autorest.modeler' (2.3.44->2.3.44)
Processing batch task - {"tag":"package-2019-06"} .
<--- Last few GCs --->
[28686:0x3cf1cc0] 94677 ms: Mark-sweep 1382.0 (1427.8) -> 1381.9 (1427.8) MB, 2355.1 / 0.0 ms (average mu = 0.144, current mu = 0.001) allocation failure GC in old space requested
[28686:0x3cf1cc0] 97039 ms: Mark-sweep 1382.3 (1427.8) -> 1382.2 (1428.3) MB, 2360.5 / 0.0 ms (average mu = 0.078, current mu = 0.001) allocation failure GC in old space requested
<--- JS stacktrace --->
==== JS stack trace =========================================
0: ExitFrame [pc: 0x178786edbe1d]
Security context: 0x12e4ce21e6e9 <JSObject>
1: newScalar [0x5690a1b4461] [/node_modules/yaml-ast-parser/dist/src/yamlAST.js:~38] [pc=0x1787874a1e36](this=0x1ba5e75b0eb9 <Object map = 0x2e6e01aa2339>,v=0x3a1d46b826f1 <undefined>)
2: arguments adaptor frame: 0->1
3: readDoubleQuotedScalar(aka readDoubleQuotedScalar) [0x5690a1b4341] [/node_modules/yaml-ast-parser/dist/src/loader.js:~530] [pc=...
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
1: 0x8dc510 node::Abort() [node]
2: 0x8dc55c [node]
3: 0xad9b5e v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [node]
4: 0xad9d94 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [node]
5: 0xec7bf2 [node]
6: 0xec7cf8 v8::internal::Heap::CheckIneffectiveMarkCompact(unsigned long, double) [node]
7: 0xed3dd2 v8::internal::Heap::PerformGarbageCollection(v8::internal::GarbageCollector, v8::GCCallbackFlags) [node]
8: 0xed4704 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [node]
9: 0xed7371 v8::internal::Heap::AllocateRawWithRetryOrFail(int, v8::internal::AllocationSpace, v8::internal::AllocationAlignment) [node]
10: 0xea07f4 v8::internal::Factory::NewFillerObject(int, bool, v8::internal::AllocationSpace) [node]
11: 0x11402db v8::internal::Runtime_AllocateInTargetSpace(int, v8::internal::Object**, v8::internal::Isolate*) [node]
12: 0x178786edbe1d |
|
VpnServerConfiguration resource APIs were already reviewed and signed off as a part of past PR:- #6644 |
|
Can one of the admins verify this patch? |
Automation for azure-sdk-for-goNothing to generate for azure-sdk-for-go |
anton-evseev
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
API version in the following examples is wrong
P2SVpnGatewayGetConnectionHealthDetailed.json
VpnServerConfigurationDelete.json
VpnServerConfigurationGet.json
VpnServerConfigurationList.json
VpnServerConfigurationListByResourceGroup.json
VpnServerConfigurationPut.json
VpnServerConfigurationUpdateTags.json
| } | ||
| }, | ||
| "responses": { | ||
| "200": {}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
200 should return P2SVpnConnectionHealth according to specs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
| "api-version": "2019-08-01", | ||
| "virtualWANName": "wan1" | ||
| }, | ||
| "responses": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Specs also define 202 response, please add it to example (it should be empty though)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
|
This looks like breaking change. |
|
@majastrz please review this from ARM's side |
Done. |
…azure-rest-api-specs into network-september-release2
| } | ||
| } | ||
| }, | ||
| "x-ms-long-running-operation": true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"x-ms-long-running-operation": true [](start = 8, length = 35)
Is it actually asynchronous? You're just setting new tags right? If it is intentionally marked as long running, you should add x-ms-long-running-operation-options #Closed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done. #Closed
| }, | ||
| "x-ms-long-running-operation": true, | ||
| "x-ms-long-running-operation-options": { | ||
| "final-state-via": "location" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"final-state-via": "location" [](start = 10, length = 29)
So PUT is using azure-async-operation and DELETE is using location. Should these be consistent? #Closed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes it was intentional and its similar to other networking resources. #Closed
| } | ||
| } | ||
| }, | ||
| "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualWans/{virtualWanName}/p2sVpnServerConfigurations/{p2SVpnServerConfigurationName}": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
p2sVpnServerConfigurations/{p2SVpnServerConfigurationName} [](start = 129, length = 58)
What's the plan for migrating existing resources when you delete this? Are you following the applicable steps documented at https://armwiki.azurewebsites.net/api_contracts/APIDeprecationPolicy.html?q=deprecation?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You will need to pay attention to the policy part of that document because there exist policy aliases for this resource type.
In reply to: 325936168 [](ancestors = 325936168)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, we have already contacted existing customers (3 months back) to delete these resources and whoever didn't delete, we have already done the cleanup on their behalf as per the deadline communicated. So, there are no existing P2SVpnServerConfiguration resources owned by customers on Production. Now, new design changes are already released and so customer can no more create P2SVpnServerConfiguration resource. However, from next time, we will follow the steps documented at link.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Nilambari, see my message in the email thread. Please look at the ARM deprecation guidelines (link in email). They include steps for contacting the Azure Policy team to determine the impact to customer policies, and to have us remove aliases as the properties are removed.
|
@mentat9 is added to the review. #Closed |
| "parameters": [ | ||
| { | ||
| "$ref": "./network.json#/parameters/SubscriptionIdParameter" | ||
| }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[](start = 12, length = 2)
nit - extra tabs #Closed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done. #Closed
| "$ref": "./network.json#/parameters/SubscriptionIdParameter" | ||
| } | ||
| ], | ||
| "responses": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
responses [](start = 9, length = 9)
You should also have a default response on all operations to capture errors. I see this on new changes and old.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
| } | ||
| } | ||
| }, | ||
| "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualWans/{virtualWANName}/vpnServerConfigurations": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
vpnServerConfigurations [](start = 129, length = 23)
The name vpnServerConfigurations suggests that this is a nested resource type but this is an action on the wan. Can you rename it to something more imperative?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No as per new design. VpnServerConfiguration is a new Top level resource. It contains the VPN configurations which resides on server (P2SVpnGateway) when attached to it. Actually, we have finalized this resource name after through discussion.
majastrz
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added some comments. Please take a look.
|
@majastrz Incorporated review comments, Please take a look. Thanks! #Resolved |
| "default": { | ||
| "description": "Error.", | ||
| "schema": { | ||
| "$ref": "./network.json#/definitions/Error" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Error [](start = 51, length = 5)
The ./network.json#/definitions/Error definition is not the right one. The standard error response documented at https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/common-api-details.md#common-api-response-details looks like this:
{
"error": {
"code": "...",
"message": "...",
....
}
}
But the one you're referencing looks like this.
{
"code": "...",
"message": "...",
....
}
``` #Resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
majastrz
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's an issue with the default error response schema. I added a comment.
@majastrz Fixed it. #Resolved |
|
Looks good now. In reply to: 533361590 [](ancestors = 533361590) |
majastrz
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Signed off from ARM side.
| ], | ||
| "description": "P2SConnectionConfiguration Resource." | ||
| }, | ||
| "DefaultError": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Nilambari @majastrz this is a fourth (!) definition of the same cloud error in Network specs. We're planning to fix that soon by re-using ARM's common definitions but for now please reference CloudError from ddosCustomPolicy.json
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure. I will refer to CloudError from ddosCustomPolicy.json everywhere in this swagger spec.
|
@number213 Build is passed. Can you help merge the changes? |
|
@tjprescott could you please merge this PR? |
* Adds base for updating Microsoft.Network from version stable/2019-07-01 to version 2019-08-01 * Updates readme * Updates API version in new specs and examples * Add reference to Connection Monitor specs in 2019-08-01 (#7218) * Support AH protocol (#7231) * Virtual Network BGP Communities (#7248) * Virtual Wan point to site feature redesign:- (#7238) * Virtual Wan point to site feature redesign * Fix examples * Fix validation errors * Fix validation error * Fix validation errors * Incorporate review comments * Fix default error in standard error response * Fix validation error * Refer to default error from ddos swagger spec * Fix build error * Firewall Manager Feature Swagger Updates for Public Preview (#7266) * Adding the structure of urlConfiguration in rewriteRuleActionSet (#7275) * Revert "Adding the structure of urlConfiguration in rewriteRuleActionSet (#7275)" (#7333) This reverts commit e89f35d. * Virtual network gateway changes for dns forwarding (#7359) * Virtuan network gateway changes for dns forwarding * Fixed example response * Fixed examples * Fixed 201 example * Top-level WAF (#7222) * Move new props to the end to avoid breaking changes in SDK (#7387)
Latest improvements:
MSFT employees can try out our new experience at OpenAPI Hub - one location for using our validation tools and finding your workflow.
Contribution checklist:
ARM API Review Checklist
Failure to comply may result in delays for manifest application. Note this does not apply to data plane APIs.
Please follow the link to find more details on API review process.