217 Commits

Author SHA1 Message Date
alena
6b9603bc4c bug 10561: intermidiate checkin for FirewallRuleFeature
1) Added new apis: createFirewallRule, deleteFirewallRule, listFirewallRules
2) Modified existing apis - added boolean openFirewall parameter to createPortForwardingRule/createIpForwardingRule/createRemoteAccessVpn. If parameter is set to true, open firewall on the domR before creating an actual PF rule there
Modified backend calls appropriately.
3) Schema changes for firewall_rules table:
* startPort/endPort can be null now
* added icmp_type, icmp_code fields (can be not null only when protocol is icmp)
4) Added new manager - FirewallManagerImpl

Conflicts:

	api/src/com/cloud/api/BaseCmd.java
	client/tomcatconf/commands.properties.in
	server/src/com/cloud/api/ApiResponseHelper.java
	server/src/com/cloud/configuration/DefaultComponentLibrary.java
	server/src/com/cloud/network/lb/LoadBalancingRulesManagerImpl.java
	server/src/com/cloud/network/rules/RulesManagerImpl.java
2011-08-09 15:51:56 -07:00
alena
6eacc11222 bug 10994: Fixed NPE in destroySystemVm api
status 10994: resolved fixed
2011-08-05 12:46:20 -07:00
Nitin
c009b56a60 bug 6653: Extract Api's - No need to encode the url's forward slash with %2F as we have the latest version of gson which doesnt err out on forward slash anymore.
status 6653: resolved fixed
2011-08-05 18:44:41 +05:30
Nitin
c73f5da276 bug 10725: add checksum to listIso and registerIso (its an optional parameter for this command).
status 10725: resolved fixed
2011-08-03 17:41:29 +05:30
frank
055ec48ae8 Two things:
Load non-routing resource in ClusteredAgentManager includes External DHCP, PxeServer, ExternalFirewall, ExternalLoadBalancer

Bug 9887 - baremetal: support for image operation (create template from guest disk) (edit)

changes in line with UI
2011-07-29 11:25:35 -07:00
Nitin
fb6a44d248 bug 9452: listCapacity - when the hosts > 200 the host_id and storage_pool_id start colliding, to workaround that also compart the capacity type. 2011-07-22 19:14:47 +05:30
anthony
bef3b480cd bug 10197:
The step to upgrade xenserver,

1. put cluster in Unmanaged state through UI , then MS will not talk to hosts in the cluster
2. upgrade xenserver according to XenServer upgrade guide.
3. put cluster in Managed state through UI, then MS will reconnect hosts

TODO,

1. UI
2. vm pool sync , leveraged from kelven's work
2011-07-19 15:44:37 -07:00
Abhinandan Prateek
57f41a3a05 bug 10731: added optional paramter source cidr 2011-07-19 12:21:39 +05:30
anthony
4c0fce700b bug 10639: if register iso for all zones, zoneId is -1,
fixed

status 10639: resolved fixed
2011-07-07 21:03:09 -07:00
alena
9be9a970c9 bug 10409: added domainSuffix parameters to account/domain objects 2011-07-06 16:57:19 -07:00
alena
2fca9d0a49 bug 10603: fixed NPE in listTemplates
status 10603: resolved fixed
2011-07-06 14:22:40 -07:00
frank
05c7995153 Bug 10559 - Couldn't add baremetal template/image throught the ui, zone id passed in was negative
resolved fixed
2011-07-05 19:35:26 -07:00
anthony
401e5ce0e9 handle register template/iso to all zones
Conflicts:

	api/src/com/cloud/api/ResponseGenerator.java
2011-07-01 17:42:59 -07:00
alena
17f785f07a Intermidiate checkin for Projects feature; added 3 new apis - create/delete/listProject(s) - as a part of checkin 2011-07-01 13:19:12 -07:00
anthony
a217baebf6 bug 5873: Checking if scmbug works
status 5873: resolved fixed
2011-06-30 14:06:20 -07:00
Abhinandan Prateek
978d811333 bug 10489: adding object name to response so that the front end displays it properly 2011-06-30 13:14:56 +05:30
Abhinandan Prateek
8bdbfc78ea bug 10489: self review updates 2011-06-30 10:52:03 +05:30
Abhinandan Prateek
f34252f2e0 bug 10489: improving listVM performance: Combined various queries to get Vm details into one single join, reduced the time required to 1/5 2011-06-30 09:55:35 +05:30
anthony
2fb5de8852 fixed several template issues
merge createtemplateresponse and createteisoresponse

on UI template
only show template corresponding hypervisor exists

Conflicts:

	api/src/com/cloud/api/ResponseGenerator.java
	server/src/com/cloud/storage/StorageManager.java
2011-06-29 18:31:13 -07:00
anthony
d57f187963 bug 10410: show template per zone
status 10410: resolved fixed
2011-06-27 17:15:58 -07:00
Abhinandan Prateek
b6d2ec505e bug 10340: added cidrs in response
The input can take multiple cidrs as in 10.91.28.0/24,169.254.2.0/24,56.89.0.0/16
2011-06-21 22:55:17 +05:30
Abhinandan Prateek
79e38f0a1f bug 10305: for a systemvm only applicable system vm offering should be displayed
status 10305: resolved fixed
While creating a system vm offering specify the type. If no type specified the default to domainrouter.
While requesting a set of system offering specify the paramter systemvmtype.
2011-06-20 20:11:50 +05:30
Abhinandan Prateek
db29a56eaf bug 10313: marking default system offering as default so that they should not be deleted
status 10313: resolved fixed
2011-06-19 12:16:06 +05:30
Sheng Yang
d5ff0dfa12 bug 9154: Update NetworkOfferingVO field 2011-06-16 14:29:34 -07:00
Sheng Yang
9466106c40 bug 9154: Add isRedundantRouter to DomainRouterResponse 2011-06-15 14:39:28 -07:00
Sheng Yang
07a61686db bug 9154: Add redundant state to DomainRouterResponse 2011-06-14 19:31:24 -07:00
Murali Reddy
6310991bdc bug 9419: implement api to reset resource count
added a command to reset resource count for account/domain based on real usage of resources
2011-06-13 10:55:57 +05:30
alena
f4ad575270 Revert "Temp fix to encode username, account name, and email before they are returned from the API"
This reverts commit e07221761a57b2c3df715bd939734f6661ebd976.
2011-06-10 18:10:36 -07:00
alena
53bdd625b8 bug 9579: allow domain name suffix update for existing networks.
Block update only in these cases:

* when DNS capability AllowDnsSuffixModification is false for the network
* when target network has running network elements (dhcps or domRs)

Conflicts:

	server/src/com/cloud/vm/dao/DomainRouterDao.java
	server/src/com/cloud/vm/dao/DomainRouterDaoImpl.java
2011-06-09 16:24:48 -07:00
Edison Su
00268632ac bug 10177: fix multiple local secondary storage: when we starting vm, only choose the local secondary storage that related to the planned computing host
status 10177: resolved, fixed
2011-06-07 20:22:16 -04:00
Alex Huang
65fc9bf847 bug 9651: added tags to network response for ui 2011-06-07 15:08:04 -07:00
Sheng Yang
62ac899091 bug 9154: Initial check in for enabling redundant virtual router
This patch enable redundant virtual routers.

1. To enable this feature, db need to be updated using follow SQL by now(we
would get a UI way later):

UPDATE network_offerings SET redundant_router=1 WHERE guest_type="Virtual" AND
system_only=0;

2. System would try to start up two routers at different hosts. But if there is
only one host in the zone, system would start up two routers on it.

3. The failover part is using keepalived, and connection tracking part is using
conntrackd. There would be one master router and one backup router. The status
of router(master or backup) can be query from the database table domain_router
now. Management server would update the status every 30s by default.

4. The routers for the same zone would use same external NIC(same ip and mac).
The script used for fail-over would ensure only one external NIC present in the
network at any time.

5. Currently management server don't got the ability to stop one of router is
both of them reported as master. The feature is in the todo list.

After two routers start up, disconnect anyone of them, the guest network
shouldn't be affected, and established connection(http, ssh, etc.) should still
works. The fail-over on gateway part should be 3~4 seconds.

Currently the patch works with KVM. Would deal with vmware and XenServer soon.
2011-06-07 14:47:45 -07:00
Alex Huang
d9e0bcfa1e bug 10126: Renamed getPodId() to getPodIdToDeployIn() 2011-06-03 22:17:08 -07:00
will
f9867a6475 Temp fix to encode username, account name, and email before they are returned from the API 2011-06-03 17:08:10 -07:00
nit
c0ce175227 bug 8184 : listSystemVms - return gateway which is equal to the Gateway of Nic belonging to Network with trafficType=Public for Advanced zone, and trafficType=Guest in Basic zone.
status 8184: resolved fixed
2011-06-02 18:04:58 +05:30
Edison Su
f7414b83aa fix listtempalte and listiso, if there are multiple secondary storage 2011-06-01 16:01:51 -04:00
Jessica Wang
8c4e831cfb bug 7553: cloudStack - server-side - make listRouters API return “serviceofferingname” and “serviceofferingid”. 2011-05-31 17:40:30 -07:00
nit
714ab83fa1 bug 9596 : Make the iso extractable by default.
status 9596: resolved fixed
2011-05-27 16:19:26 +05:30
anthony
7a266b9321 bug 10046: size in diskofferingVO is in type now
status 10046: resolved fixed
2011-05-26 13:51:08 -07:00
Abhinandan Prateek
5ad41e09ae bug 7553: Virtual Router service offering 2011-05-21 22:21:12 +05:30
alena
24e86c109e bug 9941: fixed listVolumes api - use leftouter join with vm_instance table because instance_id is NULL for detached volumes
status 9941: resolved fixed

Conflicts:

	server/src/com/cloud/api/ApiResponseHelper.java
	server/src/com/cloud/server/ManagementServerImpl.java
2011-05-19 18:49:12 -07:00
Abhinandan Prateek
770e317218 bug 7553: Virtual Router service offering 2011-05-19 19:18:33 +05:30
Murali Reddy
5769fde46b bug 7194:New API for adding range of public & private ports in port forwarding rule addition
adding support for port ranges in port forwarding rules.
2011-05-19 18:32:09 +05:30
alena
c2afcdec52 bug 9873: always add default security group to the SG list when deploy vm in 1) Basic zone 2) Advance zone using SG enabled network
status 9873: resolved fixed

Following fixes were made as a part of the checkin:

* When deploy user vm and SG doesn't exist in the DB, create it automatically.
* SecurityGroup enabled use vm start: if map to default group is not present in security_group_vm_map table, create one.
* Added "name" (securityGroupName) parameter back to deleteSecurityGroup/authorizeSecurityGroupIngress/deployVm. Mutually exclusive with security group id parameter.

Conflicts:

	api/src/com/cloud/api/commands/AuthorizeSecurityGroupIngressCmd.java
	api/src/com/cloud/api/commands/DeleteSecurityGroupCmd.java
	api/src/com/cloud/api/commands/DeployVMCmd.java
	server/src/com/cloud/api/ApiDBUtils.java
	server/src/com/cloud/vm/UserVmManagerImpl.java
2011-05-17 15:08:13 -07:00
nit
d91999533b bug 9397 : CreateTemplate - generate MD5 checksum of the template. The code will calculate the checksum after the template has been created in the secondary storage. This code would be executed by ssvm. This would be agnostic of the way the template was created (not hypervisor specific). 2011-05-10 12:26:00 +05:30
alena
2df6b0a6e1 bug 9774: display non-ready templates. Added "state" field to all snapshot* api responses. 2011-05-06 16:48:27 -07:00
Jessica Wang
48765a8ae9 bug 9534: CloudStack API - extend listServiceOfferings API to return limitCpuUse. 2011-05-04 15:27:07 -07:00
Chiradeep Vittal
303e2a7481 Start of zonesfeature / mycloud/cloudkit 2011-05-03 10:40:17 -07:00
Alex Huang
6ce656220f bug 9643: propagate fix from 2.2.4 2011-04-29 17:51:42 -07:00
alena
b7e4ec1749 bug 9564: 1) For all list commands set pageSize() to default.page.size if not specified 2) When pageSize is specified in the request, and it's more than default.page.size - throw an exception
status 9564: resolved fixed
2011-04-29 16:57:38 -07:00