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

Kevin Su updated SUBMARINE-534:
-------------------------------
    Description: 
If we didn't set env_vars when creating an experiment, we would get the error.
{code:bash}
➜  ~ curl -X POST -H "Content-Type: application/json" -d '                      
                                
{
  "meta": {
    "name": "tf-mnist-json",
    "namespace": "default",
    "framework": "TensorFlow",
    "cmd": "python /var/tf_mnist/mnist_with_summaries.py --log_dir=/train/log 
--learning_rate=0.01 --batch_size=150"
  },
  "environment": {
    "image": "gcr.io/kubeflow-ci/tf-mnist-with-summaries:1.0"
  },
  "spec": {
    "Ps": {
      "replicas": 1,
      "resources": "cpu=1,memory=512M"
    },
    "Worker": {
      "replicas": 1,
      "resources": "cpu=1,memory=512M"
    }
  }
}
' http://127.0.0.1:8080/api/v1/experiment
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<title>Error 500 Request failed.</title>
</head>
<body><h2>HTTP ERROR 500</h2>
<p>Problem accessing /api/v1/experiment. Reason:
<pre>    Request failed.</pre></p><hr><a 
href="http://eclipse.org/jetty";>Powered by Jetty:// 9.4.18.v20190429</a><hr/>

</body>
</html>
{code}

  was:
If we didn't set env_vars when creating an experiment, we would get the error.
{code:bash}
➜  ~  curl -X POST -H "Content-Type: application/json" -d '
{
  "name": "mnist444",
  "namespace": "submarine",
  "librarySpec": {
    "name": "TensorFlow",
    "version": "2.1.0",
    "image": "gcr.io/kubeflow-ci/tf-mnist-with-summaries:1.0",
    "cmd": "python /var/tf_mnist/mnist_with_summaries.py --log_dir=/train/log 
--learning_rate=0.01 --batch_size=150"
  },
  "taskSpecs": {
    "Worker": {
      "name": "tensorflow",
      "replicas": 1,
      "resources": "cpu=1,memory=1024M"
    }
  }
}
' http://127.0.0.1:8080/api/v1/jobs
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<title>Error 404 Not Found</title>
</head>
<body><h2>HTTP ERROR 404</h2>
<p>Problem accessing /api/v1/jobs. Reason:
<pre>    Not Found</pre></p><hr><a href="http://eclipse.org/jetty";>Powered by 
Jetty:// 9.4.18.v20190429</a><hr/>
</body>
</html>
{code}


> Set env_vars to optional in ExperimentMeta
> ------------------------------------------
>
>                 Key: SUBMARINE-534
>                 URL: https://issues.apache.org/jira/browse/SUBMARINE-534
>             Project: Apache Submarine
>          Issue Type: Improvement
>          Components: K8s Submitter
>            Reporter: Kevin Su
>            Assignee: Kevin Su
>            Priority: Major
>             Fix For: 0.4.0
>
>
> If we didn't set env_vars when creating an experiment, we would get the error.
> {code:bash}
> ➜  ~ curl -X POST -H "Content-Type: application/json" -d '                    
>                                   
> {
>   "meta": {
>     "name": "tf-mnist-json",
>     "namespace": "default",
>     "framework": "TensorFlow",
>     "cmd": "python /var/tf_mnist/mnist_with_summaries.py --log_dir=/train/log 
> --learning_rate=0.01 --batch_size=150"
>   },
>   "environment": {
>     "image": "gcr.io/kubeflow-ci/tf-mnist-with-summaries:1.0"
>   },
>   "spec": {
>     "Ps": {
>       "replicas": 1,
>       "resources": "cpu=1,memory=512M"
>     },
>     "Worker": {
>       "replicas": 1,
>       "resources": "cpu=1,memory=512M"
>     }
>   }
> }
> ' http://127.0.0.1:8080/api/v1/experiment
> <html>
> <head>
> <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
> <title>Error 500 Request failed.</title>
> </head>
> <body><h2>HTTP ERROR 500</h2>
> <p>Problem accessing /api/v1/experiment. Reason:
> <pre>    Request failed.</pre></p><hr><a 
> href="http://eclipse.org/jetty";>Powered by Jetty:// 9.4.18.v20190429</a><hr/>
> </body>
> </html>
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to