Commit Graph

16259 Commits

Author SHA1 Message Date
Rohit Yadav 8071bb7fec Spring fails to inject the class itself which is a pluggable service. A
minor issue, but the listApis won't list the "listApis" API itself.
So, we manually addAll getCommands() from the class to the cmdClass (the
list of cmd classes)

Signed-off-by: Chip Childers <chip.childers@gmail.com>
2013-03-14 16:17:14 -04:00
hongtu_zang ae9aef2bc8 fix bug 1649 vmware vm os type error 2013-03-14 15:56:00 -04:00
John Kinsella c1847cdc50 Summary: security_group.py: catch exception when flushing chain
Detail: Added exception handling around iptables chain flushing, along
with a call to default_network_rules() to re-initialize.

Testing:
On agent, ls /var/run/cloud and pick one of the VMs to test with. Make a
backup of it's logfile (eg cp /var/run/cloud/i-2-1722.log /tmp )
Destroy the firewall ruleset for that VM with
/usr/lib64/cloud/common/scripts/vm/network/security_group.py destroy_network_rules_for_vm --vmname i-2-1722-VM --vif vnet10
Now copy the log file back, edit the file and decrement the last field by 1
ACS should notice the out-of-date sequence ID and push a new ruleset for
the VM within 60 seconds.

BUG-ID: CLOUDSTACK-1685
Bugfix-for: John Kinsella
Reviewed-by:
Reported-by:
Signed-off-by: John Kinsella <jlk@stratosec.co> 1363286927 -0700
2013-03-14 15:40:41 -04:00
John Kinsella 4a556d1280 Summary: Prevent deletion of wrong iptables rules
Detail: A grep in security_group.py wasn't defined well enough, could
potentially delete rules for VMs other than intended

BUG-ID: CLOUDSTACK-309
Bugfix-for: master
Reviewed-by:
Reported-by: Francois Scala
Signed-off-by: John Kinsella <jlk@stratosec.co> 1363222521 -0700
2013-03-14 15:40:35 -04:00
John Kinsella beb6170d2a Summary: Fix exception handling in security_group.py
Detail: Code was attempting to concatinate an exception to a string.
Updated to convert to text and concatinate that.

BUG-ID: CLOUDSTACK-1052
Bugfix-for: master
Reported-by: Noa Resare
Signed-off-by: John Kinsella <jlk@stratosec.co> 1363218769 -0700
2013-03-14 15:40:24 -04:00
Marcus Sorensen 6928679ba8 CLOUDSTACK-1648 - KVM - make storage pools non-persistent in libvirt. Persisting
cloud-defined resources on the host has caused various problems. As a backward
compatible fix, if an existing pool with a different name collides with a pool
being created (by path), the pool will be redefined with the name cloudstack
knows about. This is actually what brought up the bug, a persisted storage pool
cloudstack wasn't managing.

Signed-off-by: Marcus Sorensen <marcus@betterservers.com> 1363210149 -0600
2013-03-14 15:30:42 -04:00
Prachi Damle 48495f86f7 CLOUDSTACK-1604: deploy VM failed when global setting "vm.allocation.algorithm" is set to "userdispersing"
Changes:
- DeployPlannerSelector was newly introduced for BareMetal feature. It had the planner name hardcoded.
- Change it to decide the planner by referring to the global config vm.allocation.algorithm value
2013-03-14 15:08:08 -04:00
radhikap 07ffc2a50b CLOUDSTACK-1357 2013-03-14 13:31:41 +05:30
Pradeep Soundararajan 81a5a1270e BUG-ID: CLOUDSTACK-1557
Summary: EC2 REST API : cloudbridge database is missing on the CloudStack Installation

After this change, cloudstack-setup-databases is launching cloud-bridge related databases properly.
2013-03-13 17:31:05 -04:00
Murali Reddy 84fbc7e9a2 CLOUDSTACK-1427: Failed to delete Guestnetwork which has LB with Netscaler
There is no need for getIpDeployer to depend on the fact a NetScaler
device is allocated (network is implemented state) or not-allocated
(network is in shutdown state)
2013-03-13 11:50:45 -04:00
Min Chen 48fdbd4ea8 CLOUDSTACK-1656: NicResponses in a UserVmResponse are not preseving the natural order. 2013-03-12 21:50:16 -04:00
Kelven Yang 2323d1a730 CLOUDSTACK-1655: A regression in ConsoleProxy caused by deprecating old URL form 2013-03-12 20:39:39 -04:00
Kelven Yang 85198980ca CLOUDSTACK-1624: Initialize configuration variables properly to avoid influence of any racing conditions 2013-03-12 14:56:35 -07:00
Kelven Yang 8a99fb348f CLOUDSTACK-1267: Configure log4j in proper place so that it can be initialized correctly in KVM and system VM environment 2013-03-12 14:15:41 -07:00
Marcus Sorensen 996b57a42d CLOUDSTACK-1651 - point agent scripts to correct logging location, due to move
of /var/log/cloud to /var/log/cloudstack

Signed-off-by: Marcus Sorensen <marcus@betterservers.com> 1363112422 -0600
2013-03-12 15:03:12 -04:00
David Grizzanti 092560b801 CLOUDSTACK-1544 updated API documentation on deleteUser command; fixed API and id parameter descriptions; fixed responseObject doc designation 2013-03-12 13:55:37 -04:00
David Nalley 88843c00d1 CLOUDSTACK-1630 - Actually put obsoletes in the right order 2013-03-12 11:35:34 -04:00
Kelven Yang d813a7ba98 CLOUDSTACK-1267: Configure log4j in proper place so that it can be initialized correctly in KVM and system VM environment 2013-03-12 09:36:08 -04:00
Pradeep 4f071bcdf8 Adding awsapi in the require section of cloud.spec as it resolves issue with EC2 QUERY API Feature.
Moved the post awsapi section to the post management since it is trying to provide symb link before installing management server.

Signed-off-by: Pradeep <pradeep.soundararajan@citrix.com>
2013-03-12 09:25:24 -04:00
David Nalley b65868d3ae CLOUDSTACK-1630 - awsapi package not obsoleted, which blocked upgrades 2013-03-11 20:41:18 -04:00
David Nalley 0dc0aefd82 CLOUDSTACK-1631 - removing duplicate %doc declarations in -management 2013-03-11 20:31:58 -04:00
Min Chen 1f1ba72cf4 CLOUDSTACK-1621: listProjectInvitations fails with NPE for valid requests. 2013-03-11 14:55:20 -04:00
David Grizzanti ff910c814f CLOUDSTACK-94: API command, listIsos documentation clarity
Updated API documentation for listIsos command.

Descriptions for id and isofilter descriptions clarified:
- Updated isofilter description with all options and verbiage taken from VirtualMachineTemplate class
- Updated id description

Signed-off-by: Chip Childers <chip.childers@gmail.com>
2013-03-11 12:25:46 -04:00
Dennis Lawler 29ec31c645 CLOUDSTACK-1620: getXenServer602GuestOsType -> getXenServer610GuestOsType Fixing XenServer 6.1 OS types incompatible with XS6.0 2013-03-11 09:54:54 -04:00
Sheng Yang b8a16856ff CLOUDSTACK-1461: Don't set dns server for non-default ipv6 network
The non-default parameter can be used by ipv4 as well in the future.
2013-03-10 21:44:59 -04:00
Jessica Wang 623473394b Reverting UI of IPv6 feature. 2013-03-10 21:44:05 -04:00
Marcus Sorensen a1cbf57ca0 CLOUDSTACK-1201 - Fix update to cloud user's home dir on mgmt
server. It was printing a meaningless failure if the cloud
    user's home dir didn't need to be updated.

Signed-off-by: Marcus Sorensen <marcus@betterservers.com> 1362809648 -0700
2013-03-09 12:00:47 +05:30
Kelven Yang 0f000ad4ff CLOUDSTACK-1615: instead of returning empty host firewall ruleset, ESXi 5.0 Update 1 may return null to indicate empty host firewall ruleset, Cloudstack needs to handle this changed behave 2013-03-08 17:40:02 -08:00
Kelven Yang 00f63c44b6 CLOUDSTACK-1323: retire some of no-longer used files 2013-03-08 16:54:46 -08:00
Kelven Yang ddefdbfcec Disable acceptence of old-fashion URL form for console access 2013-03-08 15:20:52 -08:00
Joe Brockmeier 889e76bf65 Updating CHANGES file to reflect bugs/features in 4.1.0 2013-03-08 15:13:01 -06:00
Joe Brockmeier 8fb1f156fd CLOUDSTACK-1: Updated the instructions for building RPMs to reflect Maven changes and new packaging.sh script contributed by Hugo, et. al. 2013-03-08 13:03:58 -06:00
Joe Brockmeier 02a11501c5 CLOUDSTACK-1: modifying source prequisites for 4.1 2013-03-08 10:48:19 -06:00
Kishan Kavala ee4daf674c CLOUDSTACK-1569: Only forward API to source region and check for succcess. Do not convert the response to user/account/domain object since it is not updated locaaly. 2013-03-08 10:18:18 -05:00
Likitha Shetty 4ba28a5ba7 CLOUDSTACK-1509. During CreateVLANIPRange while trying to assign Public IPs to a new network if the network offering is persistent we get an NPE. Since associateIpRangeToAccount starts and commits a seaparte transaction, commit the transaction started for createVlanAndPublicIpRange before calling associateIpAddressListToAccount. 2013-03-08 10:14:59 -05:00
Sanjay Tripathi fd7f4103fe CLOUDSTACK-1574 : updateResourceCount API is failed saying to specify valida resource type even after parsing the valid resource type. 2013-03-08 10:14:03 -05:00
Joe Brockmeier 48bc393457 CLOUDSTACK-1: Working on new install/compiling documentation for 4.1 2013-03-08 08:52:54 -06:00
Chip Childers ef9c95d63c Merge branch '4.1' of https://git-wip-us.apache.org/repos/asf/incubator-cloudstack into 4.1 2013-03-07 19:18:52 -05:00
Kelven Yang 6213935f22 Disable out-dated CGLIB unit test assertion 2013-03-07 19:13:34 -05:00
Kelven Yang 0783839530 CLOUDSTACK-1562: Replace @DB support to be the formal implementation instead of a temporary hacking one 2013-03-07 19:13:10 -05:00
Joe Brockmeier db4b6081b7 CLOUDSTACK-1: Working on install docs for 4.1.0 and later. 2013-03-07 16:41:56 -06:00
Joe Brockmeier 1b1a4d0f2c Merge branch '4.1' of https://git-wip-us.apache.org/repos/asf/incubator-cloudstack into 4.1 2013-03-07 16:14:55 -06:00
Joe Brockmeier bb593b91c1 CLOUDSTACK-1: Working on the new install docs for compiling w/Maven 2013-03-07 16:14:41 -06:00
Alena Prokharchyk feee6bd60a CLOUDSTACK-1451 Pass randomly generated UUID instead of empty string when create internal account as a part of project creation. Otherwise entityexistsexception would happen when attempt to create more than 1 project in the system 2013-03-07 15:35:36 -05:00
Alena Prokharchyk dc07534979 Revert "CLOUDSTACK-1451 Pass randomly generated UUID instead of empty string when create internal account as a part of project creation. Otherwise entityexistsexception would happen when attempt to create more than 1 project in the system"
This reverts commit 45c51d1fdd.

The commit is reverted as it should go through the patch review
2013-03-07 11:41:27 -08:00
Alena Prokharchyk 45c51d1fdd CLOUDSTACK-1451 Pass randomly generated UUID instead of empty string when create internal account as a part of project creation. Otherwise entityexistsexception would happen when attempt to create more than 1 project in the system 2013-03-07 11:23:40 -08:00
Deepti Dohare e942df93e6 CLOUDSTACK-1541 NPE while deleting snapshots 2013-03-07 14:13:48 -05:00
Kanzhe Jiang 06e7fc1117 CLOUDSTACK-1345, remove VNS from UI 2013-03-07 13:55:56 -05:00
Harikrishna Patnala 421a2308fb CLOUDSTACK-1013 : running cloudstack overwrites default public/private ssh keys
The default private/public keypairs in .ssh will not be overwritten.
Instead cloudstack will generate a new keypair id_rsa.cloud and
id_rsa.cloud.pub and use those in developer mode.

To use this insert the (name,value)=(develop,true) tuple into
`cloud`.`configuration`

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-03-07 10:23:51 -05:00
Sheng Yang 7c7b05f4e0 CLOUDSTACK-1315: Fix NPE when try to upgrade network from VR to SRX-F5
Still return a valid object when reverting non-existed rules.
2013-03-07 09:43:25 -05:00