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

Yan Xu updated MESOS-3192:
--------------------------
    Description: 
As I commented here: https://reviews.apache.org/r/34136/

Currently ContainerInfo::Image::Appc is defined as the following

{noformat:title=}
    message AppC {
      required string name = 1;
      required string id = 2;
      optional Labels labels = 3;
    }
{noformat}

In which the {{id}} is a required field. When users specify the image in tasks 
they likely will not use an image id (much like when you use docker or rkt to 
launch containers, you often use {{ubuntu}} or {{ubuntu:latest}} and seldom a 
SHA512 ID) and we should change it to be optional.

The motivating scenario is that: if the frameworks in the Mesos use something 
like {{image=ubuntu:14.04"}} to run a task and {{image=ubuntu}} defaults to 
{{image=ubuntu:latest}}, the operator can swap the latest version for all new 
tasks requesting {{image=ubuntu}}. If they allow users to specify 
{{image=ubuntu:live}}, they can swap the live version under the covers as well. 
This allows the operator to release important image updates (e.g., security 
patches) and have it picked up by new tasks in the cluster without asking the 
users to update their job/task configs.

  was:
As I commented here: https://reviews.apache.org/r/34136/

Currently ContainerInfo::Image::Appc is defined as the following

{noformat:title=}
    message AppC {
      required string name = 1;
      required string id = 2;
      optional Labels labels = 3;
    }
{noformat}

In which the {{id}} is a required field. When users specify the image in tasks 
they likely will not use an image id (much like when you use docker or rkt to 
launch containers, you often use {{ubuntu}} or {{ubuntu:latest}} and seldom a 
SHA512 ID) and we should change it to be optional.


> ContainerInfo::Image::AppC::id should be optional
> -------------------------------------------------
>
>                 Key: MESOS-3192
>                 URL: https://issues.apache.org/jira/browse/MESOS-3192
>             Project: Mesos
>          Issue Type: Bug
>            Reporter: Yan Xu
>            Assignee: Yan Xu
>              Labels: twitter
>
> As I commented here: https://reviews.apache.org/r/34136/
> Currently ContainerInfo::Image::Appc is defined as the following
> {noformat:title=}
>     message AppC {
>       required string name = 1;
>       required string id = 2;
>       optional Labels labels = 3;
>     }
> {noformat}
> In which the {{id}} is a required field. When users specify the image in 
> tasks they likely will not use an image id (much like when you use docker or 
> rkt to launch containers, you often use {{ubuntu}} or {{ubuntu:latest}} and 
> seldom a SHA512 ID) and we should change it to be optional.
> The motivating scenario is that: if the frameworks in the Mesos use something 
> like {{image=ubuntu:14.04"}} to run a task and {{image=ubuntu}} defaults to 
> {{image=ubuntu:latest}}, the operator can swap the latest version for all new 
> tasks requesting {{image=ubuntu}}. If they allow users to specify 
> {{image=ubuntu:live}}, they can swap the live version under the covers as 
> well. This allows the operator to release important image updates (e.g., 
> security patches) and have it picked up by new tasks in the cluster without 
> asking the users to update their job/task configs.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to