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

Chen He updated SLIDER-920:
---------------------------
    Description: 
On client the metainfo.json is written like:

{
 "schemaVersion": "2.1",
 "application": {
       "name": "fakeapp”,
     "autoStartOnFailure": "true",
       "components": [{
           "name": “xxx",
           "type": "docker",
       "autoStartOnFailure": "true",
       "timeout" : "60",
           "dockerContainers": [{
                   "name" : “xxx",
                   "image": “private.docker.registry/xxx-xxx:6.6",
       "autoStartOnFailure": "true",
                   "commandPath": "/usr/bin/docker -H tcp://127.0.0.1:4243",
                   "ports": [{
                       "containerPort": "7003",
                       "hostPort":"7003"
                    }]
             }]
       }]
 }
}

The SliderAM log is shown:

2015-07-24 17:28:33,072 [399669590@qtp-1627768792-4] INFO  
agent.ExecutionCommand - Docker container meta info ready: DockerContainer 
[name=xxx, image=private.docker.registry/xxx_xxx:6.6, options=null, mounts=[], 
ports=[DockerContainerPort [containerPort=7010, hostPort=7010]], 
statusCommand=null, commandPath=/usr/bin/docker -H tcp://127.0.0.1:4243, 
additionalParam=null, inputFiles=[]]
2015-07-24 17:28:33,072 [399669590@qtp-1627768792-4] INFO  
agent.AgentProviderService - Docker- command: ExecutionCommand 
[commandType=EXECUTION_COMMAND, clusterName=fakeapp, taskId=3, commandId=3-1, 
hostname=hostname, role=xxx, 
hostLevelParams={container_id=container_e06_1437615148132_0029_01_000002}, 
roleParams={auto_restart=false}, roleCommand=START, 
configurations={docker={docker.options=-v /opt:/opt -v /scratch:/scratch 
--net=host -d, docker.additional_param=null, 
docker.image_name=private.docker.registry/xxx_xxx:6.6, 
docker.status_command=docker -H tcp://127.0.0.1:4243 inspect -f 
{{.State.Running}} container_e06_1437615148132_0029_01_000002 | grep true, 
docker.hostPort=7010, docker.containerPort=7010, 
docker.command_path=/usr/bin/docker -H tcp://127.0.0.1:4243, 
docker.input_file.mount_path=null, docker.mounting_directory=null, 
docker.host_mounting_directory=null}, 
global={pid_file=${AGENT_WORK_ROOT}/app/run/component.pid, 
app_container_id=container_e06_1437615148132_0029_01_000002, 
app_install_dir=${AGENT_WORK_ROOT}/app/install, 
app_pid_dir=${AGENT_WORK_ROOT}/app/run, security_enabled=false, 
app_log_dir=${AGENT_LOG_ROOT}, app_container_tag=1, 
app_input_conf_dir=${AGENT_WORK_ROOT}/propagatedconf, 
app_root=${AGENT_WORK_ROOT}/app/install}}, commandParams={command=exec, 
command_timeout=600, record_config=true, schema_version=2.0, 
script_type=docker, 
service_package_folder=${AGENT_WORK_ROOT}/work/app/definition/package}, 
serviceName=fakeapp, componentName=xxx, componentType=docker, pkg=null]

  was:
On client the metainfo.json is written like:

{
 "schemaVersion": "2.1",
 "application": {
       "name": "fakeapp”,
     "autoStartOnFailure": "true",
       "components": [{
           "name": “xxx",
           "type": "docker",
       "autoStartOnFailure": "true",
       "timeout" : "60",
           "dockerContainers": [{
                   "name" : “xxx",
                   "image": “private.docker.registry/xxx-xxx:6.6",
       "autoStartOnFailure": "true",
                   "commandPath": "/usr/bin/docker -H tcp://127.0.0.1:4243",
                   "ports": [{
                       "containerPort": "7003",
                       "hostPort":"7003"
                    }]
             }]
       }]
 }
}

The SliderAM log is shown:

2015-07-24 17:28:33,072 [399669590@qtp-1627768792-4] INFO  
agent.ExecutionCommand - Docker container meta info ready: DockerContainer 
[name=xxx, image=private.docker.registry/xxx_xxx:6.6, options=null, mounts=[], 
ports=[DockerContainerPort [containerPort=7010, hostPort=7010]], 
statusCommand=null, commandPath=/usr/bin/docker -H tcp://127.0.0.1:4243, 
additionalParam=null, inputFiles=[]]
2015-07-24 17:28:33,072 [399669590@qtp-1627768792-4] INFO  
agent.AgentProviderService - Docker- command: ExecutionCommand 
[commandType=EXECUTION_COMMAND, clusterName=fakeapp, taskId=3, commandId=3-1, 
hostname=slc02kmq.us.oracle.com, role=xxx, 
hostLevelParams={container_id=container_e06_1437615148132_0029_01_000002}, 
roleParams={auto_restart=false}, roleCommand=START, 
configurations={docker={docker.options=-v /opt:/opt -v /scratch:/scratch 
--net=host -d, docker.additional_param=null, 
docker.image_name=private.docker.registry/xxx_xxx:6.6, 
docker.status_command=docker -H tcp://127.0.0.1:4243 inspect -f 
{{.State.Running}} container_e06_1437615148132_0029_01_000002 | grep true, 
docker.hostPort=7010, docker.containerPort=7010, 
docker.command_path=/usr/bin/docker -H tcp://127.0.0.1:4243, 
docker.input_file.mount_path=null, docker.mounting_directory=null, 
docker.host_mounting_directory=null}, 
global={pid_file=${AGENT_WORK_ROOT}/app/run/component.pid, 
app_container_id=container_e06_1437615148132_0029_01_000002, 
app_install_dir=${AGENT_WORK_ROOT}/app/install, 
app_pid_dir=${AGENT_WORK_ROOT}/app/run, security_enabled=false, 
app_log_dir=${AGENT_LOG_ROOT}, app_container_tag=1, 
app_input_conf_dir=${AGENT_WORK_ROOT}/propagatedconf, 
app_root=${AGENT_WORK_ROOT}/app/install}}, commandParams={command=exec, 
command_timeout=600, record_config=true, schema_version=2.0, 
script_type=docker, 
service_package_folder=${AGENT_WORK_ROOT}/work/app/definition/package}, 
serviceName=fakeapp, componentName=xxx, componentType=docker, pkg=null]


> autoRestartOnFailure is not being passed
> ----------------------------------------
>
>                 Key: SLIDER-920
>                 URL: https://issues.apache.org/jira/browse/SLIDER-920
>             Project: Slider
>          Issue Type: Bug
>    Affects Versions: Slider 0.80
>            Reporter: Chen He
>
> On client the metainfo.json is written like:
> {
>  "schemaVersion": "2.1",
>  "application": {
>        "name": "fakeapp”,
>      "autoStartOnFailure": "true",
>        "components": [{
>            "name": “xxx",
>            "type": "docker",
>        "autoStartOnFailure": "true",
>        "timeout" : "60",
>            "dockerContainers": [{
>                    "name" : “xxx",
>                    "image": “private.docker.registry/xxx-xxx:6.6",
>        "autoStartOnFailure": "true",
>                    "commandPath": "/usr/bin/docker -H tcp://127.0.0.1:4243",
>                    "ports": [{
>                        "containerPort": "7003",
>                        "hostPort":"7003"
>                     }]
>              }]
>        }]
>  }
> }
> The SliderAM log is shown:
> 2015-07-24 17:28:33,072 [399669590@qtp-1627768792-4] INFO  
> agent.ExecutionCommand - Docker container meta info ready: DockerContainer 
> [name=xxx, image=private.docker.registry/xxx_xxx:6.6, options=null, 
> mounts=[], ports=[DockerContainerPort [containerPort=7010, hostPort=7010]], 
> statusCommand=null, commandPath=/usr/bin/docker -H tcp://127.0.0.1:4243, 
> additionalParam=null, inputFiles=[]]
> 2015-07-24 17:28:33,072 [399669590@qtp-1627768792-4] INFO  
> agent.AgentProviderService - Docker- command: ExecutionCommand 
> [commandType=EXECUTION_COMMAND, clusterName=fakeapp, taskId=3, commandId=3-1, 
> hostname=hostname, role=xxx, 
> hostLevelParams={container_id=container_e06_1437615148132_0029_01_000002}, 
> roleParams={auto_restart=false}, roleCommand=START, 
> configurations={docker={docker.options=-v /opt:/opt -v /scratch:/scratch 
> --net=host -d, docker.additional_param=null, 
> docker.image_name=private.docker.registry/xxx_xxx:6.6, 
> docker.status_command=docker -H tcp://127.0.0.1:4243 inspect -f 
> {{.State.Running}} container_e06_1437615148132_0029_01_000002 | grep true, 
> docker.hostPort=7010, docker.containerPort=7010, 
> docker.command_path=/usr/bin/docker -H tcp://127.0.0.1:4243, 
> docker.input_file.mount_path=null, docker.mounting_directory=null, 
> docker.host_mounting_directory=null}, 
> global={pid_file=${AGENT_WORK_ROOT}/app/run/component.pid, 
> app_container_id=container_e06_1437615148132_0029_01_000002, 
> app_install_dir=${AGENT_WORK_ROOT}/app/install, 
> app_pid_dir=${AGENT_WORK_ROOT}/app/run, security_enabled=false, 
> app_log_dir=${AGENT_LOG_ROOT}, app_container_tag=1, 
> app_input_conf_dir=${AGENT_WORK_ROOT}/propagatedconf, 
> app_root=${AGENT_WORK_ROOT}/app/install}}, commandParams={command=exec, 
> command_timeout=600, record_config=true, schema_version=2.0, 
> script_type=docker, 
> service_package_folder=${AGENT_WORK_ROOT}/work/app/definition/package}, 
> serviceName=fakeapp, componentName=xxx, componentType=docker, pkg=null]



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

Reply via email to