Uploaded image for project: 'Service Orchestrator'
  1. Service Orchestrator
  2. SO-1644

SO doesn't keep the proxy settings within the containers

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: High High
    • Casablanca Release

      Testing in Casablanca 3.0.1 SO doesn't come up with a proxy setup on the kubernetes platform.

      Basically, using theĀ .docker/config.json that present the proxy for the container to run, SO seems to override the settings and cannot be deployed behind a proxy.

      As a result, the SO POD never comes online properly.

      The same test without any proxy and a direct internet connection works well.

      Some traces showing SO not coming up properly, and a simple test below shows the .jason file for docker 18.06+ correctly takes the env and proxy settings.

      ubuntu@RHOBLV01:~/oom/kubernetes$ kubectl get pods --all-namespaces
      NAMESPACE       NAME                                             READY     STATUS             RESTARTS   AGE
      ingress-nginx   default-http-backend-797c5bc547-p8pxp            1/1       Running            0          36m
      ingress-nginx   nginx-ingress-controller-pzp9f                   1/1       Running            0          36m
      kube-system     canal-hxm64                                      3/3       Running            0          36m
      kube-system     kube-dns-7588d5b5f5-cmvhx                        3/3       Running            0          36m
      kube-system     kube-dns-autoscaler-5db9bbb766-vtlmq             1/1       Running            0          36m
      kube-system     metrics-server-97bc649d5-tkf4d                   1/1       Running            0          36m
      kube-system     rke-ingress-controller-deploy-job-zx98m          0/1       Completed          0          36m
      kube-system     rke-kubedns-addon-deploy-job-77k46               0/1       Completed          0          36m
      kube-system     rke-metrics-addon-deploy-job-8xcq9               0/1       Completed          0          36m
      kube-system     rke-network-plugin-deploy-job-szsqs              0/1       Completed          0          36m
      kube-system     tiller-deploy-69458576b-f8dqn                    1/1       Running            0          34m
      onap            demo-so-so-77b47cd8b4-78wfc                      0/1       CrashLoopBackOff   6          20m
      onap            demo-so-so-bpmn-infra-69859c4fcb-mkp72           0/1       CrashLoopBackOff   6          20m
      onap            demo-so-so-catalog-db-adapter-864f7996c7-8r4rb   0/1       CrashLoopBackOff   6          20m
      onap            demo-so-so-mariadb-778fb95ccb-ttbsn              1/1       Running            0          20m
      onap            demo-so-so-monitoring-7bd796446d-fnwv2           1/1       Running            0          20m
      onap            demo-so-so-openstack-adapter-67fb49c655-rgczc    0/1       CrashLoopBackOff   6          20m
      onap            demo-so-so-request-db-adapter-5c5d7446c9-zj76m   0/1       CrashLoopBackOff   6          20m
      onap            demo-so-so-sdc-controller-688c5b567-v9rqt        0/1       CrashLoopBackOff   6          20m
      onap            demo-so-so-sdnc-adapter-5c59ccd656-mzlct         1/1       Running            0          20m
      onap            demo-so-so-vfc-adapter-7d9bbd8486-ksgzk          0/1       CrashLoopBackOff   6          20m
      ubuntu@RHOBLV01:~/oom/kubernetes$
      ubuntu@RHOBLV01:~/oom/kubernetes$
      ubuntu@RHOBLV01:~/oom/kubernetes$
      ubuntu@RHOBLV01:~/oom/kubernetes$ sudo docker run --rm alpine wget www.google.com
      [sudo] password for ubuntu:
      Unable to find image 'alpine:latest' locally
      latest: Pulling from library/alpine
      8e402f1a9c57: Pull complete
      Digest: sha256:644fcb1a676b5165371437feaa922943aaf7afcfa8bfee4472f6860aad1ef2a0
      Status: Downloaded newer image for alpine:latest
      Connecting to 10.145.153.28:3128 (10.145.153.28:3128)
      index.html           100% |********************************| 14194  0:00:00 ETAubuntu@RHOBLV01:~/oom/kubernetes$
      ubuntu@RHOBLV01:~/oom/kubernetes$
      ubuntu@RHOBLV01:~/oom/kubernetes$
      ubuntu@RHOBLV01:~/oom/kubernetes$
      ubuntu@RHOBLV01:~/oom/kubernetes$ sudo docker run --rm alpine env
      PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
      HOSTNAME=babf748cc94c
      HTTPS_PROXY=http://10.145.153.28:3128/
      https_proxy=http://10.145.153.28:3128/
      NO_PROXY=10.0.0.0/8,localhost,127.0.0.1,.t-mobile.lab
      no_proxy=10.0.0.0/8,localhost,127.0.0.1,.t-mobile.lab
      HTTP_PROXY=http://10.145.153.28:3128/
      http_proxy=http://10.145.153.28:3128/
      HOME=/root
      ubuntu@RHOBLV01:~/oom/kubernetes$
      

            yumtaax3425 yumtaax3425
            yumtaax3425 yumtaax3425
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: