Commit Graph

16749 Commits

Author SHA1 Message Date
Prasanna Santhanam 5e2c1ef26e Summary: Open up the integration api port on the developer profile
Detail: Included the sqlCommand query to insert the
integration.api.port=8096 during managment server boot.

This will only affect developer runs where debugging is enabled.

BUG-ID : CLOUDSTACK-421
Reviewed-by: Prasanna Santhanam <tsp@apache.org>
Reported-by: Prasanna Santhanam <tsp@apache.org>

Testing:
$ mvn clean install
$ mvn -P developer -pl developer -Ddeploydb
$ mvn -pl :cloud-client-ui jetty:run

mysql> select * from configuration where name like 'integr%';
+----------+----------+-------------------+----------------------+-------+-------------+
| category | instance | component         | name                 | value | description |
+----------+----------+-------------------+----------------------+-------+-------------+
| Advanced | DEFAULT  | management-server | integration.api.port | 8096 | NULL        |
+----------+----------+-------------------+----------------------+-------+-------------+
1 row in set (0.01 sec)

http://localhost:8096/client/api?command=listOsTypes&keyword=CentOS%205.5&response=json

Returns:
{
   "listostypesresponse":{
      "count":2,
      "ostype":[
         {
            "id":"2474781c-52b6-42a1-aee4-b2ee159bbb41",
            "oscategoryid":"2188dd50-5d27-4c41-8f90-97bbadfc2206",
            "description":"CentOS 5.5 (32-bit)"
         },
         {
            "id":"fd95b25a-a46c-439e-af5c-1d2f1c149edd",
            "oscategoryid":"2188dd50-5d27-4c41-8f90-97bbadfc2206",
            "description":"CentOS 5.5 (64-bit)"
         }
      ]
   }
}

Signed-off-by: Prasanna Santhanam <tsp@apache.org> 1351405027 +0530
2012-10-28 11:47:07 +05:30
Prasanna Santhanam 5b43d245a7 Summary: Extending API doc pom to package
Detail: Create tarball of apidocs for distribution from jenkins
% mvn -Pdeveloper package

Signed-off-by: Prasanna Santhanam <tsp@apache.org> 1351321002 +0530
2012-10-27 12:26:42 +05:30
Prasanna Santhanam 241daa53c6 Summary: Mavenize marvin on master
Detail: Maven will now compile, install and deploy marvin using the
developer profile
    $ mvn -P developer

compile - compiles the cloudstackAPI
package - packages the marvin source distributable
deploy  - installs using pip (reqd python 2.7) the Marvin package in to
site-packages/

BUG-ID : CLOUDSTACK-378
Reported-by: Prasanna Santhanam <tsp@apache.org>
Signed-off-by: Prasanna Santhanam <tsp@apache.org> 1351319186 +0530
2012-10-27 11:56:25 +05:30
Edison Su fff6fde823 move code around 2012-10-26 18:36:40 -07:00
Chiradeep Vittal d7227bdf55 Enable vmware build with mvn 2012-10-26 18:13:00 -07:00
Brian Federle cdbfe261ba Add new infrastructure icons 2012-10-26 13:33:38 -07:00
Jessica Wang 4e8cf95140 CS-16573: cloudstack UI - account page - disable account, enable account, lock account, delete account, update resource count - encode data passed to API call. 2012-10-26 11:44:36 -07:00
Jessica Wang 539760ec68 CS-16612: cloudstack UI - Shared VLAN UI change - Network page - if it's Shared network and login is not root-admin, hide delete and restart option. 2012-10-26 11:00:41 -07:00
Jessica Wang ef0be741c3 CS-16573: cloudstack UI - basic search in account page, update account action - encode data passed to API call. 2012-10-26 10:59:32 -07:00
Rohit Yadav dbe88c1ed3 CLOUDSTACK-417: Handle passwd-srvr securely on VR, port 8080
By default do not enable port 8080 in iptables-router. Since, the socat
server which serves the password is in an infinite loop, any incorrect
attempt is returned bad_request and passwd-srvr won't break.

When /etc/init.d/cloud-passwd-srvr is started:
  - It finds and removes any old rules on port 8080, eth0
  - It applies iptables rule that accepts only traffic from private cidr.

When cloud-passwd-srvr is stopped:
  - It removes iptables rules on port 8080, eth0

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2012-10-26 21:37:32 +05:30
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