[Kimchi-devel] [PATCH] [Kimchi] [PATCH] [Kimchi] Fixed Storage Volume upload error message when switching tabs

sguimaraes943 at gmail.com sguimaraes943 at gmail.com
Tue Jun 7 19:44:56 UTC 2016


From: Samuel Guimarães <sguimaraes943 at gmail.com>

This patch fixes a bug that would occur if the user starts uploading a volume and switches to a different tab or select a different Storage Pool and starts a new upload while the previous task is still in progress. It would return an error message as "KCHPOOL0002E: Storage pool undefined does not exist" and stop the upload progress but the upload task would keep returning "running" until Wok server is finished.
This was happening because the global variabel kimchi.selectedSP was sent as an argument to the functions kimchi.createVolumeWithCapacity() and kimchi.uploadVolumeToSP().

The solution was creating a copy of the current kimchi.selectedSP value in each kimchi.sp_add_volume_main() function call.

Samuel Guimarães (1):
  Fixed Storage Volume upload error message when switching tabs

 ui/js/src/kimchi.storagepool_add_volume_main.js | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

-- 
1.9.3




More information about the Kimchi-devel mailing list