Project

General

Profile

Actions

Idea #9617

closed

[Crunch2] [API] Reject ContainerRequests that don't specify valid vcpus constraint

Added by Brett Smith almost 8 years ago. Updated almost 8 years ago.

Status:
Resolved
Priority:
Normal
Assigned To:
Category:
API
Target version:
Start date:
08/01/2016
Due date:
Story points:
0.5
Release:
Release relationship:
Auto

Description

The runtime_constraints of a ContainerRequest must include a vpcus field. vpcus is a number of CPU cores, so it must be a positive integer. The API server must validate this on every create and update of a ContainerRequest when its state is Committed. If a request tries to set vcpus to an unacceptable value, the server must reject the request with HTTP error code 422, and the response JSON should include an error message close to "runtime_constraints vcpus must be a positive integer."


Subtasks 1 (0 open1 closed)

Task #9650: Review 9617-reject-container-reqs-without-vcpusResolvedRadhika Chippada08/01/2016Actions
Actions

Also available in: Atom PDF