-
Notifications
You must be signed in to change notification settings - Fork 260
Closed
Description
Requests made to the /network/publishnetworkcontainer endpoint fail with the following error message:
Failed to decode *cns.PublishNetworkContainerRequest &{NetworkID:3ea285c0-2c61-47d0-bcc0-1d7529f978f7 NetworkContainerID:617a3122-1ef6-481c-b6dc-9851fef130b2 JoinNetworkURL:http://127.0.0.1:9001/machine/plugins/?comp=nmagent&type=NetworkManagement/joinedVirtualNetworks/3ea285c0-2c61-47d0-bcc0-1d7529f978f7/api-version/1 CreateNetworkContainerURL:http://127.0.0.1:9001/machine/plugins/?comp=nmagent&type=NetworkManagement/interfaces/172.17.0.1/networkContainers/617a3122-1ef6-481c-b6dc-9851fef130b2/ CreateNetworkContainerRequestBody:{ID: VNetID: Version:0 SubnetName: IPv4Addrs:[] Policies:[] VlanID:0 GREKey:0 AuthenticationToken: PrimaryAddress:}} json: cannot unmarshal string into Go struct field PublishNetworkContainerRequest.CreateNetworkContainerRequestBody of type nmagent.PutNetworkContainerRequest.
This is a regression caused by a change to the requests expected by CNS from clients. This violates the de-facto API contract established by CNS.
Metadata
Metadata
Assignees
Labels
No labels