Details

    • Type: Bug
    • Status: Resolved
    • Priority: Medium
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: Marathon 1.4.2
    • Component/s: Docs
    • Labels:

      Description

      I'm using the experimental external_volumes feature with a Docker Volume driver. We've modified our driver to allow a 'null' Options map to do on-the-fly provisioning but there seems to be something quirky how the external volumes code validates extra options. I've been reading the docs here: https://mesosphere.github.io/marathon/docs/external-volumes.html and from what I can tell, this should work:

      Unable to find source-code formatter for language: json. Available languages are: actionscript, html, java, javascript, none, sql, xhtml, xml
      "external": {
          "name": "volname",
          "provider": "dvdi",
          "options": { 
              "dvdi/driver": "nimble",
              "sizeInGiB": "4",
              "description": "Apache Mesos"
          }
      }
      

      Note: sizeInGiB and description are "nimble" driver specific options.

      Yet, this is what I get back:

      Unable to find source-code formatter for language: bash. Available languages are: actionscript, html, java, javascript, none, sql, xhtml, xml
      curl -X POST http://localhost:8080/v2/apps -d @app.json -H "Content-type: application/json"
      {"message":"Object is not valid","details":[{"path":"/container/volumes(0)/external/options","errors":["must only contain dvdi/driver"]},{"path":"/container/volumes(0)/external/optionskeys","errors":["must match regular expression '^[a-z0-9](?:[-a-z0-9]*[a-z0-9])?/[A-Za-z0-9](?:[-A-Za-z0-9\\._:]*[A-Za-z0-9])?$'"]}]}
      

      This is marathon 1.3.9 on CentOS using the official repos.

        Attachments

          Activity

            People

            • Assignee:
              suzanne Suzanne Scala (Inactive)
              Reporter:
              drajen Michael Mattsson
              Team:
              Orchestration Team
              Watchers:
              Suzanne Scala (Inactive)
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: