L3 AttributeError in doc job

Bug #1779801 reported by YAMAMOTO Takashi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
networking-cisco
Triaged
Undecided
Unassigned
networking-midonet
In Progress
Critical
YAMAMOTO Takashi
networking-odl
Confirmed
Undecided
Unassigned
neutron
Invalid
Critical
Akihiro Motoki

Bug Description

e.g http://logs.openstack.org/87/199387/116/check/build-openstack-sphinx-docs/a509328/job-output.txt.gz

2018-07-03 01:03:26.111244 | ubuntu-xenial | Warning, treated as error:
2018-07-03 01:03:26.111548 | ubuntu-xenial | autodoc: failed to import module u'midonet.neutron.db.bgp_db_midonet'; the following exception was raised:
2018-07-03 01:03:26.111691 | ubuntu-xenial | Traceback (most recent call last):
2018-07-03 01:03:26.112024 | ubuntu-xenial | File "/home/zuul/.venv/local/lib/python2.7/site-packages/sphinx/ext/autodoc/importer.py", line 152, in import_module
2018-07-03 01:03:26.112140 | ubuntu-xenial | __import__(modname)
2018-07-03 01:03:26.112514 | ubuntu-xenial | File "/home/zuul/src/git.openstack.org/openstack/networking-midonet/midonet/neutron/db/bgp_db_midonet.py", line 22, in <module>
2018-07-03 01:03:26.112701 | ubuntu-xenial | from neutron_dynamic_routing.db import bgp_db
2018-07-03 01:03:26.113035 | ubuntu-xenial | File "/home/zuul/.venv/local/lib/python2.7/site-packages/neutron_dynamic_routing/db/bgp_db.py", line 21, in <module>
2018-07-03 01:03:26.113165 | ubuntu-xenial | from neutron.db import l3_dvr_db
2018-07-03 01:03:26.113413 | ubuntu-xenial | File "/home/zuul/.venv/local/lib/python2.7/site-packages/neutron/db/l3_dvr_db.py", line 41, in <module>
2018-07-03 01:03:26.113524 | ubuntu-xenial | from neutron.db import l3_db
2018-07-03 01:03:26.113819 | ubuntu-xenial | File "/home/zuul/.venv/local/lib/python2.7/site-packages/neutron/db/l3_db.py", line 51, in <module>
2018-07-03 01:03:26.113955 | ubuntu-xenial | from neutron.extensions import l3
2018-07-03 01:03:26.114260 | ubuntu-xenial | File "/home/zuul/.venv/local/lib/python2.7/site-packages/neutron/extensions/l3.py", line 23, in <module>
2018-07-03 01:03:26.114405 | ubuntu-xenial | from neutron.api.v2 import resource_helper
2018-07-03 01:03:26.114730 | ubuntu-xenial | File "/home/zuul/.venv/local/lib/python2.7/site-packages/neutron/api/v2/resource_helper.py", line 20, in <module>
2018-07-03 01:03:26.114877 | ubuntu-xenial | from neutron.api import extensions
2018-07-03 01:03:26.115169 | ubuntu-xenial | File "/home/zuul/.venv/local/lib/python2.7/site-packages/neutron/api/extensions.py", line 32, in <module>
2018-07-03 01:03:26.115336 | ubuntu-xenial | from neutron.plugins.common import constants as const
2018-07-03 01:03:26.115669 | ubuntu-xenial | File "/home/zuul/.venv/local/lib/python2.7/site-packages/neutron/plugins/common/constants.py", line 28, in <module>
2018-07-03 01:03:26.115768 | ubuntu-xenial | 'router': constants.L3,
2018-07-03 01:03:26.115894 | ubuntu-xenial | AttributeError: 'module' object has no attribute 'L3'

Tags: gate-failure
Changed in networking-midonet:
importance: Undecided → Critical
tags: added: gate-failure
Changed in networking-midonet:
assignee: nobody → YAMAMOTO Takashi (yamamoto)
milestone: none → 7.0.0
status: New → In Progress
Revision history for this message
Manjeet Singh Bhatia (manjeet-s-bhatia) wrote :

I noticed this bug in queens/gate jobs for networking-odl too.

affects: networking-midonet → networking-odl
Changed in networking-odl:
milestone: 7.0.0 → none
affects: networking-odl → networking-midonet
Changed in networking-odl:
status: New → Confirmed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to networking-midonet (master)

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to networking-midonet (master)

Reviewed: https://review.openstack.org/580098
Committed: https://git.openstack.org/cgit/openstack/networking-midonet/commit/?id=e1d8cdd420ec06e309833ea5db63444d87ff2158
Submitter: Zuul
Branch: master

commit e1d8cdd420ec06e309833ea5db63444d87ff2158
Author: YAMAMOTO Takashi <email address hidden>
Date: Wed Jul 4 18:02:06 2018 +0900

    Comment out autodoc stuff

    As a workaround for the Related-Bug.

    Related-Bug: #1779801
    Change-Id: Ibdfcd4083291a01cad52622162edaf52b1ddad3e

Revision history for this message
YAMAMOTO Takashi (yamamoto) wrote :

I added neutron as neutron-vpnaas has the same issue.
https://review.openstack.org/#/c/579742/

Sam Betts (sambetts)
Changed in networking-cisco:
status: New → Triaged
Revision history for this message
zhaobo (zhaobo6) wrote :
Changed in neutron:
status: New → Triaged
importance: Undecided → Critical
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to neutron-dynamic-routing (master)

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

Revision history for this message
Manjeet Singh Bhatia (manjeet-s-bhatia) wrote :

I don't think this is a bug in master neutron

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on neutron-dynamic-routing (master)

Change abandoned by Ryan Tidwell (<email address hidden>) on branch: master
Review: https://review.openstack.org/581778

Revision history for this message
Akihiro Motoki (amotoki) wrote :

The issue happens due to the confusion around zuul v3 migration.
The situation has changed since then according to the mailing list discussion.

python packages are installed based on requirements.txt of the project now, so appropriate dependencies of your project should be declared in requirements.txt in your project.
For example, neutron-vpnaas declares neutron 13.0.0.0b2 (rocky-2) [1].

Considering the above, there is nothing to do in the neutron side. I am marking this bug as Invalid (in neutron).

[1] https://github.com/openstack/neutron-vpnaas/blob/1e98d017adf3d559c8b4d27770fa97a2db48a78a/requirements.txt#L23

Changed in neutron:
status: Triaged → Invalid
assignee: nobody → Akihiro Motoki (amotoki)
Revision history for this message
Akihiro Motoki (amotoki) wrote :

FYI: networking-midonet now uses zuulv3 docs job, so I believe the problem can be fixed by updating the 'neutron' line in requirements.txt to "neutron>=13.0.0" (rocky release).

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

Other bug subscribers