[
https://issues.apache.org/jira/browse/SUBMARINE-534?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Wanqiang Ji resolved SUBMARINE-534.
-----------------------------------
Resolution: Fixed
Issue resolved by pull request 318
[https://github.com/apache/submarine/pull/318]
> 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
> Labels: pull-request-available
> 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]