[
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
The documentation should be fixed.
If documentation is right then the agent code should allow setting attributes
without value.
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.
> Value for mesos attributes is not optional
> ------------------------------------------
>
> Key: MESOS-8504
> URL: https://issues.apache.org/jira/browse/MESOS-8504
> Project: Mesos
> Issue Type: Documentation
> 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
> The documentation should be fixed.
> If documentation is right then the agent code should allow setting attributes
> without value.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)