Page MenuHomeDevCentral

Provision orange-rabbit for integration Notifications Center
ClosedPublic

Authored by dereckson on Apr 1 2023, 23:20.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Sep 28, 22:16
Unknown Object (File)
Tue, Sep 17, 17:24
Unknown Object (File)
Tue, Sep 17, 14:51
Unknown Object (File)
Thu, Sep 12, 22:30
Unknown Object (File)
Sat, Sep 7, 00:01
Unknown Object (File)
Fri, Sep 6, 07:19
Unknown Object (File)
Thu, Sep 5, 14:02
Unknown Object (File)
Tue, Sep 3, 23:12
Subscribers
None

Details

Summary

Ref T1755

Test Plan

Fire a notification to notifications.integration.nasqueron.org

Diff Detail

Repository
rOPS Nasqueron Operations
Lint
Lint Passed
Unit
No Test Coverage
Branch
orange-rabbit
Build Status
Buildable 4678
Build 4958: arc lint + arc unit

Event Timeline

dereckson created this revision.
This revision is now accepted and ready to land.Apr 2 2023, 20:09

Rebased. We tested deployment, we've a 401 error.

All provisioned correctly, but RabbitMQ management plugin now returns a 500 when we visit the exchange notifications.

The web interface also shows the 500.

The exchange and the queue all-notifications are correctly bound.

----------
          ID: rabbitmq_cluster_orange-rabbit_vhost_dev_exchange_notifications
    Function: rabbitmq.exchange_present
        Name: notifications
      Result: False
     Comment: An exception occurred in this state: Traceback (most recent call last):
                File "/usr/local/lib/python3.9/site-packages/salt/state.py", line 2276, in call
                  ret = self.states[cdata["full"]](
                File "/usr/local/lib/python3.9/site-packages/salt/loader/lazy.py", line 149, in __call__
                  return self.loader.run(run_func, *args, **kwargs)
                File "/usr/local/lib/python3.9/site-packages/salt/loader/lazy.py", line 1228, in run
                  return self._last_context.run(self._run_as, _func_or_method, *args, **kwargs)
                File "/usr/local/lib/python3.9/site-packages/salt/loader/lazy.py", line 1243, in _run_as
                  return _func_or_method(*args, **kwargs)
                File "/usr/local/lib/python3.9/site-packages/salt/loader/lazy.py", line 1276, in wrapper
                  return f(*args, **kwargs)
                File "/var/cache/salt/minion/extmods/states/rabbitmq.py", line 248, in exchange_present
                  exchange = __salt__["rabbitmq_api.get_exchange"](cluster, vhost, name)
                File "/usr/local/lib/python3.9/site-packages/salt/loader/lazy.py", line 149, in __call__
                  return self.loader.run(run_func, *args, **kwargs)
                File "/usr/local/lib/python3.9/site-packages/salt/loader/lazy.py", line 1228, in run
                  return self._last_context.run(self._run_as, _func_or_method, *args, **kwargs)
                File "/usr/local/lib/python3.9/site-packages/salt/loader/lazy.py", line 1243, in _run_as
                  return _func_or_method(*args, **kwargs)
                File "/var/cache/salt/minion/extmods/modules/rabbitmq_api.py", line 157, in get_exchange
                  return _request(cluster, "GET", f"exchanges/{vhost}/{exchange}")
                File "/var/cache/salt/minion/extmods/modules/rabbitmq_api.py", line 59, in _request
                  raise RuntimeError(f"Status code is {r.status_code}")
              RuntimeError: Status code is 500
     Started: 23:19:14.505096
    Duration: 47.809 ms
     Changes: