-
Notifications
You must be signed in to change notification settings - Fork 539
Description
Hi,
I try to use SDN on 2-node Hyper-V Cluster, which use disk array as a storage. I have installed SDN using SDNExpress.ps1 - It finished successfully. Now I tried to create VirtualGateway with ipsec NetworkConnections using Powershell and I have got such answer:
VERBOSE: Performing the operation "New-NetworkControllerVirtualGateway" on target "entities of type 'Microsoft.Windows.NetworkController.VirtualGateway' via 'https://sdn2.doraco.pl/networking/V5/virtualgateways/Doraco'".
VERBOSE: Performing the operation "New-NetworkControllerVirtualGateway" on target "entities of type 'Microsoft.Windows.NetworkController.VirtualGateway' via 'https://sdn2.doraco.pl/networking/V4.2/virtualgateways/Doraco'".
VERBOSE: Performing the operation "New-NetworkControllerVirtualGateway" on target "entities of type 'Microsoft.Windows.NetworkController.VirtualGateway' via 'https://sdn2.doraco.pl/networking/V4/virtualgateways/Doraco'".
VERBOSE: PUT https://sdn2.doraco.pl/networking/V5/virtualgateways/Doraco with -1-byte payload
VERBOSE: PUT https://sdn2.doraco.pl/networking/V4.2/virtualgateways/Doraco with -1-byte payload
VERBOSE: PUT https://sdn2.doraco.pl/networking/V4/virtualgateways/Doraco with -1-byte payload
VERBOSE: received 13746-byte response of content type application/json; charset=utf-8
VERBOSE: GET https://sdn2.doraco.pl/networking/V1/operations/fd312225-7502-45e3-8b74-f8d76c7ed93c with 0-byte payload
VERBOSE: received 30-byte response of content type application/json; charset=utf-8
VERBOSE: GET https://sdn2.doraco.pl/networking/V1/operations/fd312225-7502-45e3-8b74-f8d76c7ed93c with 0-byte payload
VERBOSE: received 30-byte response of content type application/json; charset=utf-8
VERBOSE: GET https://sdn2.doraco.pl/networking/V1/operations/fd312225-7502-45e3-8b74-f8d76c7ed93c with 0-byte payload
VERBOSE: received 268-byte response of content type application/json; charset=utf-8
Terminating error was thrown while executing 'C:\Windows\system32\WindowsPowerShell\v1.0\Modules\NetworkController\Microsoft.NetworkController.Powershell.dll' operation on the server side endpoint 'https://sdn2.doraco.pl/networking/V1/operations/fd312225-750
2-45e3-8b74-f8d76c7ed93c'.
I discovered that VirtualGateway is created, but is something wrong with it:
RoutingType : Dynamic
ProvisioningState : Failed
ConfigurationState :
NetworkConnections : {ccfef1fb-3f55-4dc1-98d7-f4eb2c4cc72d, c755aec6-2015-43f0-9c76-c0ad595ea74b, bbd6d699-f102-4411-8989-6a3a4d9a95f2, 31dda1e8-2010-44c0-b6f7-300ca23e9d9a...}
BgpRouters :
PolicyMaps :
GatewayPools : {00000000-0000-0000-0000-000000000000}
GatewaySubnets : {00000000-0000-0000-0000-000000000000}
I tried to remove this VirtualGateway:
Remove-NetworkControllerVirtualGateway -ResourceId Doraco -ConnectionUri $SDNUri -PassInnerException $true
but it also was unsuccessful:
Exception calling "ProcessRecord" with "1" argument(s): "{
"error": {
"code": "PreconditionFailed",
"message": "Etag provided in if-match header W/\"True\" does not match etag in the store W/\"159c8f24-1155-481b-a7ce-cbea43cf8701\".",
"innerError": "Microsoft.WindowsAzure.Networking.Nrp.Frontend.Common.NrpException: Etag provided in if-match header W/\"True\" does not match etag in the store W/\"159c8f24-1155-481b-a7ce-cbea43cf8701\".\r\n at Microsoft.WindowsAzure.Networking.Nrp.Fr
ontend.Operations.OperationBase`1.ThrowPreconditionFailed(String requestedEtag, String existingEtag, String id)\r\n at Microsoft.WindowsAzure.Networking.Nrp.Frontend.Operations.OperationBase`1.CheckEtag(Resource resource, String id, String etag)\r\n at
Microsoft.Windows.Networking.NetworkController.RestApi.Common.Operations.DeleteResourceDefaultOperation`1.DefaultExecuteTopLevelResource()\r\n at Microsoft.Windows.Networking.NetworkController.RestApi.Common.Operations.DeleteResourceDefaultOperation`1.Exe
cute()\r\n at Microsoft.WindowsAzure.Networking.Nrp.Frontend.Operations.OperationBase`1.Run()"
}
}"
At line:353 char:7
+ $__cmdletization_objectModelWrapper.ProcessRecord($__cmdletizat ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : CmdletInvocationException
Please help me.