Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-6052

Unable to launch containers on CNI networks on CoreOS

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.0.0
    • 1.0.3, 1.1.0
    • containerization
    • Linux

    • Mesosphere Sprint 41, Mesosphere Sprint 42
    • 1

    Description

      CoreOS does not have an `/etc/hosts`. Currently, in the `network/cni` isolator, if we don't see a `/etc/hosts` on the host filesystem we don't bind mount the containers `hosts` file to this target for the `command executor`. On distros such as CoreOS this fails the container launch since the `libprocess` initialization of the `command executor` fails cause it can't resolve its `hostname`.

      We should be creating the `/etc/hosts` and `/etc/hostname` files when they are absent on the host filesystem since creating these files should not affect name resolution on the host network namespace, and it will allow the `/etc/hosts` file to be bind mounted correctly and allow name resolution in the containers network namespace as well.

      Attachments

        Activity

          People

            avinash.mesos Avinash Sridharan
            avinash.mesos Avinash Sridharan
            Jie Yu Jie Yu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: