python - Devstack installation error - Initializing Designate - AttributeError: 'module' object has no attribute 'set_defaults' -
recently i've been re-installing devstack couple of times. today got following error:
==> default: 2016-11-10 13:26:02.723 | initializing designate ==> default: traceback (most recent call last): ==> default: file "/usr/local/bin/designate-manage", line 10, in <module> ==> default: ==> default: sys.exit(main()) ==> default: file "/opt/stack/designate/designate/cmd/manage.py", line 110, in main ==> default: utils.read_config('designate', sys.argv) ==> default: file "/opt/stack/designate/designate/utils.py", line 109, in read_config ==> default: config.set_defaults() ==> default: file "/opt/stack/designate/designate/common/config.py", line 21, in set_defaults ==> default: cors.set_defaults( ==> default: attributeerror: 'module' object has no attribute 'set_defaults' ==> default: error on exit
the installation done on in 2 environments:
- vagrant + virtualbox - "ubuntu/trusty64" image + branch stable/mitaka
- vmware fusion ubuntu 14.04.5 lts server image + branch stable/mitaka
in each case same error occurs.
both todays , every previous (successful) installations have been done designate plugin enabled in local.conf:
# enable designate enable_plugin designate https://git.openstack.org/openstack/designate # designate devstack config # ========================= # enable core designate services enable_service designate,designate-central,designate-api,designate-pool-manager,designate-zone-manager,designate-mdns
looks version mismatch between designate , oslo.middleware python modules, came out in recent days (or hours).
any ideas how solve that?
i've experienced error because of following commit: https://github.com/openstack/designate/commit/04374fcb53bc5c4d5cfb058907d5b351ed546a38
it bad though, because should declare stable/mitaka branch plugin (more - same branch 1 devstack clone), should go follows:
# enable designate enable_plugin designate https://git.openstack.org/openstack/designate stable/mitaka
the above solves problem.
Comments
Post a Comment