Open nrwahl2 opened 6 years ago
I am likewise unsure here whether the issue should be against crmsh (for metadata parsing) or fence-agents (for metadata output).
Possibly both.. the metadata does seem incorrect there, plug probably shouldn't be marked as required. But the other problem is that crmsh lacks support for the deprecated
attribute. This will need fixing regardless.
I'm wandering where does these attributes(required|deprecated|obsoletes) defined? Can you give me a link?:) @nrwahl2
@liangxin1300 Are you asking where the meaning is defined or where these attributes are attached to the fence agent? They're attached to the fence agent's attributes in the metadata.
I'm unable to find definitions in the fence-agents
repo including the developer doc. However, two key occurrences in the code:
Metadata spec: https://github.com/ClusterLabs/fence-agents/blob/master/lib/metadata.rng#L17-L23
fencing.py
- determines whether attribute has deprecated
, obsoletes
, or neither:
https://github.com/ClusterLabs/fence-agents/blob/master/lib/fencing.py.py#L581-L587
hi @nrwahl2 , krig has created #322 last year, maybe a solution for this.
If a resource's metadata contains a deprecated param (
deprecated="1"
) and a new one that obsoletes it, and both params haverequired="1"
, thencrm configure
requires both parameters. This is unexpected behavior. Only one or the other param should be specified in the CIB.Example/reproducer:
If the problem is that the
deprecated
andobsoletes
params should not both haverequired="1"
, then I can open an issue or BZ againstfence-agents
.A secondary, closely related concern is that this tool requires
plug
, whenpcmk_host_map
should take care of that requirement. I am likewise unsure here whether the issue should be against crmsh (for metadata parsing) or fence-agents (for metadata output).