pool update fails - want to set zone master for primary zones

Bug #1923589 reported by Kristina Jasser
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Designate
New
Undecided
Unassigned

Bug Description

pool update fails because designate want to set zone master for primary zones:

the error occurs for all zones with type "PRIMARY"
our version: ussuri: designate 10.0.1.dev8
everything works fine with the old version: designate 10.0.0.0rc3.dev1

Error:
2021-04-12 09:20:28.862 69 INFO designate.manage.pool [designate-manage - - - - -] Updating existing pool: <Pool id:'794ccc2c-d751-44fe-b57f-8894c9f5c842' name:'default-bind'>
2021-04-12 09:20:29.205 69 INFO designate.manage.pool [designate-manage - - - - -] Updating zone masters for pool: 794ccc2c-d751-44fe-b57f-8894c9f5c842
2021-04-12 09:20:29.312 69 CRITICAL designate [designate-manage - - - - -] Unhandled error: designate.exceptions_Remote.DuplicateZoneMaster_Remote: Duplicate ZoneMaster
Traceback (most recent call last):

  File "/var/lib/kolla/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1248, in _execute_context
    cursor, statement, parameters, context

  File "/var/lib/kolla/venv/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 590, in do_execute
    cursor.execute(statement, parameters)

  File "/var/lib/kolla/venv/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute
    result = self._query(query)

  File "/var/lib/kolla/venv/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query
    conn.query(q)

  File "/var/lib/kolla/venv/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query
    self._affected_rows = self._read_query_result(unbuffered=unbuffered)

  File "/var/lib/kolla/venv/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result
    result.read()

  File "/var/lib/kolla/venv/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read
    first_packet = self.connection._read_packet()

  File "/var/lib/kolla/venv/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet
    packet.check_error()

  File "/var/lib/kolla/venv/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error
    err.raise_mysql_exception(self._data)

  File "/var/lib/kolla/venv/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception
    raise errorclass(errno, errval)

pymysql.err.IntegrityError: (1062, "Duplicate entry '10.46.1.38-5354-6552e81a5c37402ba30511935a0d31c8' for key 'unique_masters'")

The above exception was the direct cause of the following exception:

Traceback (most recent call last):

  File "/var/lib/kolla/venv/lib/python3.6/site-packages/designate/sqlalchemy/base.py", line 211, in _create
    resultproxy = self.session.execute(query, [dict(values)])

  File "/var/lib/kolla/venv/lib/python3.6/site-packages/sqlalchemy/orm/session.py", line 1278, in execute
    clause, params or {}

  File "/var/lib/kolla/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 984, in execute
    return meth(self, multiparams, params)

  File "/var/lib/kolla/venv/lib/python3.6/site-packages/sqlalchemy/sql/elements.py", line 293, in _execute_on_connection
    return connection._execute_clauseelement(self, multiparams, params)

  File "/var/lib/kolla/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1103, in _execute_clauseelement
    distilled_params,

  File "/var/lib/kolla/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1288, in _execute_context
    e, statement, parameters, cursor, context

  File "/var/lib/kolla/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1479, in _handle_dbapi_exception
    util.raise_(newraise, with_traceback=exc_info[2], from_=e)

  File "/var/lib/kolla/venv/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 178, in raise_
    raise exception

  File "/var/lib/kolla/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1248, in _execute_context
    cursor, statement, parameters, context

  File "/var/lib/kolla/venv/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 590, in do_execute
    cursor.execute(statement, parameters)

  File "/var/lib/kolla/venv/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute
    result = self._query(query)

  File "/var/lib/kolla/venv/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query
    conn.query(q)

  File "/var/lib/kolla/venv/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query
    self._affected_rows = self._read_query_result(unbuffered=unbuffered)

  File "/var/lib/kolla/venv/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result
    result.read()

  File "/var/lib/kolla/venv/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read
    first_packet = self.connection._read_packet()

  File "/var/lib/kolla/venv/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet
    packet.check_error()

  File "/var/lib/kolla/venv/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error
    err.raise_mysql_exception(self._data)

  File "/var/lib/kolla/venv/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception
    raise errorclass(errno, errval)

oslo_db.exception.DBDuplicateEntry: (pymysql.err.IntegrityError) (1062, "Duplicate entry '10.46.1.38-5354-6552e81a5c37402ba30511935a0d31c8' for key 'unique_masters'")
[SQL: INSERT INTO zone_masters (id, version, created_at, host, port, zone_id) VALUES (%(id)s, %(version)s, %(created_at)s, %(host)s, %(port)s, %(zone_id)s)]
[parameters: {'id': '14d84451ff494ed5b62b6a51d7b551c4', 'version': 1, 'created_at': datetime.datetime(2021, 4, 12, 7, 20, 29, 299316), 'host': '10.46.1.38', 'port': 5354, 'zone_id': '6552e81a5c37402ba30511935a0d31c8'}]
(Background on this error at: http://sqlalche.me/e/gkpj)

During handling of the above exception, another exception occurred:

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 151, in notification_wrapper
    result = f(self, *args, **kwargs)

  File "/var/lib/kolla/venv/lib/python3.6/site-packages/designate/central/service.py", line 151, in notification_wrapper
    result = f(self, *args, **kwargs)

  File "/var/lib/kolla/venv/lib/python3.6/site-packages/designate/central/service.py", line 123, in sync_wrapper
    return f(self, *args, **kwargs)

  File "/var/lib/kolla/venv/lib/python3.6/site-packages/designate/central/service.py", line 1058, in update_zone
    return self._update_zone(context, zone, increment_serial, changes)

  File "/var/lib/kolla/venv/lib/python3.6/site-packages/designate/central/service.py", line 1064, in _update_zone
    context, zone, increment_serial=increment_serial)

  File "/var/lib/kolla/venv/lib/python3.6/site-packages/designate/storage/__init__.py", line 67, in retry_wrapper
    **copy.deepcopy(kwargs))

  File "/var/lib/kolla/venv/lib/python3.6/site-packages/designate/storage/__init__.py", line 110, in transaction_wrapper
    self.storage.rollback()

  File "/var/lib/kolla/venv/lib/python3.6/site-packages/oslo_utils/excutils.py", line 220, in __exit__
    self.force_reraise()

  File "/var/lib/kolla/venv/lib/python3.6/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
    six.reraise(self.type_, self.value, self.tb)

  File "/usr/local/lib/python3.6/dist-packages/six.py", line 703, in reraise
    raise value

  File "/var/lib/kolla/venv/lib/python3.6/site-packages/designate/storage/__init__.py", line 105, in transaction_wrapper
    result = f(self, *args, **kwargs)

  File "/var/lib/kolla/venv/lib/python3.6/site-packages/designate/central/service.py", line 1084, in _update_zone_in_storage
    context, zone, set_delayed_notify=set_delayed_notify)

  File "/var/lib/kolla/venv/lib/python3.6/site-packages/designate/central/service.py", line 496, in _increment_zone_serial
    zone = self.storage.update_zone(context, zone)

  File "/var/lib/kolla/venv/lib/python3.6/site-packages/designate/storage/impl_sqlalchemy/__init__.py", line 384, in update_zone
    self.create_zone_master(context, zone.id, attr)

  File "/var/lib/kolla/venv/lib/python3.6/site-packages/designate/storage/impl_sqlalchemy/__init__.py", line 562, in create_zone_master
    exceptions.DuplicateZoneMaster)

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

designate.exceptions.DuplicateZoneMaster: Duplicate ZoneMaster
2021-04-12 09:20:29.312 69 ERROR designate Traceback (most recent call last):
2021-04-12 09:20:29.312 69 ERROR designate File "/var/lib/kolla/venv/bin/designate-manage", line 8, in <module>
2021-04-12 09:20:29.312 69 ERROR designate sys.exit(main())
2021-04-12 09:20:29.312 69 ERROR designate File "/var/lib/kolla/venv/lib/python3.6/site-packages/designate/cmd/manage.py", line 117, in main
2021-04-12 09:20:29.312 69 ERROR designate fn(*fn_args)
2021-04-12 09:20:29.312 69 ERROR designate File "/var/lib/kolla/venv/lib/python3.6/site-packages/designate/manage/pool.py", line 170, in update
2021-04-12 09:20:29.312 69 ERROR designate self._update_zones(pool)
2021-04-12 09:20:29.312 69 ERROR designate File "/var/lib/kolla/venv/lib/python3.6/site-packages/designate/manage/pool.py", line 69, in _update_zones
2021-04-12 09:20:29.312 69 ERROR designate zone)
2021-04-12 09:20:29.312 69 ERROR designate File "/var/lib/kolla/venv/lib/python3.6/site-packages/designate/central/rpcapi.py", line 166, in update_zone
2021-04-12 09:20:29.312 69 ERROR designate increment_serial=increment_serial)
2021-04-12 09:20:29.312 69 ERROR designate File "/var/lib/kolla/venv/lib/python3.6/site-packages/oslo_messaging/rpc/client.py", line 511, in call
2021-04-12 09:20:29.312 69 ERROR designate return self.prepare().call(ctxt, method, **kwargs)
2021-04-12 09:20:29.312 69 ERROR designate File "/var/lib/kolla/venv/lib/python3.6/site-packages/oslo_messaging/rpc/client.py", line 181, in call
2021-04-12 09:20:29.312 69 ERROR designate transport_options=self.transport_options)
2021-04-12 09:20:29.312 69 ERROR designate File "/var/lib/kolla/venv/lib/python3.6/site-packages/oslo_messaging/transport.py", line 129, in _send
2021-04-12 09:20:29.312 69 ERROR designate transport_options=transport_options)
2021-04-12 09:20:29.312 69 ERROR designate File "/var/lib/kolla/venv/lib/python3.6/site-packages/oslo_messaging/_drivers/amqpdriver.py", line 682, in send
2021-04-12 09:20:29.312 69 ERROR designate transport_options=transport_options)
2021-04-12 09:20:29.312 69 ERROR designate File "/var/lib/kolla/venv/lib/python3.6/site-packages/oslo_messaging/_drivers/amqpdriver.py", line 672, in _send
2021-04-12 09:20:29.312 69 ERROR designate raise result
2021-04-12 09:20:29.312 69 ERROR designate designate.exceptions_Remote.DuplicateZoneMaster_Remote: Duplicate ZoneMaster
2021-04-12 09:20:29.312 69 ERROR designate Traceback (most recent call last):
2021-04-12 09:20:29.312 69 ERROR designate
2021-04-12 09:20:29.312 69 ERROR designate File "/var/lib/kolla/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1248, in _execute_context
2021-04-12 09:20:29.312 69 ERROR designate cursor, statement, parameters, context
2021-04-12 09:20:29.312 69 ERROR designate
2021-04-12 09:20:29.312 69 ERROR designate File "/var/lib/kolla/venv/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 590, in do_execute
2021-04-12 09:20:29.312 69 ERROR designate cursor.execute(statement, parameters)
2021-04-12 09:20:29.312 69 ERROR designate
2021-04-12 09:20:29.312 69 ERROR designate File "/var/lib/kolla/venv/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute
2021-04-12 09:20:29.312 69 ERROR designate result = self._query(query)
2021-04-12 09:20:29.312 69 ERROR designate
2021-04-12 09:20:29.312 69 ERROR designate File "/var/lib/kolla/venv/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query
2021-04-12 09:20:29.312 69 ERROR designate conn.query(q)
2021-04-12 09:20:29.312 69 ERROR designate
2021-04-12 09:20:29.312 69 ERROR designate File "/var/lib/kolla/venv/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query
2021-04-12 09:20:29.312 69 ERROR designate self._affected_rows = self._read_query_result(unbuffered=unbuffered)
2021-04-12 09:20:29.312 69 ERROR designate
2021-04-12 09:20:29.312 69 ERROR designate File "/var/lib/kolla/venv/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result
2021-04-12 09:20:29.312 69 ERROR designate result.read()
2021-04-12 09:20:29.312 69 ERROR designate
2021-04-12 09:20:29.312 69 ERROR designate File "/var/lib/kolla/venv/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read
2021-04-12 09:20:29.312 69 ERROR designate first_packet = self.connection._read_packet()
2021-04-12 09:20:29.312 69 ERROR designate
2021-04-12 09:20:29.312 69 ERROR designate File "/var/lib/kolla/venv/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet
2021-04-12 09:20:29.312 69 ERROR designate packet.check_error()
2021-04-12 09:20:29.312 69 ERROR designate
2021-04-12 09:20:29.312 69 ERROR designate File "/var/lib/kolla/venv/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error
2021-04-12 09:20:29.312 69 ERROR designate err.raise_mysql_exception(self._data)
2021-04-12 09:20:29.312 69 ERROR designate
2021-04-12 09:20:29.312 69 ERROR designate File "/var/lib/kolla/venv/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception
2021-04-12 09:20:29.312 69 ERROR designate raise errorclass(errno, errval)
2021-04-12 09:20:29.312 69 ERROR designate
2021-04-12 09:20:29.312 69 ERROR designate pymysql.err.IntegrityError: (1062, "Duplicate entry '10.46.1.38-5354-6552e81a5c37402ba30511935a0d31c8' for key 'unique_masters'")
2021-04-12 09:20:29.312 69 ERROR designate
2021-04-12 09:20:29.312 69 ERROR designate
2021-04-12 09:20:29.312 69 ERROR designate The above exception was the direct cause of the following exception:
2021-04-12 09:20:29.312 69 ERROR designate
2021-04-12 09:20:29.312 69 ERROR designate
2021-04-12 09:20:29.312 69 ERROR designate Traceback (most recent call last):
2021-04-12 09:20:29.312 69 ERROR designate
2021-04-12 09:20:29.312 69 ERROR designate File "/var/lib/kolla/venv/lib/python3.6/site-packages/designate/sqlalchemy/base.py", line 211, in _create
2021-04-12 09:20:29.312 69 ERROR designate resultproxy = self.session.execute(query, [dict(values)])
2021-04-12 09:20:29.312 69 ERROR designate
2021-04-12 09:20:29.312 69 ERROR designate File "/var/lib/kolla/venv/lib/python3.6/site-packages/sqlalchemy/orm/session.py", line 1278, in execute
2021-04-12 09:20:29.312 69 ERROR designate clause, params or {}
2021-04-12 09:20:29.312 69 ERROR designate
2021-04-12 09:20:29.312 69 ERROR designate File "/var/lib/kolla/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 984, in execute
2021-04-12 09:20:29.312 69 ERROR designate return meth(self, multiparams, params)
2021-04-12 09:20:29.312 69 ERROR designate
2021-04-12 09:20:29.312 69 ERROR designate File "/var/lib/kolla/venv/lib/python3.6/site-packages/sqlalchemy/sql/elements.py", line 293, in _execute_on_connection
2021-04-12 09:20:29.312 69 ERROR designate return connection._execute_clauseelement(self, multiparams, params)
2021-04-12 09:20:29.312 69 ERROR designate
2021-04-12 09:20:29.312 69 ERROR designate File "/var/lib/kolla/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1103, in _execute_clauseelement
2021-04-12 09:20:29.312 69 ERROR designate distilled_params,
2021-04-12 09:20:29.312 69 ERROR designate
2021-04-12 09:20:29.312 69 ERROR designate File "/var/lib/kolla/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1288, in _execute_context
2021-04-12 09:20:29.312 69 ERROR designate e, statement, parameters, cursor, context
2021-04-12 09:20:29.312 69 ERROR designate
2021-04-12 09:20:29.312 69 ERROR designate File "/var/lib/kolla/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1479, in _handle_dbapi_exception
2021-04-12 09:20:29.312 69 ERROR designate util.raise_(newraise, with_traceback=exc_info[2], from_=e)
2021-04-12 09:20:29.312 69 ERROR designate
2021-04-12 09:20:29.312 69 ERROR designate File "/var/lib/kolla/venv/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 178, in raise_
2021-04-12 09:20:29.312 69 ERROR designate raise exception
2021-04-12 09:20:29.312 69 ERROR designate
2021-04-12 09:20:29.312 69 ERROR designate File "/var/lib/kolla/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1248, in _execute_context
2021-04-12 09:20:29.312 69 ERROR designate cursor, statement, parameters, context
2021-04-12 09:20:29.312 69 ERROR designate
2021-04-12 09:20:29.312 69 ERROR designate File "/var/lib/kolla/venv/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 590, in do_execute
2021-04-12 09:20:29.312 69 ERROR designate cursor.execute(statement, parameters)
2021-04-12 09:20:29.312 69 ERROR designate
2021-04-12 09:20:29.312 69 ERROR designate File "/var/lib/kolla/venv/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute
2021-04-12 09:20:29.312 69 ERROR designate result = self._query(query)
2021-04-12 09:20:29.312 69 ERROR designate
2021-04-12 09:20:29.312 69 ERROR designate File "/var/lib/kolla/venv/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query
2021-04-12 09:20:29.312 69 ERROR designate conn.query(q)
2021-04-12 09:20:29.312 69 ERROR designate
2021-04-12 09:20:29.312 69 ERROR designate File "/var/lib/kolla/venv/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query
2021-04-12 09:20:29.312 69 ERROR designate self._affected_rows = self._read_query_result(unbuffered=unbuffered)
2021-04-12 09:20:29.312 69 ERROR designate
2021-04-12 09:20:29.312 69 ERROR designate File "/var/lib/kolla/venv/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result
2021-04-12 09:20:29.312 69 ERROR designate result.read()
2021-04-12 09:20:29.312 69 ERROR designate
2021-04-12 09:20:29.312 69 ERROR designate File "/var/lib/kolla/venv/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read
2021-04-12 09:20:29.312 69 ERROR designate first_packet = self.connection._read_packet()
2021-04-12 09:20:29.312 69 ERROR designate
2021-04-12 09:20:29.312 69 ERROR designate File "/var/lib/kolla/venv/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet
2021-04-12 09:20:29.312 69 ERROR designate packet.check_error()
2021-04-12 09:20:29.312 69 ERROR designate
2021-04-12 09:20:29.312 69 ERROR designate File "/var/lib/kolla/venv/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error
2021-04-12 09:20:29.312 69 ERROR designate err.raise_mysql_exception(self._data)
2021-04-12 09:20:29.312 69 ERROR designate
2021-04-12 09:20:29.312 69 ERROR designate File "/var/lib/kolla/venv/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception
2021-04-12 09:20:29.312 69 ERROR designate raise errorclass(errno, errval)
2021-04-12 09:20:29.312 69 ERROR designate
2021-04-12 09:20:29.312 69 ERROR designate oslo_db.exception.DBDuplicateEntry: (pymysql.err.IntegrityError) (1062, "Duplicate entry '10.46.1.38-5354-6552e81a5c37402ba30511935a0d31c8' for key 'unique_masters'")
2021-04-12 09:20:29.312 69 ERROR designate [SQL: INSERT INTO zone_masters (id, version, created_at, host, port, zone_id) VALUES (%(id)s, %(version)s, %(created_at)s, %(host)s, %(port)s, %(zone_id)s)]
2021-04-12 09:20:29.312 69 ERROR designate [parameters: {'id': '14d84451ff494ed5b62b6a51d7b551c4', 'version': 1, 'created_at': datetime.datetime(2021, 4, 12, 7, 20, 29, 299316), 'host': '10.46.1.38', 'port': 5354, 'zone_id': '6552e81a5c37402ba30511935a0d31c8'}]
2021-04-12 09:20:29.312 69 ERROR designate (Background on this error at: http://sqlalche.me/e/gkpj)
2021-04-12 09:20:29.312 69 ERROR designate
2021-04-12 09:20:29.312 69 ERROR designate
2021-04-12 09:20:29.312 69 ERROR designate During handling of the above exception, another exception occurred:
2021-04-12 09:20:29.312 69 ERROR designate
2021-04-12 09:20:29.312 69 ERROR designate
2021-04-12 09:20:29.312 69 ERROR designate Traceback (most recent call last):
2021-04-12 09:20:29.312 69 ERROR designate
2021-04-12 09:20:29.312 69 ERROR designate File "/var/lib/kolla/venv/lib/python3.6/site-packages/designate/rpc.py", line 238, in exception_wrapper
2021-04-12 09:20:29.312 69 ERROR designate return f(self, *args, **kwargs)
2021-04-12 09:20:29.312 69 ERROR designate
2021-04-12 09:20:29.312 69 ERROR designate File "/var/lib/kolla/venv/lib/python3.6/site-packages/designate/central/service.py", line 151, in notification_wrapper
2021-04-12 09:20:29.312 69 ERROR designate result = f(self, *args, **kwargs)
2021-04-12 09:20:29.312 69 ERROR designate
2021-04-12 09:20:29.312 69 ERROR designate File "/var/lib/kolla/venv/lib/python3.6/site-packages/designate/central/service.py", line 151, in notification_wrapper
2021-04-12 09:20:29.312 69 ERROR designate result = f(self, *args, **kwargs)
2021-04-12 09:20:29.312 69 ERROR designate
2021-04-12 09:20:29.312 69 ERROR designate File "/var/lib/kolla/venv/lib/python3.6/site-packages/designate/central/service.py", line 123, in sync_wrapper
2021-04-12 09:20:29.312 69 ERROR designate return f(self, *args, **kwargs)
2021-04-12 09:20:29.312 69 ERROR designate
2021-04-12 09:20:29.312 69 ERROR designate File "/var/lib/kolla/venv/lib/python3.6/site-packages/designate/central/service.py", line 1058, in update_zone
2021-04-12 09:20:29.312 69 ERROR designate return self._update_zone(context, zone, increment_serial, changes)
2021-04-12 09:20:29.312 69 ERROR designate
2021-04-12 09:20:29.312 69 ERROR designate File "/var/lib/kolla/venv/lib/python3.6/site-packages/designate/central/service.py", line 1064, in _update_zone
2021-04-12 09:20:29.312 69 ERROR designate context, zone, increment_serial=increment_serial)
2021-04-12 09:20:29.312 69 ERROR designate
2021-04-12 09:20:29.312 69 ERROR designate File "/var/lib/kolla/venv/lib/python3.6/site-packages/designate/storage/__init__.py", line 67, in retry_wrapper
2021-04-12 09:20:29.312 69 ERROR designate **copy.deepcopy(kwargs))
2021-04-12 09:20:29.312 69 ERROR designate
2021-04-12 09:20:29.312 69 ERROR designate File "/var/lib/kolla/venv/lib/python3.6/site-packages/designate/storage/__init__.py", line 110, in transaction_wrapper
2021-04-12 09:20:29.312 69 ERROR designate self.storage.rollback()
2021-04-12 09:20:29.312 69 ERROR designate
2021-04-12 09:20:29.312 69 ERROR designate File "/var/lib/kolla/venv/lib/python3.6/site-packages/oslo_utils/excutils.py", line 220, in __exit__
2021-04-12 09:20:29.312 69 ERROR designate self.force_reraise()
2021-04-12 09:20:29.312 69 ERROR designate
2021-04-12 09:20:29.312 69 ERROR designate File "/var/lib/kolla/venv/lib/python3.6/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
2021-04-12 09:20:29.312 69 ERROR designate six.reraise(self.type_, self.value, self.tb)
2021-04-12 09:20:29.312 69 ERROR designate
2021-04-12 09:20:29.312 69 ERROR designate File "/usr/local/lib/python3.6/dist-packages/six.py", line 703, in reraise
2021-04-12 09:20:29.312 69 ERROR designate raise value
2021-04-12 09:20:29.312 69 ERROR designate
2021-04-12 09:20:29.312 69 ERROR designate File "/var/lib/kolla/venv/lib/python3.6/site-packages/designate/storage/__init__.py", line 105, in transaction_wrapper
2021-04-12 09:20:29.312 69 ERROR designate result = f(self, *args, **kwargs)
2021-04-12 09:20:29.312 69 ERROR designate
2021-04-12 09:20:29.312 69 ERROR designate File "/var/lib/kolla/venv/lib/python3.6/site-packages/designate/central/service.py", line 1084, in _update_zone_in_storage
2021-04-12 09:20:29.312 69 ERROR designate context, zone, set_delayed_notify=set_delayed_notify)
2021-04-12 09:20:29.312 69 ERROR designate
2021-04-12 09:20:29.312 69 ERROR designate File "/var/lib/kolla/venv/lib/python3.6/site-packages/designate/central/service.py", line 496, in _increment_zone_serial
2021-04-12 09:20:29.312 69 ERROR designate zone = self.storage.update_zone(context, zone)
2021-04-12 09:20:29.312 69 ERROR designate
2021-04-12 09:20:29.312 69 ERROR designate File "/var/lib/kolla/venv/lib/python3.6/site-packages/designate/storage/impl_sqlalchemy/__init__.py", line 384, in update_zone
2021-04-12 09:20:29.312 69 ERROR designate self.create_zone_master(context, zone.id, attr)
2021-04-12 09:20:29.312 69 ERROR designate
2021-04-12 09:20:29.312 69 ERROR designate File "/var/lib/kolla/venv/lib/python3.6/site-packages/designate/storage/impl_sqlalchemy/__init__.py", line 562, in create_zone_master
2021-04-12 09:20:29.312 69 ERROR designate exceptions.DuplicateZoneMaster)
2021-04-12 09:20:29.312 69 ERROR designate
2021-04-12 09:20:29.312 69 ERROR designate File "/var/lib/kolla/venv/lib/python3.6/site-packages/designate/sqlalchemy/base.py", line 214, in _create
2021-04-12 09:20:29.312 69 ERROR designate raise exc_dup(msg)
2021-04-12 09:20:29.312 69 ERROR designate
2021-04-12 09:20:29.312 69 ERROR designate designate.exceptions.DuplicateZoneMaster: Duplicate ZoneMaster
2021-04-12 09:20:29.312 69 ERROR designate
2021-04-12 09:20:29.312 69 ERROR designate

workaround:
delete zones "manually" direct in the designate database (set status and deleted table zone)
update pools
activate zones "manually" direct in the designate database

Revision history for this message
Kristina Jasser (marvin01) wrote :

same behavior for designate version 11.0.1.dev6 (victoria)

Revision history for this message
Kristina Jasser (marvin01) wrote :

bug fixed with latest victoria version 11.0.1.dev8

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.