Ask Your Question

AttributeError: 'module' object has no attribute 'NAME_MAX_LEN' [closed]

asked 2017-01-13 05:03:15 -0500

Suresh Nagaraj gravatar image

Hi All,

I'm getting this error "AttributeError: 'module' object has no attribute 'NAME_MAX_LEN'" on both master and stable/newton branch on running ./

Python and PIP version used: stack@01hw572765:~$ python --version Python 2.7.6 stack@01hw572765:~$ pip --version pip 9.0.1 from /usr/local/lib/python2.7/dist-packages (python 2.7)

Please let me know how to fix this issue. Error logs below

Error: INFO [alembic.runtime.migration] Running upgrade 6b461a21bcfc -> 5cd92597d11d, Add ip_allocation to port OK Traceback (most recent call last): File "/usr/local/bin/neutron-db-manage", line 10, in <module> sys.exit(main()) File "/opt/stack/neutron/neutron/db/migration/", line 686, in main return_val |= bool(CONF.command.func(config, File "/opt/stack/neutron/neutron/db/migration/", line 205, in do_upgrade run_sanity_checks(config, revision) File "/opt/stack/neutron/neutron/db/migration/", line 670, in run_sanity_checks script_dir.run_env() File "/usr/local/lib/python2.7/dist-packages/alembic/script/", line 416, in run_env util.load_python_file(self.dir, '') File "/usr/local/lib/python2.7/dist-packages/alembic/util/", line 93, in load_python_file module = load_module_py(module_id, path) File "/usr/local/lib/python2.7/dist-packages/alembic/util/", line 79, in load_module_py mod = imp.load_source(module_id, path, fp) File "/usr/local/lib/python2.7/dist-packages/networking_sfc/db/migration/alembic_migrations/", line 25, in <module> from networking_sfc.db.migration.models import head # noqa File "/usr/local/lib/python2.7/dist-packages/networking_sfc/db/migration/models/", line 17, in <module> from networking_sfc.db import flowclassifier_db # noqa File "/usr/local/lib/python2.7/dist-packages/networking_sfc/db/", line 34, in <module> from networking_sfc.extensions import flowclassifier as fc_ext File "/usr/local/lib/python2.7/dist-packages/networking_sfc/extensions/", line 173, in <module> 'validate': {'type:string': attr.NAME_MAX_LEN}, AttributeError: 'module' object has no attribute 'NAME_MAX_LEN' +lib/neutron-legacy:init_mutnauq:1 exit_trap +./ local r=1 ++./ jobs -p +./ jobs= +./ [[ -n '' ]] +./ kill_spinner

Thanks -Suresh

edit retag flag offensive reopen merge delete

Closed for the following reason duplicate question by Suresh Nagaraj
close date 2017-01-16 05:10:14.476629

1 answer

Sort by ยป oldest newest most voted

answered 2017-01-16 05:10:03 -0500

Suresh Nagaraj gravatar image

This issue got fixed after removing the package networking_sfc.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2017-01-13 05:03:15 -0500

Seen: 434 times

Last updated: Jan 16 '17