Skip to content

Fix PATCH operations in Network#7542

Merged
sergey-shandar merged 7 commits intoAzure:network-october-releasefrom
anton-evseev:network-patch
Oct 21, 2019
Merged

Fix PATCH operations in Network#7542
sergey-shandar merged 7 commits intoAzure:network-october-releasefrom
anton-evseev:network-patch

Conversation

@anton-evseev
Copy link
Contributor

@anton-evseev anton-evseev commented Oct 17, 2019

Changes to PATCH operations in Network specs

  • Remove incorrect tag x-ms-long-running-operation. There only PATCHes in NRP that are async are for virtualNetworkGateway and virtualNetworkGatewayConnection
  • Remove definition of PATCH operation altogether from resources that don't support it (FirewallPolicy, RouteFilterRule, VirtualRouter, VirtualRouterPeering)
  • Fixed incorrect request schema when the whole resource was used instead of just tags object

Contribution checklist:

  • I have reviewed the documentation for the workflow.
  • Validation tools were run on swagger spec(s) and have all been fixed in this PR.
  • The OpenAPI Hub was used for checking validation status and next steps.

ARM API Review Checklist

  • Service team MUST add the "WaitForARMFeedback" label if the management plane API changes fall into one of the below categories.
  • adding/removing APIs.
  • adding/removing properties.
  • adding/removing API-version.
  • adding a new service in Azure.

Failure to comply may result in delays for manifest application. Note this does not apply to data plane APIs.

  • If you are blocked on ARM review and want to get the PR merged urgently, please get the ARM oncall for reviews (RP Manifest Approvers team under Azure Resource Manager service) from IcM and reach out to them.
    Please follow the link to find more details on API review process.

@AutorestCI
Copy link

AutorestCI commented Oct 17, 2019

Automation for azure-sdk-for-python

Encountered a Subprocess error: (azure-sdk-for-python)

Command: ['/usr/local/bin/autorest', '/tmp/tmpy4rbd_f1/rest/specification/network/resource-manager/readme.md', '--keep-version-file', '--multiapi', '--no-async', '--python', '--python-mode=update', '--python-sdks-folder=/tmp/tmpy4rbd_f1/sdk/sdk', '--use=@microsoft.azure/autorest.python@4.0.70', '--version=preview']
Finished with return code -6
and output:

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/@microsoft.azure_autorest-core@2.0.4405/node_modules/@microsoft.azure/autorest-core/dist' (2.0.4405)
   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-09"} .

<--- Last few GCs --->

[29337:0x324ccc0]    71529 ms: Mark-sweep 1378.9 (1425.6) -> 1378.6 (1425.1) MB, 1214.1 / 0.0 ms  (average mu = 0.131, current mu = 0.009) allocation failure scavenge might not succeed
[29337:0x324ccc0]    72749 ms: Mark-sweep 1379.5 (1425.1) -> 1379.2 (1425.6) MB, 1217.2 / 0.0 ms  (average mu = 0.070, current mu = 0.003) allocation failure scavenge might not succeed


<--- JS stacktrace --->

==== JS stack trace =========================================

    0: ExitFrame [pc: 0x12525dc5be1d]
Security context: 0x00460071e6e9 <JSObject>
    1: ParseNodeInternal(aka ParseNodeInternal) [0xa048c045269] [/root/.autorest/@microsoft.azure_autorest-core@2.0.4405/node_modules/@microsoft.azure/autorest-core/dist/lib/ref/yaml.js:~86] [pc=0x12525e3a8481](this=0x1c4fee9826f1 <undefined>,yamlRootNode=0x1667498a0f81 <Object map = 0x3ed6ee8f2461>,yamlNode=0x399f2638f729 <Object map = 0x3ed6ee8f35e9>,onErr...

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: 0x114018e v8::internal::Runtime_AllocateInNewSpace(int, v8::internal::Object**, v8::internal::Isolate*) [node]
12: 0x12525dc5be1d

@azuresdkci
Copy link
Contributor

Can one of the admins verify this patch?

@AutorestCI
Copy link

AutorestCI commented Oct 17, 2019

Automation for azure-sdk-for-go

A PR has been created for you:
Azure/azure-sdk-for-go#6075

@anton-evseev anton-evseev marked this pull request as ready for review October 17, 2019 21:15
@anton-evseev anton-evseev added the WaitForARMFeedback <valid label in PR review process> add this label when ARM review is required label Oct 17, 2019
@anton-evseev
Copy link
Contributor Author

@KrisBash please take a look

Copy link
Contributor

@KrisBash KrisBash left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@KrisBash KrisBash added ARMSignedOff <valid label in PR review process>add this label when ARM approve updates after review and removed WaitForARMFeedback <valid label in PR review process> add this label when ARM review is required labels Oct 18, 2019
# Conflicts:
#	specification/network/resource-manager/Microsoft.Network/stable/2019-09-01/examples/P2SVpnGatewayUpdateTags.json
#	specification/network/resource-manager/Microsoft.Network/stable/2019-09-01/examples/VpnServerConfigurationUpdateTags.json
# Conflicts:
#	specification/network/resource-manager/Microsoft.Network/stable/2019-09-01/routeFilter.json
@sergey-shandar sergey-shandar merged commit 13c64de into Azure:network-october-release Oct 21, 2019
@akning-ms akning-ms added the LintRuleCandidate Lint Rule Candidate label Feb 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ARMSignedOff <valid label in PR review process>add this label when ARM approve updates after review LintRuleCandidate Lint Rule Candidate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants