Enable Mesos Bay export more slave flags

Registered by Guangya Liu (Jay Lau)

The Mesos slave has many different flags and different user have different requirement for different parameters, we should expose more parameters for slave in mesos bay to give end user more choice.

For more detail, please refer to https://github.com/apache/mesos/blob/master/docs/configuration.md#slave-options

An example here is test out the unified container feature here https://github.com/apache/mesos/blob/master/docs/container-image.md#test-it-out

The Mesos is also implementing some exciting feature for CNI and external storage integration, exposing more flags in heat template can enable Maganum create a more powerful mesos cluster.

[1]: https://issues.apache.org/jira/browse/MESOS-4355 External Storage Support
[2]: https://issues.apache.org/jira/browse/MESOS-4641 CNI Support

Some key flags I think that we should take as high priority to customize:
1) --isolation
2) --work_dir
3) --image_providers
4) --executor_environment_variables
5) --executor_registration_timeout
6) --log_dir
7) --docker_registry

How to do it?
1). We can add the flags to a file, and the file is an example that introducing the flags meaning and needing what type value. The file path can config to the magnum.conf.

2). We can define a variable that seems the labels to bay or baymodel in order to let users fill the flags.

Mesos getting started:
1) http://mesos.apache.org/gettingstarted/

Blueprint information

Status:
Complete
Approver:
hongbin
Priority:
Medium
Drafter:
Guangya Liu (Jay Lau)
Direction:
Approved
Assignee:
wangqun
Definition:
New
Series goal:
None
Implementation:
Implemented
Milestone target:
None
Started by
Spyros Trigazis
Completed by
Spyros Trigazis

Related branches

Sprints

Whiteboard

--
strigazi @ Sun Mar 25 16:42:01 UTC 2018

There is a list of labels available for mesos here:
http://git.openstack.org/cgit/openstack/magnum/tree/magnum/drivers/mesos_ubuntu_v1/template_def.py#n65
--
(hongbin): As discussed in our weekly meeting, we are going to support these flags by using labels.

Gerrit topic: https://review.openstack.org/#q,topic:bp/mesos-slave-flags,n,z

Addressed by: https://review.openstack.org/305630
    Enable Mesos Bay export more slave flags

Addressed by: https://review.openstack.org/311139
    Add mesos-slave-isolation validate

Addressed by: https://review.openstack.org/312990
    Add mesos_slave_image_providers validate

Addressed by: https://review.openstack.org/314899
    Add mesos_slave_executor_environment_variables validate

Addressed by: https://review.openstack.org/315406
    Add the supporting-container-images-in-mesos-containerizer doc

(?)

Work Items

Dependency tree

* Blueprints in grey have been implemented.

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.