-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #9538 Inventory iocage fails when DHCP is enbled.
- Loading branch information
Showing
14 changed files
with
222 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
- test_101 off down jail 13.4-RELEASE-p2 vnet0|10.1.0.101/24 - ansible_client yes | ||
- test_102 off down jail 13.4-RELEASE-p2 vnet0|10.1.0.102/24 - ansible_client yes | ||
- test_103 off down jail 13.4-RELEASE-p2 vnet0|10.1.0.103/24 - ansible_client yes | ||
+------+----------+------+-------+------+-----------------+---------------------+-----+----------------+----------+ | ||
| JID | NAME | BOOT | STATE | TYPE | RELEASE | IP4 | IP6 | TEMPLATE | BASEJAIL | | ||
+======+==========+======+=======+======+=================+=====================+=====+================+==========+ | ||
| - | test_101 | off | down | jail | 13.4-RELEASE-p2 | vnet0|10.1.0.101/24 | - | ansible_client | yes | | ||
+------+----------------+------+-------+------+-----------------+--------------------+-----+----------------+-----+ | ||
| - | test_102 | off | down | jail | 13.4-RELEASE-p2 | vnet0|10.1.0.102/24 | - | ansible_client | yes | | ||
+------+----------------+------+-------+------+-----------------+--------------------+-----+----------------+-----+ | ||
| - | test_103 | off | down | jail | 13.4-RELEASE-p2 | vnet0|10.1.0.103/24 | - | ansible_client | yes | | ||
+------+----------------+------+-------+------+-----------------+--------------------+-----+----------------+-----+ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
+------+----------------+------+-------+------+-----------------+--------------------+-----+----------------+----------+ | ||
| JID | NAME | BOOT | STATE | TYPE | RELEASE | IP4 | IP6 | TEMPLATE | BASEJAIL | | ||
+======+================+======+=======+======+=================+====================+=====+================+==========+ | ||
| 268 | test_111 | off | up | jail | 14.1-RELEASE-p6 | epair0b|10.1.0.174 | - | ansible_client | yes | | ||
+------+----------------+------+-------+------+-----------------+--------------------+-----+----------------+----------+ | ||
| 269 | test_112 | off | up | jail | 14.1-RELEASE-p6 | epair0b|10.1.0.147 | - | ansible_client | yes | | ||
+------+----------------+------+-------+------+-----------------+--------------------+-----+----------------+----------+ | ||
| 270 | test_113 | off | up | jail | 14.1-RELEASE-p6 | epair0b|10.1.0.231 | - | ansible_client | yes | | ||
+------+----------------+------+-------+------+-----------------+--------------------+-----+----------------+----------+ |
3 changes: 3 additions & 0 deletions
3
tests/unit/plugins/inventory/fixtures/iocage_jails_dhcp.txt.license
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt) | ||
SPDX-License-Identifier: GPL-3.0-or-later | ||
SPDX-FileCopyrightText: Ansible Project |
47 changes: 47 additions & 0 deletions
47
tests/unit/plugins/inventory/fixtures/iocage_jails_dhcp.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
_meta: | ||
hostvars: | ||
test_111: | ||
iocage_basejail: 'yes' | ||
iocage_boot: 'off' | ||
iocage_ip4: | ||
ip4: | ||
- ifc: epair0b | ||
ip: 10.1.0.174 | ||
mask: '-' | ||
msg: '' | ||
iocage_ip6: '-' | ||
iocage_jid: '268' | ||
iocage_release: 14.1-RELEASE-p6 | ||
iocage_state: up | ||
iocage_template: ansible_client | ||
iocage_type: jail | ||
test_112: | ||
iocage_basejail: 'yes' | ||
iocage_boot: 'off' | ||
iocage_ip4: | ||
ip4: | ||
- ifc: epair0b | ||
ip: 10.1.0.147 | ||
mask: '-' | ||
msg: '' | ||
iocage_ip6: '-' | ||
iocage_jid: '269' | ||
iocage_release: 14.1-RELEASE-p6 | ||
iocage_state: up | ||
iocage_template: ansible_client | ||
iocage_type: jail | ||
test_113: | ||
iocage_basejail: 'yes' | ||
iocage_boot: 'off' | ||
iocage_ip4: | ||
ip4: | ||
- ifc: epair0b | ||
ip: 10.1.0.231 | ||
mask: '-' | ||
msg: '' | ||
iocage_ip6: '-' | ||
iocage_jid: '270' | ||
iocage_release: 14.1-RELEASE-p6 | ||
iocage_state: up | ||
iocage_template: ansible_client | ||
iocage_type: jail |
3 changes: 3 additions & 0 deletions
3
tests/unit/plugins/inventory/fixtures/iocage_jails_dhcp.yml.license
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt) | ||
SPDX-License-Identifier: GPL-3.0-or-later | ||
SPDX-FileCopyrightText: Ansible Project |
9 changes: 9 additions & 0 deletions
9
tests/unit/plugins/inventory/fixtures/iocage_jails_dhcp_not_running.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
+------+----------------+------+-------+------+-----------------+--------------------+-----+----------------+----------+ | ||
| JID | NAME | BOOT | STATE | TYPE | RELEASE | IP4 | IP6 | TEMPLATE | BASEJAIL | | ||
+======+================+======+=======+======+=================+====================+=====+================+==========+ | ||
| None | test_111 | off | down | jail | 14.1-RELEASE-p6 | DHCP (not running) | - | ansible_client | yes | | ||
+------+----------------+------+-------+------+-----------------+--------------------+-----+----------------+----------+ | ||
| None | test_112 | off | down | jail | 14.1-RELEASE-p6 | DHCP (not running) | - | ansible_client | yes | | ||
+------+----------------+------+-------+------+-----------------+--------------------+-----+----------------+----------+ | ||
| None | test_113 | off | down | jail | 14.1-RELEASE-p6 | DHCP (not running) | - | ansible_client | yes | | ||
+------+----------------+------+-------+------+-----------------+--------------------+-----+----------------+----------+ |
3 changes: 3 additions & 0 deletions
3
tests/unit/plugins/inventory/fixtures/iocage_jails_dhcp_not_running.txt.license
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt) | ||
SPDX-License-Identifier: GPL-3.0-or-later | ||
SPDX-FileCopyrightText: Ansible Project |
38 changes: 38 additions & 0 deletions
38
tests/unit/plugins/inventory/fixtures/iocage_jails_dhcp_not_running.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
_meta: | ||
hostvars: | ||
test_111: | ||
iocage_basejail: 'yes' | ||
iocage_boot: 'off' | ||
iocage_ip4: | ||
ip4: [] | ||
msg: 'DHCP (not running)' | ||
iocage_ip6: '-' | ||
iocage_jid: 'None' | ||
iocage_release: 14.1-RELEASE-p6 | ||
iocage_state: down | ||
iocage_template: ansible_client | ||
iocage_type: jail | ||
test_112: | ||
iocage_basejail: 'yes' | ||
iocage_boot: 'off' | ||
iocage_ip4: | ||
ip4: [] | ||
msg: 'DHCP (not running)' | ||
iocage_ip6: '-' | ||
iocage_jid: 'None' | ||
iocage_release: 14.1-RELEASE-p6 | ||
iocage_state: down | ||
iocage_template: ansible_client | ||
iocage_type: jail | ||
test_113: | ||
iocage_basejail: 'yes' | ||
iocage_boot: 'off' | ||
iocage_ip4: | ||
ip4: [] | ||
msg: 'DHCP (not running)' | ||
iocage_ip6: '-' | ||
iocage_jid: 'None' | ||
iocage_release: 14.1-RELEASE-p6 | ||
iocage_state: down | ||
iocage_template: ansible_client | ||
iocage_type: jail |
3 changes: 3 additions & 0 deletions
3
tests/unit/plugins/inventory/fixtures/iocage_jails_dhcp_not_running.yml.license
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt) | ||
SPDX-License-Identifier: GPL-3.0-or-later | ||
SPDX-FileCopyrightText: Ansible Project |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters