neerajmangal opened a new issue #475: Invoker pod should pull runtime images 
from defined docker registry.
URL: https://github.com/apache/incubator-openwhisk-deploy-kube/issues/475
 
 
   ## Description 
   
   Invoker tried to pull images from the default docker registry, even if 
docker runtime registry is explicitly defined. 
   
   ## How to reproduce this issue
   
   Enable docker registry runtime in mycluster.yaml 
   
   ```bash
   docker:
     registry:
       name: "<DockerRegistry>.corp.adobe.com/"
       username: mangal
       password: "DockerRegistryPassword"
   ```
   
   ## Troubleshooting 
   
   Invoker pod tried to pull runtime registries from default docker hub even if 
custom docker runtime registry is defined. 
   
   ```bash
   
   [2019-06-10T06:41:30.586Z] [INFO] [#tid_sid_dispatcher] [MessageFeed] 
handler capacity = 16, pipeline fill at = 16, pipeline depth = 32
   [2019-06-10T06:41:30.878Z] [INFO] [#tid_sid_invokerWarmup] [ContainerPool] 
pre-warming 2 nodejs:10 256 MB
   [2019-06-10T06:41:33.083Z] [WARN] [0 (WaitingForResponseEntitySubscription)] 
Response entity was not subscribed after 1 second. Make sure to read the 
response entity body or call `discardBytes()` on it. GET 
/test_subjects/_design/namespaceThrottlings/_view/blockedNamespaces Empty -> 
200 OK Chunked
   [2019-06-10T06:41:34.878Z] [ERROR] [#tid_sid_unknown] [InvokerReactive] 
error on updating the blacklist: Substream Source cannot be materialized more 
than once
   [2019-06-10T06:41:34.975Z] [ERROR] [#tid_sid_invoker] [CouchDbRestStore] 
[QUERY] 'test_subjects' internal error, failure: 'Substream Source cannot be 
materialized more than once' [marker:database_queryView_error:47997:8693]
   [2019-06-10T06:41:36.077Z] [INFO] [#tid_sid_invokerWarmup] 
[DockerClientWithFileAccess] running /usr/bin/docker run -d --cpu-shares 128 
--memory 256m --memory-swap 256m --network bridge -e 
__OW_API_HOST=https://:31001 --dns 172.32.0.10 --dns-search 
faask8s.svc.cluster.local --dns-search svc.cluster.local --dns-search 
cluster.local --dns-search corp.adobe.com --dns-search eur.adobe.com 
--dns-search sea.adobe.com --dns-option options --dns-option ndots:5 --name 
wskor1dra846.corp.adobe.com3_2_prewarm_nodejs10 --pids-limit 1024 --cap-drop 
NET_RAW --cap-drop NET_ADMIN --ulimit nofile=1024:1024 --log-driver json-file 
--env __OW_ALLOW_CONCURRENT=false openwhisk/action-nodejs-v10:ab224ab (timeout: 
1 minute) [marker:invoker_docker.run_start:49296]
   [2019-06-10T06:41:36.078Z] [INFO] [#tid_sid_invokerWarmup] 
[DockerClientWithFileAccess] running /usr/bin/docker run -d --cpu-shares 128 
--memory 256m --memory-swap 256m --network bridge -e 
__OW_API_HOST=https://:31001 --dns 172.32.0.10 --dns-search 
faask8s.svc.cluster.local --dns-search svc.cluster.local --dns-search 
cluster.local --dns-search corp.adobe.com --dns-search eur.adobe.com 
--dns-search sea.adobe.com --dns-option options --dns-option ndots:5 --name 
wskor1dra846.corp.adobe.com3_1_prewarm_nodejs10 --pids-limit 1024 --cap-drop 
NET_RAW --cap-drop NET_ADMIN --ulimit nofile=1024:1024 --log-driver json-file 
--env __OW_ALLOW_CONCURRENT=false openwhisk/action-nodejs-v10:ab224ab (timeout: 
1 minute) [marker:invoker_docker.run_start:49296]
   [2019-06-10T06:41:55.175Z] [ERROR] [#tid_sid_invokerWarmup] 
[DockerClientWithFileAccess] info: command was unsuccessful, code: 125 
(unsuccessful), stdout: , stderr: Unable to find image 
'openwhisk/action-nodejs-v10:ab224ab' locally
   /usr/bin/docker: Error response from daemon: Get 
https://registry-1.docker.io/v2/: read tcp 
10.51.65.177:48832->52.70.175.131:443: read: connection reset by peer.
   See '/usr/bin/docker run --help'. 
[marker:invoker_docker.run_error:68298:19002]
   [2019-06-10T06:41:55.176Z] [ERROR] [#tid_sid_invokerWarmup] 
[DockerClientWithFileAccess] info: command was unsuccessful, code: 125 
(unsuccessful), stdout: , stderr: Unable to find image 
'openwhisk/action-nodejs-v10:ab224ab' locally
   /usr/bin/docker: Error response from daemon: Get 
https://registry-1.docker.io/v2/: read tcp 
10.51.65.177:44714->34.233.151.211:443: read: connection reset by peer.
   See '/usr/bin/docker run --help'. 
[marker:invoker_docker.run_error:68298:19002]
   
   ```
   Found that environment CONFIG_whisk_containerFactory_runtimeRegistry_url is 
not defined while creating invoker template. 
   
   # Solution
   
    - Adding CONFIG_whisk_containerFactory_runtimeRegistry_url as env if docker 
registry is defined in invoker pod.  
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to