ClusterLabs / OCF-spec

http://standards.clusterlabs.org
20 stars 11 forks source link

Resource agents vs next/ra-api.ng #10

Closed marxsk closed 6 years ago

marxsk commented 6 years ago

In order to map inconsistencies, I'm creating this bug to follow what should be fixed:

@oalbrigt please comment what is useful

krig commented 6 years ago

verify-all vs. validate-all is a strange case. The document and most of the resource agents use validate-all (not all though), and the XML schema uses verify-all. Is one from rgmanager and the other from Linux-HA perhaps?

marxsk commented 6 years ago

I'm happy to switch to validate-all, we have it almost everywhere

marxsk commented 6 years ago

Should actions be marked with 'replaced-by' as parameters to properly rename migrate_to/migrate_from/status ?

oalbrigt commented 6 years ago

I guess we'll just update the case statements for the existing agents to e.g. "migrate-to|migrate_to" to avoid issues for users upgrading.

oalbrigt commented 6 years ago

...and update the metadata to only show the new actions.

kgaillot commented 6 years ago

More RA vs OCF1.0 inconsistencies to clear up:

I'm assuming this issue is just for reconciling existing RA usage with the OCF standard, not proposing new features, which would be much longer :)

marxsk commented 6 years ago

Yes, this is only to create version 1.1 without any real extensions which will follow current state as much as possible. Although it is quite likely that we will have to do quite minor changes in order to cover all kind of existing resource agents.

krig commented 6 years ago

For stateful (master/slave) clones, we need to standardize everything ... even the promote/demote/notify actions are not in the spec. I'd like to take the opportunity to change the terminology, and use "stateful" instead of "master/slave", "promoted" instead of "master", and "unpromoted" instead of "slave".

Can I suggest "primary" and "secondary"? In particular "unpromoted" sounds awkward.

kgaillot commented 6 years ago

For stateful (master/slave) clones, we need to standardize everything ... even the promote/demote/notify actions are not in the spec. I'd like to take the opportunity to change the terminology, and use "stateful" instead of "master/slave", "promoted" instead of "master", and "unpromoted" instead of "slave".

Can I suggest "primary" and "secondary"? In particular "unpromoted" sounds awkward.

I'm OK with primary/secondary. The reason I didn't suggest it initially was to avoid terms that were already associated with particular software, to emphasize that the cluster functionality is application-agnostic. (master/slave, master/worker, master/replicant, primary/secondary, primary/backup)

I think "promoted" works b/c that's all pacemaker really cares about. "demoted" would be OK but suggests something was actively done whereas it may have just been left in the not-promoted state. "default" or "started" could also work.

I'll bring this up on the users@clusterlabs.org mailing list for discussion, since everyone is likely to have an opinion :)

krig commented 6 years ago

"promoted" and "started" seem sensible to me, but yes, I'm sure there will be more opinons ;)

marxsk commented 6 years ago

As @oalbrigt tested, all our resource agents work with -next release without any change.