for-win icon indicating copy to clipboard operation
for-win copied to clipboard

Windows containers , deploy to stack failing, containers keep failing and restarting with HHS error

Open scmikes opened this issue 8 years ago • 4 comments

Note: this is not Moby since this is windows containers only

windows 10 1709 and 1803 , latest edge, windows containers

  1. stack deploy -f docker-compose.yml tc1

  2. docker services ls

  3. docker stack ps tc1 ID NAME IMAGE NODE DESIRED STATE CURRENT STATE ERROR PORTS u30fov09imgs tc1_hello.1 gitlab.industrysoftware.automation.siemens.com:4567/tcmicroserviceframework/samples/hello_service.windows:0.1.4 laptop1 Running Preparing 39 seconds ago 5lq9nslbsu08 tc1_eureka1.1 gitlab.industrysoftware.automation.siemens.com:4567/tcmicroserviceframework/eureka_server.windows:1.6.1_0.1.1 laptop1 Running Preparing 55 seconds ago svbkhyziwtsy tc1_hello.1 gitlab.industrysoftware.automation.siemens.com:4567/tcmicroserviceframework/samples/hello_service.windows:0.1.4 laptop1 Shutdown Rejected 39 seconds ago "HNS failed with error : Unspe…" ipgn4i0r457z tc1_service_dispatcher.1 gitlab.industrysoftware.automation.siemens.com:4567/tcmicroserviceframework/service_dispatcher.windows:0.1.2 laptop1 Running Preparing 55 seconds ago PS C:\workdir\tcdevenvs>

-------------------- docker log-----------------------------------------

PS C:\workdir\tcdevenvs> docker stack ps tc1 ID NAME IMAGE NODE DESIRED STATE CURRENT STATE ERROR PORTS u30fov09imgs tc1_hello.1 gitlab.industrysoftware.automation.siemens.com:4567/tcmicroserviceframework/samples/hello_service.windows:0.1.4 laptop1 Running Preparing 39 seconds ago 5lq9nslbsu08 tc1_eureka1.1 gitlab.industrysoftware.automation.siemens.com:4567/tcmicroserviceframework/eureka_server.windows:1.6.1_0.1.1 laptop1 Running Preparing 55 seconds ago svbkhyziwtsy tc1_hello.1 gitlab.industrysoftware.automation.siemens.com:4567/tcmicroserviceframework/samples/hello_service.windows:0.1.4 laptop1 Shutdown Rejected 39 seconds ago "HNS failed with error : Unspe…" ipgn4i0r457z tc1_service_dispatcher.1 gitlab.industrysoftware.automation.siemens.com:4567/tcmicroserviceframework/service_dispatcher.windows:0.1.2 laptop1 Running Preparing 55 seconds ago

-------------------------- from docker log ------------------------------------------ [00:40:56.514][WindowsDaemon ][Info ] debug: (*Agent).UpdateTaskStatus [module=node/agent node.id=ew1lttm4u17jp97krhs8ek5yf task.id=8br3cpm6t4rmuxfwfqr4nakhj] [00:40:56.514][WindowsDaemon ][Info ] debug: state changed [node.id=ew1lttm4u17jp97krhs8ek5yf task.id=8epw7ags9uhcxknp8yzhyl3z1 service.id=jvl103d7g73fnejo8d71vvi6f state.transition=ACCEPTED->PREPARING state.desired=READY module=node/agent/taskmanager] [00:40:56.514][WindowsDaemon ][Info ] debug: dispatcher committed status update to store [task.id=f9ao75zpgsjkrcnovwp0q0qu9 module=dispatcher node.id=ew1lttm4u17jp97krhs8ek5yf state.transition=ASSIGNED->ACCEPTED method=(*Dispatcher).processUpdates] [00:40:56.514][WindowsDaemon ][Info ] debug: dispatcher committed status update to store [module=dispatcher node.id=ew1lttm4u17jp97krhs8ek5yf method=(*Dispatcher).processUpdates task.id=8epw7ags9uhcxknp8yzhyl3z1 state.transition=ASSIGNED->ACCEPTED] [00:40:56.528][WindowsDaemon ][Info ] debug: task status reported [module=node/agent node.id=ew1lttm4u17jp97krhs8ek5yf] [00:40:56.528][WindowsDaemon ][Info ] debug: (*Agent).UpdateTaskStatus [node.id=ew1lttm4u17jp97krhs8ek5yf module=node/agent task.id=s94ub8ydjoquj0lt8karwrp6m] [00:40:56.528][WindowsDaemon ][Info ] debug: task status reported [module=node/agent node.id=ew1lttm4u17jp97krhs8ek5yf] [00:40:56.528][WindowsDaemon ][Info ] debug: (*Agent).UpdateTaskStatus [module=node/agent node.id=ew1lttm4u17jp97krhs8ek5yf task.id=f9ao75zpgsjkrcnovwp0q0qu9] [00:40:56.528][WindowsDaemon ][Info ] debug: task status reported [module=node/agent node.id=ew1lttm4u17jp97krhs8ek5yf] [00:40:56.529][WindowsDaemon ][Info ] debug: (*Agent).UpdateTaskStatus [module=node/agent node.id=ew1lttm4u17jp97krhs8ek5yf task.id=8epw7ags9uhcxknp8yzhyl3z1] [00:40:56.529][WindowsDaemon ][Info ] debug: task status reported [module=node/agent node.id=ew1lttm4u17jp97krhs8ek5yf] [00:40:56.529][WindowsDaemon ][Info ] debug: Allocating IPv4 pools for network ingress (9pjbnzl4ugmqbrfdummyecndz) [00:40:56.529][WindowsDaemon ][Info ] debug: RequestPool(LocalDefault, 10.255.0.0/16, , map[], false) [00:40:56.529][WindowsDaemon ][Info ] debug: Received set for ordinal 0, start 0, end 0, any false, release false, serial:false curr:0

[00:40:56.529][WindowsDaemon ][Info ] debug: Received set for ordinal 65535, start 0, end 0, any false, release false, serial:false curr:0

[00:40:56.530][WindowsDaemon ][Info ] debug: RequestAddress(LocalDefault/10.255.0.0/16, 10.255.0.1, map[RequestAddressType:com.docker.network.gateway]) [00:40:56.530][WindowsDaemon ][Info ] debug: Received set for ordinal 1, start 0, end 0, any false, release false, serial:false curr:0

[00:40:56.530][WindowsDaemon ][Info ] HNSNetwork Request ={"Name":"9pjbnzl4ugmqbrfdummyecndz","Type":"overlay","Subnets":[{"AddressPrefix":"10.255.0.0/16","GatewayAddress":"10.255.0.1","Policies":[{"Type":"VSID","VSID":4096}]}],"AutomaticDNS":true} [00:40:56.530][WindowsDaemon ][Info ] debug: [POST]=>[/networks/] Request : {"Name":"9pjbnzl4ugmqbrfdummyecndz","Type":"overlay","Subnets":[{"AddressPrefix":"10.255.0.0/16","GatewayAddress":"10.255.0.1","Policies":[{"Type":"VSID","VSID":4096}]}],"AutomaticDNS":true} [00:40:56.530][WindowsDaemon ][Info ] debug: Allocating IPv4 pools for network tc1_default (yhtnbrfy1zf10h4rk5kubecw1) [00:40:56.530][WindowsDaemon ][Info ] debug: RequestPool(LocalDefault, 10.0.0.0/24, , map[], false) [00:40:56.531][WindowsDaemon ][Info ] debug: Received set for ordinal 0, start 0, end 0, any false, release false, serial:false curr:0

[00:40:56.531][WindowsDaemon ][Info ] debug: Received set for ordinal 255, start 0, end 0, any false, release false, serial:false curr:0

[00:40:56.531][WindowsDaemon ][Info ] debug: RequestAddress(LocalDefault/10.0.0.0/24, 10.0.0.1, map[RequestAddressType:com.docker.network.gateway]) [00:40:56.531][WindowsDaemon ][Info ] debug: Received set for ordinal 1, start 0, end 0, any false, release false, serial:false curr:0

[00:40:56.532][WindowsDaemon ][Info ] HNSNetwork Request ={"Name":"yhtnbrfy1zf10h4rk5kubecw1","Type":"overlay","Subnets":[{"AddressPrefix":"10.0.0.0/24","GatewayAddress":"10.0.0.1","Policies":[{"Type":"VSID","VSID":4098}]}],"AutomaticDNS":true} [00:40:56.532][WindowsDaemon ][Info ] debug: [POST]=>[/networks/] Request : {"Name":"yhtnbrfy1zf10h4rk5kubecw1","Type":"overlay","Subnets":[{"AddressPrefix":"10.0.0.0/24","GatewayAddress":"10.0.0.1","Policies":[{"Type":"VSID","VSID":4098}]}],"AutomaticDNS":true} [00:40:56.532][WindowsDaemon ][Info ] debug: releasing IPv4 pools from network ingress (9pjbnzl4ugmqbrfdummyecndz) [00:40:56.532][WindowsDaemon ][Info ] debug: ReleaseAddress(LocalDefault/10.255.0.0/16, 10.255.0.1) [00:40:56.532][WindowsDaemon ][Info ] debug: Received set for ordinal 1, start 0, end 0, any false, release true, serial:false curr:0

[00:40:56.533][WindowsDaemon ][Info ] debug: releasing IPv4 pools from network tc1_default (yhtnbrfy1zf10h4rk5kubecw1) [00:40:56.533][WindowsDaemon ][Info ] debug: ReleasePool(LocalDefault/10.255.0.0/16) [00:40:56.533][WindowsDaemon ][Info ] debug: ReleaseAddress(LocalDefault/10.0.0.0/24, 10.0.0.1) [00:40:56.533][WindowsDaemon ][Error ] fatal task error [error=HNS failed with error : An adapter was not found. service.id=z9nt3wigh94knf5u4mqmtqq5v node.id=ew1lttm4u17jp97krhs8ek5yf module=node/agent/taskmanager task.id=s94ub8ydjoquj0lt8karwrp6m] [00:40:56.533][WindowsDaemon ][Info ] debug: Allocating IPv4 pools for network ingress (9pjbnzl4ugmqbrfdummyecndz) [00:40:56.533][WindowsDaemon ][Info ] debug: state changed [service.id=z9nt3wigh94knf5u4mqmtqq5v node.id=ew1lttm4u17jp97krhs8ek5yf module=node/agent/taskmanager task.id=s94ub8ydjoquj0lt8karwrp6m state.desired=READY state.transition=PREPARING->REJECTED] [00:40:56.534][WindowsDaemon ][Info ] debug: Received set for ordinal 1, start 0, end 0, any false, release true, serial:false curr:0

[00:40:56.534][WindowsDaemon ][Info ] debug: RequestPool(LocalDefault, 10.255.0.0/16, , map[], false) [00:40:56.534][WindowsDaemon ][Info ] debug: ReleasePool(LocalDefault/10.0.0.0/24) [00:40:56.534][WindowsDaemon ][Error ] fatal task error [error=HNS failed with error : An adapter was not found. module=node/agent/taskmanager node.id=ew1lttm4u17jp97krhs8ek5yf task.id=f9ao75zpgsjkrcnovwp0q0qu9 service.id=jogrgbdfesljbsliroz1y9977] [00:40:56.535][WindowsDaemon ][Info ] debug: (*Agent).UpdateTaskStatus [node.id=ew1lttm4u17jp97krhs8ek5yf module=node/agent task.id=s94ub8ydjoquj0lt8karwrp6m] [00:40:56.535][WindowsDaemon ][Info ] debug: Received set for ordinal 0, start 0, end 0, any false, release false, serial:false curr:0

!-- Please, check https://docs.docker.com/docker-for-win/troubleshoot/. Issues without logs and details cannot be debugged, and will be closed.

Replace - [ ] with - [x], or click after having submitted the issue. -->

  • [x] I have tried with the latest version of my channel (Stable or Edge)
  • [ ] I have submitted Diagnostics
  • [ ] I have included the Diagnostics ID in this Issue
  • Windows Version:
  • Docker for Windows Version:

Expected behavior

Actual behavior

Information

Steps to reproduce the behavior

  1. ...
  2. ...

scmikes avatar May 03 '18 14:05 scmikes

Note: this seems to be the same issue reported on #1972 . That was reject as a moby issue, both this bug and #1972 occurs with windows containers, so Moby should not be a player

scmikes avatar May 03 '18 15:05 scmikes

It is a moby issue. All the Windows container development happens on moby/moby and Docker for Windows just packages this up via a release. Especially for Windows containers we pretty much re-use the moby/moby code directly (for running Linux containers we do fair bit of additional work, except for LCOW, which again is mostly directly moby/moby code). So, I'm closing this issue and would suggest to open an issue on moby/moby. If you can also repro this on Window Server and Docker EE you could also try the Microsoft support as suggested here: http://success.docker.com/article/where-to-get-help-with-windows

rn avatar May 03 '18 15:05 rn

Thank you, Good to know

scmikes avatar May 03 '18 17:05 scmikes

Closed issues are locked after 30 days of inactivity. This helps our team focus on active issues.

If you have found a problem that seems similar to this, please open a new issue.

Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. /lifecycle locked

docker-robott avatar Jun 28 '20 03:06 docker-robott