Commit Graph

21172 Commits

Author SHA1 Message Date
Prasanna Santhanam dda9ae28f3 marvin_refactor: factories for each api entity
factories will help define default test data for each entity. So a

Account.create(apiclient) returns a default account
VirtualMachine.deploy(apiclient) returns a virtualmachine etc

WIP: only skeletons, no flesh

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-10-31 13:54:13 +05:30
Prasanna Santhanam a5bd827c24 marvin_refactor: update the entity dict but not through optional kwargs
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-10-31 13:54:13 +05:30
Prasanna Santhanam 35c7c5713a marvin_refactor: fixing unittests
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-10-31 13:54:13 +05:30
Prasanna Santhanam 5ee671fc9a marvin_refactor: base dict object updated as **kwargs from factory
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-10-31 13:54:13 +05:30
Prasanna Santhanam f0b9b274ee marvin_refactor: VNS device APIs, VMSnapshot APIs, changes to factory creation
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-10-31 13:54:13 +05:30
Prasanna Santhanam 676997c8a3 simulator: removing cyclic dependency from simulator
The database creator caused a cyclic dependecny in the simulator which
is removed with this commit. Additionally the simulator profile is now
merged with developer profile and a test for server health is included

Steps to run:
$ mvn -Pdeveloper clean install
$ mvn -Pdeveloper -pl developer -Ddeploydb
$ mvn -Pdeveloper -pl developer -Ddeploydb-simulator
$ mvn -pl client jetty:run

To deploy an adv. zone and test the server health:
$ mvn -Pdeveloper,marvin -Dmarvin.config=`find . -name simulator.cfg` -pl :cloud-marvin test
2013-10-31 13:54:13 +05:30
Prasanna Santhanam c7a46a8995 removing unused commented dependencies
removing the spring related dependencies that were commented out.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-10-31 13:54:13 +05:30
Prasanna Santhanam ae49eb9d27 marvin_factories: inherit from ABSTRACT_FACTORY
This is done to remove dependency on an ORM.

+ Additional APIs from multiple ip per nic.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-10-31 13:54:12 +05:30
Prasanna Santhanam fa00dc9f9b marvin_refactor: add body to all the entities in base
- don't do package import of cloudstackentity
- create() and list() method will return obj(s) of type(Entity)

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-10-31 13:54:12 +05:30
Prasanna Santhanam 93438f2df0 marvin_refactor: create takes factories not reqd args
- Let all entities inherit from CloudStackEntity
- create and list are classmethods since they work without need for an
  entity to exist
- create takes only factories by default. no need for long param list.
    Entitiy.create(apiclient) will give entity out of default factory
- Use entityFactory.attributes() to init entities

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-10-31 13:54:12 +05:30
Prasanna Santhanam 23a2042df0 marvin_refactor: fixing the imports
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-10-31 13:54:12 +05:30
Prasanna Santhanam 6ffe0c42a8 marvin_refactor: split base into multiple modules
Each entity goes into its own module
Append ASF license header to the entity

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-10-31 13:54:12 +05:30
Prasanna Santhanam c03c700a64 marvin_refactor: factory info required only for create-able entities
entities come in to life on 'create', 'deploy', 'associate', 'register'

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-10-31 13:54:12 +05:30
Prasanna Santhanam d6cf83ebb4 marvin_refactor: factories for each api entity
factories will help define default test data for each entity. So a

Account.create(apiclient) returns a default account
VirtualMachine.deploy(apiclient) returns a virtualmachine etc

WIP: only skeletons, no flesh

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-10-31 13:54:12 +05:30
Prasanna Santhanam 60a255b6a4 marvin_refactor: code generator for marvin base library
The generateBase.py will give out Entity.(create|update|list|delete)
style python modules for use by the integration library.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-10-31 13:54:11 +05:30
Sheng Yang 3205cd42b5 CLOUDSTACK-730: Site-to-site VPN between VPC VR to VR
Now VPN connection can be created as "passive", which would enable the ability
of remote peer initiate the connection. So it's possible for VPC VR to
establish the connection to another VPC VR of CloudStack.

Test case also included.

The test case would create 2 vpcs and using VPN to connect them.
2013-10-30 19:30:22 -07:00
Darren Shepherd 1460196496 Centralize loading of db.properties to one place
There is now a method DbProperites.getDbProperties() that will load the
db.properties in one place and do the proper decryption of values if needed
2013-10-30 17:03:13 -07:00
Anthony Xu 27294a3827 CLOUDSTACK-4750
use interface wildcard "+" in iptables to cover potential used VLAN interface to allow output on physical interface.

you will see
 0     0 ACCEPT     all  --  *      *       0.0.0.0/0            0.0.0.0/0           PHYSDEV match --physdev-out bond2+ --physdev-is-bridged
instead of
 0     0 ACCEPT     all  --  *      *       0.0.0.0/0            0.0.0.0/0           PHYSDEV match --physdev-out bond2.1234 --physdev-is-bridged

Anthony
2013-10-30 15:12:21 -07:00
Hugo Trippaers 9d2271d115 Revert "fixed m2eclipse error" because it breaks packaging
This reverts commit 5bcd8280fd.
2013-10-30 20:17:59 +01:00
Brian Federle 25d4333d45 Rename 'socket info' title to 'hypervisors'
Rename 'socket info' title to 'hypervisors' to make it more generic, as
the dashboard section contains hypervisor host counts which are useful
in other contexts.
2013-10-30 11:37:54 -07:00
Brian Federle 2189da6c72 CLOUDSTACK-4758: Make root disk size a text field 2013-10-30 11:20:02 -07:00
Will Stevens  8871cdc03a Add support for multiple networks in the 'per account' source nat type setting in external network devices
Signed-off-by: Sheng Yang <sheng.yang@citrix.com>
2013-10-30 10:16:00 -07:00
ynojima a6b6fa65fa CLOUDSTACK-4932: bugfix : listNetworks API doesn't return VLAN ID (VNI)
Signed-off-by: ynojima <mail@ynojima.net>
Signed-off-by: Toshiaki Hatano <haeena@haeena.net>
2013-10-31 00:37:04 +09:00
ynojima 089026f6af CLOUDSTACK-4984: decrement MAX_VXLAN_VNI to be aligned with Linux kernel
Linux vxlan interface doesn't accept VNI:16777215 now.

Signed-off-by: Toshiaki Hatano <haeena@haeena.net>
2013-10-31 00:13:54 +09:00
Sowmya Krishnan af4f78ecca CLOUDSTACK-4776: New Tests for Netscaler as external device 2013-10-30 16:57:21 +05:30
Sebastien Goasguen ee5a3964aa CLOUDSTACK-4998: fix assignvm response string 2013-10-30 04:09:04 -04:00
SrikanteswaraRao Talluri b13cc0d027 CLOUDSTACK-4772: remove test tag for the test test_01_RouterStopCreateFW
Signed-off-by: SrikanteswaraRao Talluri <talluri@apache.org>
2013-10-30 12:33:48 +05:30
Brian Federle 088ba84e84 Multi-edit: Fix wrapping on table headers 2013-10-29 16:08:38 -07:00
Brian Federle 3f2a14b8b4 Add a bit more padding to header bar 2013-10-29 16:04:53 -07:00
Brian Federle 9d5ea57537 Detail view: Adjust tab panel colors
-Remove border/BG from individual group, for better visual flow

-Remove button appearance from actions

-Misc. small positioning tweaks
2013-10-29 15:59:57 -07:00
Jessica Wang e0c0282d3b CLOUDSTACK-4758: UI > Create Compute Offering > add new field "Custom" checkbox > when it's checked, Number of CPU Cores/CPU/Memory field become non-required and hidden. 2013-10-29 15:54:52 -07:00
Brian Federle 5e9320faa1 Detail view: Adjust tab colors 2013-10-29 15:43:08 -07:00
Brian Federle 185be21414 Adjust button colors; apply CSS gradients to buttons 2013-10-29 15:39:22 -07:00
Brian Federle bad6c5da33 Infra. chart: Adjust colors for better readability 2013-10-29 15:31:57 -07:00
Brian Federle 6e1986408e Breadcrumbs: Fix 'Home' link 2013-10-29 15:22:40 -07:00
Jessica Wang 1d1f585079 CLOUDSTACK-4758: UI > VM wizard > step 2 > show Root Disk Size field when listing is templates, hide Root Disk Size field when listing is ISOs. 2013-10-29 15:22:10 -07:00
Anthony Xu 5bcd8280fd fixed m2eclipse error 2013-10-29 15:20:49 -07:00
Anthony Xu 4f8781f681 CLOUDSTACK-4976
merge createVmFromTemplate in XSFP1 to CitrixResourceBase instead of fixing one bug in two different place.

Anthony
2013-10-29 15:20:49 -07:00
Brian Federle 8a37f40c0a Infra. chart: Fix socket info items duplicated on refresh 2013-10-29 15:17:09 -07:00
Brian Federle f1eaa975b8 Dashboard UI: Clean up layout
-Remove borders from dashboard items to enhance clarity

-Fix layout of events/alerts
2013-10-29 15:10:24 -07:00
Brian Federle 7695fff17b Infra. dashboard UI fixes
-Fix totals not showing up

-Increase height of socket info area to fit more hypervisors
2013-10-29 14:55:51 -07:00
Marcus Sorensen 4a9f05bda0 CLOUDSTACK-4967
1) vxlan will use bridge scheme 'brvx-<vni>'. Multiple physical networks can host guest
traffic type with vxlan isolation, so long as they don't use the same VNI range.

2) Guest traffic labels can be physical interface if bridge by given name is not found.
Normally we take traffic label name, find the matching bridge, then resolve that to a
physical interface. Then we create guest bridges on that interface. Now we can just
specify the interface.
2013-10-29 15:34:39 -06:00
Brian Federle be5a7b45fb Add new infrastructure UI styling; add CSS for socket info box 2013-10-29 14:17:33 -07:00
Brian Federle bed42deb88 CLOUDSTACK-4908: UI for report CPU sockets
-Adds socket info for hypervisors on infrastructure chart

-Displays # of sockets, and # of hosts

-Currently only dummy data set to 0 for all info
2013-10-29 14:16:25 -07:00
Brian Federle f0a8aa7f5e CLOUDSTACK-4738: VM wizard: Add custom fields for compute offering 2013-10-29 13:29:13 -07:00
SrikanteswaraRao Talluri 3223fcf672 CLOUDSTACK-4772: modify the script to get_process_status for vmware deployment
Signed-off-by: SrikanteswaraRao Talluri <talluri@apache.org>
2013-10-30 01:46:26 +05:30
Brian Federle f1683d0ad4 Instance wizard: lighter color on step numbers 2013-10-29 13:02:10 -07:00
Brian Federle d833e41f5e Dashboard UI: update header bar colors 2013-10-29 11:39:48 -07:00
Brian Federle cb11b0ad83 Project switcher: Remove hover state and custom styling -- breaks IE 2013-10-29 11:30:26 -07:00
Brian Federle 896f68b927 Fix region selector popup 2013-10-29 11:24:58 -07:00