Hi, On Mon, Dec 07, 2009 at 01:01:19PM +0100, Colin wrote: > On Mon, Dec 7, 2009 at 12:27 PM, Andrew Beekhof <[email protected]> wrote: > > On Mon, Dec 7, 2009 at 12:14 PM, Colin <[email protected]> wrote: > >> On Mon, Dec 7, 2009 at 12:07 PM, Andrew Beekhof <[email protected]> wrote: > >>> On Mon, Dec 7, 2009 at 11:10 AM, Colin <[email protected]> wrote: > >>>>> # crm configure delete <resource-id> > >>>> > >>>> Thanks, that did the trick — it recursively deletes everything > >>>> connected to the resource. > >>>> > >>>> Wonder why crm_resource —delete doesn't do the same thing… > >>> > >>> Its not trying to be clever. > >>> It does only what you ask it to do. > >> > >> So what is the conceptual difference between asking to delete a > >> resource via "crm configure delete" and via "crm_resource —delete"? > > > > One magically deletes everything. > > The other just tries to delete what you tell it to. > > Let me rephrase that question: Why do two interfaces for one and the > same thing behave differently? There must be some conceptional > rationale...
The crm shell is higher level. It uses cibadmin to manage CIB elements. cibadmin is not aware of the relations between resources and constraints. Thanks, Dejan > >> (Is there any case where the latter will actually work?) > > > > Yes, when there are no constraints referencing the resource. > > Ok, it's the constraints, not the dynamic part of the cib. > > Thanks, Colin > > _______________________________________________ > Pacemaker mailing list > [email protected] > http://oss.clusterlabs.org/mailman/listinfo/pacemaker _______________________________________________ Pacemaker mailing list [email protected] http://oss.clusterlabs.org/mailman/listinfo/pacemaker
