-
Notifications
You must be signed in to change notification settings - Fork 107
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
[BUG] Epicli is failing in air-gapped infra mode #2653
Comments
Epiphany code assumes that the default route is configured on each target host so this is as a prerequisite.
Info regarding |
@plirglo @to-bar I ran into an issue when installing epicli for
Shouldn't we also support such a scenario, especially since the installation went fine after removing the routing checks? |
Scenario with |
OK, then moving to DoD. |
Describe the bug
When you follow the instructions described in this EPI user guide the deployment is failing at the task:
TASK [preflight_facts : PREFLIGHT_FACTS | Decide what should be repository url]
with the folowing error:
How to reproduce
Steps to reproduce the behavior:
epicli prepare --os ubuntu-18.04
versionepicli apply -f <your-name>.yml --no-infra --offline-requirements /requirementsoutput/
Expected behavior
An errorless environment deploy with
epicli
command.Config files
If applicable, add config files to help explain your problem.
Environment
epicli version: 1.0.1
Additional context
According to my investigation, the problem is related to the fact that there is no such attribute - nomen omen - like IPv4 gathered. And this results from how Ansible is producing the
ansible_default_ipv4
variable value, which is based on instigation of the interface address assigned to the one linked with the default route ( result of theip r
command ). In my situation the preparation of the environment described in the user guide was done using the 2nd interface connected to the internet and then this iface was disconnected from VM. This has caused lack of default route on the deployment machine which has followed-up with epicli failing to deploy the offline infra.TL;DR
There should be a precheck prepared to assure the default route is defined on the host.
DoD checklist
The text was updated successfully, but these errors were encountered: