Closed juadk closed 4 years ago
Hi @juadk My apologies for not seeing this issue until now. Sorry.
The man page has good advice:
EXAMPLE CONFIGURATION Since tools generate this file, one good way to understand its format is to use a tool like targetcli to configure a target, then run saveconfig, and view the resulting json file.
Could you share what a manually generated saveconfig.json
file looks like with multiple targets? I tried to find some examples on the web without luck. This would be helpful to me.
Hi @noelmcloughlin, No worries for the delay. The file below is a configuration file for 5 devices (/dev/xvdd1 to /dev/xvdd5). saveconfig.txt As a workaround, I'm using a static saveconfig.json file for my project but this is not modular.
Hi @juadk The jinja macros need improvement. I'll make some free time later in May (too busy now) and introduce support for multiple luns and storage_objects.
Hello @juadk
Apologies for delay - I have a PR open to add this feature now. The pillar.example
includes the required YAML to generate this JSON file: saveconfig.json.txt which includes multiple targets/luns.
Fixed in #23 Should be merged shortly. You need to update your pillar data to get multiple targets/luns support.
:tada: This issue has been resolved in version 1.0.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:
Hi @noelmcloughlin , Thanks! I will give a try asap!
Hi, I wonder if there is a proper way to create more storage_objects in onetime. I tried some solutions but all failed, I have this pillar file:
I would like to add /dev/xvdd2 ==> sdb ==> lun1 and so one. Maybe I'm missing something here, do you have an idea?