Hello, I cant install LBaaS on my Devstack. With minimal config stack.sh runs fine, but with this local.conf not. It is running in an Ubuntu16LTS guest under Hyper-V with nested virtualization enabled. The config is mostly copied from http://docs.openstack.org/developer/devstack/guides/devstack-with-lbaas-v2.html
[[local|localrc]]
#Load the external LBaaS plugin
enable_plugin neutron-lbaas https://git.openstack.org/openstack/neutron-lbaas.git stable/newton
enable_plugin octavia https://git.openstack.org/openstack/octavia.git stable/newton
ADMIN_PASSWORD=secret
DATABASE_PASSWORD=$ADMIN_PASSWORD
RABBIT_PASSWORD=$ADMIN_PASSWORD
SERVICE_PASSWORD=$ADMIN_PASSWORD
#Use nested virtualization
LIBVIRT_TYPE=kvm
# Enable Logging
LOGFILE=$DEST/logs/stack.sh.log
VERBOSE=True
LOG_COLOR=True
SCREEN_LOGDIR=$DEST/logs
# Pre-requisite
ENABLED_SERVICES=rabbit,mysql,key
# Horizon
ENABLED_SERVICES+=,horizon
# Nova
ENABLED_SERVICES+=,n-api,n-crt,n-cpu,n-cond,n-sch
# Glance
ENABLED_SERVICES+=,g-api,g-reg
# Neutron
ENABLED_SERVICES+=,q-svc,q-agt,q-dhcp,q-l3,q-meta
# Enable LBaaS v2
ENABLED_SERVICES+=,q-lbaasv2
ENABLED_SERVICES+=,octavia,o-cw,o-hk,o-hm,o-api
# Cinder
ENABLED_SERVICES+=,c-api,c-vol,c-sch
# Tempest
ENABLED_SERVICES+=,tempest
# ===== END localrc =====
Devstack:
stack@ubuntu16:~/devstack$ git status
On branch stable/newton
Your branch is up-to-date with 'origin/stable/newton'.
nothing to commit, working directory clean
Stacktrace:
2017-01-25 21:19:54.604 | Running upgrade for neutron ...
2017-01-25 21:19:54.604 | OK
2017-01-25 21:19:54.604 | Traceback (most recent call last):
2017-01-25 21:19:54.604 | File "/usr/local/bin/neutron-db-manage", line 10, in <module>
2017-01-25 21:19:54.604 | sys.exit(main())
2017-01-25 21:19:54.604 | File "/opt/stack/neutron/neutron/db/migration/cli.py", line 686, in main
2017-01-25 21:19:54.604 | return_val |= bool(CONF.command.func(config, CONF.command.name))
2017-01-25 21:19:54.604 | File "/opt/stack/neutron/neutron/db/migration/cli.py", line 205, in do_upgrade
2017-01-25 21:19:54.604 | run_sanity_checks(config, revision)
2017-01-25 21:19:54.604 | File "/opt/stack/neutron/neutron/db/migration/cli.py", line 670, in run_sanity_checks
2017-01-25 21:19:54.604 | script_dir.run_env()
2017-01-25 21:19:54.604 | File "/usr/local/lib/python2.7/dist-packages/alembic/script/base.py", line 407, in run_env
2017-01-25 21:19:54.604 | util.load_python_file(self.dir, 'env.py')
2017-01-25 21:19:54.604 | File "/usr/local/lib/python2.7/dist-packages/alembic/util/pyfiles.py", line 93, in load_python_file
2017-01-25 21:19:54.604 | module = load_module_py(module_id, path)
2017-01-25 21:19:54.605 | File "/usr/local/lib/python2.7/dist-packages/alembic/util/compat.py", line 79, in load_module_py
2017-01-25 21:19:54.605 | mod = imp.load_source(module_id, path, fp)
2017-01-25 21:19:54.605 | File "/opt/stack/neutron-lbaas/neutron_lbaas/db/migration/alembic_migrations/env.py", line 24, in <module>
2017-01-25 21:19:54.605 | from neutron_lbaas.db.models import head # noqa
2017-01-25 21:19:54.605 | File "/opt/stack/neutron-lbaas/neutron_lbaas/db/models/head.py", line 17, in <module>
2017-01-25 21:19:54.605 | import neutron_lbaas.agent_scheduler # noqa
2017-01-25 21:19:54.605 | File "/opt/stack/neutron-lbaas/neutron_lbaas/agent_scheduler.py", line 19, in <module>
2017-01-25 21:19:54.605 | from neutron.db.models import agent as agents_db
2017-01-25 21:19:54.605 | ImportError: cannot import name agent