You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Sashank Reddy Appireddy (JIRA)" <ji...@apache.org> on 2018/07/24 23:52:00 UTC

[jira] [Created] (MESOS-9111) ExecutorID field of Task is not filled, if task is launched via Mesos Command Executor

Sashank Reddy Appireddy created MESOS-9111:
----------------------------------------------

             Summary: ExecutorID field of Task is not filled, if task is launched via Mesos Command Executor
                 Key: MESOS-9111
                 URL: https://issues.apache.org/jira/browse/MESOS-9111
             Project: Mesos
          Issue Type: Bug
          Components: agent, executor
    Affects Versions: 1.6.0, 1.5.0
            Reporter: Sashank Reddy Appireddy


When a task is launched via "mesos-execute" binary as below, I see that the ExecutorID field of the LaunchedTask(from "GetTasks") is empty, even though the executorInfo object has been created and reported via "GetExecutors"

 

Example: Used "mesos-execute" and created a "cluster-test" task as below

 
{noformat}
mesos-execute --master=127.0.0.1:5050 --name=cluster-test --containerizer=mesos --role=aurora --command="while true; do date && sleep 100; done" --docker_image=debian:jessie{noformat}
 

The LaunchedTask response object of "GetTasks" shows "executorID" as empty.

 

(dlv) p s.st.GetTasks.LaunchedTasks[0]
github.com/mesos/mesos-go/api/v1/lib.Task {
 Name: "cluster-test",
 TaskID: github.com/mesos/mesos-go/api/v1/lib.TaskID {
 Value: "cluster-test",},
 FrameworkID: github.com/mesos/mesos-go/api/v1/lib.FrameworkID {
 Value: "2ab7e13e-83d2-4883-b2ba-92d1b3a4d5b3-0000",},
 *ExecutorID: *github.com/mesos/mesos-go/api/v1/lib.ExecutorID nil,*
 AgentID: github.com/mesos/mesos-go/api/v1/lib.AgentID {
 Value: "07ba28cc-d9fa-44fb-8d6b-f8c5c90f8a90-S1",},
 State: *1,
 Resources: []github.com/mesos/mesos-go/api/v1/lib.Resource len: 2, cap: 2, [
 (*github.com/mesos/mesos-go/api/v1/lib.Resource)(0xc421370100),
 (*github.com/mesos/mesos-go/api/v1/lib.Resource)(0xc421370180),
 ],
 Statuses: []github.com/mesos/mesos-go/api/v1/lib.TaskStatus len: 2, cap: 2, [
 (*github.com/mesos/mesos-go/api/v1/lib.TaskStatus)(0xc42136c000),
 (*github.com/mesos/mesos-go/api/v1/lib.TaskStatus)(0xc42136c0a8),
 ],
 StatusUpdateState: *1,
 StatusUpdateUUID: []uint8 len: 16, cap: 16, [27,166,174,209,2,68,72,167,189,67,229,240,0,250,145,21],
 Labels: *github.com/mesos/mesos-go/api/v1/lib.Labels {
 Labels: []github.com/mesos/mesos-go/api/v1/lib.Label len: 0, cap: 0, nil,},
 Discovery: *github.com/mesos/mesos-go/api/v1/lib.DiscoveryInfo nil,
 Container: *github.com/mesos/mesos-go/api/v1/lib.ContainerInfo {
 Type: *2,
 Volumes: []github.com/mesos/mesos-go/api/v1/lib.Volume len: 0, cap: 0, nil,
 Hostname: *string nil,
 Docker: *github.com/mesos/mesos-go/api/v1/lib.ContainerInfo_DockerInfo nil,
 Mesos: *(*github.com/mesos/mesos-go/api/v1/lib.ContainerInfo_MesosInfo)(0xc421562018),
 NetworkInfos: []github.com/mesos/mesos-go/api/v1/lib.NetworkInfo len: 0, cap: 0, nil,
 LinuxInfo: *github.com/mesos/mesos-go/api/v1/lib.LinuxInfo nil,
 RlimitInfo: *github.com/mesos/mesos-go/api/v1/lib.RLimitInfo nil,
 TTYInfo: *github.com/mesos/mesos-go/api/v1/lib.TTYInfo nil,},
 User: *string nil,}
(dlv)

 

 

 

The ExecutorInfo object for the launchedTask actually exists in "GetExecutors"

 

(dlv) p s.st.GetExecutors.Executors[0].ExecutorInfo
github.com/mesos/mesos-go/api/v1/lib.ExecutorInfo {
 Type: 0,
 ExecutorID: github.com/mesos/mesos-go/api/v1/lib.ExecutorID {
 Value: "cluster-test",},
 FrameworkID: *github.com/mesos/mesos-go/api/v1/lib.FrameworkID {
 Value: "2ab7e13e-83d2-4883-b2ba-92d1b3a4d5b3-0000",},
 Command: *github.com/mesos/mesos-go/api/v1/lib.CommandInfo {
 URIs: []github.com/mesos/mesos-go/api/v1/lib.CommandInfo_URI len: 0, cap: 0, nil,
 Environment: *github.com/mesos/mesos-go/api/v1/lib.Environment nil,
 Shell: *false,
 Value: *"/usr/local/libexec/mesos/mesos-executor",
 Arguments: []string len: 4, cap: 4, [
 "mesos-executor",
 "--launcher_dir=/usr/local/libexec/mesos",
 "--sandbox_directory=/mnt/mesos/sandbox",
 "--user=root",
 ],
 User: *string nil,},
 Container: *github.com/mesos/mesos-go/api/v1/lib.ContainerInfo {
 Type: *2,
 Volumes: []github.com/mesos/mesos-go/api/v1/lib.Volume len: 0, cap: 0, nil,
 Hostname: *string nil,
 Docker: *github.com/mesos/mesos-go/api/v1/lib.ContainerInfo_DockerInfo nil,
 Mesos: *(*github.com/mesos/mesos-go/api/v1/lib.ContainerInfo_MesosInfo)(0xc421562f28),
 NetworkInfos: []github.com/mesos/mesos-go/api/v1/lib.NetworkInfo len: 0, cap: 0, nil,
 LinuxInfo: *github.com/mesos/mesos-go/api/v1/lib.LinuxInfo nil,
 RlimitInfo: *github.com/mesos/mesos-go/api/v1/lib.RLimitInfo nil,
 TTYInfo: *github.com/mesos/mesos-go/api/v1/lib.TTYInfo nil,},
 Resources: []github.com/mesos/mesos-go/api/v1/lib.Resource len: 2, cap: 2, [
 (*github.com/mesos/mesos-go/api/v1/lib.Resource)(0xc420bda800),
 (*github.com/mesos/mesos-go/api/v1/lib.Resource)(0xc420bda880),
 ],
 Name: *"Command Executor (Task: cluster-test) (Command: sh -c 'while tru...+8 more",
 Source: *"cluster-test",
 Data: []uint8 len: 0, cap: 0, nil,
 Discovery: *github.com/mesos/mesos-go/api/v1/lib.DiscoveryInfo nil,
 ShutdownGracePeriod: *github.com/mesos/mesos-go/api/v1/lib.DurationInfo nil,
 Labels: *github.com/mesos/mesos-go/api/v1/lib.Labels {
 Labels: []github.com/mesos/mesos-go/api/v1/lib.Label len: 0, cap: 0, nil,},}

 

 



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