Description of problem:
pcs allows you to specify non-existent resource agent.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. pcs resource create dummystateful nonsense op monitor interval="5s"
Full list of resources:
dummystateful (ocf::heartbeat:nonsense): Stopped
pcs should catch this error while parsing the arguments. As it can already provide the list of resources and providers, it could filter the input against them to see if obvious mistake has not been made.
If error is detected, it should be printed (like "Specified resource is not valid, use pcs resource agents for a full list") and exit code should be non-zero.
Marking with docs_scoped - as this issue will not be documented in the Virtualization Administration Guide for RHEL 6.5
[root@ask-02 ~]# pcs -f temp.xml resource create dummystateful nonsense op monitor interval="5s"
Error: Unable to create resource 'nonsense', it is not installed on this system (use --force to override)
[root@ask-02 ~]# echo $?
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.