Uploaded image for project: 'Qpid Dispatch'
  1. Qpid Dispatch
  2. DISPATCH-397

Error creating a new connector on a router with same name but on another router

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.6.0
    • 0.7.0
    • Console
    • None

    Description

      I have a network with three routers A, B and C.

      A is connected to B and a broker with a connector named "BROKER".
      B is connected to C.

      Using the Entities page and selecting router B, I can see the only connector from B to C named "INTER_ROUTER.

      If I try to create a new connector for the router B in order to connect it to the broker as well using the name "BROKER" for the connector, I receive the following error : Duplicate value 'BROKER' for unique attribute 'name'.

      It's true if I create a connector for router A which already has a connector with this name, but not true for router B.
      Attached the screenshot of the error.

      At same time the error on the console on the router A is the following :

      Fri Jun 17 09:54:13 2016 AGENT (error) Error dispatching Message(address='_topo/0/Router.A/$management', properties=

      {'operation': 'CREATE', 'type': 'org.apache.qpid.dispatch.connector', 'name': 'BROKER'}

      , body=

      {'role': 'normal', 'type': 'org.apache.qpid.dispatch.connector', 'name': 'BROKER', 'port': '5672'}

      , reply_to='amqp:/_topo/0/Router.A/temp.3lKIzN7YrrNNvms', correlation_id='6363'): org.apache.qpid.dispatch.connector: Duplicate value 'BROKER' for unique attribute 'name'
      Traceback (most recent call last):
      File "/usr/lib/qpid-dispatch/python/qpid_dispatch_internal/management/agent.py", line 790, in receive
      status, body = self.handle(request)
      File "/usr/lib/qpid-dispatch/python/qpid_dispatch_internal/management/agent.py", line 813, in handle
      return self.create(request)
      File "/usr/lib/qpid-dispatch/python/qpid_dispatch_internal/management/agent.py", line 854, in create
      return (CREATED, self._create(attributes).attributes)
      File "/usr/lib/qpid-dispatch/python/qpid_dispatch_internal/management/agent.py", line 829, in _create
      self.entities.add_implementation(cimplementation, entity)
      File "/usr/lib/qpid-dispatch/python/qpid_dispatch_internal/management/agent.py", line 538, in add_implementation
      self._add_implementation(implementation, adapter=adapter)
      File "/usr/lib/qpid-dispatch/python/qpid_dispatch_internal/management/agent.py", line 535, in _add_implementation
      self.add(adapter)
      File "/usr/lib/qpid-dispatch/python/qpid_dispatch_internal/management/agent.py", line 524, in add
      self.schema.validate_full(chain(iter([entity]), iter(self.entities)))
      File "/usr/lib/qpid-dispatch/python/qpid_dispatch_internal/management/qdrouter.py", line 59, in validate_full
      super(QdSchema, self).validate_all(entities, **kwargs)
      File "/usr/lib/qpid-dispatch/python/qpid_dispatch_internal/management/schema.py", line 597, in validate_all
      check_singleton=check_singleton)
      File "/usr/lib/qpid-dispatch/python/qpid_dispatch_internal/management/schema.py", line 574, in validate_entity
      check_singleton=check_singleton)
      File "/

      Attachments

        1. Selection_015.png
          36 kB
          Paolo Patierno

        Activity

          People

            eallen Ernest Allen
            ppatierno Paolo Patierno
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: