Skip to content

[Bug]: Latest CLI incompatible with server 0.20.12 due to working_dir and username in job_runtime_data #3662

@jvstme

Description

@jvstme

Steps to reproduce

  1. Run server 0.20.12 and latest CLI.
  2. Apply a service configuration.
  3. Change the number of replicas and apply again.

Actual behaviour

Server validation error: 
{'detail': [{'loc': ['body',
                     'plan',
                     'current_resource',
                     'jobs',
                     0,
                     'job_submissions',
                     0,
                     'job_runtime_data',
                     'username'],
             'msg': 'extra fields not permitted',
             'type': 'value_error.extra'},
            {'loc': ['body',
                     'plan',
                     'current_resource',
                     'jobs',
                     0,
                     'job_submissions',
                     0,
                     'job_runtime_data',
                     'working_dir'],
             'msg': 'extra fields not permitted',
             'type': 'value_error.extra'},
            {'loc': ['body',
                     'plan',
                     'current_resource',
                     'latest_job_submission',
                     'job_runtime_data',
                     'username'],
             'msg': 'extra fields not permitted',
             'type': 'value_error.extra'},
            {'loc': ['body',
                     'plan',
                     'current_resource',
                     'latest_job_submission',
                     'job_runtime_data',
                     'working_dir'],
             'msg': 'extra fields not permitted',
             'type': 'value_error.extra'}]}

Expected behaviour

No response

dstack version

master

Server logs

Additional information

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions