mirror of https://github.com/apache/cloudstack.git
quota: fix schema, set all quota tariff values to 0; effective date as cloud.com product launch date
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
parent
e2ab24a7bc
commit
ae26d67cb0
|
|
@ -59,28 +59,28 @@ CREATE TABLE IF NOT EXISTS `cloud_usage`.`quota_tariff` (
|
|||
|
||||
LOCK TABLES `cloud_usage`.`quota_tariff` WRITE;
|
||||
INSERT INTO `cloud_usage`.`quota_tariff` (`usage_type`, `usage_name`, `usage_unit`, `usage_discriminator`, `currency_value`, `include`, `effective_on`, `description`, `updated_on`, `updated_by`) VALUES
|
||||
(1,'RUNNING_VM','Compute-Month','',5.00,1,'1970-01-01','Quota tariff for running VM', '1970-01-01',1),
|
||||
(2,'ALLOCATED_VM','Compute-Month','',10.00,1,'1970-01-01','Quota tariff for allocated VM', '1970-01-01',1),
|
||||
(3,'IP_ADDRESS','IP-Month','',5.12,1,'1970-01-01','Quota tariff for IP address in use', '1970-01-01',1),
|
||||
(4,'NETWORK_BYTES_SENT','GB','',1.00,1,'1970-01-01','Quota tariff for network bytes sent', '1970-01-01',1),
|
||||
(5,'NETWORK_BYTES_RECEIVED','GB','',1.00,1,'1970-01-01','Quota tariff for network bytes received', '1970-01-01',1),
|
||||
(6,'VOLUME','GB-Month','',5.00,1,'1970-01-01','Quota tariff for volume usage per month', '1970-01-01',1),
|
||||
(7,'TEMPLATE','GB-Month','',5.00,1,'1970-01-01','Quota tariff for template usage per month', '1970-01-01',1),
|
||||
(8,'ISO','GB-Month','',5.00,1,'1970-01-01','Quota tariff for ISO storage per month', '1970-01-01',1),
|
||||
(9,'SNAPSHOT','GB-Month','',5.00,1,'1970-01-01','Quota tariff for snapshot usage per month', '1970-01-01',1),
|
||||
(10,'SECURITY_GROUP','Policy-Month','',5.00,1,'1970-01-01','Quota tariff for Security groups', '1970-01-01',1),
|
||||
(11,'LOAD_BALANCER_POLICY','Policy-Month','',5.00,1,'1970-01-01','Quota tariff load balancer policy use per hour', '1970-01-01',1),
|
||||
(12,'PORT_FORWARDING_RULE','Policy-Month','',5.00,1,'1970-01-01','Quota tariff port forwarding rule useper hour', '1970-01-01',1),
|
||||
(13,'NETWORK_OFFERING','Policy-Month','',5.00,1,'1970-01-01','Quota tariff for network offering usage per hour', '1970-01-01',1),
|
||||
(14,'VPN_USERS','Policy-Month','',5.00,1,'1970-01-01','Quota tariff for using VPN', '1970-01-01',1),
|
||||
(15,'CPU_SPEED','Compute-Month','100MHz',5.00,1,'1970-01-01','Quota tariff for 100 MHz of CPU running for an hour', '1970-01-01',1),
|
||||
(16,'vCPU','Compute-Month','1VCPU',5.00,1,'1970-01-01','Quota tariff for running VM that has 1vCPU', '1970-01-01',1),
|
||||
(17,'MEMORY','Compute-Month','1MB',5.00,1,'1970-01-01','Quota tariff for usign 1MB or RAM for 1 hour', '1970-01-01',1),
|
||||
(21,'VM_DISK_IO_READ','GB','1',5.00,1,'1970-01-01','Quota tariff for 1GB of disk IO read', '1970-01-01',1),
|
||||
(22,'VM_DISK_IO_WRITE','GB','1',5.00,1,'1970-01-01','Quota tariff for 1GB of disk data write', '1970-01-01',1),
|
||||
(23,'VM_DISK_BYTES_READ','GB','1',5.00,1,'1970-01-01','Quota tariff for disk bytes read', '1970-01-01',1),
|
||||
(24,'VM_DISK_BYTES_WRITE','GB','1',5.00,1,'1970-01-01','Quota tariff for disk bytes write', '1970-01-01',1),
|
||||
(25,'VM_SNAPSHOT','GB-Month','',5.00,1,'1970-01-01','Quota tariff for running VM', '1970-01-01',1);
|
||||
(1,'RUNNING_VM','Compute-Month','',0.00,1,'2010-05-04','Quota tariff for running VM', '2010-05-04',1),
|
||||
(2,'ALLOCATED_VM','Compute-Month','',0.00,1,'2010-05-04','Quota tariff for allocated VM', '2010-05-04',1),
|
||||
(3,'IP_ADDRESS','IP-Month','',0.00,1,'2010-05-04','Quota tariff for IP address in use', '2010-05-04',1),
|
||||
(4,'NETWORK_BYTES_SENT','GB','',0.00,1,'2010-05-04','Quota tariff for network bytes sent', '2010-05-04',1),
|
||||
(5,'NETWORK_BYTES_RECEIVED','GB','',0.00,1,'2010-05-04','Quota tariff for network bytes received', '2010-05-04',1),
|
||||
(6,'VOLUME','GB-Month','',0.00,1,'2010-05-04','Quota tariff for volume usage per month', '2010-05-04',1),
|
||||
(7,'TEMPLATE','GB-Month','',0.00,1,'2010-05-04','Quota tariff for template usage per month', '2010-05-04',1),
|
||||
(8,'ISO','GB-Month','',0.00,1,'2010-05-04','Quota tariff for ISO storage per month', '2010-05-04',1),
|
||||
(9,'SNAPSHOT','GB-Month','',0.00,1,'2010-05-04','Quota tariff for snapshot usage per month', '2010-05-04',1),
|
||||
(10,'SECURITY_GROUP','Policy-Month','',0.00,1,'2010-05-04','Quota tariff for Security groups', '2010-05-04',1),
|
||||
(11,'LOAD_BALANCER_POLICY','Policy-Month','',0.00,1,'2010-05-04','Quota tariff load balancer policy use per hour', '2010-05-04',1),
|
||||
(12,'PORT_FORWARDING_RULE','Policy-Month','',0.00,1,'2010-05-04','Quota tariff port forwarding rule useper hour', '2010-05-04',1),
|
||||
(13,'NETWORK_OFFERING','Policy-Month','',0.00,1,'2010-05-04','Quota tariff for network offering usage per hour', '2010-05-04',1),
|
||||
(14,'VPN_USERS','Policy-Month','',0.00,1,'2010-05-04','Quota tariff for using VPN', '2010-05-04',1),
|
||||
(15,'CPU_SPEED','Compute-Month','100MHz',0.00,1,'2010-05-04','Quota tariff for 100 MHz of CPU running for an hour', '2010-05-04',1),
|
||||
(16,'vCPU','Compute-Month','1VCPU',0.00,1,'2010-05-04','Quota tariff for running VM that has 1vCPU', '2010-05-04',1),
|
||||
(17,'MEMORY','Compute-Month','1MB',0.00,1,'2010-05-04','Quota tariff for usign 1MB or RAM for 1 hour', '2010-05-04',1),
|
||||
(21,'VM_DISK_IO_READ','GB','1',0.00,1,'2010-05-04','Quota tariff for 1GB of disk IO read', '2010-05-04',1),
|
||||
(22,'VM_DISK_IO_WRITE','GB','1',0.00,1,'2010-05-04','Quota tariff for 1GB of disk data write', '2010-05-04',1),
|
||||
(23,'VM_DISK_BYTES_READ','GB','1',0.00,1,'2010-05-04','Quota tariff for disk bytes read', '2010-05-04',1),
|
||||
(24,'VM_DISK_BYTES_WRITE','GB','1',0.00,1,'2010-05-04','Quota tariff for disk bytes write', '2010-05-04',1),
|
||||
(25,'VM_SNAPSHOT','GB-Month','',0.00,1,'2010-05-04','Quota tariff for running VM', '2010-05-04',1);
|
||||
UNLOCK TABLES;
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `cloud_usage`.`quota_credits` (
|
||||
|
|
|
|||
Loading…
Reference in New Issue