You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Pavel Timofeev (JIRA)" <ji...@apache.org> on 2018/02/01 07:51:00 UTC

[jira] [Updated] (MESOS-8504) Value for mesos attributes is not optional

     [ https://issues.apache.org/jira/browse/MESOS-8504?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pavel Timofeev updated MESOS-8504:
----------------------------------
    Description: 
[Mesos documentation|http://mesos.apache.org/documentation/latest/attributes-resources/] describes attributes as following

{noformat}

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

{noformat}

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

Neither with

{code}

--attributes=bla

{code}

nor

{code}

--attributes=bla:

{code}

 

You'll get the following errors

{code}

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

{code}

or

{code}

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

{code}

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.

  was:
[Mesos documentation|http://mesos.apache.org/documentation/latest/attributes-resources/] describes attributes as following

{noformat}

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

{noformat}

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

Neither with

{code}

--attributes=bla

{code}

nor

{code}

--attributes=bla:

{code}

 

You'll get the following errors

{code}

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

{code}

or

{code}

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

{code}

accordingly


The documentation should be fixed.
If documentation is right then the agent code should allow setting attributes without value.

     Issue Type: Bug  (was: Documentation)

> Value for mesos attributes is not optional
> ------------------------------------------
>
>                 Key: MESOS-8504
>                 URL: https://issues.apache.org/jira/browse/MESOS-8504
>             Project: Mesos
>          Issue Type: Bug
>          Components: agent, documentation
>    Affects Versions: 1.4.1
>         Environment: CentOS Linux release 7.2.1511 (Core)
> mesos-1.4.1-2.0.1.x86_64
>            Reporter: Pavel Timofeev
>            Priority: Minor
>              Labels: agent, attributes, documentation, mesos
>
> [Mesos documentation|http://mesos.apache.org/documentation/latest/attributes-resources/] describes attributes as following
> {noformat}
> Attributes are key-value pairs (where value is optional) ...
> {noformat}
> There is no way to start an agent with attribute w/o value, i. e. with key set only.
> Neither with
> {code}
> --attributes=bla
> {code}
> nor
> {code}
> --attributes=bla:
> {code}
>  
> You'll get the following errors
> {code}
> attributes.cpp:145] Invalid attribute key:value pair 'bla'
> {code}
> or
> {code}
> attributes.cpp:145] Invalid attribute key:value pair 'bla:'
> {code}
> 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.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)