Commit Graph

1901 Commits

Author SHA1 Message Date
Murali Reddy a4512c0f0c CLOUDSTACK-6832: [OVS]vnet is not released even the network is deleted
fix ensures allocated VNET is released during network shutdown

(cherry picked from commit be937a0821)
2014-06-13 13:55:16 +02:00
Anshul Gangwar ef0cec9381 CLOUDSTACK-6872: [hyperv] removed the redundant connectToRemote, DisconnectRemote methods which in turn fixes this bug. connectToRemote was used to connect to share, but once the share is domain joined we don't need this method as we already have required permissions
(cherry picked from commit cef29948a7)
2014-06-13 12:39:27 +02:00
Murali Reddy 1c17df853f CLOUDSTACK-6755: [OVS] Can't create more than 7 GRE tunnel networks in
xen cluster

XenServer does not create a bridge automatically when VIF from domU is connected
to internal network. So there is logic to force bridge creation by
creating VIF in dom0 connected to GRE tunnel network. But there is no
logic to delete the VIF after bridge gets created. So this fix ensure
VIF is delted when atleast there is one domU VIF connected to the
network.

(cherry picked from commit 9e4e62466a)
2014-06-12 12:38:12 +02:00
amoghvk b490da25ba CLOUDSTACK-6358: Remove hardcoded VMware mappings, handle snapshots
(cherry picked from commit a4b401f29f)
2014-06-10 13:18:56 +02:00
Edison Su 91391e6779 CLOUDSTACK-6464: if guest network type is vlan://untagged, and traffic label is used, kvm agent needs to honor traffic label
(cherry picked from commit dfb59cd6cc)
2014-06-04 16:49:43 +02:00
Nitin Mehta 9286417f05 CLOUDSTACK-6599:
1. Adding the missing Template/Volume URLs expiration functionality
2. Improvement - While deleting the volume during expiration use rm -rf as vmware now contains directoy
3. Improvement - Use standard Answer so that the error gets logged in case deletion of expiration link didnt work fine.
4. Improvement - In case of domain change, expire the old urls

(cherry picked from commit 48ea9e0b5e)
2014-06-03 10:02:06 +02:00
Wido den Hollander 93cc3e80d9 CLOUDSTACK-6783: Return a proper LibvirtStoragePool object after creating the pool
In situations where libvirt lost the storage pool the KVM Agent will re-create the
storage pool in libvirt.

This could be then libvirt is restarted for example.

The object returned internally was missing essential information like the sourceDir
aka the Ceph pool, the monitor IPs, cephx information and such.

In this case the first operation on this newly created pool would fail. All operations
afterwards would succeed.
2014-05-27 16:39:49 +02:00
Anshul Gangwar 92bc68d1f1 CLOUDSTACK-6663: Fixed Hyper-V agent fails to start on some setups. During startup agent tries
to get nic info of 0.0.0.0. To get it, it iterates through all nics and return the last NIC in
the list if it doesn't match with any IP address. In case last NIC doesn't have unicastAddress,
Hyper-V agent will fail to start. We don't need IP address during initialization. It get
initialized with startupcommand later.
2014-05-27 10:44:34 +02:00
Jayapal 9bb35ce11d CLOUDSTACK-6761: Fixed removing proxy arp rule on deleting static nat or PF rule on ip
The proxy-arp add/del is done on firewall rule add/del.
    The proxy-arp rule is deleted only when there is no static nat or dest nat rule is not using the ip.

    When there is static nat or PF and firewall rule
     a. Delete firewall rule. It skips delete proxy-arp because the rule is used by static nat rule.
     b. After deleting fw rule if we disable static nat there is no way to delete proxy-arp rule.

     On VM expunge we are deleting firewall rules first then static nat rules. This caused the stale proxy-arp
     rules.

    With this fix adding/deleting proxy arp rule on static nat/PF rule add/del.
2014-05-27 10:39:13 +02:00
Rajesh Battala 1fea5d9ea7 Fixed windows line ending issues
Conflicts:
	plugins/hypervisors/hyperv/DotNet/ServerResource/HypervResource/HypervResourceController.cs
	plugins/hypervisors/hyperv/DotNet/ServerResource/HypervResource/WmiCallsV2.cs
2014-05-26 14:40:43 +02:00
Amogh Vasekar b0b71e59e9 CLOUDSTACK-6671: Fixing NPE when a mapping is missing
Adding missing KVM mappings

Testing Done:
Local testing with removing CentOS mapping and launch a VM.

Signed-off-by: Nitin Mehta <nitin.mehta@citrix.com>
2014-05-22 20:38:57 +02:00
Min Chen c169ed1f3e CLOUDSTACK-6742: listVolumes - As regularuser , able to list Vms and
volumes of other users.
2014-05-22 10:17:15 +02:00
Min Chen 6ba541afb7 Disable IAM feature from 4.4 release.
Conflicts:
	test/integration/smoke/test_vm_iam.py
2014-05-21 13:49:11 +02:00
Murali Reddy ccd0e23ac6 CLOUDSTACK-6668: OVS distributed routing: ensure bridge is deleted when
last VM from the VPC is deleted on a host

OVS distributed routing: ensure bridge is deleted when last VM from the
VPC is deleted on a host. This fix ensures that bridge is
destroyed.
2014-05-16 22:53:15 +02:00
Jayapal adcc21ef3b Fixed vpc private gateway backend issues 2014-05-15 20:09:26 +02:00
Sanjay Tripathi 13ba59c5f0 CLOUDSTACK-6649: CS is not giving the system-wide capacity for GPU reosurce. 2014-05-14 13:52:46 +02:00
Rajesh Battala 799480cf05 CLOUDSTACK-6519 [Hyper-V] while adding VM to Network it should throw error when it is in running state 2014-05-13 22:59:34 +02:00
Devdeep Singh 820f8724fa CLOUDSTACK-6622: After a volume was live migrated, the destination smb storage path was added to
the folder column. For an smb share the smb credentials are in the query string of the path.
Before adding the path, smb shares query string should be cleaned up.
2014-05-13 10:52:35 +02:00
Sheng Yang 169c2be11a CLOUDSTACK-6607: Correct the result of VpcNetworkUsage
Blank or not shouldn't be used to indicate command is failure or not.
2014-05-13 10:37:23 +02:00
Amogh Vasekar 02bd3d0671 CLOUDSTACK-6358: As a part of supporting dynamic guest OS defined by user, removing the hard-coded dependencies.
This patch is for KVM

1. Local testing on KVM
2. Successfully got up system VMs
3. Successfully created a CentOS VM
4. Snapshots are not supported for KVM

 Signed off by :- Nitin Mehta<nitin.mehta@citrix.com>
2014-05-13 10:33:15 +02:00
Amogh Vasekar 1fb358d004 CLOUDSTACK-6358: As a part of supporting dynamic guest OS defined by user, removing the hard-coded dependencies.
This patch is for XenServer.

1. Local testing on XenServer 6.0.2
2. Successfully got up system VMs
3. Successfully created a CentOS VM
4. Created VM snapshot and reverted to snapshot
5. Manipulated guest_os_hypervisor table for mapping, and checked for correct propagation of platform emulator.

Signed off by :- Nitin Mehta<nitin.mehta@citrix.com>
2014-05-13 10:32:41 +02:00
Rajesh Battala 70a3e581ee CLOUDSTACK-6518 [Hyper-V] Efficient way of finding the empty nic in VR/VpcVR to configure VPC entities fixed windows line ending issues
Conflicts:
	plugins/hypervisors/hyperv/DotNet/ServerResource/HypervResource/WmiCallsV2.cs
2014-05-12 14:08:31 +02:00
Murali Reddy 2fa15a044a CLOUDSTACK-6609: OVS distributed routing: ensure tunnels are created if
not created already when OvsVpcPhysicalTopologyConfigCommand update is
recived

Currently if the tunnel creation fails, there is no retry logic. Fix
ensures OvsVpcPhysicalTopologyConfigCommand updates as an opputiunity to ensure
proper tunnels are established between the hosts.
2014-05-12 09:42:36 +02:00
Anshul Gangwar 55398ee185 CLOUDSTACK-6399: When there are no vms running on hyperv host, then agent was returning null. In
that case cloudstack was not doing anything and not updating the state of the vms to stopped.
Now the agent returns empty list of hostvmstatereport. Management server will then update the
vm state to stopped (instead of not acting upon the return state).
2014-05-12 09:36:17 +02:00
Harikrishna Patnala 3ac633d2f5 CLOUDSTACK-6551: [Automation] Failed to revert vm snapshot in xen 2014-05-08 13:43:32 +02:00
Bharat Kumar aabde469d2 Cloudstack-5077: reserve cpu and memory only when vmware.reserve.cpu/mem are set to true. Insted of setting the ovecommit values to one on upgrade, we popultate them from the global values.
Conflicts:
	engine/schema/src/com/cloud/upgrade/dao/Upgrade410to420.java
	engine/schema/src/com/cloud/upgrade/dao/Upgrade420to421.java
	plugins/hypervisors/vmware/src/com/cloud/hypervisor/vmware/resource/VmwareResource.java
2014-05-05 14:06:09 +02:00
Mike Tutkowski dd3076987f CLOUDSTACK-6170 Corrected an issue related to the "Reinstall VM" command and managed storage with VMware 2014-05-03 14:04:49 +02:00
Min Chen 1085695b5c CLOUDSTACK-6569: IAM - Regular user is able to listNetworks of another
user in the same domain , by passing account and domainId.
2014-05-03 00:44:25 +02:00
Sateesh Chodapuneedi 47f5d2862a CLOUDSTACK-6317 [VMware] Tagged VLAN support broken for Management/Control/Storage traffic
Check if switch name detected from traffic label for management, storage, control traffic is null before falling back to default value.

Signed-off-by: Sateesh Chodapuneedi <sateesh@apache.org>
2014-05-02 19:02:45 +02:00
Wido den Hollander 1aff3a5f08 CLOUDSTACK-4549: Do not force RBD snapshot backups to RAW format
Since we use qemu-img to copy from RBD to Secondary Storage we no
longer have to force to RAW images, but can stick with QCOW2

When the snapshot backups are QCOW2 format they can easily be deployed
again when restoring from a backup

Conflicts:

	plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/storage/LibvirtStorageAdaptor.java
2014-05-02 18:49:28 +02:00
Anthony Xu 376078e90f Revert "disble XS event, found there is an issue when event.from is called by multiple thread."
This reverts commit 8696f386dd.
2014-04-30 10:38:13 -07:00
Min Chen 683c242ed3 CLOUDSTACK-6513: Optimize code by removing deprecated utility to
QueryManagerImpl as private method just used for listTemplates and
listAffinityGroups to avoid misuse by new list APIs.
2014-04-30 10:40:39 +02:00
Min Chen 4ca65496c2 CLOUDSTACK-6513: IAM - Templates - When templates are listed with
templatefilter="shared" is used , we see public templates also being
included in the list. This commit reverts listTemplates behavior to 4.3
old logic without using consistent interpretation of list parameters
adopted in new IAM model.
2014-04-30 10:38:02 +02:00
Anthony Xu 8696f386dd disble XS event, found there is an issue when event.from is called by multiple thread. 2014-04-29 11:06:03 -07:00
Rajani Karuturi 69e550f5ea Fixed CLOUDSTACK-6509 Cannot import multiple LDAP/AD users into a cloudstack account
Conflicts:
	api/src/com/cloud/user/AccountService.java
	plugins/user-authenticators/ldap/src/org/apache/cloudstack/api/command/LdapCreateAccountCmd.java
	plugins/user-authenticators/ldap/src/org/apache/cloudstack/api/command/LdapImportUsersCmd.java

Signed-off-by: Koushik Das <koushik@apache.org>
2014-04-29 13:37:28 +02:00
Mike Tutkowski 815e391173 CLOUDSTACK-6170 Needed to add logic for XS 6.2 + XS62ESP1 + XS62ESP1004 2014-04-29 12:34:27 +02:00
Sanjay Tripathi b6d14d77bd CLOUDSTACK-6452: Failed to Live Migrate VM across clusters with Xenserver 6.2.5. 2014-04-26 13:43:31 +02:00
Rajani Karuturi fe7ecad20b checkstyle fix for commit 8e2e8e5e8a
improved ldap logging. added stacktrace in debug level incase of exceptions.

Signed-off-by: Abhinandan Prateek <aprateek@apache.org>
2014-04-25 22:49:25 +02:00
Murali Reddy 5ba7f6c006 CLOUDSTACK-6431: OVS migrating vm to a new host added to the cluster
does not create gre tunnel port on the new host

ensure OveElement gets a chance to setup tunnel network on the host
before VM is migrated.
2014-04-25 22:13:03 +02:00
Murali Reddy 61fc57121c CLOUDSTACK-6505: XenServer bridge for the OVS tunnel network gets reset
on the hosts in the xenserver cluster

this fix ensures that brige is created only once so that openflow rules
configured on the bridge are not lost.
2014-04-25 22:08:03 +02:00
Murali Reddy cbe326838d CLOUDSTACK-6507: ensure sequence numbers are honoured while processing
OvsVpcPhysicalTopologyConfigCommand and OvsVpcRoutingPolicyConfigCommand

fix ensures only latest updates are applied (new openflow rules) to the
bidge enabled for distributed routing.
2014-04-25 22:07:37 +02:00
Rajani Karuturi 9aab6046ae improved ldap logging. added stacktrace in debug level incase of exceptions.
Conflicts:
	plugins/user-authenticators/ldap/src/org/apache/cloudstack/ldap/LdapContextFactory.java

Signed-off-by: Abhinandan Prateek <aprateek@apache.org>
2014-04-25 21:48:31 +02:00
Rajesh Battala 234f7e4b76 CLOUDSTACK-6338 [Automation] Failed to NetScaler Device with error 2014-04-25 21:45:54 +02:00
Mike Tutkowski 66fcfee220 CLOUDSTACK-6488 Fixed an issue where the "path" field was not being set properly in the DB when the volume had a snapshot taken of it 2014-04-25 21:35:24 +02:00
Anthony Xu 33c0d6c7bb CLOUDSTACK-6438
CLOUDSTACK-6442
  XAPI plugins must be copied to XS master first.
2014-04-23 15:30:36 -07:00
Mike Tutkowski 4ae75b426b CLOUDSTACK-6469 2014-04-23 08:57:22 +02:00
Mike Tutkowski b32fb37c51 [DB-CHANGE] CLOUDSTACK-6170 (VMware root-disk support for managed storage) 2014-04-22 10:06:42 +02:00
Anthony Xu 3f74cb2feb enable event on XS 6.2 + FOX 2014-04-21 14:26:40 -07:00
Mike Tutkowski e49e282c63 CLOUDSTACK-6170 (VMware root-disk support for managed storage) 2014-04-19 10:13:10 -06:00
Sheng Yang 3578c7137f CLOUDSTACK-6047: Make aggregation command timeout configurable
In case some environments has different performance or we found some commands
would took too long to execute, one global configuration item is introduced to
specify "time out in seconds per one command in aggregation commands".

By default it's 3 seconds. If admin feel it's too long, it can be adjust to as
low as 1 seconds, which runs still well in my machine.
2014-04-18 23:27:12 -07:00