Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1018 from tgooding/master
Browse files Browse the repository at this point in the history
Add volumegroup and tcp transport options
  • Loading branch information
tgooding authored Feb 10, 2022
2 parents 0b3d0c0 + 21e6cda commit 3d56e5b
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 0 deletions.
8 changes: 8 additions & 0 deletions bb/ansible/bbserverIPlist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,14 @@

- hosts: compute server
tasks:
- name: Create /etc/ibm directory if it does not exist
file:
path: /etc/ibm
state: directory
mode: '0755'
owner: root
group: root

- name: Copy server ip list to compute/server nodes
copy:
src: /tmp/serverlist
Expand Down
8 changes: 8 additions & 0 deletions bb/ansible/nodelist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,14 @@

- hosts: compute
tasks:
- name: Create /etc/ibm directory if it does not exist
file:
path: /etc/ibm
state: directory
mode: '0755'
owner: root
group: root

- name: Copy nodelist to compute nodes
copy:
src: /tmp/nodelist
Expand Down
4 changes: 4 additions & 0 deletions bb/scripts/bbactivate.pl
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ sub writeConfiguration
"nodelist=s" => \$CFG{"nodelist"},
"esslist=s" => \$CFG{"esslist"},
"configtempl=s" => \$CFG{"configtempl"},
"volumegroup=s" => \$CFG{"volumegroup"},
"nvmetempl=s" => \$CFG{"nvmetempl"},
"outputconfig=s" => \$CFG{"outputconfig"},
"interfacename=s" => \$CFG{"interfacename"},
Expand Down Expand Up @@ -246,6 +247,7 @@ sub setDefaults
&def("envdir", 1, "HOME");
&def("lsfdir", 1, "");
&def("skip", 1, "");
&def("volumegroup", 1, "bb");
&def("configtempl", 2, "$SCRIPTPATH/bb.cfg");
&def("nvmetempl", 2, "$SCRIPTPATH/nvmet.json");

Expand Down Expand Up @@ -417,6 +419,8 @@ sub makeProxyConfigFile
{
$json->{"bb"}{"proxy"}{"controller"} = "csm";
}
$json->{"bb"}{"proxy"}{"volumegroup"} = $CFG{"volumegroup"};

$json->{"bb"}{"cmd"}{"controller"} = "none"; # disable on compute nodes

$json->{"bb"}{"server0"}{"sslcertif"} = $CFG{"sslcert"} if($CFG{"sslcert"} ne "default");
Expand Down
9 changes: 9 additions & 0 deletions bb/src/serial.cc
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,10 @@ void look4NVMFinitiator(){
{
files.push_back("address");
}
else if(line == string("tcp"))
{
files.push_back("address");
}
}
if(files[index] == "address")
{
Expand Down Expand Up @@ -296,6 +300,11 @@ void look4NVMFtargetDevices(){
files.push_back("addr_traddr");
files.push_back("addr_trsvcid");
}
else if(line == string("tcp"))
{
files.push_back("addr_traddr");
files.push_back("addr_trsvcid");
}
}
nvmet_pseudoserial = nvmet_pseudoserial + "," + line;
}
Expand Down

0 comments on commit 3d56e5b

Please sign in to comment.