abhishek
1950bf7a99
changing the nat feature to work with kvm
2010-11-24 10:04:24 -08:00
abhishek
5543814f39
blocking the static natting of an ip address, if it is already source natted
2010-11-23 16:39:02 -08:00
alena
10fb2a0f39
bug 7292: fixed assignig LB to non-source Nat ip address
...
status 7292: resolved fixed
2010-11-22 20:54:08 -08:00
alena
3f1abbcbc8
Fixed assignToLoadBalancer command - admin couldn't assing LB rule in behalf of other user
2010-11-22 17:08:51 -08:00
Alex Huang
1e44925564
api refactoring
2010-11-21 12:00:21 -08:00
alena
138e0914b6
bug 7245: don't try to set vm name for detached volume during expunge process.
...
status 7245: resolved fixed
Fixed couple of other problems:
* cleanup corresponding records in load_balancer_vm_map table when loadBalancerRule is removed.
* don't log "java.lang.IllegalStateException: getAttribute: Session already invalidated" exception when UI session expires
2010-11-19 20:08:18 -08:00
alena
6b61caad46
AssignToLoadBalancer - added missing transaction.commit to corresponding NetworkManager method.
2010-11-19 19:14:24 -08:00
alena
5426b1487c
listPortForwardingRules: return empty response instead of throwing exception when ipAddress doesn't have any rules assigned.
2010-11-19 18:40:32 -08:00
Alex Huang
5b4a6f27db
Changed networkconfigurations to network as per Sheng's suggestion
2010-11-19 15:44:42 -08:00
Chiradeep Vittal
394554770e
Enforce user limit on number of vpn users
2010-11-18 18:38:29 -08:00
Chiradeep Vittal
c53e165eaa
bug 6971: bring back l2tp port 1701
2010-11-18 14:06:01 -08:00
Chiradeep Vittal
a7547846bf
bug 6971: Dont confuse PF rules added for VPN to be LB rules
2010-11-18 14:05:28 -08:00
Alex Huang
a73e3dc9ac
new networking can be set by use.new.networking
2010-11-17 17:51:17 -08:00
Chiradeep Vittal
4c7bb302bc
bug 6971: Use PSK length configuration
...
validate global configurations
2010-11-17 16:32:50 -08:00
Chiradeep Vittal
31e17b907d
bug 6971: ensure no conflicts with portforwarding rules for vpn udp ports
...
also, do not open up port 1701 -- only used on ppp interface not public interface
also clean up password generator, make it easier to use and more secure
moved some constants to NetUtils
heuristic to determine if an ip is one-to-one nat'ted
2010-11-17 15:32:50 -08:00
abhishek
1d1a2fa691
bug 6448: returning an error back from the api on trying to add a pf rule which already exists
2010-11-17 11:50:05 -08:00
alena
c5d78a726e
Modified exception handing in API. Following exceptions are supported now (location - BaseCmd.java):
...
* MALFORMED_PARAMETER_ERROR - when type of the request parameter is invalid (String instead of Long for id for example)
* PARAM_ERROR - when invalid parameter value is specified in api request. For example, id of non existing vm for StartVmCmd
* ACCOUNT_RESOURCE_LIMIT_ERROR - when user tries to exceed his resource limits by executing the api command.
* INSUFFICIENT_CAPACITY_ERROR - when resource fails to create/start due to insufficient capacity.
* RESOURCE_UNAVAILABLE_ERROR - when user tries to create a vm when storage is not available.
* RESOURCE_IN_USE_ERROR - when user tries to delete/modify resource while it's in use. For example, when we try to delete a network group when it contains ingress rules.
* NETWORK_RULE_CONFLICT_ERROR - when LB/PF rule to add conflicts with existing rule
* ACCOUNT_ERROR - when user is not authorized to execute operation on the resource.
* INTERNAL_ERROR
2010-11-16 11:56:34 -08:00
Alex Huang
ed31497188
ComponentLocator changes
2010-11-16 04:28:15 -08:00
abhishek
d5ab597fcf
bug 6474,6475: porting over the expunge fixes for port forwarding rules to 2.2
...
status 6474,6475: resolved fixed
2010-11-15 17:33:05 -08:00
abhishek
d520f0af5b
adding a column in user_ip_address table called one_to_one_nat; which is a boolean to tell us if the ip is a nat ip. This is false by default, and is set to true when we nat the ip. Also, this value is returned in the list public ip addrsses api call.
...
finally, the value is set to false when we delete the ip forwarding rule.
2010-11-15 12:39:24 -08:00
abhishek
d8fdcd3815
bug 7088: returning right error msg for assocIp failure
2010-11-12 15:31:30 -08:00
abhishek
1faaba8fb0
fixed a corner case; also changed the commands to be async and changed the method signatures to conform with the master refactor
2010-11-11 13:07:26 -08:00
abhishek
239942bbe1
refactored all the commands to cater to keshav's needs, and added the new apis. the initial set of testing is complete, will now focus on corner cases
2010-11-11 13:07:26 -08:00
abhishek
26b75fc05d
this is a good point to check the code in; have completed a part of the enhancement's code; with create and delete ip forwarding rule commands and the skeleton for port to rule map with associated table
2010-11-11 13:07:26 -08:00
abhishek
e5ca5dddf9
renaming the ip forwarding commands to port forwarding commands, and beginning to work on Keshav's request to modify the current 1-1 NAT to be compatible with the Amazon apis
2010-11-11 13:07:26 -08:00
Alex Huang
94250c1330
committing to update
2010-11-11 12:53:19 -08:00
alena
d091bdd886
bug 7126: return true only when assignToLoadBalancer succeeded.
...
status 7126: resolved fixed
2010-11-11 12:46:21 -08:00
alena
86e83bc4bd
Created new response objects for userVm/domainRouter/systemVm that going to be used by API after network refactorig is in place.
2010-11-11 10:43:18 -08:00
Alex Huang
aca8ef79cd
a bunch of other changes for network refactoring
2010-11-08 12:29:37 -08:00
alena
1c24deda34
1) Refactored current Apis not to use reflection for method invocation. In new version following has to be done:
...
* Implement callCreate() and execute() methods in apis extending BaseAsyncCreateCmd (example - CreateVolumeCmd)
* Implement execute() method in apis extending BaseCmd and BaseAsyncCmd (example - deleteVolumeCmd and deleteUserCmd)
We no longer need createMethod(), method(), manager() fields in @Implementation annotation, cleanup has to be done.
2) Moved Account/User related methods to AccountManagerImpl. Methods are exposed via AccountService interface.
3) Enhanced exception handing for Api calls.
4) Created ConfigurationService interface, all Api config methods are exposed via it.
2010-11-08 11:27:36 -08:00
will
bd5f1a7de6
Fixed NPE if addVPNUser fails because it was unable to reach the domR.
2010-11-06 16:54:14 -07:00
Alex Huang
5f90a8adb0
Checking in to do git pull...stupid git
2010-11-05 16:10:22 -07:00
Alex Huang
d5d1808488
Added reservation context to the network gurus
2010-11-05 16:10:22 -07:00
abhishek
364e1e1c4a
bug 7034,6869: fixing the storage pools issue, and the npe at load balancer if the router is not found.
...
status 7034, 6869: resolved fixed
2010-11-04 17:18:58 -07:00
Chiradeep Vittal
271f5a5255
fix some unused warnings
2010-11-04 11:54:14 -07:00
Chiradeep Vittal
8b846b07a7
fix some unused warnings"
2010-11-04 11:54:14 -07:00
Chiradeep Vittal
6b33a98573
bug 6981: merge in stuff for bug 6807 from 2.1.x
2010-11-04 11:54:14 -07:00
Chiradeep Vittal
8e2e04a86e
bug 6981: merge in stuff for bug 6807 from 2.1.x
2010-11-04 11:54:14 -07:00
will
f907e370d1
- Added the rest of the VPN UI feature with the exception of displaying the preshared key.
...
- AddVpnUserCmd will now return the embedded object.
- Fixed RemoteAccssVpnResponse to return "iprange" instead of "ipRange"
2010-11-03 22:24:22 -07:00
Alex Huang
0fdca8be9a
changed back so everyone else can start the old way
2010-11-03 21:18:31 -07:00
Alex Huang
e27bb550fe
Harmony among gurus
2010-11-03 21:18:31 -07:00
Chiradeep Vittal
f182efc279
When starting a remote access VPN, send down all the users as well
2010-11-03 16:40:44 -07:00
Chiradeep Vittal
dd5e26e701
Allow more chars in username, password
2010-11-03 14:02:13 -07:00
Chiradeep Vittal
e1cb94831f
VPN users feature complete
2010-11-03 14:02:13 -07:00
Chiradeep Vittal
14613415e1
VPN users API -- WIP
2010-11-03 14:02:13 -07:00
Chiradeep Vittal
b6d3b3c184
users for vpn -- data model
2010-11-03 14:02:12 -07:00
alena
abb8f45667
1) Return embedded object for upgradeRouter command
...
2) Build response objects in ApiResponseHelper for stop/start/reboot/list router/systemVm commands
2010-11-02 19:47:14 -07:00
Alex Huang
5fe5450abc
even more refactoring
2010-11-02 15:25:07 -07:00
Alex Huang
560d7a275e
Removed InternalErrorException. Renamed the lock methods on the DAO objects to be more understandable.
2010-11-02 12:25:08 -07:00
Alex Huang
6311644e08
Successful creation of domr and uservm with all programming done correctly.....yahooo
2010-11-02 12:25:08 -07:00