Commit Graph

16989 Commits

Author SHA1 Message Date
Hugo Trippaers 6a9c588d33 Fix loading of external script so they will be loaded from the webapp classloader.
This change will allow the Script class to look for resources in the classpath of the webapp. This makes it possible to distribute the management server as a single prepackaged war. An added benefit is easier integration with IDE's that have the option to start webapps internally.

Also fixes a bug/feature in the URL handling were some components of the script path were translated to urlencoding. This  change means that files are more often found in the first two steps of the findScript method which saves some filesystem calls.
2012-10-26 15:32:00 +02:00
Hugo Trippaers e59726ad95 [CLOUDSTACK-359] Hook up the other side of the event propagation 2012-10-26 14:25:14 +02:00
Rohit Yadav 3663af1434 cloud-setup-databases: modify try-except-finally for < python 2.4
Make cloud-setup-databases compatible to python 2.4 and before.

Add code Prasanna Santhanam <tsp@apache.org>
Partially revert a6dcd7af49 which removed
the fix for CLOUDSTACK-199: Fix how cloud-setup-databases parses
  Patch splits by right most @ in supplied argument to get
  user:password and host substrings.

Less than python <2.4 the following is unsupported and produces a
SyntaxError.
    try:
        ...code ...
    except ValueError:
        ...code ...
    finally:
        ...code ...

Workaround is the following
    try:
        try:
            ...code ...
        except ValueError:
            ...code ...
    finally:

Credits to Prasanna Santhanam <tsp@apache.org>

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2012-10-26 14:20:37 +05:30
Edison Su bf21081633 follow the http://mojo.codehaus.org/exec-maven-plugin/examples/example-exec-using-plugin-dependencies.html 2012-10-25 22:38:24 -07:00
Kelven Yang 16ed8701da Test of using Spring DI to implement Basic/Premium configuration 2012-10-25 18:22:32 -07:00
Edison Su dcf3790e81 add volume types 2012-10-25 17:35:18 -07:00
Alex Huang a388a748d0 Added a database creator class. not working yet. Edison will look at it 2012-10-25 17:34:54 -07:00
Jessica Wang 7d15dc1d4d CS-16605: cloudstack 3.0 UI - create network offering - Mode dropdown (side by side/inline) - do not pass capabilitytype=InlineMode to API call when "side by side" is selected. Only pass it when "inline" is selected. 2012-10-25 15:59:54 -07:00
Kelven Yang c272cf6b69 add TransactionContextBuilder based on Spring AOP 2012-10-25 15:01:12 -07:00
Brian Federle e6c3e59e39 UI custom actions/enable static NAT: fix loading state
Fixes a bug where the loading state is not immediataly set for the
detail view on performing certain custom UI actions, particularly
enable static NAT.

This passes a separate 'start' function to the custom widgets, which
triggers the loading state, and 'complete' when the action
completes (i.e., the server call is done)
2012-10-25 14:40:16 -07:00
Brian Federle 0b2e5f1b17 CS-16567: Support quickview for custom actions
For custom actions (such as enable static NAT), fix instance list row
not updating when accessing via the quickview.
2012-10-25 13:59:53 -07:00
Alex Huang 525f96b7ae fixed tab problems 2012-10-25 13:13:47 -07:00
Min Chen 7b7f4cd1fd CLOUDSTACK-409: ThreadLocal Transaction and its db connection got reset for user managed db connnection, causing ClusterHeartBeat thread frequently trying to get db connection. Add unit test to test user managed transaction. 2012-10-25 13:06:50 -07:00
Jessica Wang e531763d87 Revert "cloudstack UI - Static NAT, Port Forwarding and Firewall Implementation on JuniperSRX - IP Address page - configuration - Firewall - exclude ICMP from Protocol dropdown."
This reverts commit b7ccae0dde.
2012-10-25 12:43:25 -07:00
Jessica Wang 0c96db5898 Revert "cloudstack UI - Static NAT, Port Forwarding and Firewall Implementation on JuniperSRX - IP Address page - configuration - Firewall - call listNetworkOfferings API only when the screen is navigated from Guest Network section, but not from VPC section."
This reverts commit a8e18f0529.
2012-10-25 12:42:10 -07:00
Jessica Wang aee0bf3e7b Revert "cloudstack UI - Static NAT, Port Forwarding and Firewall Implementation on JuniperSRX - IP Address page - configuration - if Firewall is provided by JuniperSRX, hide Firewall icon when Port forwarding is configured on IP Address."
This reverts commit 714b0593d3.
2012-10-25 12:40:41 -07:00
Jessica Wang 2b36ad8f92 CS-16612: cloudstack UI - create network offering - show all services regardless of guestIpType(Shared/Isolated). 2012-10-25 12:09:38 -07:00
Brian Federle 062190ccd8 Support IP address and services UI for shared networks
Currently, the IP addresses section and PF/LB/FW rule configuration is
disabled for shared networks; this change enables it for any shared
network with the source NAT service enabled. This makes the UI the
same for how it is with isolated networks.
2012-10-25 12:07:45 -07:00
Jessica Wang cc8b97ce97 CS-16573: cloudstack UI - create account - encode data passed to API call. 2012-10-25 11:11:44 -07:00
Jessica Wang b8e87cff00 CS-16573: cloudstack UI - Alerts page - basic search - encode data passed to API call. 2012-10-25 11:10:49 -07:00
Jessica Wang 1400f84a33 CS-16573: cloudstack UI - update ISO - encode data passed to API call. 2012-10-25 11:05:53 -07:00
Jessica Wang ef83621c5b CS-16573: cloudstack UI - update template - encode data passed to API call. 2012-10-25 11:05:04 -07:00
Edison Su ad3e98c1eb @DB works on spring 2012-10-25 10:27:22 -07:00
Prasanna Santhanam 5e451f899c Summary: Removing dbclient.close calls from integration tests
Detail:  Marvin auto-manages its connections now and there is no need to
call dbclient.close on tearDown of the test setup.

Signed-off-by: Prasanna Santhanam <tsp@apache.org> 1351152797 +0530
2012-10-25 13:44:45 +05:30
Edison Su 6a7215cedc fix default templateadaptor is not injected 2012-10-24 16:00:57 -07:00
Jessica Wang 48c2e6b844 CS-16573: cloudstack UI - register ISO - encode data passed to API call. 2012-10-24 15:09:07 -07:00
Jessica Wang 8fff59eb76 CS-16573: cloudstack UI - register template - encode data passed to API call. 2012-10-24 15:08:35 -07:00
Jessica Wang 8e2ebb26a8 CS-16573: cloudstack UI - IP Address page, VPN Customer Gateway page - basic search - encode data passed to API call. 2012-10-24 15:07:25 -07:00
Jessica Wang 47c83ef403 CS-16573: cloudstack UI - guest network page - update network - encode data passed to API call. 2012-10-24 14:54:39 -07:00
Jessica Wang d1493880f0 CS-16573: cloudstack UI - upload volume, create template from volume, create template from snapshot, create volume from snapshot - apply action filter back. 2012-10-24 14:54:00 -07:00
Jessica Wang 145d0a7f76 CS-16573: cloudstack UI - upload volume, create template from volume, create template from snapshot, create volume from snapshot - encode data passed to API call. 2012-10-24 14:53:42 -07:00
Jessica Wang de1fd5d0a8 CS-16573: cloudstack UI - create template from VM - encode data passed to API call. 2012-10-24 14:52:53 -07:00
Jessica Wang afeced1e43 CS-16573: cloudstack UI - update instance - encode data passed to API call. 2012-10-24 14:52:13 -07:00
Jessica Wang 1c54348081 CS-16573: cloudstack UI - create tag, delete tag - encode tags[0].key and tags[0].value when passing them to API call. 2012-10-24 14:51:38 -07:00
Jessica Wang 9372171af1 CS-16573: cloudstack UI - create volume - encode data passed to API call. 2012-10-24 14:50:46 -07:00
Brian Federle a96b27b5ac CS-16566: Remove egress rule tab if network ACL not present
-If network ACL feature is not part of a network's offering, then hide
 the egress rule tab

-Also includes code cleanup of network tabFilter
2012-10-24 14:28:02 -07:00
Jessica Wang 6ad1ed05e3 Bug 14981: cloudstack UI - update Host - OS Category dropdown - assign empty string instead of null as id to blank option. When Apply button is clicked, check whether the option id is empty string instead of English word 'None' which doesn't work for non-English environment. 2012-10-24 14:18:05 -07:00
Brian Federle 7ed60961f0 Quickview: don't run tabFilter
For compact detail view (quickview), don't execute tabFilter, as only
the first tab is rendered in all cases. This prevents excessive API
calls from being made, slowing performance.
2012-10-24 13:40:15 -07:00
Brian Federle 72259693ac CS-16567: Fix context for quick view on add row
After adding a new instance row, in some cases the list view's context
is not passed fully to the quickview, which broke certain sections.

This ensures that the full context stored in the list widget is passed
to the quickview.
2012-10-24 12:56:40 -07:00
Brian Federle 61a6aada07 CS-16586: Disable quick view for zone->guest network list
Due to technical limitations, disable quick view for the guest
networks list view under the zone traffic type section.
2012-10-24 11:37:13 -07:00
Hiroaki Kawai 1deb31a97e https://reviews.apache.org/r/6941/ - fix openjdk build requirement in spec file 2012-10-24 14:29:54 -04:00
Alex Huang f92ce72639 Correct dependency errors 2012-10-24 11:12:40 -07:00
Jessica Tomechak 1e0b8e43ba Docs. Fix CLOUDSTACK-405. Put missing steps back into management server installation. Running cloud-setup-management was missing. Also some copy edits. 2012-10-23 16:20:57 -07:00
Jessica Tomechak b1c72c1254 Docs. Fix bug CLOUDSTACK-406. Change AWS API port to 7080 in Installation Guide. 2012-10-23 15:24:41 -07:00
frank eeda3b9738 CloudStack CS-16590
Install script should specify correct version of libraries used by MS to avoid linking to default older versions of libraries
2012-10-23 14:47:13 -07:00
Jessica Tomechak 6cb0c97fbc Docs. Add missing sections to Primary Storage. Fix a typo. 2012-10-23 14:37:30 -07:00
Prasanna Santhanam 6f2792eb4b Summary: Close the ssh transport from paramiko
Detail: SSH Transport to be explicitly closed in marvin.remoteSSHClient
Signed-off-by: Prasanna Santhanam <tsp@apache.org> 1351002168 +0530
2012-10-23 19:52:48 +05:30
Edison Su 059f605ace add more interfaces 2012-10-22 17:50:51 -07:00
Brian Federle d01bbb9417 Apply same dataProvider map to both ingress and egress rules
-Because the dataProvider for both ingress and egress rules are
 handled the same, use a shared data mapping for both
2012-10-22 17:20:48 -07:00
Brian Federle 7fda33bbd0 CS-16572: Fix missing fields when start port == 0 2012-10-22 16:49:19 -07:00