Ensure only one manila-ganesha unit is running services in HA
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Manila-Ganesha Charm |
Fix Released
|
High
|
Felipe Reyes | ||
charm-interface-hacluster |
Fix Released
|
High
|
Felipe Reyes |
Bug Description
The manila-ganesha charm supports active/passive HA. This is done by co-locating manila-share and nfs-ganesha systemd services on the same unit, and ensuring that those services are only running on the master unit with the VIP. Once an HA deployment is complete, pacemaker will ensure that only one unit is running the services.
If a second unit starts the services while the first is connected to CephFS, the first will be evicted and its session state corrupted.
The manila-ganesha charm ensures that the services are disabled/stopped until the HA cluster setup is complete. It also overrides service_(re)start methods so that they cooperate with pacemaker and allow pacemaker to control any service starts. The goal being to prevent a second unit from starting services while the first is connected to CephFS.
Once HA setup is complete, pacemaker will ensure that only one unit has running services. However, there is still a risk that a systemd service is restarted manually by a user or other means.
Can the systemd unit file or ExecStart, ExecStartPre, ExecStartPost script be updated to better handle this scenario?
affects: | charms.openstack → charm-manila-ganesha |
Changed in charm-manila-ganesha: | |
status: | New → Triaged |
importance: | Undecided → Wishlist |
importance: | Wishlist → Medium |
The duplicated bug[1] has a slightly different scenario than:
> However, there is still a risk that a systemd service is restarted manually by a user or other means.
But the service is running on multiple units after the initial deployment. And a workaround is to run the following command as a post-deployment task: ganesha "systemctl stop manila-share nfs-ganesha"
$ juju run --app=manila-
and double check the pacemaker status after that.
[1] https:/ /bugs.launchpad .net/charm- manila- ganesha/ +bug/1936455