bwsw / cloudstack-ui

Modern UI for Apache Cloudstack User Self Service Portal
https://bitworks.software/
Apache License 2.0
163 stars 63 forks source link

Can't create VMs if security groups feature is disabled #1667

Closed gentakojima closed 4 years ago

gentakojima commented 5 years ago

Description

Get this error:

Can't create vm with security groups; security group feature is not enabled per zone

Details:

deployVirtualMachine | "id": "abd1c4f3-fbc4-403f-949e-1532d2c9b134", { "startVm": "true", "keyboard": "us", "displayName": "prueba", "serviceOfferingId": "26491ced-a1ed-4bc1-9047-d509b679e485", "templateId": "df83bae7-099c-46ea-b40e-c4fc24f9d9c9", "zoneId": "5bf53e8f-3609-454f-a52d-18b9d4728971", "securityGroupIds": "b4bc824e-957f-4fac-af34-dd923fc788d1", "rootDiskSize": 10 } | { "uuidList": [], "errorcode": 431, "cserrorcode": 4350, "errortext": "Can't create vm with security groups; security group feature is not enabled per zone", "message": "Can't create vm with security groups; security group feature is not enabled per zone" }

Steps to reproduce

Try to use Cloudstack UI with a Cloudstack installation with a zone having Security Groups disabled.

Actual result

Get this error, VM is not created.

Expected result

VM should be created without a security group

Environment

Cloudstack 4.12.0, updated from an old 4.1.x installation to 4.3, then 4.6, and 4.9.

bwsw commented 5 years ago

@gentakojima thank you for the bug report.

bwsw commented 4 years ago

@wowshakhov test against CS simulator 4.11.2 and fix problems. Better to use two envs:

  1. single zone without SG 2.two zones - one with SG, and other without it

to ensure UI works fine in both of them properly.