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)
Sun, Apr 14, 22:02
Unknown Object (File)
Sun, Apr 14, 05:44
Unknown Object (File)
Mon, Apr 8, 18:28
Unknown Object (File)
Sun, Apr 7, 22:35
Unknown Object (File)
Sun, Apr 7, 22:35
Unknown Object (File)
Sun, Apr 7, 22:35
Unknown Object (File)
Sun, Apr 7, 20:41
Unknown Object (File)
Thu, Apr 4, 16:39
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: