[ClusterLabs] Location not working
Andrei Borzenkov
arvidjaar at gmail.com
Mon Apr 10 07:48:58 EDT 2023
On Mon, Apr 10, 2023 at 2:19 PM Miro Igov <miro.igov at pharmya.com> wrote:
> Hello,
>
> I have a resource with location constraint set to:
>
>
>
> location intranet-ip_on_any_nginx intranet-ip \
>
> rule -inf: opa-nginx_1_active eq 0 \
>
> rule -inf: opa-nginx_2_active eq 0
>
>
>
> In syslog I see the attribute transition:
>
> Apr 10 12:11:02 intranet-test2 pacemaker-attrd[1511]: notice: Setting
> opa-nginx_1_active[intranet-test1]: 1 -> 0
>
>
>
> Current cluster status is :
>
>
>
> Node List:
>
> * Online: [ intranet-test1 intranet-test2 nas-sync-test1 nas-sync-test2 ]
>
>
>
> * stonith-sbd (stonith:external/sbd): Started intranet-test2
>
> * admin-ip (ocf::heartbeat:IPaddr2): Started nas-sync-test2
>
> * cron_symlink (ocf::heartbeat:symlink): Started
> intranet-test1
>
> * intranet-ip (ocf::heartbeat:IPaddr2): Started intranet-test1
>
> * mysql_1 (systemd:mariadb at intranet-test1): Started
> intranet-test1
>
> * mysql_2 (systemd:mariadb at intranet-test2): Started
> intranet-test2
>
> * nginx_1 (systemd:nginx at intranet-test1): Stopped
>
> * nginx_1_active (ocf::pacemaker:attribute): Stopped
>
> * nginx_2 (systemd:nginx at intranet-test2): Started intranet-test2
>
> * nginx_2_active (ocf::pacemaker:attribute): Started
> intranet-test2
>
> * php_1 (systemd:php5.6-fpm at intranet-test1): Started
> intranet-test1
>
> * php_2 (systemd:php5.6-fpm at intranet-test2): Started
> intranet-test2
>
> * data_1 (ocf::heartbeat:Filesystem): Stopped
>
> * data_2 (ocf::heartbeat:Filesystem): Started intranet-test2
>
> * nfs_export_1 (ocf::heartbeat:exportfs): Stopped
>
> * nfs_export_2 (ocf::heartbeat:exportfs): Started
> nas-sync-test2
>
> * nfs_server_1 (systemd:nfs-server at nas-sync-test1): Stopped
>
> * nfs_server_2 (systemd:nfs-server at nas-sync-test2): Started
> nas-sync-test2
>
>
>
> Failed Resource Actions:
>
> * nfs_server_1_start_0 on nas-sync-test1 'error' (1): call=95,
> status='complete', exitreason='', last-rc-change='2023-04-10 12:35:12
> +02:00', queued=0ms, exec=209ms
>
>
>
>
>
> Why intranet-ip is located on intranet-test1 while nginx_1_active is 0 ?
>
>
>
> # crm res constraint intranet-ip
>
>
> cron_symlink
> (score=INFINITY, id=c_cron_symlink_on_intranet-ip)
>
> * intranet-ip
>
> : Node
> nas-sync-test2
> (score=-INFINITY, id=intranet-ip_loc-rule)
>
> : Node
> nas-sync-test1
> (score=-INFINITY, id=intranet-ip_loc-rule)
>
>
>
> Why no constraint entry for intranet-ip_on_any_nginx location ?
>
>
>
It is impossible to answer based on those fragments of information you
provided. Full output of "crm config show" (or even better full CIB) may
give some hint.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clusterlabs.org/pipermail/users/attachments/20230410/2f3b793f/attachment-0001.htm>
More information about the Users
mailing list