unable to boot instance with quantum

Asked by Prashanth Prahalad on 2013-04-10

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.openvswitch.ovs_quantum_plugin [-] OVS get_ports get_ports /opt/stack/quantum/quantum/plugins/openvswitch/ovs_quantum_plugin.py:6052013-04-09 17:33:14.610 17760 DEBUG quantum.policy [-] loading policy file at /opt/stack/quantum/etc/policy.json init /opt/stack/quantum/quantum/policy.py:54
2013-04-09 17:33:14.611 17760 ERROR quantum.api.v2.resource [-] index failed
2013-04-09 17:33:14.611 17760 TRACE quantum.api.v2.resource Traceback (most recent call last):
2013-04-09 17:33:14.611 17760 TRACE quantum.api.v2.resource File "/opt/stack/quantum/quantum/api/v2/resource.py", line 82, in resource2013-04-09 17:33:14.611 17760 TRACE quantum.api.v2.resource result = method(request=request, **args)2013-04-09 17:33:14.611 17760 TRACE quantum.api.v2.resource File "/opt/stack/quantum/quantum/api/v2/base.py", line 239, in index2013-04-09 17:33:14.611 17760 TRACE quantum.api.v2.resource return self._items(request, True, parent_id)
2013-04-09 17:33:14.611 17760 TRACE quantum.api.v2.resource File "/opt/stack/quantum/quantum/api/v2/base.py", line 192, in _items2013-04-09 17:33:14.611 17760 TRACE quantum.api.v2.resource obj_list = obj_getter(request.context, **kwargs)
2013-04-09 17:33:14.611 17760 TRACE quantum.api.v2.resource File "/opt/stack/quantum/quantum/plugins/openvswitch/ovs_quantum_plugin.py", line 613, in get_ports
2013-04-09 17:33:14.611 17760 TRACE quantum.api.v2.resource self._extend_port_dict_binding(context, port)
2013-04-09 17:33:14.611 17760 TRACE quantum.api.v2.resource File "/opt/stack/quantum/quantum/plugins/openvswitch/ovs_quantum_plugin.py", line 575, in _extend_port_dict_binding2013-04-09 17:33:14.611 17760 TRACE quantum.api.v2.resource 'security-group' in self.supported_extension_aliases}2013-04-09 17:33:14.611 17760 TRACE quantum.api.v2.resource File "/opt/stack/quantum/quantum/plugins/openvswitch/ovs_quantum_plugin.py", line 256, in supported_extension_aliases2013-04-09 17:33:14.611 17760 TRACE quantum.api.v2.resource sg_rpc.disable_security_group_extension_if_noop_driver(aliases)2013-04-09 17:33:14.611 17760 TRACE quantum.api.v2.resource AttributeError: 'module' object has no attribute 'disable_security_group_extension_if_noop_driver'
2013-04-09 17:33:14.611 17760 TRACE quantum.api.v2.resource 2013-04-09 17:33:16.741 17760 DEBUG quantum.openstack.common.rpc.amqp [-] received {u'_context_roles': [u'admin'], u'_msg_id': u'a037eb9fa66c4d20bb392945ef37c1d2', u'_context_read_deleted': u'no', u'_conte

Any clues on what could be the reason ?

Thanks !
Prashanth

Question information

Language:
English Edit question
Status:
Answered
For:
neutron Edit question
Assignee:
No assignee Edit question
Last query:
2013-04-10
Last reply:
2013-04-10
Aaron Rosen (arosen) said : #1

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? )

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.

Aaron Rosen (arosen) said : #3

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

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"

Aaron Rosen (arosen) said : #5

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

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

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 !

yong sheng gong (gongysh) said : #8

restart and run ./unstack.sh should help.

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 !

Can you help with this problem?

Provide an answer of your own, or ask Prashanth Prahalad for more information if necessary.

To post a message you must log in.