Skip to content

Commit

Permalink
Add a separate interface address for tgtd
Browse files Browse the repository at this point in the history
Closes-Bug: #2031237
Change-Id: I7a4eaeab0c106ebdcb4d4cf9825c53dd8ad62dbf
  • Loading branch information
g0rgamesh committed Oct 5, 2023
1 parent 13ba75c commit ec11c31
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions ansible/roles/iscsi/defaults/main.yml
Expand Up @@ -19,6 +19,7 @@ iscsi_services:
volumes: "{{ tgtd_default_volumes + tgtd_extra_volumes }}"
dimensions: "{{ tgtd_dimensions }}"

tgtd_interface_address: "{{ api_interface_address }}"

####################
# Docker
Expand Down
2 changes: 1 addition & 1 deletion ansible/roles/iscsi/tasks/precheck.yml
Expand Up @@ -16,7 +16,7 @@

- name: Checking free port for iscsi
wait_for:
host: "{{ api_interface_address }}"
host: "{{ tgtd_interface_address }}"
port: "{{ iscsi_port }}"
connect_timeout: 1
timeout: 1
Expand Down
2 changes: 1 addition & 1 deletion ansible/roles/iscsi/templates/tgtd.json.j2
@@ -1,4 +1,4 @@
{
"command": "tgtd -d 1 -f --iscsi portal={{ api_interface_address | put_address_in_context('url') }}:{{ iscsi_port }}",
"command": "tgtd -d 1 -f --iscsi portal={{ tgtd_interface_address | put_address_in_context('url') }}:{{ iscsi_port }}",
"config_files": []
}
4 changes: 4 additions & 0 deletions releasenotes/notes/tgtd_iface-2ff09b2b12870372.yaml
@@ -0,0 +1,4 @@
---
fixes:
- |
Added ability to define address for a separate tgtd network interface.

0 comments on commit ec11c31

Please sign in to comment.