2016-08-29 7 views
0

エンドユーザ(ドメイン管理者も)はボリュームのサイズを変更できません - CS GUIではこのオプションはありません(img1.PNGを参照)。 Cloudstack Adminはボリュームをサイズ変更できます(img2.PNGを参照)。cloudstackエンドユーザcantgボリュームのサイズを変更

Info:CSバージョン - 4.8.0 HA管理サーバー、HAProxyとMariaDb Galeraの違いホスト:Xenserver。

img1.png:https://files.fm/u/krgxs9b9#/view/img1.PNG

img2.png:https://files.fm/u/krgxs9b9#/view/img2.PNGこれは、以下のPRで4.9に固定されている

答えて

0

。 APIを使用するとエンドユーザーはサイズを変更できますが、このオプションはUIで利用できませんでした。

if (jsonObj.hypervisor == "KVM" || jsonObj.hypervisor == "XenServer" || jsonObj.hypervisor == "VMware") { if (jsonObj.state == "Ready" || jsonObj.state == "Allocated") { allowedActions.push("resize"); }

そして追加:

if (jsonObj.state == "Ready" || jsonObj.state == "Allocated") { 
     allowedActions.push("resize"); 
    } 

も削除を削除

を/usr/share/cloudstack-management/webapps/client/scripts/storage.js:では https://github.com/apache/cloudstack/pull/1595 :/usr/share/cloudstack-management/webapps/client/scripts/storage.js.gz

問題を解決する

関連する問題