Repository navigation
Unable to create a System VMs dedicated public ip range. #3485
Copy link
Copy link
Closed
Description
ISSUE TYPE
- Bug Report
COMPONENT NAME
UI
CLOUDSTACK VERSION
4.11.3
CONFIGURATION
Fresh new installation with advanced networking.
OS / ENVIRONMENT
CentOS 7 for cloudstack manager and VMWare 6.5 as hypervisor
SUMMARY
When I try to create a system VMs dedicated ip range enabling "System VMs" in the "Set reservation" section, I get this error:
Unable to execute API command createvlaniprange due to invalid value. Invalid parameter domainid value=undefined due to incorrect long value format, or entity does not exist or due to incorrect parameter annotation for the field in api cmd class.
STEPS TO REPRODUCE
"Infrastructure" -> "Zones" -> Select the zone -> "Physical Network" -> Select the network -> Public "Configure" -> IP Ranges
Compile network data
"Set reservation" -> enable "System VMs" -> OK -> Add
This is the log file:
2019-07-11 15:51:08,067 DEBUG [c.c.a.ApiServlet] (qtp504527234-13:ctx-557e34dc) (logid:478ef02c) ===START=== 192.168.1.25 -- GET command=createVlanIpRange&zoneId=6c2b2a7e-4222-44bf-a0ff-856ac61206da&vlan=544&gateway=109.68.152.254&netmask=255.255.248.0&startip=109.68.153.251&endip=109.68.153.255&forsystemvms=true&domainid=undefined&forVirtualNetwork=true&response=json&_=1562853068044
2019-07-11 15:51:08,084 DEBUG [c.c.c.CapacityManagerImpl] (CapacityChecker:ctx-318c3f39) (logid:6a03a29b) Found 0 VM, not running on host 1
2019-07-11 15:51:08,099 DEBUG [c.c.c.CapacityManagerImpl] (CapacityChecker:ctx-318c3f39) (logid:6a03a29b) No need to calibrate cpu capacity, host:1 usedCpuCore: 1 reservedCpuCore: 0
2019-07-11 15:51:08,113 DEBUG [c.c.a.ApiServer] (qtp504527234-13:ctx-557e34dc ctx-60d779c7) (logid:478ef02c) CIDRs from which account 'Acct[e8b9f3a7-9ef9-11e9-a20f-005056bb2889-admin]' is allowed to perform API calls: 0.0.0.0/0,::/0
2019-07-11 15:51:08,114 DEBUG [c.c.c.CapacityManagerImpl] (CapacityChecker:ctx-318c3f39) (logid:6a03a29b) No need to calibrate cpu capacity, host:1 usedCpu: 500 reservedCpu: 0
2019-07-11 15:51:08,114 DEBUG [c.c.c.CapacityManagerImpl] (CapacityChecker:ctx-318c3f39) (logid:6a03a29b) No need to calibrate memory capacity, host:1 usedMem: 536870912 reservedMem: 0
2019-07-11 15:51:08,115 INFO [o.a.c.f.j.i.AsyncJobManagerImpl] (AsyncJobMgr-Heartbeat-1:ctx-98cb224c) (logid:0ac07354) End cleanup expired async-jobs
2019-07-11 15:51:08,166 INFO [c.c.h.v.r.VmwareResource] (DirectAgentCronJob-1:ctx-f6b96aba) (logid:154475a2) Scan hung worker VM to recycle
2019-07-11 15:51:08,184 DEBUG [c.c.a.d.ParamProcessWorker] (qtp504527234-13:ctx-557e34dc ctx-60d779c7) (logid:478ef02c) Object entity uuid = undefined does not exist in the database.
2019-07-11 15:51:08,185 INFO [c.c.a.ApiServer] (qtp504527234-13:ctx-557e34dc ctx-60d779c7) (logid:478ef02c) Unable to execute API command createvlaniprange due to invalid value. Invalid parameter domainid value=undefined due to incorrect long value format, or entity does not exist or due to incorrect parameter annotation for the field in api cmd class.
2019-07-11 15:51:08,186 DEBUG [c.c.c.CapacityManagerImpl] (CapacityChecker:ctx-318c3f39) (logid:6a03a29b) Found 1 VMs on host 2
2019-07-11 15:51:08,191 DEBUG [c.c.a.ApiServlet] (qtp504527234-13:ctx-557e34dc ctx-60d779c7) (logid:478ef02c) ===END=== 192.168.1.25 -- GET command=createVlanIpRange&zoneId=6c2b2a7e-4222-44bf-a0ff-856ac61206da&vlan=544&gateway=109.68.152.254&netmask=255.255.248.0&startip=109.68.153.251&endip=109.68.153.255&forsystemvms=true&domainid=undefined&forVirtualNetwork=true&response=json&_=1562853068044
EXPECTED RESULTS
ACTUAL RESULTS
Reactions are currently unavailable
Activity
yadvr commentedon Jul 11, 2019
cc @nvazquez can you check and comment?
nvazquez commentedon Jul 12, 2019
@AndreaGHG thanks for reporting. The first line of the log says domain is undefined, which causes the error. Was this purely tested in the UI or also API?
AndreaGHG commentedon Jul 12, 2019
@nvazquez It was tested only in the UI.
I have not created domains, there is only "ROOT", and when you enable "System VMs" checkbox "Account" and "Domain" fields are disabled. A domain cannot be selected with "System VMs" checked in UI.
AndreaGHG commentedon Jul 15, 2019
I have created the system vm's dedicated ip range using the API.
nvazquez commentedon Jul 15, 2019
Thanks @AndreaGHG, I have created a fix for this UI issue, referenced above
ui: Fix SystemVMs public range dedication (#3495)