Commit Graph

16989 Commits

Author SHA1 Message Date
Brian Federle 4a96a200b1 Merge branch 'master' into ui-plugins 2013-02-08 13:09:52 -08:00
Chiradeep Vittal 606fa9df70 Add ASL to scripts as a temporary workaround for RAT breakage. This will get changed to MIT license later 2013-02-08 13:05:24 -08:00
Chiradeep Vittal 82dc16e58a CLOUDSTACK-1066: no need for build helpers. Also reduces attack surface of system vm
CLOUDSTACK-1066: no need for busybox and dictionaries

CLOUDSTACK-1066: fix bug in generating signature

CLOUDSTACK-1066: don't confuse veewee about root password
Clean up stuff copied in to vm by veewee
2013-02-08 12:52:41 -08:00
Chiradeep Vittal 31791e241d CLOUDSTACK-1066: fix openswan install to not require interactive input 2013-02-08 12:52:19 -08:00
anthony 6df0ff2596 fix build issue after revert 2013-02-08 12:30:12 -08:00
anthony c0f2cf1e06 Revert "Revert "CLOUDSTACK-737""
This reverts commit dd67cfc5d0.
2013-02-08 12:19:31 -08:00
anthony b66f6c88f9 Revert "Revert "CLOUDSTACK-737""
This reverts commit 447d49ae91.
2013-02-08 12:19:03 -08:00
Anthony Xu 27d1f3fa07 Revert "CLOUDSTACK-737"
This reverts commit 8a86d08fe3.
2013-02-08 10:47:40 -08:00
Anthony Xu a2fa167613 Revert " CLOUDSTACK-737"
This reverts commit 65210f4e7e.

Conflicts:
	server/src/com/cloud/vm/UserVmManagerImpl.java
2013-02-08 10:47:08 -08:00
Anthony Xu 447d49ae91 Revert "CLOUDSTACK-737"
This reverts commit d7201dfe1f.

Conflicts:
	server/src/com/cloud/network/NetworkManagerImpl.java
	server/src/com/cloud/resource/ResourceManagerImpl.java
2013-02-08 10:46:20 -08:00
Anthony Xu dd67cfc5d0 Revert "CLOUDSTACK-737"
This reverts commit d7201dfe1f.

Conflicts:
	server/src/com/cloud/network/NetworkManagerImpl.java
	server/src/com/cloud/resource/ResourceManagerImpl.java
2013-02-08 10:45:40 -08:00
Anthony Xu 0a6c6bb254 Revert "CLOUDSTACK-737"
This reverts commit d7201dfe1f.

Conflicts:
	server/src/com/cloud/network/NetworkManagerImpl.java
2013-02-08 10:42:36 -08:00
Anthony Xu b4f3f92607 Revert " CLOUDSTACK-737,"
This reverts commit 95aef332cc.
2013-02-08 10:29:53 -08:00
Murali Reddy 68c110cb18 CLOUDSTACK-1208: Failed to shutdown guest network
Firewall manager was being used instead of LoadBalancingRules manager
while applying the load balancer rules in shut down network. Changing it
to LoadBalancingRules manager.
2013-02-08 18:54:15 +05:30
Rohit Yadav b59a18d1a1 CLOUDSTACK-1210: Fix pluggable service, apiserver, mgmt server impl, api-discovery
- Mgmt server impl is a pluggable service, fix it's method
- Fix getCommands() to return all cmd api classes supported by this mgmt server
- For api-discovery, get commands from pluggable services only, don't use reflections
- Don't use reflections in ApiServer, iterate pluggableservices
- Fix api discovery unit test
- The fix was done automatically using following python program along with
  following step:

1. Get all apis provided by default mgmt server, all of them are in cloud-api now
   cd api/src/org/apache/cloudstack/api/command
   find . >> apis
2. For all apis, generate java code that adds the class to the cmdList arraylist:
   f = open('apis', 'r')
   data = f.read()
   f.close()
   output = ""
   for a in data.split('\n'):
     output += "cmdList.add(%s);" % a.split('/')[-1].replace('.java', '.class')
   # wrote output to a file, copied content to mgmt server impl's getCommands()
   # similarly, fixed import statements using same code, splitting on /

Testing:
Ran apiserver, put breakpoints in ApiServer's init() where classes are processed
Total cmd classes found by reflections (ReflectUtil) = 354
Total cmd classes found by getCommands for all pluggable services = 354

Next, copied the comma separated values for each set to a string in ipython, a & b
set(a).difference(set(b)) returned null.

The above test implies both set of cmd classes found by both methods, i.e. using
reflections and using getCommands() had same set of apis and all were unique.

Conclusion:
The changes are idempotent and don't break api server's cmd class api discovery
processing.

BUG-ID: CLOUDSTACK-1210

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2013-02-08 16:48:13 +05:30
Rohit Yadav 3a0588f317 netapp: Fix as pluggable service and return list of apis it offers
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2013-02-08 16:36:24 +05:30
Rohit Yadav 41fc03d4e7 bigswitch-vns: Fix since version in apis, add spring annotation to fix NPE
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2013-02-08 16:36:24 +05:30
Wido den Hollander e4b2fe42e0 CLOUDSTACK-1206: Change path from /etc/cloud to /etc/cloudstack
Reported-by: Pradeep Soundararajan <pradeep.soundararajan@citrix.com>
2013-02-08 10:50:48 +01:00
Rohit Yadav 31f0c6a3bd INSTALL.md: Update port info with better summary and fix building section
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2013-02-08 13:53:24 +05:30
Min Chen 0b1e3a4af0 Move Api rate limit configurations from xml file to global
configuration, and also modify listCapabilitiesCmd to also return api
limit interval and max for UI consumption.
2013-02-08 00:02:25 -08:00
Hugo Trippaers 6d952a15ab Compileall does not compile single files 2013-02-08 08:16:14 +01:00
Min Chen 12cbaad691 Remove duplicate bean for ApiRateLimitServiceImpl to make sure that only
one ApiChecker instance is injected in ApiServer.
2013-02-07 21:50:07 -08:00
Min Chen d71cfc1aec Revert "CLOUDSTACK-1175: Fix NPE by making _store a static variable shared by objects"
This reverts commit 9b691fc443.
2013-02-07 21:49:37 -08:00
Chiradeep Vittal eaaf880dcf CLOUDSTACK-1066: add license and attribution 2013-02-07 19:06:47 -08:00
Chiradeep Vittal 97833c9f93 CLOUDSTACK-1066: bug fixes to cloudstack package script 2013-02-07 19:02:22 -08:00
Chiradeep Vittal ee9baefe3f CLOUDSTACK-1066: restore modularity in config files by splitting postinstall tasks
Add config.dat to ensure that openswan install does not hang asking for user input
2013-02-07 19:02:22 -08:00
Chiradeep Vittal 990d20b67b CLOUDSTACK-1066 slim down the package by not choosing 'standard'.
Allow root user to login (FIXME) otherwise veewee is unable to login
2013-02-07 19:02:21 -08:00
Likitha Shetty 2364ada4df CLOUDSTACK-1119 [EC2 Query API] Add filter support for DecsribeAddresses
EC2DescribeAddresses doesn't have filter support.
Support will be available for filters -> instance-id and public-ip
2013-02-07 18:32:48 -08:00
Likitha Shetty b5e28038cb [EC2 Query API] DescribeAvailabilityZones doesn't have any filter support.
CLOUDSTACK-1118

Support will be available for filters - zone-name and message
2013-02-07 18:00:35 -08:00
Likitha Shetty 12ad296b6c CLOUDSTACK-1117 [EC2 Query API] DescribeImageAttribute fails
EC2DescribeImageAttribute fails with 'Unsupported - only description supported' error. And this is observed for both the supported attributes 'Description' and 'LaunchPermission'
2013-02-07 17:54:02 -08:00
Prachi Damle 4e4edc9e42 CLOUDSTACK-1116 [EC2 Query API] Support for ModifyImageAttribute and ResetImageAttribute
https://reviews.apache.org/r/9213

Add support for EC2 ApiI's ModifyImageAttribute and ResetImageAttribute.
Attributes supported are Description and LaunchPermission.
2013-02-07 17:22:16 -08:00
Min Chen 14ef9151a5 Fix ClassCastException. 2013-02-07 16:23:56 -08:00
anthony 951cba92bb Merge branch 'sg-in-advanced-zone'
Conflicts:
	server/src/com/cloud/network/NetworkManagerImpl.java
	server/src/com/cloud/vm/UserVmManagerImpl.java
2013-02-07 15:19:41 -08:00
Chiradeep Vittal 3dea9a7be5 Summary: Remove superfluous chroot and change to use standard jre
Detail: Since the script executes inside the running vm, the chroot is not necessary. Also the standard jre is used instead of sun jre.

BUG-ID: CLOUDSTACK-1066
Signed-off-by: Chiradeep Vittal <chiradeep@apache.org> 1360277071 -0800
2013-02-07 14:48:18 -08:00
Wido den Hollander a5f0be186f agent: Rename startDomain to startVM
The other methods are called stopVM and rebootVM, so it makes
sence to use startVM.
2013-02-07 23:07:10 +01:00
Wido den Hollander 5dfcd309f1 agent: Do not define domains persistent in libvirt
We used to define domains persistent in libvirt, which caused XML definitions
to stay there after a reboot of the hypervisor.

We however don't do anything with those already defined domains, actually, we wipe
all defined domains when starting the agent.

Some users however reported that libvirt started these domains after a reboot
before the CloudStack agent was started.

By starting domains from the XML description and not defining them we prevent
them from ever being stored in libvirt.
2013-02-07 23:07:05 +01:00
Wido den Hollander f6c4b22139 agent: Remove the main() method from LibvirtComputingResource
Seems like very ancient code which is not needed.
2013-02-07 23:06:44 +01:00
Hugo Trippaers 2f44ed0820 Include the compiled python module, so it will be removed as well when the package is removed 2013-02-07 22:43:50 +01:00
Jessica Wang cc24bebcb6 CLOUDSTACK-537: cloudstack UI - Advanced sg-enabled zone - VM Wizard - step 5 - select network screen - populate only sg networks (i.e. not show non-sg networks). 2013-02-07 13:19:55 -08:00
Jessica Wang a02c66594f CLOUDSTACK-537: cloudstack UI - Infrastructure menu - create network dialog - Advanced sg-enabled zone - (1) account-specific network doesn't work at backend. Therefore, remove "account" option from scope dropdown. (2) zone-wide network: list only sg network offerings. 2013-02-07 13:17:45 -08:00
Min Chen 640fa6be76 Fix a bug in converting Enum type to String. 2013-02-07 12:23:57 -08:00
Brian Federle 2cb50b17fb Merge branch 'master' into ui-plugins 2013-02-07 12:03:35 -08:00
Wido den Hollander 5ce1f3b128 CLOUDSTACK-1193 / docs: Fix typo in libvirt tcp_listen port
The correct port is 16509, but this is clearly a typo.

This fixes: CLOUDSTACK-1193
2013-02-07 17:04:30 +01:00
Sebastien Goasguen c9dd19097f Docs: Adding documentation and translation chapter in dev guide 2013-02-07 15:35:51 +01:00
Rohit Yadav 9b691fc443 CLOUDSTACK-1175: Fix NPE by making _store a static variable shared by objects
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2013-02-07 18:23:49 +05:30
Pradeep Soundararajan a9955f155a Summary: changed the path from cloud to cloudstack.
The change in package script allowed us to create proper tar under rpmbuild/SOURCES directory

The change in the path enabled us to launch the management server properly.

Signed-off-by: Hugo Trippaers <htrippaers@schubergphilis.com>
Committed-by: Hugo Trippaers <htrippaers@schubergphilis.com>
2013-02-07 13:45:30 +01:00
Hugo Trippaers db3b0d3256 Summary: Fix path so the right files are removed from the install dir 2013-02-07 13:45:30 +01:00
Rohit Yadav 04d51c9e4d CLOUDSTACK-1066: Fix only one postinstall script, install packages etc.
- Remove different scripts, just use postinstall.sh that runs after basic appliance
  is built using veewee
- Port package installation method from old script
- Time the installation/build process

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2013-02-07 17:42:35 +05:30
Rohit Yadav 1fd0563137 CLOUDSTACK-1037: Implement fuzzy parameter completion
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2013-02-07 16:01:05 +05:30
Pranav Saxena bf1b40eca4 Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-cloudstack 2013-02-07 14:06:03 +05:30