← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1276302] [NEW] Enforce minimum value checking when creating a flavor

 

Public bug reported:

Currently when creating a new flavor, there is no checking on the
minimum value allowed for each input field, but when you submit the
form, the system will actually check the input value and report error
message as shown below:

Recoverable error: Invalid input received: vcpus must be >= 1 (HTTP 400) 
Recoverable error: Invalid input received: memory_mb must be >= 1 (HTTP 400) 
Recoverable error: Invalid input received: root_gb must be >= 0 (HTTP 400) 
Recoverable error: Invalid input received: ephemeral_gb must be >= 0 (HTTP 400) 
Recoverable error: Invalid input received: swap must be >= 0 (HTTP 400) 

It would be better add this min_value checking on the front end.

** Affects: horizon
     Importance: Undecided
     Assignee: Yuanhui Liu (liuyu)
         Status: New

** Changed in: horizon
     Assignee: (unassigned) => Yuanhui Liu (liuyu)

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1276302

Title:
  Enforce minimum value checking when creating a flavor

Status in OpenStack Dashboard (Horizon):
  New

Bug description:
  Currently when creating a new flavor, there is no checking on the
  minimum value allowed for each input field, but when you submit the
  form, the system will actually check the input value and report error
  message as shown below:

  Recoverable error: Invalid input received: vcpus must be >= 1 (HTTP 400) 
  Recoverable error: Invalid input received: memory_mb must be >= 1 (HTTP 400) 
  Recoverable error: Invalid input received: root_gb must be >= 0 (HTTP 400) 
  Recoverable error: Invalid input received: ephemeral_gb must be >= 0 (HTTP 400) 
  Recoverable error: Invalid input received: swap must be >= 0 (HTTP 400) 

  It would be better add this min_value checking on the front end.

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1276302/+subscriptions


Follow ups

References