Commit Graph

11906 Commits

Author SHA1 Message Date
Vijayendra Bhamidipati 14ae4adbcd CS-9919: Support for Nexus Swiches (Cisco Vswitches)
Description:

	Fixing failure to load ClusterVSMMapDao by
	putting in a constructor that takes no
	arguments, inClusterVSMMapVO.
2012-05-14 18:20:39 -07:00
Devdeep Singh 264caccad9 CS-9919: Support for Nexus Swiches (Cisco Vswitches)
Description:

	Adding a netconf helper class for adding and
	deleting port profiles. These functions need
	to be further parameterized and error handling
	needs to be taken care of.
2012-05-14 18:19:18 -07:00
Vijayendra Bhamidipati 8362c89782 CS-9919: Support for Nexus Swiches (Cisco Vswitches)
Description:

	1. Missed replacing older table name for VSMs in a few
	   files (changed the name from
	   external_virtual_switch_management_devices to
	   virtual_supervisor_module). Fixed that in this commit.

	2. Missed adding the new Dao ClusterVSMMapDao in the Dao
	   loading in DefaultComponentLibrary. Fixed.

	3. Fixed wrong searchbuilder options passed to ipaddrSearch
	   in CiscoNexusVSMDeviceDaoImpl.
2012-05-14 18:18:26 -07:00
Vijayendra Bhamidipati a373250f94 Bug CS-9919: Support for Nexus Swiches (Cisco Vswitches)
Description:

	Fixing a wrong package path in CiscoNexusVSMResponse.

	More commits to follow.
2012-05-14 18:17:34 -07:00
Vijayendra Bhamidipati 79f3d8b6c4 Bug CS-9919: Support for Nexus Swiches (Cisco Vswitches)
Description:

	1. Added a new VO class to represent a new table
	   "cluster_vsm_map". The class is ClusterVSMMapVO
	   in ClusterVSMMapVO.java. This table has only
	   two fields - clusterId, VSMId. The clusterId can
	   occur only once. But the same VSMId can be tied
	   to different clusterIds.

	2. Added the Dao interface + implementation of the
	   interface. This provides the functions required
	   to populate objects of type ClusterVSMMapVO with
	   records from the cluster_vsm_map table. The
	   interface is defined in ClusterVSMMapDao.java,
	   and the implementation is in ClusterVSMMapDaoImpl.java.

	3. Changed the table name that represents the VSM to
	   "virtual_supervisor_module" from the earlier overly
	   generic "external_virtual_switch_management_devices".

	4. Added search/remove functions to the Dao of the VSM.
	   This is the Dao for the Cisco Nexus VSM -

		CiscoNexusVSMDeviceDao:CiscoNexusVSMDeviceDaoImpl
		 --> This is the Dao Implementation that would let
		     us query/update records on the
		     "virtual_supervisor_module" table that contains
		     the records of all the VSMs that are added to
		     the Management Server.

NOTE::
======
These were some of the changes made as part of the previous commit (#7):

	1. Renamed CiscoNexusVSMResource.java to CiscoNexusVSM.java.

	2. Changed it to not implement a true resource, but to be
	   just a class providing functionality to talk to a VSM.

	3. Modified the AddCiscoNexusVSMCmd class to take in clusterId
	   instead of zoneId + your fix of the String to Long.
2012-05-14 18:17:08 -07:00
Vijayendra Bhamidipati 7e8a8c2d3e Bug CS-9919: Support for Nexus Swiches (Cisco Vswitches)
Description:

	This is work in progress. This set of changes will not
	compile. Checking in for team wide code sync up.

	Changes are underway to test if VMWareResource can be
	leveraged to talk to the VSM, instead of creating a
	new resource for the VSM, like we've been doing up
	until now.
2012-05-14 18:16:34 -07:00
Vijayendra Bhamidipati e9d1bfbd3f Bug CS-9919: Support for Nexus Swiches (Cisco Vswitches)
At this point, the mgmt server comes up, loading the
	   Nexus related modules without dying.

Description:

	1) Added a new properties file for Cisco N1kv VSM commands:
		cisconexusvsm_commands.properties.in

	2) Added the CiscoNexusVSMElement to the components.xml file.

	3) Modified CiscoNexusVSMElement to implement NetworkElement.

		The NetworkElement interface functions are not
	  	relevant to the N1KV VSM, so we override them
	  	with noops.

	4) Added an addDao() of CiscoNexusVSMDeviceDaoImpl in populateDaos(),
	   else we'd run into a failure to look up the VSM's dao when the
	   mgmt server is starting up:

		com.cloud.utils.exception.CloudRuntimeException: Unable to find DAO com.cloud.network.dao.CiscoNexusVSMDeviceDao

	5) Also added the CiscoNexusVSMElementService in populateServices(),
	   and modified CiscoNexusVSMElement to implement Manager as well.

	6) populateServices() was running into an exception that indicated
	   that it was unable to find a commands.properties file for the
	   cisco n1kv vsm service. Fixed it by changing getProperties() in
	   CiscoNexusVSMElement to return the correct string
	   "cisconexusvsm_commands.properties", and putting in an @Override
	   for getProperties() in CiscoNexusVSMElement. Also fixed up all
	   the other functions in CiscoNexusVSMElement that needed to have
	   @Override. Also updated build/developers.xml with this file
	   location. And did other small cleanup.

	7) More clean up in CiscoNexusVSMDeviceManagerImpl.
2012-05-14 18:15:47 -07:00
Vijayendra Bhamidipati aaabd427f6 CS-9919: Support for Nexus Swiches (Cisco Vswitches)
Reviewed by: Sateesh Chodapuneedi, Devdeep Singh

Description:

This is the first in a series of commits for integrating the
Cloudstack Management Server with the Nexus 1000v Virtual
Supervisor Module.

These changes introduce the necessary API command interfaces
to work with a Cisco N1KV VSM. The backend logic is still to
be put in and will be incorporated in subsequent commits.
Please do not attempt to use these APIs until then. Also,
these are not yet filled in into commands.xml, so they are
not currently exposed.

Additional APIs would be added if required.

These changes will not break any current management server
functionality.

Given below is a description of the changes put in here:

	Added Cisco N1KV commands to core/api:
	    These are the added commands -

		AddCiscoNexusVSMCmd
		DeleteCiscoNexusVSMCmd
		ConfigureCiscoNexusVSMCmd
		ListCiscoNexusVSMCmd
		ListCiscoNexusVSMNetworksCmd

	Added a Network Element service file for Cisco N1KV.

	Declared the interface functions that we'll need for
	the N1KV VSM.

	Defined a DeviceVO file for the Cisco Nexus Element.

	Created a response file for Cisco Nexus VSM.

	Created new event types for external Switching Management devices.

	Put in logic to call interface methods in ListCiscoNexusVSMNetworksCmd
	and ListCiscoNexusVSMCmd

NOT VSM RELATED:
	Fixed minor typo in some of the event types for external load balancers.

       Added properties of a VSM in the VSM VO class.

       Replaced the "url" input parameter by "ipaddress"
       in the AddCiscoNexusVSMCmd API.

       Added a new file - CiscoNexusVSMElement.java to
       contain the implementation of the functions
       declared in the VSMElementService interface, and
       put in implementations of the functions for the
       Nexus VSM API commands. These functions are
       defined in the CiscoNexusVSMElement class.

       Added a class for Port Profiles (PortProfile.java).
       The fields in this class are still not correctly
       declared as of now. We'll make the required changes
       going forward.

	Added CiscoNexusVSMDeviceManagerImpl class.

	Added CiscoNexusVSMResource class.

	Created a new class to provide a package to
	connect to Cisco Nexus VSMs. This will be a
	set of Java wrapper functions that allow us
	to connect/disconnect and send commands and
	receive the results of those commands via
	XML-RPC. These functions are yet to be
	implemented, and will be checked in in future
	commits.

	Added two new classes, VSMCommand and
	VSMResponse, to encapsulate XML-RPCcommands
	and responses to and from a Ciscon Nexus VSM.

	Put in the following function stubs inside the
	CiscoNexusVSMService class:

		connectToVSM()
		disconnectFromVSM()
		executeVSMCommand()

	Added new field in the Type enum of the "Host"
	interface, for Cisco Nexus VSMs.

	Added two parameters to AddCiscoNexusVSMCommand
		vsmName
		zoneId

	Modified the CiscoNexusVSMDeviceVO constructor to
	take in an zoneId as a parameter when creating
	the VO object.

	Added new interface and class for the DeviceDao
	implementation for Cisco Nexus VSM devices:
		CiscoNexusVSMDeviceDao
		CiscoNexusVSMDeviceDaoImpl

	Removed the vsmvCenterDomainId property, since it's
	going to the same as vsmDomainId, which is the VSM's
	switch Domain Id.

	Have started putting in the following query functions
	in the CiscoNexusVSMDeviceDao interface:

	Put in DAO implementations of some of the above functions in the CiscoNexusVSMDeviceDaoImpl class.

	Added a vsmName parameter to the CiscoNexusVSMDeviceVO class.
2012-05-14 18:15:11 -07:00
Chiradeep Vittal 1edd57f276 Revert "Temporarily ignoring auth"
This reverts commit 7058988839c66ad273aa2bee01a68bbf2deba105.
2012-05-14 16:09:43 -07:00
Chiradeep Vittal 8f4ee3c2a1 Dont proceed if the object is not found 2012-05-14 16:09:43 -07:00
Chiradeep Vittal 362150b968 Rollback in case of exception 2012-05-14 16:09:43 -07:00
Chiradeep Vittal 99cae6e025 Handle listing of non-existing buckets 2012-05-14 16:09:42 -07:00
Chiradeep Vittal 86faa539e4 Format ListAllBuckets properly (or the buggy way AWS does it) 2012-05-14 16:09:42 -07:00
Chiradeep Vittal 5188c52294 409 conflict whenever bucket already exists to match AWS S3 2012-05-14 16:09:42 -07:00
Chiradeep Vittal 1424ec34b5 ignore signature 2012-05-14 16:09:42 -07:00
Chiradeep Vittal 37f6f77796 compile fixes 2012-05-14 16:09:42 -07:00
Chiradeep Vittal e8ac504a3e Temporarily return 404 instead of 400 for HEAD 2012-05-14 16:09:42 -07:00
Chiradeep Vittal fb35aa39c5 fake bucket location 2012-05-14 16:09:42 -07:00
Chiradeep Vittal f5d55d4520 load bucket location constraint class 2012-05-14 16:09:41 -07:00
Chiradeep Vittal af712d1482 Fake HEAD with GET temporarily 2012-05-14 16:09:41 -07:00
Chiradeep Vittal 66849fe02e Temporarily ignoring auth 2012-05-14 16:09:40 -07:00
Brian Federle 5a6454b8b5 CS-14717
Hide public traffic subnav when in basic zone configuration and not in
EIP/ELB
2012-05-14 15:50:23 -07:00
prachi e3cf8a6140 CS-14856: upgrade script:schema-2214to30.sql fails while upgrading CS 2.2.14 to Bonita
http://bugs.cloudstack.org/browse/CS-14856

- Problem is with the awsapi webapp being loaded first in tomcat before cloudstack webapp. There is no way this order can be controlled.

- We are not supporting upgrades for awsapi feature

- The solution is awsapi will check if the db exists during initialization. If not, the webapp will fail to load. Error loading the webapp can be seen in the catalina.out output.

- But this should not affect CloudStack db upgrade.
2012-05-14 15:39:15 -07:00
frank b4b10dc5bc don't call _secMgr.generateSetupCommand each time copying template
it will reboot httpd making in processing copy fail
2012-05-14 14:14:39 -07:00
frank 5ba91c66d7 Don't call configSSL() in SecStorageSetupCommand
just for test
2012-05-14 14:14:14 -07:00
Brian Federle ecbe959a23 CS-13874
If no 'custom' instance name is specified for a VM, use the
'instancename' field instead of 'displayname' for the label in PF/LB
UI.
2012-05-14 13:53:54 -07:00
Jessica Wang 8a08e379f1 cloudstack 3.0 UI - When API returns an error whose errorcode is 401, show Session Timeout message instead of errortext in API response ("unable to verify user credentials and/or request signature"). So it will be clear to user what to do next (i.e. log out and log in again). 2012-05-14 13:52:08 -07:00
Brian Federle 3a549588a6 CSS cleanup 2012-05-14 12:46:20 -07:00
Brian Federle d7cdd71ada CS-14715
Concatenate long user names, to prevent header bar from wrapping

Conflicts:

	ui/scripts/ui/utils.js
2012-05-14 12:44:00 -07:00
Brian Federle 6da9d20a82 CS-14339, CS-14241
In instance wizard, use configuration value for max. custom disk
offering size, instead of hardcoding the max size to 100 GB
2012-05-14 11:45:37 -07:00
Brian Federle f72476907e CS-14831: Incorrect message with reset password for instance
reviewed-by: brian
2012-05-14 11:29:49 -07:00
Pranav Saxena c4578f439c CS-14872 : Text for on hover iso and form for ISO's corrected
reviewed-by: brian
2012-05-14 11:26:36 -07:00
Pranav Saxena 039f48e096 CS-14873 : Authentication errors
reviewed-by: brian
2012-05-14 11:14:04 -07:00
Alena Prokharchyk 224c85a52b Documented the fact that hypervisor property is returned only when listTemplate/listIsos is called by the ROOT admin 2012-05-14 10:13:34 -07:00
Alena Prokharchyk ca17d35230 CS-14692: don't allow to remove account specific ip range when it has sourceNat ip address, and associated with non-removed Guest network 2012-05-14 10:13:34 -07:00
Jessica Wang 833993cf09 CS-14870: cloudstack 3.0 UI - network offering page - detail view - add tags field. 2012-05-14 10:11:42 -07:00
Prasanna Santhanam b366866441 MD5 Auth for accounts created on the API 2012-05-14 19:42:35 +05:30
Prasanna Santhanam 28f279df04 Build if you have python 2.7 installed 2012-05-14 19:42:35 +05:30
Likitha Shetty 14902a0bf7 CS-14731. Not able to revoke ingress rule, when there are multiple rules pointing to the same port and CIDR.
Resolved.
2012-05-14 17:37:14 +05:30
Likitha Shetty c4f258fa82 CS-14728. ec2-revoke: Not able to revoke the icmp rules. Presented with "Server.InternalError:Cannot find matching ruleid"
Resolved. ICMP type and code was not correctly set in the request.
2012-05-14 17:37:14 +05:30
Nitin Mehta b2c38acb4e bug CS-14785: Allow attaching the volume for Uploaded volume. Also have transition fo delete volume. 2012-05-14 16:41:56 +05:30
Prasanna Santhanam c856fdace3 Install paramiko as a dependency, don't complain about the requirement 2012-05-14 14:43:47 +05:30
Rajesh Battala 9f7d218698 removed TODO comment 2012-05-13 22:32:14 +05:30
Rajesh Battala f51cdd61f2 Implemented Multi Object Delete feature for S3 2012-05-13 22:26:43 +05:30
prachi 1b806e3713 CS 14640 - Output of ec2-describe-instances should provide security group,private ipaddress, ipaddress and hypervisor information.
Changes:
- fixed response.
2012-05-11 18:59:57 -07:00
prachi f5363e4c51 CS- 14640 Output of ec2-describe-instances should provide security group,private ipaddress, ipaddress and hypervisor information.
Changes:
- Fixed response of describe Instances
2012-05-11 18:59:55 -07:00
Kelven Yang 2e57e4c63a Add support routines for incremental snapshot support 2012-05-11 17:06:35 -07:00
prachi 1a81acd232 CS-14827: ec2-start-instances and ec2-stop-instances - When we try to start an instance that is already in "Running" state / try to stop an instance that is in "Stopped" state , API returns nothing.
Changes:

Adding the instance previous and current state to resposne; both states will be same.
2012-05-11 16:44:05 -07:00
prachi 1f5e68d96f CS-14828: ec2-terminate-instance - When trying to terminate/start/top/reboot an instance that is already terminated , we get an error - "Server.InternalError: Instance:cffab230-b3c1-478b-b44a-6a603c5673ed not found"
Changes:

Changed error message.
2012-05-11 16:25:24 -07:00
Jessica Wang 09718cdff9 cloudstack 3.0 UI - automatically refresh JS scripts 2012-05-11 16:05:13 -07:00