[openstack-dev] FW: how to configure cisco plugin in devstack environment
Rich Curran (rcurran)
rcurran at cisco.com
Tue May 7 18:13:21 UTC 2013
HI Yuling -
Actually if you change the localrc as described below you won't have to install configobj (I don't think).
So change the localrc first, unstack, stack. I don't think at that point you'll have the configobj issue.
Thanks,
Rich
-----Original Message-----
From: Rich Curran (rcurran)
Sent: Tuesday, May 07, 2013 2:09 PM
To: Yuling_C at DELL.com; openstack-dev at lists.openstack.org
Subject: Re: [openstack-dev] FW: how to configure cisco plugin in devstack environment
Hi Yuling -
Here are instructions I found on installing configobj: http://www.voidspace.org.uk/python/articles/configobj.shtml
Also, you didn't get the latest (master) cisco quantum code.
In localrc please add/change:
OFFLINE=False
RECLONE=yes
Also, are you using a nexus hardware switch in your topology?
Thanks,
Rich
-----Original Message-----
From: Yuling_C at DELL.com [mailto:Yuling_C at DELL.com]
Sent: Tuesday, May 07, 2013 1:46 PM
To: openstack-dev at lists.openstack.org
Cc: Rich Curran (rcurran)
Subject: RE: [openstack-dev] FW: how to configure cisco plugin in devstack environment
Thanks very much for the information... I just tried commenting out #QUANTUM_BRANCH=stable/grizzly. However, when I ran 'stack.sh' again, I still hit the same issue.
>From reading the log, I can see quantum was trying to pick up cisco plugin. However, it failed at importing configobj at cisco_configparser.py. Could this be PYTHONPATH issue? (However, I don't see any instructions for changing this environment variable)
When you mentioned that
>' this assumes another
>change (cisco-single-config blueprint) that was committed to the
>openstack master branch but didn't make it into stable/grizzly'.
Do I need to pick up this change as well? The only thing I picked up was Robert's file of lib/quantum_plugins/cisco...the rest running on my environment was devstack grizzly release...
Thanks,
YuLing
-----Original Message-----
From: Robert Li (baoli) [mailto:baoli at cisco.com]
Sent: Tuesday, May 07, 2013 6:42 AM
To: OpenStack Development Mailing List
Cc: Rich Curran (rcurran)
Subject: [openstack-dev] FW: how to configure cisco plugin in devstack environment
Hi Yuling,
See below for the response from Rich.
Thanks,
Robert
On 5/7/13 9:33 AM, "Rich Curran (rcurran)" <rcurran at cisco.com> wrote:
>
>
>-----Original Message-----
>From: Rich Curran (rcurran)
>Sent: Tuesday, May 07, 2013 9:29 AM
>To: Kyle Mestery (kmestery); OpenStack Development Mailing List
>Subject: RE: [openstack-dev] how to configure cisco plugin in devstack
>environment
>
>Hi Yuling -
>
>I think there's at least one major mismatch going on here.
>
>If you're using Robert's devstack change
>(https://review.openstack.org/#/c/25378/) then this assumes another
>change (cisco-single-config blueprint) that was committed to the
>openstack master branch but didn't make it into stable/grizzly.
>
>If you want to continue to use Robert's devstack changes then please
>comment out this line from your localrc file:
>#QUANTUM_BRANCH=stable/grizzly
>
>./unstack.sh and then ./stack.sh again
>
>This should pick up the master version of quantum. To check verify that
>the only file under:
>etc/quantum/plugins/cisco/ is the cisco_plugins.ini file.
>
>Thanks,
>Rich
>
>-----Original Message-----
>From: Kyle Mestery (kmestery)
>Sent: Tuesday, May 07, 2013 9:07 AM
>To: OpenStack Development Mailing List
>Cc: Rich Curran (rcurran)
>Subject: Re: [openstack-dev] how to configure cisco plugin in devstack
>environment
>
>Did you do a "git fetch"? I think you may want to do that to ensure you
>get the entire change set.
>
>Can you paste the contents of your
>/etc/quantum/plugins/cisco/cisco_plugins.ini file?
>
>On May 7, 2013, at 1:39 AM, Yuling_C at DELL.com wrote:
>
>> Actually, I just followed the instruction on devstack grizzly
>>installation
>>link:http://networkstatic.net/installing-openstack-grizzly-with-devsta
>> ck/ and installed again. I copied over the 'cisco' file from the link
>>https://review.openstack.org/#/c/25378/ to lib/quantum_plugins/ and
>>set Q_plugin = cisco.
>>
>> However, when I run stack.sh, Quantum server was not able to start
>>with the following error in screen-q-svc.log:
>>
>> __import__(mod_str)
>> File "/opt/stack/quantum/quantum/plugins/cisco/network_plugin.py",
>>line 30, in <module>
>> from quantum.plugins.cisco.common import cisco_utils as cutil File
>>"/opt/stack/quantum/quantum/plugins/cisco/common/cisco_utils.py", line 23, in <module>
>> from quantum.plugins.cisco.db import l2network_db as cdb File
>>"/opt/stack/quantum/quantum/plugins/cisco/db/l2network_db.py", line
>>24, in <module>
>> from quantum.plugins.cisco import l2network_plugin_configuration
>>as conf File
>>"/opt/stack/quantum/quantum/plugins/cisco/l2network_plugin_configuration.
>>py", line 21, in <module>
>> from quantum.plugins.cisco.common import cisco_configparser as
>>confp File
>>"/opt/stack/quantum/quantum/plugins/cisco/common/cisco_configparser.py
>>",
>>line 19, in <module>
>> from configobj import ConfigObj
>> ImportError: No module named configobj
>> ERROR: Unable to load quantum from configuration file
>>/etc/quantum/api-paste.ini.
>>
>> Any idea why there's an input error for loading 'configobj'? this
>>file should be under /usr/lib/python2.7/dist-packages/landscape/lib.
>>Why quantum cannot load this file?
>>
>> Thanks,
>>
>> YuLing
>>
>> ________________________________________
>> From: C, Yuling
>> Sent: Monday, May 06, 2013 7:58 PM
>> To: openstack-dev at lists.openstack.org
>> Cc: rcurran at cisco.com
>> Subject: Re: [openstack-dev] how to configure cisco plugin in
>> devstack environment
>>
>> Thanks Kyle and Robert very much for all these information.
>>
>> So, it seems that the new devstack version that contains Cisco plugin
>>support is already available at https://review.openstack.org/#/c/25378/?
>>Should I just use 'git fetch' to download it and install? Is this
>>Havana version(release)?
>>
>> After I download, can I just use Q_plugin to configure the core plugin?
>>Do I still need to follow the manual set up steps on
>>https://wiki.openstack.org/wiki/Cisco-quantum#A_Cisco_Plugin_Framework
>>_fo
>>r_Quantum_L2_Network_Overlays_Spanning_Multiple_Physical_Switches_.28H
>>ava
>>na_Release.29?
>>
>> Thanks,
>>
>> YuLing
>>
>>
>> -----Original Message-----
>> From: Kyle Mestery (kmestery) [mailto:kmestery at cisco.com]
>> Sent: Monday, May 06, 2013 2:09 PM
>> To: OpenStack Development Mailing List
>> Cc: Rich Curran (rcurran)
>> Subject: Re: [openstack-dev] how to configure cisco plugin in
>> devstack environment
>>
>> I should note Robert's review for adding support to devstack for the
>>Cisco plugin is here:
>>
>> https://review.openstack.org/#/c/25378/
>>
>> I've been running with it for a few weeks and it works great!
>>
>> Thanks,
>> Kyle
>>
>> On May 6, 2013, at 3:54 PM, Robert Li (baoli) <baoli at cisco.com> wrote:
>>
>>> Hi YuLing,
>>>
>>> My guess is that you pulled the code from the master. So please
>>>follow this link
>>>https://wiki.openstack.org/wiki/Cisco-quantum#A_Cisco_Plugin_Framewor
>>>k_f
>>>or_Quantum_L2_Network_Overlays_Spanning_Multiple_Physical_Switches_.2
>>>8Ha
>>>vana_Release.29 instead.
>>>
>>> Currently, configuring Q_PLUGIN to use cisco plugin is not available
>>>in devstack yet, and it's being worked on. Therefore you have to
>>>manually configure it with instructions given in the above link.
>>>
>>> Thanks,
>>> Robert
>>>
>>> On 5/6/13 1:50 PM, "Yuling_C at DELL.com" <Yuling_C at DELL.com> wrote:
>>>
>>>> Hi All,
>>>>
>>>> I'm new to devstack and would need to configure cisco plugin to
>>>>work in devstack environment. I followed the instruction in the
>>>>webpage
>>>>(https://wiki.openstack.org/wiki/Cisco-quantum#A_Cisco_Plugin_Framew
>>>>ork
>>>>_for_Quantum_L2_Network_Overlays_Spanning_Multiple_Physical_Switches
>>>>_.2
>>>>8Grizzly_Release.29) to configure cisco plugin. However, devstack
>>>>seems to always pick up OVSQuantumPluginV2 as 'core_plugin'. Any idea?
>>>>
>>>> I tried to set up Q_plugin in localrc. However, it seems cisco is
>>>>not one of the plugins supported under
>>>>/opt/stack/devstack/lib/quantum_plugins...do I need to configure
>>>>this variable in localrc? If not, what else I need to do in order
>>>>for openstack to pick up Cisco plugin in devstack environment?
>>>>
>>>> Thanks,
>>>>
>>>> YuLing
>>>>
>>> _______________________________________________
>>> OpenStack-dev mailing list
>>> OpenStack-dev at lists.openstack.org
>>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>>
>>
>> _______________________________________________
>> OpenStack-dev mailing list
>> OpenStack-dev at lists.openstack.org
>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>>
>> _______________________________________________
>> OpenStack-dev mailing list
>> OpenStack-dev at lists.openstack.org
>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>>
>> _______________________________________________
>> OpenStack-dev mailing list
>> OpenStack-dev at lists.openstack.org
>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
_______________________________________________
OpenStack-dev mailing list
OpenStack-dev at lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
_______________________________________________
OpenStack-dev mailing list
OpenStack-dev at lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
More information about the OpenStack-dev
mailing list