webvirtcloud icon indicating copy to clipboard operation
webvirtcloud copied to clipboard

ERROR: Internal Server Error: /computes/3/storage/img/volumes

Open yinhe1913 opened this issue 1 year ago • 4 comments

webvirtcloud管理虚拟机时,添加现有磁盘,存储 卷 为空,看不到已有磁盘问题 存储卷为空问题-1733569010926-2 无意之间修改了/srv/webvirtcloud/webvirtcloud/settings.py DEBUG = True 问题就解决了,不知道是为啥?请大神们看看

yinhe1913 avatar Dec 19 '24 09:12 yinhe1913

When managing virtual machines with WebVirtCloud, when trying to add an existing disk, the storage volume is empty and the existing disks cannot be seen. By chance, I modified the configuration in /srv/webvirtcloud/webvirtcloud/settings.py by setting DEBUG = True, and the problem was solved. I'm not sure why this happened. Could you experts take a look? Thank you!

yinhe1913 avatar Feb 24 '25 10:02 yinhe1913

这个问题我也遇到过,解决办法也是一样。这个问题里提到过类似的问题,可以参考以下(尽管我觉得并没有解决根本问题) #615

I have also encountered this issue, and it was resolved the same way as yours. Here's another issue that mentions a similar symptom, feel free to check it out (although I don't think the root cause was found) #615

ShengruiZhang avatar Feb 28 '25 05:02 ShengruiZhang

It seems that, when create instance, if

  • DEBUG = True, will result in get "/computes/" + compute_id + "/storage/" + pool + "/volumes/"
  • DEBUG = False, will result in get "/computes/" + compute_id + "/storage/" + pool + "/volumes" similar with #615 which is solved in #649 .

So, there is anthoer workaround: modify /volumes to /volumes/ for function get_cust_vols and get_template_vols in instances/templates/create_instance_w2.html.

tmltmltml avatar Oct 28 '25 17:10 tmltmltml

Also on my side, DEBUG = True fix the issue.

@retspen

qwrty-ftw avatar Nov 21 '25 14:11 qwrty-ftw