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

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

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 ./stack.sh.

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/cli.py", line 686, in main return_val |= bool(CONF.command.func(config, CONF.command.name)) File "/opt/stack/neutron/neutron/db/migration/cli.py", line 205, in do_upgrade run_sanity_checks(config, revision) File "/opt/stack/neutron/neutron/db/migration/cli.py", line 670, in run_sanity_checks script_dir.run_env() File "/usr/local/lib/python2.7/dist-packages/alembic/script/base.py", line 416, in run_env util.load_python_file(self.dir, 'env.py') File "/usr/local/lib/python2.7/dist-packages/alembic/util/pyfiles.py", line 93, in load_python_file module = load_module_py(module_id, path) File "/usr/local/lib/python2.7/dist-packages/alembic/util/compat.py", 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/env.py", 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/head.py", line 17, in <module> from networking_sfc.db import flowclassifier_db # noqa File "/usr/local/lib/python2.7/dist-packages/networking_sfc/db/flowclassifier_db.py", line 34, in <module> from networking_sfc.extensions import flowclassifier as fc_ext File "/usr/local/lib/python2.7/dist-packages/networking_sfc/extensions/flowclassifier.py", 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 +./stack.sh:exit_trap:487 local r=1 ++./stack.sh:exit_trap:488 jobs -p +./stack.sh:exit_trap:488 jobs= +./stack.sh:exit_trap:491 [[ -n '' ]] +./stack.sh:exit_trap:497 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
0

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

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

Stats

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

Seen: 375 times

Last updated: Jan 16 '17