ocft make fails always

Bug #1033470 reported by janl
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
resource-agents (Ubuntu)
Fix Released
Undecided
Unassigned
Precise
Won't Fix
Undecided
Unassigned

Bug Description

root@p1c2ppx01 /var/lib/resource-agents/ocft/cases # ocft make apache
Making 'apache':
ERROR: apache: line 21: Macro 'default_status' not found.

# ls /var/lib/resource-agents/ocft/cases
apache_macro.prepare apache_macro.required_args apache.preparse

Running ocft with bash -xv shows this:

+ '[' '!' -r /var/lib/resource-agents/ocft/cases/apache_macro.default_status ']'
+ parse_die 'Macro '\''default_status'\'' not found.'
+ local str
+ str='Macro '\''default_status'\'' not found.'
+ die 'apache: line 21: Macro '\''default_status'\'' not found.'
+ local str
+ str='apache: line 21: Macro '\''default_status'\'' not found.'
+ echo 'ERROR: apache: line 21: Macro '\''default_status'\'' not found.'

But that file is not present. It seems CASE-BLOCKs are not saved to file as expected?

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: resource-agents 1:3.9.2-5ubuntu4.1
ProcVersionSignature: Ubuntu 3.2.0-27.43-generic 3.2.21
Uname: Linux 3.2.0-27-generic x86_64
ApportVersion: 2.0.1-0ubuntu11
Architecture: amd64
Date: Mon Aug 6 12:37:22 2012
InstallationMedia: Ubuntu-Server 12.04 LTS "Precise Pangolin" - Release amd64 (20120424.1)
SourcePackage: resource-agents
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
janl (janl) wrote :
Revision history for this message
Rafael David Tinoco (rafaeldtinoco) wrote :

In focal:

(c)rafaeldtinoco@reviews:.../share/resource-agents/ocft$ sudo ./runocft
Making 'apache':
    - case 0: check base env
    - case 1: check base env: set non-existing OCF_RESKEY_statusurl
    - case 2: check base env: set non-existing OCF_RESKEY_configfile
    - case 3: normal start
    - case 4: normal stop
    - case 5: double start
    - case 6: double stop
    - case 7: running monitor
    - case 8: not running monitor
    - case 9: unimplemented command
Initializing 'apache' ...
Done.

apache: check base env - OK.
apache: check base env: set non-existing OCF_RESKEY_statusurl - OK.
apache: check base env: set non-existing OCF_RESKEY_configfile - OK.
apache: normal start - OK.
apache: normal stop - OK.
apache: double start - OK.
apache: double stop - OK.
apache: running monitor - OK.
apache: not running monitor - OK.
apache: unimplemented command - OK.

Revision history for this message
Rafael David Tinoco (rafaeldtinoco) wrote :

Thank you for taking the time to report this bug. In an effort to keep an
up-to-date and valid list of bugs to work on, I have reviewed this report
to verify it still requires effort and occurs on an Ubuntu release in
standard support, and it does not.

It is unfortunate that we were unable to resolve this defect, however
there appears to be no further action possible at this time. I am
therefore moving the bug to 'Incomplete'. If you disagree or have
new information, we would be grateful if you could please add a comment
stating why and then change the status of the bug to 'New'.

Changed in resource-agents (Ubuntu Precise):
status: New → Won't Fix
Changed in resource-agents (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.