Uploaded image for project: 'Apache Submarine'
  1. Apache Submarine
  2. SUBMARINE-534

Set env_vars to optional in ExperimentMeta

    XMLWordPrintableJSON

Details

    Description

      If we didn't set env_vars when creating an experiment, we would get the error.

      ➜  ~ 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>
      

      Attachments

        Issue Links

          Activity

            People

              pingsutw Kevin Su
              pingsutw Kevin Su
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: