{"action":"created","issue":{"url":"https://api.github.com/repos/dalibo/PAF/issues/8","repository_url":"https://api.github.com/repos/dalibo/PAF","labels_url":"https://api.github.com/repos/dalibo/PAF/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/dalibo/PAF/issues/8/comments","events_url":"https://api.github.com/repos/dalibo/PAF/issues/8/events","html_url":"https://github.com/dalibo/PAF/issues/8","id":143478875,"number":8,"title":"Test PAF is failed","user":{"login":"ARogovsky","id":6280830,"avatar_url":"https://avatars.githubusercontent.com/u/6280830?v=3","gravatar_id":"","url":"https://api.github.com/users/ARogovsky","html_url":"https://github.com/ARogovsky","followers_url":"https://api.github.com/users/ARogovsky/followers","following_url":"https://api.github.com/users/ARogovsky/following{/other_user}","gists_url":"https://api.github.com/users/ARogovsky/gists{/gist_id}","starred_url":"https://api.github.com/users/ARogovsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ARogovsky/subscriptions","organizations_url":"https://api.github.com/users/ARogovsky/orgs","repos_url":"https://api.github.com/users/ARogovsky/repos","events_url":"https://api.github.com/users/ARogovsky/events{/privacy}","received_events_url":"https://api.github.com/users/ARogovsky/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-03-25T11:07:45Z","updated_at":"2016-03-30T10:47:19Z","closed_at":null,"body":"Hi!\r\nI run test and it failed. Can you help me?\r\n```\r\nroot@a:~/PAF-v1.0.0/t# export PGDATA=/tmp/pgdata1 PGBIN=/usr/lib/postgresql/9.4/bin RESOURCE_NAME=pgsqld \r\nroot@a:~/PAF-v1.0.0/t#  ocft test -v pgsqlms\r\nInitializing 'pgsqlms' ...\r\nPGBIN: /usr/lib/postgresql/9.4/bin\r\nDone.\r\n\r\nStarting 'pgsqlms' case 0 'check validate-all':\r\nSetting agent environment:    export OCF_RESKEY_bindir=/usr/lib/postgresql/9.4/bin\r\nSetting agent environment:    export OCF_RESKEY_pgdata=/tmp/pgdata1\r\nSetting agent environment:    export OCF_RESOURCE_INSTANCE=pgsqld\r\nSetting agent environment:    export OCF_RESKEY_primary_node=\r\nRunning agent:                ./pgsqlms validate-all\r\nChecking return value:        OK. The return value 'OCF_SUCCESS' == 'OCF_SUCCESS'\r\n\r\nStarting 'pgsqlms' case 1 'check stopped monitor':\r\nSetting agent environment:    export OCF_RESKEY_bindir=/usr/lib/postgresql/9.4/bin\r\nSetting agent environment:    export OCF_RESKEY_pgdata=/tmp/pgdata1\r\nSetting agent environment:    export OCF_RESOURCE_INSTANCE=pgsqld\r\nSetting agent environment:    export OCF_RESKEY_primary_node=\r\nRunning agent:                ./pgsqlms monitor\r\nChecking return value:        OK. The return value 'OCF_NOT_RUNNING' == 'OCF_NOT_RUNNING'\r\n\r\nStarting 'pgsqlms' case 2 'check start':\r\nSetting agent environment:    export OCF_RESKEY_bindir=/usr/lib/postgresql/9.4/bin\r\nSetting agent environment:    export OCF_RESKEY_pgdata=/tmp/pgdata1\r\nSetting agent environment:    export OCF_RESOURCE_INSTANCE=pgsqld\r\nSetting agent environment:    export OCF_RESKEY_primary_node=\r\nRunning agent:                ./pgsqlms start\r\nChecking return value:        FAILED. The return value 'OCF_ERR_GENERIC' != 'OCF_SUCCESS'. See details below:\r\npgsqlms(default)[2900]: 2016/03/25_14:04:33  DEBUG: _runas: launching as \"postgres\" command \"/usr/lib/postgresql/9.4/bin/pg_isready -h /tmp -p 5432\"\r\n/tmp:5432 - no response\r\npgsqlms(default)[2900]: 2016/03/25_14:04:33  DEBUG: pgsql_monitor: instance \"default\" is not listening\r\npgsqlms(default)[2900]: 2016/03/25_14:04:33  DEBUG: _runas: launching as \"postgres\" command \"/usr/lib/postgresql/9.4/bin/pg_ctl -D /tmp/pgdata1 status\"\r\npg_ctl: no server running\r\npgsqlms(default)[2900]: 2016/03/25_14:04:33  DEBUG: _confirm_stopped: no postmaster process found for instance \"default\"\r\npgsqlms(default)[2900]: 2016/03/25_14:04:33  DEBUG: _controldata: instance \"default\" state is \"shut down\"\r\npgsqlms(default)[2900]: 2016/03/25_14:04:33  DEBUG: _confirm_stopped: instance \"default\" controldata indicates that the instance was propertly shut down\r\npgsqlms(default)[2900]: 2016/03/25_14:04:33  DEBUG: pgsql_start: instance \"default\" is not running, starting it as a secondary\r\npgsqlms(default)[2900]: 2016/03/25_14:04:33  DEBUG: _create_recovery_conf: get replication configuration from the template file \"/tmp/pgdata1/recovery.conf.pcmk\"\r\npgsqlms(default)[2900]: 2016/03/25_14:04:33  DEBUG: _create_recovery_conf: write the replication configuration to \"/tmp/pgdata1/recovery.conf\" file\r\npgsqlms(default)[2900]: 2016/03/25_14:04:33  DEBUG: _runas: launching as \"postgres\" command \"/usr/lib/postgresql/9.4/bin/pg_ctl -D /tmp/pgdata1 -w start\"\r\nwaiting for server to start....LOG:  database system was shut down at 2016-03-25 14:04:27 MSK\r\nLOG:  entering standby mode\r\nLOG:  consistent recovery state reached at 0/16A8378\r\nLOG:  record with zero length at 0/16A8378\r\nLOG:  database system is ready to accept read only connections\r\nFATAL:  could not connect to the primary server: could not connect to server: Connection refused\r\nIs the server running on host \"127.0.0.1\" and accepting\r\nTCP/IP connections on port 15432?\r\n\r\ndone\r\nserver started\r\npgsqlms(default)[2900]: 2016/03/25_14:04:34  DEBUG: _runas: launching as \"postgres\" command \"/usr/lib/postgresql/9.4/bin/pg_isready -h /tmp -p 5432\"\r\n/tmp:5432 - no response\r\npgsqlms(default)[2900]: 2016/03/25_14:04:34  DEBUG: pgsql_monitor: instance \"default\" is not listening\r\npgsqlms(default)[2900]: 2016/03/25_14:04:34  DEBUG: _runas: launching as \"postgres\" command \"/usr/lib/postgresql/9.4/bin/pg_ctl -D /tmp/pgdata1 status\"\r\npg_ctl: server is running (PID: 2930)\r\n/usr/lib/postgresql/9.4/bin/postgres \"-D\" \"/tmp/pgdata1\"\r\n2016/03/25_14:04:34  ERROR: _confirm_stopped: instance \"default\" is not listening, but the process referenced in postmaster.pid exists\r\n2016/03/25_14:04:34  ERROR: pgsql_start: instance \"default\" is not running as a slave (returned 1)\r\n\r\nStarting 'pgsqlms' case 3 'check double start':\r\nSetting agent environment:    export OCF_RESKEY_bindir=/usr/lib/postgresql/9.4/bin\r\nSetting agent environment:    export OCF_RESKEY_pgdata=/tmp/pgdata1\r\nSetting agent environment:    export OCF_RESOURCE_INSTANCE=pgsqld\r\nSetting agent environment:    export OCF_RESKEY_primary_node=\r\nERROR: './pgsqlms monitor' failed, the return code is 1.\r\nStarting 'pgsqlms' case 4 'check stop':\r\nSetting agent environment:    export OCF_RESKEY_bindir=/usr/lib/postgresql/9.4/bin\r\nSetting agent environment:    export OCF_RESKEY_pgdata=/tmp/pgdata1\r\nSetting agent environment:    export OCF_RESOURCE_INSTANCE=pgsqld\r\nSetting agent environment:    export OCF_RESKEY_primary_node=\r\nERROR: './pgsqlms monitor' failed, the return code is 1.\r\nStarting 'pgsqlms' case 5 'check double stop':\r\nSetting agent environment:    export OCF_RESKEY_bindir=/usr/lib/postgresql/9.4/bin\r\nSetting agent environment:    export OCF_RESKEY_pgdata=/tmp/pgdata1\r\nSetting agent environment:    export OCF_RESOURCE_INSTANCE=pgsqld\r\nSetting agent environment:    export OCF_RESKEY_primary_node=\r\nERROR: './pgsqlms monitor' failed, the return code is 1.\r\nStarting 'pgsqlms' case 6 'check slave monitor':\r\nSetting agent environment:    export OCF_RESKEY_bindir=/usr/lib/postgresql/9.4/bin\r\nSetting agent environment:    export OCF_RESKEY_pgdata=/tmp/pgdata1\r\nSetting agent environment:    export OCF_RESOURCE_INSTANCE=pgsqld\r\nSetting agent environment:    export OCF_RESKEY_primary_node=\r\nERROR: './pgsqlms monitor' failed, the return code is 1.\r\nStarting 'pgsqlms' case 7 'check promote':\r\nSetting agent environment:    export OCF_RESKEY_bindir=/usr/lib/postgresql/9.4/bin\r\nSetting agent environment:    export OCF_RESKEY_pgdata=/tmp/pgdata1\r\nSetting agent environment:    export OCF_RESOURCE_INSTANCE=pgsqld\r\nSetting agent environment:    export OCF_RESKEY_primary_node=\r\nERROR: './pgsqlms monitor' failed, the return code is 1.\r\nStarting 'pgsqlms' case 8 'check double promote':\r\nSetting agent environment:    export OCF_RESKEY_bindir=/usr/lib/postgresql/9.4/bin\r\nSetting agent environment:    export OCF_RESKEY_pgdata=/tmp/pgdata1\r\nSetting agent environment:    export OCF_RESOURCE_INSTANCE=pgsqld\r\nSetting agent environment:    export OCF_RESKEY_primary_node=\r\nERROR: './pgsqlms monitor' failed, the return code is 1.\r\nStarting 'pgsqlms' case 9 'check master monitor':\r\nSetting agent environment:    export OCF_RESKEY_bindir=/usr/lib/postgresql/9.4/bin\r\nSetting agent environment:    export OCF_RESKEY_pgdata=/tmp/pgdata1\r\nSetting agent environment:    export OCF_RESOURCE_INSTANCE=pgsqld\r\nSetting agent environment:    export OCF_RESKEY_primary_node=\r\nERROR: './pgsqlms monitor' failed, the return code is 1.\r\nStarting 'pgsqlms' case 10 'check demote':\r\nSetting agent environment:    export OCF_RESKEY_bindir=/usr/lib/postgresql/9.4/bin\r\nSetting agent environment:    export OCF_RESKEY_pgdata=/tmp/pgdata1\r\nSetting agent environment:    export OCF_RESOURCE_INSTANCE=pgsqld\r\nSetting agent environment:    export OCF_RESKEY_primary_node=\r\nERROR: './pgsqlms monitor' failed, the return code is 1.\r\nStarting 'pgsqlms' case 11 'check double demote':\r\nSetting agent environment:    export OCF_RESKEY_bindir=/usr/lib/postgresql/9.4/bin\r\nSetting agent environment:    export OCF_RESKEY_pgdata=/tmp/pgdata1\r\nSetting agent environment:    export OCF_RESOURCE_INSTANCE=pgsqld\r\nSetting agent environment:    export OCF_RESKEY_primary_node=\r\nERROR: './pgsqlms monitor' failed, the return code is 1.\r\nCleaning 'pgsqlms' ...\r\nDone.\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/dalibo/PAF/issues/comments/203375941","html_url":"https://github.com/dalibo/PAF/issues/8#issuecomment-203375941","issue_url":"https://api.github.com/repos/dalibo/PAF/issues/8","id":203375941,"user":{"login":"ARogovsky","id":6280830,"avatar_url":"https://avatars.githubusercontent.com/u/6280830?v=3","gravatar_id":"","url":"https://api.github.com/users/ARogovsky","html_url":"https://github.com/ARogovsky","followers_url":"https://api.github.com/users/ARogovsky/followers","following_url":"https://api.github.com/users/ARogovsky/following{/other_user}","gists_url":"https://api.github.com/users/ARogovsky/gists{/gist_id}","starred_url":"https://api.github.com/users/ARogovsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ARogovsky/subscriptions","organizations_url":"https://api.github.com/users/ARogovsky/orgs","repos_url":"https://api.github.com/users/ARogovsky/repos","events_url":"https://api.github.com/users/ARogovsky/events{/privacy}","received_events_url":"https://api.github.com/users/ARogovsky/received_events","type":"User","site_admin":false},"created_at":"2016-03-30T10:47:19Z","updated_at":"2016-03-30T10:47:19Z","body":"I thinking problem in timeout when server start, becouse msg ```done\r\nserver started``` it show after OCF_ERR_ARGS"}}