Page MenuHomeDevCentral

Provision orange-rabbit for integration Notifications Center
ClosedPublic

Authored by dereckson on Apr 1 2023, 23:20.
Tags
None
Referenced Files
F3936885: D2966.id7588.diff
Mon, Dec 23, 14:00
F3935749: D2966.id7562.diff
Mon, Dec 23, 09:21
Unknown Object (File)
Sun, Dec 22, 17:08
Unknown Object (File)
Wed, Dec 18, 13:31
Unknown Object (File)
Wed, Dec 18, 13:31
Unknown Object (File)
Wed, Dec 18, 13:30
Unknown Object (File)
Wed, Dec 18, 12:25
Unknown Object (File)
Wed, Dec 18, 11:53
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: