kimchi-project / kimchi

An HTML5 management interface for KVM guests
https://github.com/kimchi-project/kimchi/releases/latest
Other
3.1k stars 364 forks source link

No Error message while modifying current cpu value of a template to greater than max cpu. #1133

Open alinefm opened 7 years ago

alinefm commented 7 years ago

====== Issue

Tried modifying the current cpu value of a template greater than max cpu - could not see any error message displayed.

====================== Steps to recreate

  1. Login to Wok
  2. Navigate to 'Virtualization->Templates'.
  3. Click on a 'Actions->Edit->Processor' against a particular template.
  4. Change the 'Current Cpu Number' to a greater value than the 'Max Cpu' and save.

It will be saved but if I try opening to edit again, I can see that Current cpu value will hold the same value what it had - which is correct!

I can see a display message immediate below the 'Current cpu Number' box saying : "Current CPU must be equal or lower than the Maximum CPU value. If a topology is set, it must be also be a multiple of the 'threads' value. "

But UI will not throw any Error message while saving!