saltstack-formulas / iscsi-formula

Manage iSCSI Target and Initiator via SaltStack (FreeBSD & GNU/Linux)
http://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html
Other
8 stars 7 forks source link

LIO config in pillar.example throws some errors #26

Closed noelmcloughlin closed 4 years ago

noelmcloughlin commented 4 years ago

The LIO example in the pillar.example has a few discrepencies.


[root@cent7 vagrant]# systemctl status target -l
● target.service - Restore LIO kernel target configuration
   Loaded: loaded (/usr/lib/systemd/system/target.service; enabled; vendor preset: disabled)
   Active: active (exited) since Fri 2019-09-20 09:22:14 PDT; 25s ago
  Process: 331 ExecStop=/usr/bin/targetctl clear (code=exited, status=0/SUCCESS)
  Process: 339 ExecStart=/usr/bin/targetctl restore (code=exited, status=0/SUCCESS)
 Main PID: 339 (code=exited, status=0/SUCCESS)

Sep 20 09:22:14 cent7 target[339]: 'name' not defined in fabricmodule 1, skipped
Sep 20 09:22:14 cent7 target[339]: 'wwn' not defined in target 0, skipped
Sep 20 09:22:14 cent7 target[339]: Could not find matching StorageObject for LUN 0, skipped
Sep 20 09:22:14 cent7 target[339]: Could not find matching StorageObject for LUN 1, skipped
Sep 20 09:22:14 cent7 target[339]: Could not find matching StorageObject for LUN 2, skipped
Sep 20 09:22:14 cent7 target[339]: Could not find matching StorageObject for LUN 3, skipped
Sep 20 09:22:14 cent7 target[339]: Could not find matching StorageObject for LUN 4, skipped
Sep 20 09:22:14 cent7 target[339]: 'port' field missing from a portal in TPG 2, skipped
Sep 20 09:22:14 cent7 target[339]: 'node_wwn' missing in node_acl, skipped
Sep 20 09:22:14 cent7 systemd[1]: Started Restore LIO kernel target configuration.
noelmcloughlin commented 4 years ago

Identical on Archlinux. Service starts but pillar data is incomplete.

* target.service - Restore LIO kernel target configuration
   Loaded: loaded (/usr/lib/systemd/system/target.service; enabled; vendor preset: disabled)
   Active: active (exited) since Sat 2019-09-21 06:35:37 AEST; 233ms ago
 Main PID: 5330 (code=exited, status=0/SUCCESS)
    Tasks: 0
   Memory: 0B
   CGroup: /system.slice/target.service

Sep 21 06:35:37 archlinux.vagrant.vm target[5330]: 'name' not defined in fabricmodule 1, skipped
Sep 21 06:35:37 archlinux.vagrant.vm target[5330]: 'wwn' not defined in target 0, skipped
Sep 21 06:35:37 archlinux.vagrant.vm target[5330]: Could not find matching StorageObject for LUN 0, skipped
Sep 21 06:35:37 archlinux.vagrant.vm target[5330]: Could not find matching StorageObject for LUN 1, skipped
Sep 21 06:35:37 archlinux.vagrant.vm target[5330]: Could not find matching StorageObject for LUN 2, skipped
Sep 21 06:35:37 archlinux.vagrant.vm target[5330]: Could not find matching StorageObject for LUN 3, skipped
Sep 21 06:35:37 archlinux.vagrant.vm target[5330]: Could not find matching StorageObject for LUN 4, skipped
Sep 21 06:35:37 archlinux.vagrant.vm target[5330]: 'port' field missing from a portal in TPG 2, skipped
Sep 21 06:35:37 archlinux.vagrant.vm target[5330]: 'node_wwn' missing in node_acl, skipped
Sep 21 06:35:37 archlinux.vagrant.vm systemd[1]: Started Restore LIO kernel target configuration.
noelmcloughlin commented 4 years ago

This is actually okay. The configuration is valid and sufficient for travis.