rbdmap service failed but exit 1

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi!

I find a  rbd map service issue:
[root@dx-test ~]# systemctl status rbdmap
● rbdmap.service - Map RBD devices
   Loaded: loaded (/usr/lib/systemd/system/rbdmap.service; enabled; vendor preset: disabled)
   Active: active (exited) (Result: exit-code) since 六 2018-07-28 13:55:01 CST; 11min ago
  Process: 1459 ExecStart=/usr/bin/rbdmap map (code=exited, status=1/FAILURE)
 Main PID: 1459 (code=exited, status=1/FAILURE)

7月 28 13:55:01 dx-test.novalocal systemd[1]: Started Map RBD devices.
7月 28 13:55:01 dx-test.novalocal systemd[1]: Starting Map RBD devices...
7月 28 14:01:19 dx-test.novalocal systemd[1]: rbdmap.service: main process exited, code=exited, status=1/FAILURE
[root@dx-test ~]# echo $?
0

I am testing rbd map serive HA if ceph cluster down.

I shut down ceph cluster and monitor rbdmap service, it spend 6 mins starting and failed.

But it exits with 0 with $?.

For HA, i remove oneshot Type and add Restart=always as below:

[Unit]
Description=Map RBD devices

After=ceph.target network-online.target local-fs.target
Wants=ceph.target network-online.target local-fs.target

[Service]
EnvironmentFile=-/etc/sysconfig/ceph
Environment=RBDMAPFILE=/etc/ceph/rbdmap
RemainAfterExit=yes
ExecStart=/usr/bin/rbdmap map
ExecReload=/usr/bin/rbdmap map
ExecStop=/usr/bin/rbdmap unmap-all
Restart=always
RestartSec=3

[Install]
WantedBy=multi-user.target

But seems that Restart does not work. It still spends 6mins starting and failed, and when i start cluster, it also do nothing.

Is it a design bug?

_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux