Comment 2 for bug 1855877

Revision history for this message
Wojtek Rakoniewski (enter2608) wrote :

Hi Mark,
I'm not sure but you may have right with chicken and egg. I first installed designate then change configuration and run kolla-ansible reconfigure so I fixed it manually. I do not check if installation is possible when default_pool_id is not defined in first steps.

Maybe better is to fix designate-manage, I also checked source, look from line 110
https://opendev.org/openstack/designate/src/commit/d9fb34767c5bd9f8f822acc2b91715db45ab68db/designate/manage/pool.py#L110

When there is no 'id' in yaml file, in line 120 exception PoolNotFound will be raised and serviced in line 144, pool will be created in line 156 as you wrote.

When there is 'id' in yaml, exception raised in line 112 will be serviced in line 114. After 'continue' in line 118 next pool from yaml will be serviced in next iteration of loop so **pool will not be created**

Part of designate-manage.log:
2019-12-09 19:38:12.617 25 CRITICAL designate.manage.pool [designate-manage - - - - -] Bad ID Supplied for pool. pool_id: 67ccc1ba-b3df-47f5-be34-79aa711e1735 message: Could not find Pool
Traceback (most recent call last):

  File "/var/lib/kolla/venv/lib/python3.6/site-packages/designate/rpc.py", line 238, in exception_wrapper
    return f(self, *args, **kwargs)

  File "/var/lib/kolla/venv/lib/python3.6/site-packages/designate/central/service.py", line 2277, in get_pool
    return self.storage.get_pool(context, pool_id)

  File "/var/lib/kolla/venv/lib/python3.6/site-packages/designate/storage/impl_sqlalchemy/__init__.py", line 983, in get_pool
    return self._find_pools(context, {'id': pool_id}, one=True)

  File "/var/lib/kolla/venv/lib/python3.6/site-packages/designate/storage/impl_sqlalchemy/__init__.py", line 911, in _find_pools
    sort_dir)

  File "/var/lib/kolla/venv/lib/python3.6/site-packages/designate/sqlalchemy/base.py", line 250, in _find
    raise exc_notfound(msg)

designate.exceptions.PoolNotFound: Could not find Pool
: designate.exceptions_Remote.PoolNotFound_Remote: Could not find Pool

Regards,
Wojtek