From: Sumit Naiksatam Date: Thu, 1 Sep 2011 23:48:17 +0000 (-0700) Subject: Changing communication between UCSM driver to UCSM to HTTPS. X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=2b9039694bd7391209d4b2a9d69eba58686c9eb9;p=openstack-build%2Fneutron-build.git Changing communication between UCSM driver to UCSM to HTTPS. --- diff --git a/quantum/plugins/cisco/README b/quantum/plugins/cisco/README index f642c6778..a10181ea3 100755 --- a/quantum/plugins/cisco/README +++ b/quantum/plugins/cisco/README @@ -127,20 +127,13 @@ provider = quantum.plugins.cisco.l2network_plugin.L2Network API instead of the Quantum create port API. More details on using the multiport extension follow in the section on multi NIC support. -4. Disable http redirect on the UCS Fabric Interconnect (61xx). Log into the switch - using ssh and then enter the following commands: - -# scope system -6120-1-A /system # scope services -6120-1-A /system/services # disable http-redirect - -5. If you want to turn on support for Cisco Nexus switches: - 5a. Uncomment the nexus_plugin property in +4. If you want to turn on support for Cisco Nexus switches: + 4a. Uncomment the nexus_plugin property in quantum/plugins/cisco/conf/plugins.ini to read: nexus_plugin=quantum.plugins.cisco.nexus.cisco_nexus_plugin.NexusPlugin - 5b. Enter the relevant configuration in the + 4b. Enter the relevant configuration in the quantum/plugins/cisco/conf/nexus.ini file. Example: [SWITCH] @@ -159,7 +152,7 @@ nexus_ssh_port=22 [DRIVER] name=quantum.plugins.cisco.nexus.cisco_nexus_network_driver.CiscoNEXUSDriver - 5c. Make sure that SSH host key of the Nexus switch is known to the + 4c. Make sure that SSH host key of the Nexus switch is known to the host on which you are running the Quantum service. You can do this simply by logging in to your Quantum host as the user that Quantum runs as and SSHing to the switch at least once. If the @@ -167,22 +160,22 @@ name=quantum.plugins.cisco.nexus.cisco_nexus_network_driver.CiscoNEXUSDriver clearing of the SSH config on the switch), you may need to repeat this step and remove the old hostkey from ~/.ssh/known_hosts. -6. Plugin Persistence framework setup: - 6a. Create quantum_l2network database in mysql with the following command - +5. Plugin Persistence framework setup: + 5a. Create quantum_l2network database in mysql with the following command - mysql -u -p -e "create database quantum_l2network" - 6b. Enter the quantum_l2network database configuration info in the + 5b. Enter the quantum_l2network database configuration info in the quantum/plugins/cisco/conf/db_conn.ini file. - 6c. If there is a change in the plugin configuration, service would need + 5c. If there is a change in the plugin configuration, service would need to be restarted after dropping and re-creating the database using the following commands - mysql -u -p -e "drop database quantum_l2network" mysql -u -p -e "create database quantum_l2network" -7. Verify that you have the correct credentials for each IP address listed +6. Verify that you have the correct credentials for each IP address listed in quantum/plugins/cisco/conf/credentials.ini. Example: # Provide the UCSM credentials, create a separte entry for each UCSM used in your system @@ -201,7 +194,7 @@ password=mySecretPasswordForNexus has a credential entry in the above file. This is required for the system to be able to communicate with those switches. -8. Configure the UCS systems' information in your deployment by editing the +7. Configure the UCS systems' information in your deployment by editing the quantum/plugins/cisco/conf/ucs_inventory.ini file. You can configure multiple UCSMs per deployment, multiple chassis per UCSM, and multiple blades per chassis. Chassis ID and blade ID can be obtained from the UCSM (they will @@ -233,7 +226,7 @@ blade_id = host_name = -9. Start the Quantum service. If something doesn't work, verify that +8. Start the Quantum service. If something doesn't work, verify that your configuration of each of the above files hasn't gone a little kaka. Once you've put right what once went wrong, leap on. diff --git a/quantum/plugins/cisco/ucs/cisco_ucs_network_driver.py b/quantum/plugins/cisco/ucs/cisco_ucs_network_driver.py index 6a4f691f5..ba3a125a0 100644 --- a/quantum/plugins/cisco/ucs/cisco_ucs_network_driver.py +++ b/quantum/plugins/cisco/ucs/cisco_ucs_network_driver.py @@ -145,7 +145,7 @@ class CiscoUCSMDriver(): def _post_data(self, ucsm_ip, ucsm_username, ucsm_password, data): """Send command to UCSM in http request""" - conn = httplib.HTTPConnection(ucsm_ip) + conn = httplib.HTTPSConnection(ucsm_ip) login_data = "" conn.request(METHOD, URL, login_data, HEADERS)