{"action":"created","issue":{"url":"https://api.github.com/repos/openfaas/faas-netes/issues/265","repository_url":"https://api.github.com/repos/openfaas/faas-netes","labels_url":"https://api.github.com/repos/openfaas/faas-netes/issues/265/labels{/name}","comments_url":"https://api.github.com/repos/openfaas/faas-netes/issues/265/comments","events_url":"https://api.github.com/repos/openfaas/faas-netes/issues/265/events","html_url":"https://github.com/openfaas/faas-netes/issues/265","id":345354096,"node_id":"MDU6SXNzdWUzNDUzNTQwOTY=","number":265,"title":"Gateway: nats: no servers available for connection","user":{"login":"maheshvra","id":23004567,"node_id":"MDQ6VXNlcjIzMDA0NTY3","avatar_url":"https://avatars2.githubusercontent.com/u/23004567?v=4","gravatar_id":"","url":"https://api.github.com/users/maheshvra","html_url":"https://github.com/maheshvra","followers_url":"https://api.github.com/users/maheshvra/followers","following_url":"https://api.github.com/users/maheshvra/following{/other_user}","gists_url":"https://api.github.com/users/maheshvra/gists{/gist_id}","starred_url":"https://api.github.com/users/maheshvra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maheshvra/subscriptions","organizations_url":"https://api.github.com/users/maheshvra/orgs","repos_url":"https://api.github.com/users/maheshvra/repos","events_url":"https://api.github.com/users/maheshvra/events{/privacy}","received_events_url":"https://api.github.com/users/maheshvra/received_events","type":"User","site_admin":false},"labels":[{"id":883590666,"node_id":"MDU6TGFiZWw4ODM1OTA2NjY=","url":"https://api.github.com/repos/openfaas/faas-netes/labels/support","name":"support","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-07-27T20:18:15Z","updated_at":"2018-07-30T20:04:38Z","closed_at":null,"author_association":"NONE","body":"Since my org does not allow pulling images from public registry, pulled images and pushed to private registry, made required changes in faas-netes/yaml\r\n`kubectl apply -f faas-netes/yaml`\r\ndeployed all components except `gateway`\r\n\r\n## Expected Behaviour\r\nAll pods should be up and gateway endpoint url should be reachable\r\n\r\n## Current Behaviour\r\nGateway pod failed. i.e. gateway-78947cc7f6-tv6pr        1/2       Error     1          3s\r\n\r\ncontainer logs: gateway\r\n<pre>2018/07/27 19:28:47 HTTP Read Timeout: 35s\r\n2018/07/27 19:28:47 HTTP Write Timeout: 35s\r\n2018/07/27 19:28:47 Binding to external function provider: http://127.0.0.1:8081/\r\n2018/07/27 19:28:47 Async enabled: Using NATS Streaming.\r\n2018/07/27 19:28:47 Opening connection to nats://nats.openfaas.svc.cluster.local.:4222\r\n2018/07/27 19:28:47 nats: no servers available for connection\r\n</pre>\r\n\r\ncontainer logs: faas-netes\r\n\r\n<pre>2018/07/27 19:25:47 HTTP Read Timeout: 10s\r\n2018/07/27 19:25:47 HTTP Write Timeout: 10s\r\n2018/07/27 19:25:47 Function Readiness Probe Enabled: true</pre>\r\n\r\ncontainer logs: nats\r\n\r\n<pre>kubectl logs -f nats-6bb7bdf7cb-g9hqc -n openfaas\r\n[1] 2018/07/27 19:20:51.186409 [INF] STREAM: Starting nats-streaming-server[faas-cluster] version 0.6.0\r\n[1] 2018/07/27 19:20:51.186450 [INF] STREAM: ServerID: kOwMlMa9u5C5fk2GzUtNCb\r\n[1] 2018/07/27 19:20:51.186456 [INF] STREAM: Go version: go1.9.1\r\n[1] 2018/07/27 19:20:51.186679 [INF] Starting nats-server version 1.0.4\r\n[1] 2018/07/27 19:20:51.186811 [INF] Listening for client connections on 0.0.0.0:4222\r\n[1] 2018/07/27 19:20:51.186818 [INF] Server is ready\r\n[1] 2018/07/27 19:20:51.464361 [INF] STREAM: Message store is MEMORY\r\n[1] 2018/07/27 19:20:51.464448 [INF] STREAM: ---------- Store Limits ----------\r\n[1] 2018/07/27 19:20:51.464458 [INF] STREAM: Channels:                  100 *\r\n[1] 2018/07/27 19:20:51.464465 [INF] STREAM: --------- Channels Limits --------\r\n[1] 2018/07/27 19:20:51.464471 [INF] STREAM:   Subscriptions:          1000 *\r\n[1] 2018/07/27 19:20:51.464476 [INF] STREAM:   Messages     :       1000000 *\r\n[1] 2018/07/27 19:20:51.464482 [INF] STREAM:   Bytes        :     976.56 MB *\r\n[1] 2018/07/27 19:20:51.464488 [INF] STREAM:   Age          :     unlimited *\r\n[1] 2018/07/27 19:20:51.464494 [INF] STREAM: ----------------------------------</pre>\r\n\r\n## Possible Solution\r\nI did not face any issue deploying openfaas in my personal cloud account. I am facing this issue when using org. cloud account. Should i have any SG port/protocol open.\r\n\r\n\r\n## Context\r\n<!--- How has this issue affected you? What are you trying to accomplish? -->\r\n<!--- Providing context helps us come up with a solution that is most useful in the real world -->\r\n\r\n## Your Environment\r\n* Docker version `docker version` (e.g. Docker 17.0.05 ):\r\n<pre>Client:\r\n Version:\t17.12.0-ce\r\n API version:\t1.35\r\n Go version:\tgo1.9.2\r\n Git commit:\tc97c6d6\r\n Built:\tWed Dec 27 20:03:51 2017\r\n OS/Arch:\tdarwin/amd64\r\n\r\nServer:\r\n Engine:\r\n  Version:\t17.12.0-ce\r\n  API version:\t1.35 (minimum version 1.12)\r\n  Go version:\tgo1.9.2\r\n  Git commit:\tc97c6d6\r\n  Built:\tWed Dec 27 20:12:29 2017\r\n  OS/Arch:\tlinux/amd64\r\n  Experimental:\ttrue</pre>\r\n\r\n* What version and distriubtion of Kubernetes are you using? `kubectl version`\r\nClient Version: version.Info{Major:\"1\", Minor:\"9\", GitVersion:\"v1.9.3\", GitCommit:\"d2835416544f298c919e2ead3be3d0864b52323b\", GitTreeState:\"clean\", BuildDate:\"2018-02-07T12:22:21Z\", GoVersion:\"go1.9.2\", Compiler:\"gc\", Platform:\"darwin/amd64\"}\r\nServer Version: version.Info{Major:\"1\", Minor:\"8\", GitVersion:\"v1.8.3\", GitCommit:\"f0efb3cb883751c5ffdbe6d515f3cb4fbe7b7acd\", GitTreeState:\"clean\", BuildDate:\"2017-11-08T18:27:48Z\", GoVersion:\"go1.8.3\", Compiler:\"gc\", Platform:\"linux/amd64\"}\r\n\r\n* Operating System and version (e.g. Linux, Windows, MacOS): MacOS\r\n\r\n* What network driver are you using and what CIDR? i.e. Weave net / Flannel\r\ncalico\r\n"},"comment":{"url":"https://api.github.com/repos/openfaas/faas-netes/issues/comments/408992188","html_url":"https://github.com/openfaas/faas-netes/issues/265#issuecomment-408992188","issue_url":"https://api.github.com/repos/openfaas/faas-netes/issues/265","id":408992188,"node_id":"MDEyOklzc3VlQ29tbWVudDQwODk5MjE4OA==","user":{"login":"maheshvra","id":23004567,"node_id":"MDQ6VXNlcjIzMDA0NTY3","avatar_url":"https://avatars2.githubusercontent.com/u/23004567?v=4","gravatar_id":"","url":"https://api.github.com/users/maheshvra","html_url":"https://github.com/maheshvra","followers_url":"https://api.github.com/users/maheshvra/followers","following_url":"https://api.github.com/users/maheshvra/following{/other_user}","gists_url":"https://api.github.com/users/maheshvra/gists{/gist_id}","starred_url":"https://api.github.com/users/maheshvra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maheshvra/subscriptions","organizations_url":"https://api.github.com/users/maheshvra/orgs","repos_url":"https://api.github.com/users/maheshvra/repos","events_url":"https://api.github.com/users/maheshvra/events{/privacy}","received_events_url":"https://api.github.com/users/maheshvra/received_events","type":"User","site_admin":false},"created_at":"2018-07-30T20:04:37Z","updated_at":"2018-07-30T20:04:37Z","author_association":"NONE","body":"@LucasRoesler \r\n\r\n<pre>\r\nNAME                               READY     STATUS             RESTARTS   AGE\r\npo/alertmanager-69d4d848d6-zz2js   1/1       Running            1          3d\r\npo/gateway-78947cc7f6-tv6pr        1/2       CrashLoopBackOff   155        3d\r\npo/nats-6bb7bdf7cb-g9hqc           1/1       Running            1          3d\r\npo/prometheus-6d877b78f9-nwn46     1/1       Running            1          3d\r\npo/queue-worker-5df596bdb5-jkglh   1/1       Running            6          3d\r\n\r\nNAME               TYPE        CLUSTER-IP     EXTERNAL-IP   PORT(S)          AGE\r\nsvc/alertmanager   ClusterIP   10.0.162.195   <none>        9093/TCP         3d\r\nsvc/faas-netes     ClusterIP   10.0.201.71    <none>        8081/TCP         3d\r\nsvc/gateway        NodePort    10.0.206.29    <none>        8080:31112/TCP   3d\r\nsvc/nats           ClusterIP   10.0.208.146   <none>        4222/TCP         3d\r\nsvc/prometheus     NodePort    10.0.77.124    <none>        9090:31119/TCP   3d\r\n</pre>\r\n\r\n<pre>\r\nName:           nats-6bb7bdf7cb-g9hqc\r\nNamespace:      openfaas\r\nNode:           10-205-80-28.mmst.aws-card-dqa.cb4good.com/10.205.80.28\r\nStart Time:     Fri, 27 Jul 2018 15:20:48 -0400\r\nLabels:         app=nats\r\n                pod-template-hash=2663689376\r\nAnnotations:    kubernetes.io/created-by={\"kind\":\"SerializedReference\",\"apiVersion\":\"v1\",\"reference\":{\"kind\":\"ReplicaSet\",\"namespace\":\"openfaas\",\"name\":\"nats-6bb7bdf7cb\",\"uid\":\"2ac6743a-91d2-11e8-bbab-0e7db1cc5486\",\"...\r\nStatus:         Running\r\nIP:             10.10.70.94\r\nControlled By:  ReplicaSet/nats-6bb7bdf7cb\r\nContainers:\r\n  nats:\r\n    Container ID:  docker://ceb95ad1d34d39599ae746c562bb143d96f03361872207a413c40917db6a840a\r\n    Image:         artifactory.cloud.capitalone.com/ofaas/nats-streaming:0.6.0\r\n    Image ID:      docker-pullable://artifactory.cloud.capitalone.com/ofaas/nats-streaming@sha256:97279123669f461b236a4fee74aeb8d2de0de64b1877989657c5c040e77becf3\r\n    Ports:         4222/TCP, 8222/TCP\r\n    Command:\r\n      /nats-streaming-server\r\n    Args:\r\n      --store\r\n      memory\r\n      --cluster_id\r\n      faas-cluster\r\n    State:          Running\r\n      Started:      Mon, 30 Jul 2018 07:32:07 -0400\r\n    Last State:     Terminated\r\n      Reason:       Error\r\n      Exit Code:    2\r\n      Started:      Fri, 27 Jul 2018 15:20:51 -0400\r\n      Finished:     Fri, 27 Jul 2018 19:21:18 -0400\r\n    Ready:          True\r\n    Restart Count:  1\r\n    Environment:    <none>\r\n    Mounts:\r\n      /var/run/secrets/kubernetes.io/serviceaccount from default-token-cq8f9 (ro)\r\nConditions:\r\n  Type           Status\r\n  Initialized    True \r\n  Ready          True \r\n  PodScheduled   True \r\nVolumes:\r\n  default-token-cq8f9:\r\n    Type:        Secret (a volume populated by a Secret)\r\n    SecretName:  default-token-cq8f9\r\n    Optional:    false\r\nQoS Class:       BestEffort\r\nNode-Selectors:  <none>\r\nTolerations:     <none>\r\nEvents:          <none>\r\n</pre>"}}
{"actor":{"display_login":"maheshvra"}}