Turns out Dave Lapsley already saw this and has a patch already.  He's
going to clean it up, send it to this list, and push to devstack repo for
review.

Dan


On Wed, Jan 25, 2012 at 9:22 AM, Dan Wendlandt <d...@nicira.com> wrote:

> Looks like we need to update devstack to pull in the client repo
> explicitly.
>
> I think the issue is that devstack runs: python setup.py develop
>
> I was thinking it used pip-requires.  Since the quantum client dependency
> is specified only in pip-requires, the quantum client repo is not getting
> installed for devstack, which prevents the server from being able to run,
> since python-quantumclient is what contains quantum.common (a dependency
> for the server).
>
> I think this means we need to explicitly pull in the python-quantumclient
> repo.  We will work on a patch for stack.sh
>
> Dan
>
>
> On Wed, Jan 25, 2012 at 9:14 AM, Debojyoti Dutta <ddu...@gmail.com> wrote:
>
>> q-agtL
>>
>>  python
>> /opt/stack/quantum/quantum/plugins/openvswitch/agent/ovs_quantum_agent.py
>> /opt/stack/quantum/etc/quantum/plugins/openvswitch/ovs_quantum_plugin.ini -v
>> INFO:root:Connecting to database "ovs_quantum" on localhost
>>
>> q-svc:
>>
>> /quantum && PYTHONPATH=.: python /opt/stack/quantum/bin/quantum-server
>> /opt/stack/quantum/etc/quantum.conf
>>
>> Traceback (most recent call last):
>>   File "/opt/stack/quantum/bin/quantum-server", line 22, in <module>
>>     from quantum.server import main as server
>>   File "/opt/stack/quantum/quantum/server/__init__.py", line 36, in
>> <module>
>>     from quantum import service
>>   File "/opt/stack/quantum/quantum/service.py", line 19, in <module>
>>     from quantum.common import config
>> ImportError: No module named common
>> stack@ddutta-ThinkPad-X201:/opt/stack/quantum$
>>
>> path issue ....?
>>
>> On Wed, Jan 25, 2012 at 8:49 AM, Dan Wendlandt <d...@nicira.com> wrote:
>>
>>> looks like quantum didn't start.  what does the quantum log say?
>>>
>>> dan
>>>
>>>
>>> On Wed, Jan 25, 2012 at 8:45 AM, Debojyoti Dutta <ddu...@gmail.com>wrote:
>>>
>>>> brand new pull .... stuff worked fine without Q.
>>>>
>>>>
>>>> MYSQL_PASSWORD=nova
>>>> RABBIT_PASSWORD=nova
>>>> SERVICE_TOKEN=nova
>>>> ADMIN_PASSWORD=nova
>>>>
>>>> ENABLED_SERVICES=g-api,g-reg,key,n-api,n-cpu,n-net,n-sch,n-vnc,horizon,mysql,rabbit,openstackx,quantum,q-svc,q-agt
>>>> Q_PLUGIN=openvswitch
>>>> PUBLIC_INTERFACE=wlan0
>>>> HOST_IP=192.168.1.73
>>>>
>>>>
>>>> + /opt/stack/nova/bin/nova-manage network create private 10.0.0.0/24 1
>>>> 256
>>>> 2012-01-25 08:38:12,309 WARNING nova.network.quantum.manager
>>>> [req-5ec54eb4-a649-448b-a1a2-8a46b2f19cfc None None] QuantumManager does
>>>> not use 'bridge' parameter.
>>>> 2012-01-25 08:38:12,310 WARNING nova.network.quantum.manager
>>>> [req-5ec54eb4-a649-448b-a1a2-8a46b2f19cfc None None] QuantumManager does
>>>> not use 'bridge_interface' parameter.
>>>> 2012-01-25 08:38:12,310 DEBUG nova.network.quantum.quantum_connection
>>>> [req-5ec54eb4-a649-448b-a1a2-8a46b2f19cfc None None] Quantum Client 
>>>> Request:
>>>> POST /v1.0/tenants/default/networks.json
>>>>  from (pid=7277) debug /opt/stack/nova/nova/log.py:175
>>>> 2012-01-25 08:38:12,310 DEBUG nova.network.quantum.quantum_connection
>>>> [req-5ec54eb4-a649-448b-a1a2-8a46b2f19cfc None None] {"network": {"name":
>>>> "private", "nova_id": "nova"}} from (pid=7277) debug
>>>> /opt/stack/nova/nova/log.py:175
>>>> Command failed, please check log for more info
>>>> 2012-01-25 08:38:12,311 CRITICAL nova
>>>> [req-5ec54eb4-a649-448b-a1a2-8a46b2f19cfc None None] Unable to connect to
>>>> server. Got error: [Errno 111] Connection refused
>>>> (nova): TRACE: Traceback (most recent call last):
>>>> (nova): TRACE:   File "/opt/stack/nova/bin/nova-manage", line 2389, in
>>>> <module>
>>>> (nova): TRACE:     main()
>>>> (nova): TRACE:   File "/opt/stack/nova/bin/nova-manage", line 2377, in
>>>> main
>>>> (nova): TRACE:     fn(*fn_args, **fn_kwargs)
>>>> (nova): TRACE:   File "/opt/stack/nova/bin/nova-manage", line 849, in
>>>> create
>>>> (nova): TRACE:     uuid=uuid)
>>>> (nova): TRACE:   File
>>>> "/opt/stack/nova/nova/network/quantum/manager.py", line 200, in
>>>> create_networks
>>>> (nova): TRACE:     nova_id=nova_id)
>>>> (nova): TRACE:   File
>>>> "/opt/stack/nova/nova/network/quantum/quantum_connection.py", line 61, in
>>>> create_network
>>>> (nova): TRACE:     resdict = self.client.create_network(data,
>>>> tenant=tenant_id)
>>>> (nova): TRACE:   File "/opt/stack/nova/nova/network/quantum/client.py",
>>>> line 83, in with_params
>>>> (nova): TRACE:     ret = self.func(instance, *args)
>>>> (nova): TRACE:   File "/opt/stack/nova/nova/network/quantum/client.py",
>>>> line 250, in create_network
>>>> (nova): TRACE:     return self.do_request("POST", self.networks_path,
>>>> body=body)
>>>> (nova): TRACE:   File "/opt/stack/nova/nova/network/quantum/client.py",
>>>> line 208, in do_request
>>>> (nova): TRACE:     "server. Got error: %s" % e))
>>>> (nova): TRACE: QuantumIOException: Unable to connect to server. Got
>>>> error: [Errno 111] Connection refused
>>>> (nova): TRACE:
>>>> ++ failed
>>>> ++ local r=1
>>>> ++ set +o xtrace
>>>> stack@ddutta-ThinkPad-X201:~/devstack$
>>>>
>>>>
>>>> --
>>>> -Debo~
>>>>
>>>>
>>>
>>>
>>> --
>>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>> Dan Wendlandt
>>> Nicira Networks: www.nicira.com
>>> twitter: danwendlandt
>>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>>
>>>
>>
>>
>> --
>> -Debo~
>>
>>
>
>
> --
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Dan Wendlandt
> Nicira Networks: www.nicira.com
> twitter: danwendlandt
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
>


-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~
Dan Wendlandt
Nicira Networks: www.nicira.com
twitter: danwendlandt
~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- 
Mailing list: https://launchpad.net/~netstack
Post to     : netstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~netstack
More help   : https://help.launchpad.net/ListHelp

Reply via email to