hpe-storage / python-hpedockerplugin

HPE Native Docker Plugin
Apache License 2.0
36 stars 64 forks source link

Multipathd service not coming up. #692

Closed sneharai4 closed 5 years ago

sneharai4 commented 5 years ago

As per the documentation https://github.com/hpe-storage/python-hpedockerplugin/blob/master/docs/quick_start_guide.md#rhelcentos-73-or-later, when /etc/multipath.conf is created referring the doc guide, we get the below error to start multipathd service.

$ vi /etc/multipath.conf $ systemctl start multipathd $ systemctl status multipathd ● multipathd.service - Device-Mapper Multipath Device Controller Loaded: loaded (/lib/systemd/system/multipathd.service; enabled; vendor preset: enabled) Active: active (running) since Mon 2019-07-15 07:38:39 IST; 5s ago Process: 1349 ExecStartPre=/sbin/modprobe dm-multipath (code=exited, status=0/SUCCESS) Main PID: 1353 (multipathd) Status: "running" Tasks: 5 Memory: 2.2M CPU: 15ms CGroup: /system.slice/multipathd.service └─1353 /sbin/multipathd -d -s

Jul 15 07:38:39 CSSOSBE04-B09 systemd[1]: Starting Device-Mapper Multipath Device Controller... Jul 15 07:38:39 CSSOSBE04-B09 multipathd[1353]: missing '{' on line 1 of /etc/multipath.conf Jul 15 07:38:39 CSSOSBE04-B09 multipathd[1353]: invalid keyword '{' on line 2 of /etc/multipath.conf Jul 15 07:38:39 CSSOSBE04-B09 multipathd[1353]: missing '{' on line 7 of /etc/multipath.conf Jul 15 07:38:39 CSSOSBE04-B09 multipathd[1353]: invalid keyword '{' on line 8 of /etc/multipath.conf Jul 15 07:38:39 CSSOSBE04-B09 multipathd[1353]: missing '{' on line 9 of /etc/multipath.conf Jul 15 07:38:39 CSSOSBE04-B09 multipathd[1353]: invalid keyword '{' on line 10 of /etc/multipath.conf Jul 15 07:38:39 CSSOSBE04-B09 systemd[1]: Started Device-Mapper Multipath Device Controller. Jul 15 07:38:39 CSSOSBE04-B09 multipathd[1353]: path checkers start up

$ multipath -ll Jul 15 07:39:01 | missing '{' on line 1 of /etc/multipath.conf Jul 15 07:39:01 | invalid keyword '{' on line 2 of /etc/multipath.conf Jul 15 07:39:01 | missing '{' on line 7 of /etc/multipath.conf Jul 15 07:39:01 | invalid keyword '{' on line 8 of /etc/multipath.conf Jul 15 07:39:01 | missing '{' on line 9 of /etc/multipath.conf Jul 15 07:39:01 | invalid keyword '{' on line 10 of /etc/multipath.conf

Fix for this is to start the curly braces on the same line as below instead on a newline.

defaults {
    polling_interval 10
    max_fds 8192
}

devices {
    device {
        vendor                  "3PARdata"
        product                 "VV"
        no_path_retry           18
        features                "0"
        hardware_handler        "0"
        path_grouping_policy    multibus
        #getuid_callout         "/lib/udev/scsi_id --whitelisted --device=/dev/%n"
        path_selector           "round-robin 0"
        rr_weight               uniform
        rr_min_io_rq            1
        path_checker            tur
        failback                immediate
    }
}
sneharai4 commented 5 years ago

Fix in https://github.com/hpe-storage/python-hpedockerplugin/pull/693

sneharai4 commented 5 years ago

Fix merged.