odahu / odahu-flow

Apache License 2.0
12 stars 2 forks source link

When the ModelRoute is created through CLI, it doesn't work properly #644

Closed BPylypenko closed 2 years ago

BPylypenko commented 2 years ago

Description When the ModelRoute is created through CLI, the CLI doesn't work properly. If the id was not changed through --id flag then it creates model route but hangs on validation that one was created because tries to get route with None id.

Manifests model-route.txt

Prerequisites

Steps to Reproduce

  1. Update model-route.txt file according to your model deployment id.
  2. Create model route through CLI (don't pass --id flag):
    odahuflowctl --verbose route create -f model-route.txt
  3. Notice that in stdout there is the text:

    Got answer: {'message': 'entity "None" is not found'}

  4. Abort execution and check that model route with id from YAML file is created:
    odahuflowctl route get --id test-route-id

Actual result The odahuflowctl util doesn't handle properly the creation of the model route.

Expected result The mode route is created through CLI and it logs that the route is ready.

Attachments image

Environment: