Discussion:
[Linux-ha-dev] crm shell: Inconsistent configure for non-existing objects
Ulrich Windl
2013-04-17 06:39:30 UTC
Permalink
Hi!

In SLES11 SP2 when I try to display ("show") a resource group that does not exist, there is no error message, but when I try to delete a non-existing object, I get an error message. That's inconsistent: Trying to display an object that does not exist should also display an error.

Example:
crm(live)configure# show grp_v02
crm(live)configure# delete grp_v02
ERROR: object grp_v02 does not exist
crm(live)configure# show grp_v02xy
crm(live)configure# show grp_v0s
crm(live)configure#

Regards,
Ulrich
Dejan Muhamedagic
2013-04-17 08:55:55 UTC
Permalink
Hi,
Post by Ulrich Windl
Hi!
In SLES11 SP2 when I try to display ("show") a resource group that does not exist, there is no error message, but when I try to delete a non-existing object, I get an error message. That's inconsistent: Trying to display an object that does not exist should also display an error.
crm(live)configure# show grp_v02
crm(live)configure# delete grp_v02
ERROR: object grp_v02 does not exist
crm(live)configure# show grp_v02xy
crm(live)configure# show grp_v0s
crm(live)configure#
There's a somewhat technical explanation why this happens, but
obviously needs to be somehow fixed.

Thanks for reporting.

Cheers,

Dejan
Post by Ulrich Windl
Regards,
Ulrich
_______________________________________________________
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/
Loading...