shellfuncs | Python API to execute shell functions | Script Programming library
kandi X-RAY | shellfuncs Summary
kandi X-RAY | shellfuncs Summary
Python API to execute functions written in shell script.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Execute a shell function
- A context manager .
- Find a shell script .
- Return the version of the shell function .
- Set version .
- get attribute by name
- Execute a module .
- Initialize the class .
- Create a shell module .
shellfuncs Key Features
shellfuncs Examples and Code Snippets
Community Discussions
Trending Discussions on shellfuncs
QUESTION
I have a Linux Cluster based on Pacemaker(v1.1.18-11) and corosync(v2.4.3-2) setup on Centos 7.2 It is a Two nodes setup with nodes= DBHA (master) and DBFAILOVER (slave)
I have a resource Postgresql9 which uses this Resource agent: pgsql with slight variation
I am using the standard documentation to setup Postgres replication : PgSQL_Replicated_Cluster
After doing all step for master it still was not becoming master. Following error was shown in /var/log/cluster/corosync.log
Could not map name=dbha to a UUID
After debugging for a bit I found out that following command returns above error:
/usr/sbin/crm_attribute -l reboot -N "dbha" -n "Postgresql9-status" -v "STOP"
Where Nodename is calucated by:
NODENAME=$(ocf_local_nodename | tr '[A-Z]' '[a-z]')
where ocf_local_nodename() is from ocf-shellfuncs:
...ANSWER
Answered 2019-Jan-30 at 12:37It turns out that, pacemaker change the logic getting node names in crm_attribute
and left a bug while comparing node names.
This is fixed (7618c29) in the newer version of the pacemaker. Updating to latest patch fixed it for me.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install shellfuncs
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page