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)
Thu, Nov 14, 03:56
Unknown Object (File)
Wed, Nov 13, 03:27
Unknown Object (File)
Tue, Nov 12, 10:57
Unknown Object (File)
Sun, Nov 10, 02:43
Unknown Object (File)
Sun, Nov 3, 06:54
Unknown Object (File)
Sat, Nov 2, 16:39
Unknown Object (File)
Mon, Oct 28, 20:44
Unknown Object (File)
Sun, Oct 27, 00:54
Subscribers
None

Details

Summary

Ref T1755

Test Plan

Fire a notification to notifications.integration.nasqueron.org

Diff Detail

Repository
rOPS Nasqueron Operations
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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: