Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fix] Epicli is failing in air-gapped infra mode #2876

Merged
merged 2 commits into from
Jan 17, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions ansible/playbooks/roles/preflight/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,8 @@
path: /etc/systemd/system/default.target.wants/epiphany-lvm-merge.service
state: absent
timeout: 300

- name: Validate network configuration
assert:
that: ansible_default_ipv4.address == hostvars[inventory_hostname].ansible_host
fail_msg: "ansible_default_ipv4.address is {{ ansible_default_ipv4.address }} but inventory uses ip: {{ hostvars[inventory_hostname].ansible_host }}. Check default routing configuration, read more in troubleshooting document"
1 change: 1 addition & 0 deletions docs/changelogs/CHANGELOG-1.3.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
- [#2737](https://github.com/epiphany-platform/epiphany/issues/2737) - Fix asserting number of postgres nodes
- [#1175](https://github.com/epiphany-platform/epiphany/issues/1175) - Task 'Join to Kubernetes cluster' may fail when Ansible vault already exists
- [#2420](https://github.com/epiphany-platform/epiphany/issues/2420) - Changing Grafana admin password in the apply mode
- [#2653](https://github.com/epiphany-platform/epiphany/issues/2653) - Epicli is failing in air-gapped infra mode
- [#2873](https://github.com/epiphany-platform/epiphany/issues/2873) - Epicli backup fails on schema validation

### Updated
Expand Down
13 changes: 13 additions & 0 deletions docs/home/TROUBLESHOOTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,16 @@ ERROR org.apache.kafka.common.errors.InvalidReplicationFactorException: Replicat
This issue is saying the a replication of 1 is being attempted but there are no brokers '0'. This means that the kafka broker(s) are not running any longer. Kafka will start and attempt to establish connections etc. and if unable it will shutdown and log the message. So, when the verification script runs it will not be able to find a local broker (runs on each broker).

Take a look at syslog/dmesg and run `sudo systemctl status kafka`. Most likely it is related to security (TLS/SSL) and/or network but it can also be incorrect settings in the config file `/opt/kafka/config/server.properties`. Correct and rerun the automation.

## Networking

Epicli uses Ansible to configure machines in cluster. Several tasks in Epiphany rely on ```ansible_default_ipv4``` variable.
In some specific configuration (mostly on-prem), this variable might be fetched wrong. Those cases are:
- more than one network interface per machine,
- changes in hardware configuration (add or remove network interface / rename interface),
- lack / wrong / multiplied default routing configuration.

When ```ansible_default_ipv4``` is not equal to machine ip address used in inventory, installation fail with relevant error message.

This means that machine's default routing configuration needs to be modified to use the same network interface (and ip address) used in inventory file.
Here you can read more about [routing configuration](http://linux-ip.net/html/basic-changing.html#basic-changing-default)