1. 14 Sep, 2021 2 commits
    • Nikita Kalyanov's avatar
      use message id cache for RPC listener · 4f459f94
      Nikita Kalyanov authored
      Return back the message id cache feature to RPC listener, it was
      removed while refactoring in I708c3d6676b974d8daac6817c15f596cdf35817b
      See attached bug for more info.
      
      We should not raise DuplicateMessageError to avoid rejecting the
      previously ACK'ed message.
      
      Closes-Bug: #1935883
      Change-Id: Ie237e9e3fdc3fc27b3deb18b94751cdc3afd190e
      (cherry picked from commit 129c2233)
      4f459f94
    • Nikita Kalyanov's avatar
      limit maximum timeout in the poll loop · d2886907
      Nikita Kalyanov authored
      We should properly limit the maximum timeout with a 'min' to avoid
      long delays before message processing. Such delays may happen if
      the connection to a RabbitMQ server is re-established at the same
      time when the message arrives (see attached bug for more info).
      
      Moreover, this change is in line with the original intent to
      actually have an upper limit on maximum possible timeout (see
      comments in code and in the original review).
      
      Closes-Bug: #1935864
      Change-Id: Iebc8a96e868d938a5d250bf9d66d20746c63d3d5
      (cherry picked from commit bdcf915e)
      d2886907
  2. 10 Sep, 2021 2 commits
    • OpenStack Release Bot's avatar
      Update TOX_CONSTRAINTS_FILE for stable/xena · b6573655
      OpenStack Release Bot authored
      Update the URL to the upper-constraints file to point to the redirect
      rule on releases.openstack.org so that anyone working on this branch
      will switch to the correct upper-constraints list automatically when
      the requirements repository branches.
      
      Until the requirements repository has as stable/xena branch, tests will
      continue to use the upper-constraints list on master.
      
      Change-Id: I11f9be64360191590c04c2eae245b45cf98e831b
      b6573655
    • OpenStack Release Bot's avatar
      Update .gitreview for stable/xena · e7eae069
      OpenStack Release Bot authored
      Change-Id: Ie0a6b96bf1b4fd214fe8c9da7f58ac0c29405da1
      e7eae069
  3. 10 Aug, 2021 4 commits
    • John Eckersberg's avatar
      amqp1: Do not reuse _socket_connection on reconnect · f9de265f
      John Eckersberg authored
      Each _SocketConnection object is unique per-peer.  For example, the
      properties attribute may contain keys such as 'x-ssl-peer-name'.
      Reusing the existing _socket_connection during failover will cause the
      TLS handshake to fail since the peer name will not match.  There is
      potential for other similar-yet-unexplored bad things to happen as
      well.
      
      Instead, reconnect by waking up the eventloop via the _do_reconnect
      method, which reconstructs the connection properties to reflect the
      new (failed-over-to) host and ultimately crates a new
      _SocketConnection (or re-uses a *valid* old one) in
      eventloop.Thread.connect().
      
      Closes-Bug: #1938945
      Change-Id: I0c8dc447f4dc8d0d08c312a1f3e6fa1745fb69fd
      f9de265f
    • John Eckersberg's avatar
      amqp1: re-organize TestFailover to be reused by TestSSL · 01f5b378
      John Eckersberg authored
      This breaks out the generation of brokers and transport_url into
      separate methods.  These methods are used in the next patch in this
      series, where TestSSL is updated to inherit from TestFailover, and
      TestSSL overrides the _gen_brokers and _gen_transport_url methods to
      supply the necessary SSL-aware options.
      
      Change-Id: Ia2f977795abc2e81a996e299867e05d41057f33f
      01f5b378
    • John Eckersberg's avatar
      Revert "Disable AMQP 1.0 SSL unit tests" · fc49e04e
      John Eckersberg authored
      This reverts commit 8f5cfda6.
      
      Reason for revert: This was supposed to be temporary to unblock the gate.  Whatever broke SSL cert generation in the first place appears to be fixed because I can run SSL tests now.
      
      Change-Id: I4f286cf3af0d578f472b84fe355c812910c7a121
      fc49e04e
    • Zuul's avatar
      Merge "Changed minversion in tox to 3.18.0" · ee5eed86
      Zuul authored
      ee5eed86
  4. 25 Jun, 2021 1 commit
  5. 10 Jun, 2021 1 commit
  6. 08 Jun, 2021 1 commit
    • Ching Kuo's avatar
      Add Support For oslo.metrics · bdbb6d62
      Ching Kuo authored
      This commit added support to send rpc metrics to oslo.metrics.
      
      Changes includes:
      - Adding client wrapper for oslo.metrics to process metrics information
        and send to oslo.metrics socket
      - Modify rpc client to send metric when certain rpc events happens
      
      For more information on oslo.metrics
      https://opendev.org/openstack/oslo.metrics
      
      Change-Id: Idf8cc0e52ced1f697ac4048655eff4c956fd5c79
      bdbb6d62
  7. 07 Jun, 2021 1 commit
  8. 26 May, 2021 1 commit
  9. 18 May, 2021 1 commit
  10. 13 May, 2021 1 commit
    • yangyawei's avatar
      setup.cfg: Replace dashes with underscores · daca2549
      yangyawei authored
      Setuptools v54.1.0 introduces a warning that the use of dash-separated
      options in 'setup.cfg' will not be supported in a future version [1].
      Get ahead of the issue by replacing the dashes with underscores. Without
      this, we see 'UserWarning' messages like the following on new enough
      versions of setuptools:
      
        UserWarning: Usage of dash-separated 'description-file' will not be
        supported in future versions. Please use the underscore name
        'description_file' instead
      
      [1] https://github.com/pypa/setuptools/commit/a2e9ae4cb
      
      Change-Id: I6e015bf3955e3ff7aa21bc86d3f6f69e0017ca29
      daca2549
  11. 11 May, 2021 1 commit
    • dengzhaosen's avatar
      Remove the oslo_utils.fnmatch · 39826f06
      dengzhaosen authored
      Oslo.utils's fnmatch module was added to fix the py2.7 fnmatch module
      who was not thread safe [1]. Python 2.7 is no longer supported so now we
      can use the stdlib's fnmatch module and deprecate the one of oslo.utils.
      
      [1] https://bugs.python.org/issue23191$
      
      Change-Id: Id5381a0a5216783f0df594b126786947db16a8d1
      39826f06
  12. 28 Apr, 2021 1 commit
  13. 16 Apr, 2021 3 commits
  14. 15 Apr, 2021 2 commits
  15. 13 Apr, 2021 1 commit
  16. 18 Mar, 2021 2 commits
  17. 12 Feb, 2021 1 commit
  18. 09 Feb, 2021 1 commit
  19. 05 Feb, 2021 1 commit
    • Daniel Bengtsson's avatar
      Remove lower constraints. · e52dc2ac
      Daniel Bengtsson authored
      Remove the lower constraints file and the
      tox environment for lower constraints.
      
      Change-Id: Iefa00bee6f67e9e82f0c703a7aff144c0dcbe1ec
      e52dc2ac
  20. 04 Feb, 2021 1 commit
    • Hervé Beraud's avatar
      Correctly handle missing RabbitMQ queues · 4937949d
      Hervé Beraud authored
      Currently, setting the '[oslo_messaging] direct_mandatory_flag' config
      option to 'True' (the default) will result in a 'MessageUndeliverable'
      exception being raised when sending a reply if a RabbitMQ queue is
      missing [1]. It was the responsibility of the application to handle
      this exception, however, many applications are not doing so. This has
      resulted in a number of bug reports.
      
      Start handling this error condition, using a retry loop to attempt to
      resend the message and work around any temporary glitches. Since
      attempting to send a reply will will no longer raise an exception,
      there is little benefit in retaining the '[oslo_messaging]
      direct_mandatory_flag' config option: users setting this to False will
      simply not benefit from the retry logic and improved logging added
      here. This option is already deprecated though and will be fully
      removed in a future release.
      
      [1] https://www.rabbitmq.com/channels.html
      
      Change-Id: Id5cddbefbe24ef100f1cc522f44430df77d217cb
      Closes-Bug: #1905965
      4937949d
  21. 03 Feb, 2021 3 commits
  22. 01 Feb, 2021 2 commits
  23. 18 Jan, 2021 1 commit
  24. 08 Jan, 2021 2 commits
  25. 06 Jan, 2021 1 commit
  26. 03 Jan, 2021 1 commit
  27. 02 Jan, 2021 1 commit
    • xuanyandong's avatar
      Remove six · 5560e8e6
      xuanyandong authored
      Change-Id: I9ac8671d9a37c218cb0e5546eb6dbcec7a7a764e
      5560e8e6