Uploaded image for project: 'DC/OS'
  1. DC/OS
  2. DCOS_OSS-4308

dcos-dns uses container name instead of service ID for the record on PODs.

    Details

      Description

      The following POD description:

      {
        "id": "/ucr/registry-auth",
        "user": "root",
        "containers": [
          {
            "name": "nginx",
            "resources": {
              "cpus": 0.01,
              "mem": 32.0
            },
            "image": {
              "kind": "docker",
              "id": "nginx:alpine-perl"
            },
            "artifacts": [
              {
                "uri": "https://s3.amazonaws.com/tillt-010818/artifacts/till/soak112s/ucr-registry-auth.tar.gz"
              }
            ],
            "volumeMounts": [
              {
                "mountPath": "/etc/nginx/nginx.conf",
                "name": "conf",
                "readOnly": true
              },
              {
                "mountPath": "htpasswd",
                "name": "htpasswd",
                "readOnly": true
              },
              {
                "mountPath": "/tls",
                "name": "cert",
                "readOnly": true
              }
            ]
          }
        ],
        "volumes": [
          {
            "name": "conf",
            "host": "nginx.conf"
          },
          {
            "name": "htpasswd",
            "secret": "htpasswd"
          },
          {
            "name": "cert",
            "host": "/var/lib/dcos/pki/tls"
          }
        ],
        "secrets": {
          "htpasswd": {
            "source": "ucr/registry-auth-htpasswd"
          }
        },
        "networks": [
          {
            "name": "dcos"
          }
        ],
        "labels": {
          "suite": "ucr-registry"
        }
      }
      

      Produces the following records on docs-dns:

      {"host":"9.0.1.119","name":"nginx.marathon.containerip.dcos.thisdcos.directory","rtype":"A"},
      {"host":"9.0.1.64","name":"nginx.marathon.autoip.dcos.thisdcos.directory","rtype":"A"},
      {"host":"172.31.254.2","name":"ashtest-nginx.marathon.autoip.dcos.thisdcos.directory","rtype":"A"},
      {"host":"172.31.254.2","name":"ashtest-nginx.marathon.containerip.dcos.thisdcos.directory","rtype":"A"},
      {"host":"9.0.1.64","name":"nginx.marathon.containerip.dcos.thisdcos.directory","rtype":"A"},
      {"host":"172.31.254.22","name":"ashtest-nginx.marathon.autoip.dcos.thisdcos.directory","rtype":"A"},
      {"host":"167.114.232.201","name":"nginx.marathon.autoip.dcos.thisdcos.directory","rtype":"A"},
      {"host":"9.0.1.44","name":"nginx.marathon.containerip.dcos.thisdcos.directory","rtype":"A"},
      {"host":"172.17.0.4","name":"ashtest-nginx.marathon.autoip.dcos.thisdcos.directory","rtype":"A"},
      {"host":"172.17.0.4","name":"ashtest-nginx.marathon.containerip.dcos.thisdcos.directory","rtype":"A"},
      {"host":"172.31.254.22","name":"ashtest-nginx.marathon.containerip.dcos.thisdcos.directory","rtype":"A"},
      {"host":"9.0.1.44","name":"nginx.marathon.autoip.dcos.thisdcos.directory","rtype":"A"},
      {"host":"167.114.232.201","name":"ashtest-nginx.marathon.agentip.dcos.thisdcos.directory","rtype":"A"},
      

      This seems wrong. I would expect registry-auth-ucr... instead.

        Attachments

          Activity

            People

            • Assignee:
              sergeyurbanovich Sergey Urbanovich
              Reporter:
              till Till Toenshoff
              Team:
              Networking Team
              Watchers:
              Deepak Goel, Jan-Philip Gehrcke, Mergebot, Senthil Kumaran, Sergey Urbanovich, Till Toenshoff
            • Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: