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

Value for mesos attributes is not optional

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.4.1
    • Fix Version/s: None
    • Component/s: agent, documentation
    • Environment:

      CentOS Linux release 7.2.1511 (Core)

      mesos-1.4.1-2.0.1.x86_64

      Description

      Mesos documentation describes attributes as following

      Attributes are key-value pairs (where value is optional) ...
      
      

      There is no way to start an agent with attribute w/o value, i. e. with key set only.

      Neither with

      
      --attributes=bla
      
      

      nor

      
      --attributes=bla:
      
      

       

      You'll get the following errors

      
      attributes.cpp:145] Invalid attribute key:value pair 'bla'
      
      

      or

      
      attributes.cpp:145] Invalid attribute key:value pair 'bla:'
      
      

      accordingly

      Agent code should allow setting attributes without value according to documentation. This should be fixed in both mesos-agent binary and mesos-init-wrapper script

      If documentation is wrong the web page describing roles has to be fixed.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              timp87 Pavel Timofeev
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: