unable to boot instance with quantum

asked 2013-04-10 00:37:14 -0500

prashanth-prahal gravatar image

I'm trying to spin up an new instance with quantum and it seems to be consistently failing.

This is my net-list +--------------------------------------+---------+------+ | ID | Label | CIDR | +--------------------------------------+---------+------+ | 0e67d804-a65b-4b75-9e99-cfb9e0bd07a8 | n1 | None | | bc751cc1-dfcf-48e7-aa1e-0eae2a6073a0 | private | None | +--------------------------------------+---------+------+

This is the command I'm using to boot an instance nova boot --image cirros --flavor m1.tiny --key_name test --nic net-id=0e67d804-a65b-4b75-9e99-cfb9e0bd07a8 my-third-server-1

This is what I see in the quantum server logs (this is with OVS btw).It tries to pick 30.0.0.3 as the IP address, but doesn't proceed further.

2013-04-09 17:33:14.033 17760 DEBUG quantum.plugins.openvswitch.ovs_quantum_plugin [-] OVS create_port create_port /opt/stack/quantum/quantum/plugins/openvswitch/ovs_quantum_plugin.py:579 2013-04-09 17:33:14.047 17760 DEBUG quantum.db.db_base_plugin_v2 [-] Recycle 30.0.0.3 _recycle_ip /opt/stack/quantum/quantum/db/db_base_plugin_v2.py:356 2013-04-09 17:33:14.051 17760 DEBUG quantum.db.db_base_plugin_v2 [-] Recycle: created new 30.0.0.3-30.0.0.3 _recycle_ip /opt/stack/quantum/quantum/db/db_base_plugin_v2.py:403 2013-04-09 17:33:14.051 17760 DEBUG quantum.db.db_base_plugin_v2 [-] Delete allocated IP 30.0.0.3 (0e67d804-a65b-4b75-9e99-cfb9e0bd07a8/c77f815a-78e3-4b95-ab64-5c12b1e20ffe) _delete_ip_allocation /opt/stack/quantum/quantum/db/db_base_plugin_v2.py:435 2013-04-09 17:33:14.058 17760 DEBUG quantum.db.db_base_plugin_v2 [-] Generated mac for network 0e67d804-a65b-4b75-9e99-cfb9e0bd07a8 is fa:16:3e:ec:30:ae _generate_mac /opt/stack/quantum/quantum/db/db_base_plugin_v2.py:262 2013-04-09 17:33:14.066 17760 DEBUG quantum.db.db_base_plugin_v2 [-] Allocated IP - 30.0.0.3 from 30.0.0.3 to 30.0.0.3 _generate_ip /opt/stack/quantum/quantum/db/db_base_plugin_v2.py:463 2013-04-09 17:33:14.066 17760 DEBUG quantum.db.db_base_plugin_v2 [-] No more free IP's in slice. Deleting allocation pool. _generate_ip /opt/stack/quantum/quantum/db/db_base_plugin_v2.py:466 2013-04-09 17:33:14.067 17760 DEBUG quantum.db.db_base_plugin_v2 [-] Allocated IP 30.0.0.3 (0e67d804-a65b-4b75-9e99-cfb9e0bd07a8/c77f815a-78e3-4b95-ab64-5c12b1e20ffe/503fa2f2-fa5d-46cf-9924-fe7a2c8cb765) create_port /opt/stack/quantum/quantum/db/db_base_plugin_v2.py:1310 2013-04-09 17:33:14.149 17760 ERROR quantum.api.v2.resource [-] create failed 2013-04-09 17:33:14.149 17760 TRACE quantum.api.v2.resource Traceback (most recent call last): 2013-04-09 17:33:14.149 17760 TRACE quantum.api.v2.resource File "/opt/stack/quantum/quantum/api/v2/resource.py", line 82, in resource 2013-04-09 17:33:14.149 17760 TRACE quantum.api.v2.resource result = method(request=request, *args) 2013-04-09 17:33:14.149 17760 TRACE quantum.api.v2.resource File "/opt/stack/quantum/quantum/api/v2/base.py", line 369, in create 2013-04-09 17:33:14.149 17760 TRACE quantum.api.v2.resource obj = obj_creator(request.context, *kwargs) 2013-04-09 17:33:14.149 17760 TRACE quantum.api.v2.resource File "/opt/stack/quantum/quantum/plugins/openvswitch/ovs_quantum_plugin.py", line 590, in create_port 2013-04-09 17:33:14.149 17760 TRACE quantum.api.v2.resource self.notify_security_groups_member_updated(context, port)2013-04-09 17:33:14.149 17760 TRACE quantum.api.v2.resource AttributeError: 'OVSQuantumPluginV2' object has no attribute 'notify_security_groups_member_updated'2013-04-09 17:33:14.149 17760 TRACE quantum.api.v2.resource 2013-04-09 17:33:14.604 17760 DEBUG quantum.plugins ... (more)

edit retag flag offensive close merge delete

9 answers

Sort by » oldest newest most voted
0

answered 2013-04-10 03:43:50 -0500

prashanth-prahal gravatar image

Hm, that didn't seem to help :-(

edit flag offensive delete link more
0

answered 2013-04-10 00:48:44 -0500

From the output of net-list it looks like you don't have any subnets associated with the networks. If you associate a subnet does that solve the issue out of curiosity? Also, what version of the code are you running (where did you get it? )

edit flag offensive delete link more
0

answered 2013-04-10 01:07:34 -0500

prashanth-prahal gravatar image

Thanks, that didn't help

quantum net-list +--------------------------------------+---------+--------------------------------------------------+ | id | name | subnets | +--------------------------------------+---------+--------------------------------------------------+ | 0e67d804-a65b-4b75-9e99-cfb9e0bd07a8 | n1 | c77f815a-78e3-4b95-ab64-5c12b1e20ffe 30.0.0.0/24 | | bc751cc1-dfcf-48e7-aa1e-0eae2a6073a0 | private | 3f9ec795-1c3d-4261-8170-57cadcfa2667 10.0.0.0/24 | +--------------------------------------+---------+--------------------------------------------------+

I'm using devstack for install.

edit flag offensive delete link more
0

answered 2013-04-10 02:05:59 -0500

prashanth-prahal gravatar image

Thanks Aaron - this is what I have right now.

DATABASE_PASSWORD=openstack RABBIT_PASSWORD=openstack SERVICE_TOKEN=openstack SERVICE_PASSWORD=open stack ADMIN_PASSWORD=openstack

HOST_IP=10.9.12.20

disable_service n-net ENABLED_SERVICES="g-api,g-reg, key,n-api,n-sch,n-crt,n-obj,n-cpu,n-cond,cinder,n-novnc,n-xvnc,n-cauth,horizon,rabbit,mysql,q-agt,q-dhcp,q-meta,q-l3,q-svc"

edit flag offensive delete link more
0

answered 2013-04-10 01:51:59 -0500

Can you provide your localrc? I just tested it with and it works fine.

ENABLED_SERVICES=g-api,g-reg,key,n-api,n-crt,n-obj,n-cpu,n-sch,n-cauth,horizon,mysql,rabbit,sysstat,cinder,c-api,c-vol,c-sch,n-cond,quantum,q-svc,q-agt,q-dhcp,q-l3,q-meta,q-lbaas,n-novnc,n-xvnc,q-lbaas DATABASE_PASSWORD=password RABBIT_PASSWORD=password SERVICE_TOKEN=password SERVICE_PASSWORD=password ADMIN_PASSWORD=password

edit flag offensive delete link more
0

answered 2013-04-10 02:11:40 -0500

can you try adding RECLONE=True and see if this still happens?

edit flag offensive delete link more
0

answered 2013-04-10 03:45:05 -0500

prashanth-prahal gravatar image

Is there a way I can wipe out my existing devstack installation ? Does ./unstack.sh unwind all the changes it has made to the system.

I want to start from a clean slate and see if it happens still on this machine.

Any help would be appreciated.

Thanks !

edit flag offensive delete link more
0

answered 2013-04-10 10:25:17 -0500

gongysh gravatar image

restart and run ./unstack.sh should help.

edit flag offensive delete link more
0

answered 2013-04-11 00:14:54 -0500

prashanth-prahal gravatar image

Thanks.

So, I had to make this change to ovs_quantum_plugin.py to progress further :

@property
def supported_extension_aliases(self):
    if not hasattr(self, '_aliases'):
        aliases = self._supported_extension_aliases[:]
        #sg_rpc.disable_security_group_extension_if_noop_driver(aliases)
        self._aliases = aliases
    return self._aliases

and def create_port(self, context, port): ...... #self.notify_security_groups_member_updated(context, port)

   return new_port

But I have no clue why this lines are generating exceptions ? Is there a setting I'm missing.

Thanks !

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2013-04-10 00:37:14 -0500

Seen: 88 times

Last updated: Apr 11 '13