[
https://issues.apache.org/jira/browse/CLOUDSTACK-7847?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14235393#comment-14235393
]
Wei Zhou commented on CLOUDSTACK-7847:
--------------------------------------
Hi Jayapal,
I guess you are not working on a fresh 4.6, right ?
The commit includes some sql change which need to do manually.
INSERT IGNORE INTO `cloud`.`configuration` VALUES ('Domain Defaults',
'DEFAULT', 'management-server', 'max.domain.user.vms','-1','The default maximum
number of user VMs that can be deployed for a domain', '-1', NULL, NULL, 0);
INSERT IGNORE INTO `cloud`.`configuration` VALUES ('Domain Defaults',
'DEFAULT', 'management-server', 'max.domain.public.ips','-1','The default
maximum number of public IPs that can be consumed by a domain', '-1', NULL,
NULL, 0);
INSERT IGNORE INTO `cloud`.`configuration` VALUES ('Domain Defaults',
'DEFAULT', 'management-server', 'max.domain.templates','-1','The default
maximum number of templates that can be deployed for a domain', '-1', NULL,
NULL, 0);
INSERT IGNORE INTO `cloud`.`configuration` VALUES ('Domain Defaults',
'DEFAULT', 'management-server', 'max.domain.snapshots','-1','The default
maximum number of snapshots that can be created for a domain', '-1', NULL,
NULL, 0);
INSERT IGNORE INTO `cloud`.`configuration` VALUES ('Domain Defaults',
'DEFAULT', 'management-server', 'max.domain.volumes','-1','The default maximum
number of volumes that can be created for a domain', '-1', NULL, NULL, 0);
INSERT IGNORE INTO `cloud`.`configuration` VALUES ('Domain Defaults',
'DEFAULT', 'management-server', 'max.domain.networks', '-1', 'The default
maximum number of networks that can be created for a domain', '-1', NULL, NULL,
0);
INSERT IGNORE INTO `cloud`.`configuration` VALUES ('Domain Defaults',
'DEFAULT', 'management-server', 'max.domain.vpcs', '-1', 'The default maximum
number of vpcs that can be created for a domain', '-1', NULL, NULL, 0);
INSERT IGNORE INTO `cloud`.`configuration` VALUES ('Domain Defaults',
'DEFAULT', 'management-server', 'max.domain.cpus', '-1', 'The default maximum
number of cpu cores that can be used for a domain', '-1', NULL, NULL, 0);
INSERT IGNORE INTO `cloud`.`configuration` VALUES ('Domain Defaults',
'DEFAULT', 'management-server', 'max.domain.memory', '-1', 'The default maximum
memory (in MiB) that can be used for a domain', '-1', NULL, NULL, 0);
INSERT IGNORE INTO `cloud`.`configuration` VALUES ('Domain Defaults',
'DEFAULT', 'management-server', 'max.domain.primary.storage', '-1', 'The
default maximum primary storage space (in GiB) that can be used for a domain',
'-1', NULL, NULL, 0);
INSERT IGNORE INTO `cloud`.`configuration` VALUES ('Domain Defaults',
'DEFAULT', 'management-server', 'max.domain.secondary.storage', '-1', 'The
default maximum secondary storage space (in GiB) that can be used for a
domain', '-1', NULL, NULL, 0);
-Wei
> API: listDomains should display the domain resources, similar to listAccounts
> -----------------------------------------------------------------------------
>
> Key: CLOUDSTACK-7847
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-7847
> Project: CloudStack
> Issue Type: Improvement
> Security Level: Public(Anyone can view this level - this is the
> default.)
> Components: API
> Affects Versions: 4.4.0
> Environment: CloudStack 4.4.0 w/ KVM Hypervisor on Ubuntu 14.04 LTS
> Reporter: Logan B
> Assignee: Wei Zhou
> Fix For: 4.6.0
>
>
> Currently the "listDomains" call does not display any resource statistics.
> Since resources can be limited at the Domain level, it would make sense to
> have the "listDomains" call return the resource limit & usage details the
> same way "listAccounts" does.
> I would suggest having it return the following details for the domain:
> - Max/Used IPs
> - Max/Used Templates
> - Max/Used Snapshots
> - Max/Used VPC
> - Max/Used Networks
> - Max/Used Memory
> - Max/Used Projects
> - Max/Used vCPU Count
> - Max/Used CPU Mhz (This may not actually be tracked by CloudStack)
> - Max/Used Primary Storage
> - Max/Used Secondary Storage
> - I may have missed some.
> This would make it much easier to pull statistics information for a domain,
> instead of having to use multiple other calls.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)