Skip to content
This repository was archived by the owner on May 12, 2025. It is now read-only.

Commit 9d993ed

Browse files
authored
Fix RabbitMQ backup on RHEL/CentOS (#2923)
* Install python3 on all hosts (RHEL/CentOS) * Add note about workaround * Update changelog
1 parent 5d85f51 commit 9d993ed

File tree

5 files changed

+32
-0
lines changed

5 files changed

+32
-0
lines changed

CHANGELOG-1.0.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
## [1.0.2] 2021-xx-xx
44

5+
### NOTE ###
6+
7+
Before running `epicli backup` for RHEL/CentOS based cluster with standalone (non-K8s) RabbitMQ component,
8+
read note in [this doc](docs/home/howto/BACKUP.md#1-how-to-perform-backup).
9+
510
### Added
611

712
- [#2124](https://github.com/epiphany-platform/epiphany/issues/2124) - Added Internet connection test to download-requirements.sh
@@ -14,6 +19,7 @@
1419

1520
### Fixed
1621

22+
- [#2920](https://github.com/epiphany-platform/epiphany/issues/2920) - [RHEL/CentOS] RabbitMQ backup fails: /usr/bin/env: python3: No such file or directory
1723
- [#2425](https://github.com/epiphany-platform/epiphany/issues/2425) - Feature-mapping - 'enabled: no' do nothing
1824
- [#1294](https://github.com/epiphany-platform/epiphany/issues/1294) - Implement proper merging of lists of dictionaries for epicli yaml docs
1925
- [#1370](https://github.com/epiphany-platform/epiphany/issues/1370) - Epicli does not correctly generate vars for Postgres

core/src/epicli/data/common/ansible/playbooks/roles/common/tasks/RedHat.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
- net-tools
3434
- openssl
3535
- python-setuptools
36+
- python3
3637
- rsync
3738
- sysstat
3839
- tar

core/src/epicli/data/common/ansible/playbooks/roles/repository/files/download-requirements/centos-7/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ python-slip-dbus # for firewalld
9393
python-ipaddress
9494
python-backports
9595
python2-cryptography # for Ansible (certificate modules)
96+
python3-3.6.*
9697
quota # for nfs-utils
9798
rabbitmq-server-3.8.9
9899
rh-haproxy18

core/src/epicli/data/common/ansible/playbooks/roles/repository/files/download-requirements/redhat-7/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ python-pycparser # for python2-cryptography
8989
python-setuptools
9090
python-slip-dbus # for firewalld
9191
python2-cryptography # for Ansible (certificate modules)
92+
python3-3.6.*
9293
quota # for nfs-utils
9394
rabbitmq-server-3.8.9
9495
rh-haproxy18

docs/home/howto/BACKUP.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,29 @@ epicli backup -f backup.yml -b build_folder
5151

5252
If backup config is attached to cluster-config.yml use this file instead ``backup.yml``
5353

54+
---
55+
**NOTE for Epiphany versions < 1.0.2**
56+
57+
After releasing Epiphany v1.0.1 we found a [bug](https://github.com/epiphany-platform/epiphany/issues/2920) in the backup
58+
functionality. Only RHEL/CentOS based clusters with standalone (non-K8s) RabbitMQ component are affected.
59+
60+
To work around this issue, install `python3` package (by yourself) on the first host of the `rabbitmq` group from your
61+
Ansible inventory file **before** running `epicli backup` command.
62+
63+
Alternatively, if you're fine with excluding RabbitMQ from the automated backup, you can just set in your config file:
64+
65+
```
66+
kind: configuration/backup
67+
...
68+
specification:
69+
components:
70+
rabbitmq:
71+
enabled: false
72+
...
73+
```
74+
75+
---
76+
5477
## 2. How to store backup
5578

5679
Backup location is defined in ``backup`` role as ``backup_destination_host`` and ``backup_destination_dir``.

0 commit comments

Comments
 (0)