Skip to content

Commit

Permalink
rgw/notifications/test: use dnf and systemctl to setup rabbitmq
Browse files Browse the repository at this point in the history
Fixes: https://tracker.ceph.com/issues/63205

Signed-off-by: Yuval Lifshitz <[email protected]>
  • Loading branch information
yuvalif committed Oct 19, 2023
1 parent 1afba5c commit 1ffe4ac
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions qa/tasks/rabbitmq.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def install_rabbitmq(ctx, config):
(remote,) = ctx.cluster.only(client).remotes.keys()

ctx.cluster.only(client).run(args=[
'sudo', 'yum', '-y', 'install', 'epel-release'
'sudo', 'dnf', '-y', 'install', 'epel-release'
])

link1 = 'https://packagecloud.io/install/repositories/rabbitmq/erlang/script.rpm.sh'
Expand All @@ -33,7 +33,7 @@ def install_rabbitmq(ctx, config):
])

ctx.cluster.only(client).run(args=[
'sudo', 'yum', '-y', 'install', 'erlang'
'sudo', 'dnf', '-y', 'install', 'erlang'
])

link2 = 'https://packagecloud.io/install/repositories/rabbitmq/rabbitmq-server/script.rpm.sh'
Expand All @@ -43,7 +43,7 @@ def install_rabbitmq(ctx, config):
])

ctx.cluster.only(client).run(args=[
'sudo', 'yum', '-y', 'install', 'rabbitmq-server'
'sudo', 'dnf', '-y', 'install', 'rabbitmq-server'
])

try:
Expand All @@ -53,7 +53,7 @@ def install_rabbitmq(ctx, config):

for (client, _) in config.items():
ctx.cluster.only(client).run(args=[
'sudo', 'yum', '-y', 'remove', 'rabbitmq-server.noarch'
'sudo', 'dnf', '-y', 'remove', 'rabbitmq-server.noarch'
])


Expand All @@ -70,7 +70,7 @@ def run_rabbitmq(ctx, config):
(remote,) = ctx.cluster.only(client).remotes.keys()

ctx.cluster.only(client).run(args=[
'sudo', 'chkconfig', 'rabbitmq-server', 'on'
'sudo', 'systemctl', 'enable', 'rabbitmq-server.service'
],
)

Expand Down

0 comments on commit 1ffe4ac

Please sign in to comment.