gate-grenade-dsvm-multinode fails with "AttributeError: 'LocalManager' object has no attribute 'l3driver'"

Bug #1524418 reported by Matt Riedemann
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Invalid
High
Unassigned
oslo.messaging
Fix Released
Undecided
Mehdi Abaakouk

Bug Description

Seen here:

http://logs.openstack.org/38/249138/9/check/gate-grenade-dsvm-multinode/5b991dc/logs/new/screen-n-api.txt.gz?level=TRACE

2015-12-09 12:44:56.998 ERROR nova.api.openstack.extensions [req-e2625ff8-3f5c-494c-8d84-a91d6d9c862b cinder_grenade cinder_grenade] Unexpected exception in API method
2015-12-09 12:44:56.998 15804 ERROR nova.api.openstack.extensions Traceback (most recent call last):
2015-12-09 12:44:56.998 15804 ERROR nova.api.openstack.extensions File "/opt/stack/new/nova/nova/api/openstack/extensions.py", line 478, in wrapped
2015-12-09 12:44:56.998 15804 ERROR nova.api.openstack.extensions return f(*args, **kwargs)
2015-12-09 12:44:56.998 15804 ERROR nova.api.openstack.extensions File "/opt/stack/new/nova/nova/api/validation/__init__.py", line 73, in wrapper
2015-12-09 12:44:56.998 15804 ERROR nova.api.openstack.extensions return func(*args, **kwargs)
2015-12-09 12:44:56.998 15804 ERROR nova.api.openstack.extensions File "/opt/stack/new/nova/nova/api/openstack/compute/floating_ips.py", line 291, in _remove_floating_ip
2015-12-09 12:44:56.998 15804 ERROR nova.api.openstack.extensions disassociate_floating_ip(self, context, instance, address)
2015-12-09 12:44:56.998 15804 ERROR nova.api.openstack.extensions File "/opt/stack/new/nova/nova/api/openstack/compute/floating_ips.py", line 79, in disassociate_floating_ip
2015-12-09 12:44:56.998 15804 ERROR nova.api.openstack.extensions self.network_api.disassociate_floating_ip(context, instance, address)
2015-12-09 12:44:56.998 15804 ERROR nova.api.openstack.extensions File "/opt/stack/new/nova/nova/network/api.py", line 49, in wrapped
2015-12-09 12:44:56.998 15804 ERROR nova.api.openstack.extensions return func(self, context, *args, **kwargs)
2015-12-09 12:44:56.998 15804 ERROR nova.api.openstack.extensions File "/opt/stack/new/nova/nova/network/base_api.py", line 77, in wrapper
2015-12-09 12:44:56.998 15804 ERROR nova.api.openstack.extensions res = f(self, context, *args, **kwargs)
2015-12-09 12:44:56.998 15804 ERROR nova.api.openstack.extensions File "/opt/stack/new/nova/nova/network/api.py", line 240, in disassociate_floating_ip
2015-12-09 12:44:56.998 15804 ERROR nova.api.openstack.extensions affect_auto_assigned)
2015-12-09 12:44:56.998 15804 ERROR nova.api.openstack.extensions File "/opt/stack/new/nova/nova/utils.py", line 1100, in wrapper
2015-12-09 12:44:56.998 15804 ERROR nova.api.openstack.extensions return func(*args, **kwargs)
2015-12-09 12:44:56.998 15804 ERROR nova.api.openstack.extensions File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/server.py", line 150, in inner
2015-12-09 12:44:56.998 15804 ERROR nova.api.openstack.extensions return func(*args, **kwargs)
2015-12-09 12:44:56.998 15804 ERROR nova.api.openstack.extensions File "/opt/stack/new/nova/nova/network/floating_ips.py", line 456, in disassociate_floating_ip
2015-12-09 12:44:56.998 15804 ERROR nova.api.openstack.extensions fixed_ip.instance_uuid)
2015-12-09 12:44:56.998 15804 ERROR nova.api.openstack.extensions File "/opt/stack/new/nova/nova/network/floating_ips.py", line 490, in _disassociate_floating_ip
2015-12-09 12:44:56.998 15804 ERROR nova.api.openstack.extensions do_disassociate()
2015-12-09 12:44:56.998 15804 ERROR nova.api.openstack.extensions File "/usr/local/lib/python2.7/dist-packages/oslo_concurrency/lockutils.py", line 271, in inner
2015-12-09 12:44:56.998 15804 ERROR nova.api.openstack.extensions return f(*args, **kwargs)
2015-12-09 12:44:56.998 15804 ERROR nova.api.openstack.extensions File "/opt/stack/new/nova/nova/network/floating_ips.py", line 483, in do_disassociate
2015-12-09 12:44:56.998 15804 ERROR nova.api.openstack.extensions self.l3driver.remove_floating_ip(address, fixed.address,
2015-12-09 12:44:56.998 15804 ERROR nova.api.openstack.extensions AttributeError: 'LocalManager' object has no attribute 'l3driver'
2015-12-09 12:44:56.998 15804 ERROR nova.api.openstack.extensions

Started in the last 24 hours:

http://logstash.openstack.org/#dashboard/file/logstash.json?query=message:%5C%22AttributeError:%20'LocalManager'%20object%20has%20no%20attribute%20'l3driver'%5C%22%20AND%20tags:%5C%22screen-n-api.txt%5C%22

Thinking it's something in oslo.messaging 3.1.0 that was merged into upper-constraints on 12/8:

https://review.openstack.org/#/c/254571/

Revision history for this message
Matt Riedemann (mriedem) wrote :
Revision history for this message
Sean Dague (sdague) wrote :

The crux of this issue is really that nova-network is failing to check in after shutdown / restart, which is why it's being seen on grenade jobs only:

http://logstash.openstack.org/#dashboard/file/logstash.json?query=message:%5C%22Timed%20out%20waiting%20for%20a%20reply%20to%20message%20ID%5C%22%20AND%20tags:screen-n-net.txt

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to oslo.messaging (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/255403

Matt Riedemann (mriedem)
Changed in nova:
status: New → Incomplete
status: Incomplete → Confirmed
importance: Undecided → High
tags: added: network
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to oslo.messaging (master)

Fix proposed to branch: master
Review: https://review.openstack.org/255435

Changed in oslo.messaging:
assignee: nobody → Mehdi Abaakouk (sileht)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to oslo.messaging (stable/kilo)

Related fix proposed to branch: stable/kilo
Review: https://review.openstack.org/255530

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to oslo.messaging (stable/liberty)

Related fix proposed to branch: stable/liberty
Review: https://review.openstack.org/255532

Revision history for this message
Matt Riedemann (mriedem) wrote :

Hmm, the oslo.messaging!=3.1.0 block in nova failed on this bug, so maybe not the problem?

https://review.openstack.org/#/c/253901/

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to oslo.messaging (master)

Reviewed: https://review.openstack.org/255403
Committed: https://git.openstack.org/cgit/openstack/oslo.messaging/commit/?id=e72599435c59c09277a9da7686b32aa4f9df7ba4
Submitter: Jenkins
Branch: master

commit e72599435c59c09277a9da7686b32aa4f9df7ba4
Author: Mehdi Abaakouk <email address hidden>
Date: Wed Dec 9 18:49:19 2015 +0100

    Don't trigger error_callback for known exc

    When AMQPDestinationNotFound is raised, we must not
    call the error_callback method. The exception is logged
    only if needed in upper layer (amqpdriver.py).

    Related-bug: #1524418

    Change-Id: Ic1ddec2d13172532dbaa572d04a4c22c97ac4fe7

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to oslo.messaging (master)

Reviewed: https://review.openstack.org/255435
Committed: https://git.openstack.org/cgit/openstack/oslo.messaging/commit/?id=3ee86964fa460882d8fcac8686edd0e6bfb12008
Submitter: Jenkins
Branch: master

commit 3ee86964fa460882d8fcac8686edd0e6bfb12008
Author: Mehdi Abaakouk <email address hidden>
Date: Wed Dec 9 19:37:40 2015 +0100

    Revert "default of kombu_missing_consumer_retry_timeout"

    This reverts commit 8c03a6db6c0396099e7425834998da5478a1df7c.

    Closes-bug: #1524418
    Change-Id: I35538a6c15d6402272e4513bc1beaa537b0dd7b9

Changed in oslo.messaging:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to oslo.messaging (stable/kilo)

Reviewed: https://review.openstack.org/255530
Committed: https://git.openstack.org/cgit/openstack/oslo.messaging/commit/?id=8093aefaae695bc4407b451f8863ed1137a0e022
Submitter: Jenkins
Branch: stable/kilo

commit 8093aefaae695bc4407b451f8863ed1137a0e022
Author: Mehdi Abaakouk <email address hidden>
Date: Wed Dec 9 18:49:19 2015 +0100

    Don't trigger error_callback for known exc

    When AMQPDestinationNotFound is raised, we must not
    call the error_callback method. The exception is logged
    only if needed in upper layer (amqpdriver.py).

    Related-bug: #1524418
    Related-bug: #1521958

    (cherry picked from commit Ic1ddec2d13172532dbaa572d04a4c22c97ac4fe7)

    Change-Id: I4bc323f0b9578cfd4972f882d6fbf59b9064ca53

tags: added: in-stable-kilo
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to oslo.messaging (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/256312

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to oslo.messaging (stable/liberty)

Related fix proposed to branch: stable/liberty
Review: https://review.openstack.org/256325

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Related fix proposed to branch: stable/liberty
Review: https://review.openstack.org/256326

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on oslo.messaging (stable/liberty)

Change abandoned by Mehdi Abaakouk (sileht) (<email address hidden>) on branch: stable/liberty
Review: https://review.openstack.org/256326

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Change abandoned by Mehdi Abaakouk (sileht) (<email address hidden>) on branch: stable/liberty
Review: https://review.openstack.org/256325

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to oslo.messaging (stable/liberty)

Related fix proposed to branch: stable/liberty
Review: https://review.openstack.org/256327

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to oslo.messaging (stable/kilo)

Related fix proposed to branch: stable/kilo
Review: https://review.openstack.org/256331

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Related fix proposed to branch: stable/kilo
Review: https://review.openstack.org/256336

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on oslo.messaging (stable/liberty)

Change abandoned by Mehdi Abaakouk (sileht) (<email address hidden>) on branch: stable/liberty
Review: https://review.openstack.org/256327

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on oslo.messaging (stable/kilo)

Change abandoned by Mehdi Abaakouk (sileht) (<email address hidden>) on branch: stable/kilo
Review: https://review.openstack.org/256331

Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote :

This was not a Nova problem

Changed in nova:
status: Confirmed → Invalid
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to oslo.messaging (stable/liberty)

Reviewed: https://review.openstack.org/255532
Committed: https://git.openstack.org/cgit/openstack/oslo.messaging/commit/?id=9e095c4bd84c3e83e394071c4f49a8bba3eb1dd6
Submitter: Jenkins
Branch: stable/liberty

commit 9e095c4bd84c3e83e394071c4f49a8bba3eb1dd6
Author: Mehdi Abaakouk <email address hidden>
Date: Wed Dec 9 18:49:19 2015 +0100

    Don't trigger error_callback for known exc

    When AMQPDestinationNotFound is raised, we must not
    call the error_callback method. The exception is logged
    only if needed in upper layer (amqpdriver.py).

    Related-bug: #1524418
    Related-bug: #1521958

    (cherry picked from commit Ic1ddec2d13172532dbaa572d04a4c22c97ac4fe7)

    Change-Id: Id874fcfb50b1661031589bfb6d93ddb84a1467c6

tags: added: in-stable-liberty
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to oslo.messaging (master)

Reviewed: https://review.openstack.org/256312
Committed: https://git.openstack.org/cgit/openstack/oslo.messaging/commit/?id=17ccb2306d03a74304c57d31716a54ba2b3b4311
Submitter: Jenkins
Branch: master

commit 17ccb2306d03a74304c57d31716a54ba2b3b4311
Author: Mehdi Abaakouk <email address hidden>
Date: Fri Dec 11 10:59:54 2015 +0100

    Move to debug a too verbose log

    When a client is gone (died/restart) and somes replies cannot be sent because
    the the exchange of this client will never comeback. We log one message per
    reply every 0.25 messages during 60 seconds. When the only useful log
    is the one where we decide to drop this replies.

    This change moves the less important message to debug level.

    Change-Id: I508787c0db4dcec2c0027b89eb4e65c4f98022b9
    Related-bug: #1524418

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to oslo.messaging (feature/pika)

Related fix proposed to branch: feature/pika
Review: https://review.openstack.org/257373

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to oslo.messaging (feature/pika)
Download full text (39.3 KiB)

Reviewed: https://review.openstack.org/257373
Committed: https://git.openstack.org/cgit/openstack/oslo.messaging/commit/?id=cc0f8cc8a9ff25c9fb081cac5366c12a0c06ec53
Submitter: Jenkins
Branch: feature/pika

commit a5d78891745b6b9e5827271dc305f00acae1392f
Author: OpenStack Proposal Bot <email address hidden>
Date: Fri Dec 11 15:24:05 2015 +0000

    Updated from global requirements

    Change-Id: Ifd78016c067740477a82dbe06d74d5944ba91893

commit 17ccb2306d03a74304c57d31716a54ba2b3b4311
Author: Mehdi Abaakouk <email address hidden>
Date: Fri Dec 11 10:59:54 2015 +0100

    Move to debug a too verbose log

    When a client is gone (died/restart) and somes replies cannot be sent because
    the the exchange of this client will never comeback. We log one message per
    reply every 0.25 messages during 60 seconds. When the only useful log
    is the one where we decide to drop this replies.

    This change moves the less important message to debug level.

    Change-Id: I508787c0db4dcec2c0027b89eb4e65c4f98022b9
    Related-bug: #1524418

commit 46daf858144202a072c4bf8580aeafec11d20e13
Author: Davanum Srinivas <email address hidden>
Date: Fri Dec 11 11:04:13 2015 +0300

    Cleanup parameter docstrings

    Change-Id: I301fdd51446bf0c0a6dd0d05b26da0556db8367d

commit 3ee86964fa460882d8fcac8686edd0e6bfb12008
Author: Mehdi Abaakouk <email address hidden>
Date: Wed Dec 9 19:37:40 2015 +0100

    Revert "default of kombu_missing_consumer_retry_timeout"

    This reverts commit 8c03a6db6c0396099e7425834998da5478a1df7c.

    Closes-bug: #1524418
    Change-Id: I35538a6c15d6402272e4513bc1beaa537b0dd7b9

commit e72599435c59c09277a9da7686b32aa4f9df7ba4
Author: Mehdi Abaakouk <email address hidden>
Date: Wed Dec 9 18:49:19 2015 +0100

    Don't trigger error_callback for known exc

    When AMQPDestinationNotFound is raised, we must not
    call the error_callback method. The exception is logged
    only if needed in upper layer (amqpdriver.py).

    Related-bug: #1524418

    Change-Id: Ic1ddec2d13172532dbaa572d04a4c22c97ac4fe7

commit 185693a6ed57e02b2f94b0fb8f14a91471605969
Author: Mehdi Abaakouk <email address hidden>
Date: Wed Dec 9 11:23:52 2015 +0100

    Improves comment

    Change-Id: Idc8002e6d622435aac48304857985c0f82be3e32

commit 148e8380ce1cc4f60716300b95104aaa2cf8c543
Author: Mehdi Abaakouk <email address hidden>
Date: Fri Dec 4 14:57:03 2015 +0100

    Fix reconnection when heartbeat is missed

    When a heartbeat is missing we call ensure_connection()
    that runs a dummy method to trigger the reconnection
    code in kombu. But also the code is triggered only if the
    channel is None.

    In case of the heartbeat threads we didn't reset the channel
    before reconnecting, so the dummy method doesn't do anything.

    This change sets the channel to None to ensure the connection
    is reestablished before the dummy method is run.

    Also it replaces the dummy method by checking the kombu connection
    object. So we are sure the connection is reestablished.

    Change-Id: I39f8cd23c5a5498e6f4c1aa3236ed27f3b5d7c9a
    Closes-bug: #1493890

commit 05002...

tags: added: in-feature-pika
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to oslo.messaging (stable/kilo)

Reviewed: https://review.openstack.org/256336
Committed: https://git.openstack.org/cgit/openstack/oslo.messaging/commit/?id=715dba34ecc94d04e322ad6e0a6cd9e4de73482e
Submitter: Jenkins
Branch: stable/kilo

commit 715dba34ecc94d04e322ad6e0a6cd9e4de73482e
Author: Mehdi Abaakouk <email address hidden>
Date: Fri Dec 11 10:59:54 2015 +0100

    Move to debug a too verbose log

    When a client is gone (died/restart) and somes replies cannot be sent because
    the the exchange of this client will never comeback. We log one message per
    reply every 0.25 messages during 60 seconds. When the only useful log
    is the one where we decide to drop this replies.

    This change moves the less important message to debug level.

    Change-Id: I508787c0db4dcec2c0027b89eb4e65c4f98022b9
    Related-bug: #1524418
    (cherry picked from commit 17ccb2306d03a74304c57d31716a54ba2b3b4311)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to oslo.messaging (stable/liberty)

Reviewed: https://review.openstack.org/256326
Committed: https://git.openstack.org/cgit/openstack/oslo.messaging/commit/?id=93240b34917702c1688ca92310fe22c005adecd8
Submitter: Jenkins
Branch: stable/liberty

commit 93240b34917702c1688ca92310fe22c005adecd8
Author: Mehdi Abaakouk <email address hidden>
Date: Fri Dec 11 10:59:54 2015 +0100

    Move to debug a too verbose log

    When a client is gone (died/restart) and somes replies cannot be sent because
    the the exchange of this client will never comeback. We log one message per
    reply every 0.25 messages during 60 seconds. When the only useful log
    is the one where we decide to drop this replies.

    This change moves the less important message to debug level.

    Change-Id: I508787c0db4dcec2c0027b89eb4e65c4f98022b9
    Related-bug: #1524418
    (cherry picked from commit 17ccb2306d03a74304c57d31716a54ba2b3b4311)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.