Bug 598781
Summary: | [RFE] Preferred asset group ordering in autopick | ||
---|---|---|---|
Product: | [Retired] Beaker | Reporter: | Jeff Burke <jburke> |
Component: | scheduler | Assignee: | beaker-dev-list |
Status: | CLOSED WONTFIX | QA Contact: | tools-bugs <tools-bugs> |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | 0.5 | CC: | bpeck, cbouchar, mcsontos, pbunyan, tools-bugs, xtian |
Target Milestone: | --- | Keywords: | FutureFeature, Reopened |
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | GroupModel | ||
Fixed In Version: | Doc Type: | Enhancement | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2020-11-19 22:31:50 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | 1127129 | ||
Bug Blocks: |
Description
Jeff Burke
2010-06-02 02:59:26 UTC
I will have to push this to 0.5.60 since I realize we need the following implemented: # Order systems by owner, then Group, finally shared for everyone. # FIXME Make this configurable, so that a user can specify their scheduling # preference from the job. # <recipe><scheduler method='random|fair|owner|group'/></recipe> Right now we have fair implemented and thats all. This change would allow jobs to be submitted with "random" and get a truly random selection. I've reworked this a little.. <autopick random="True|1|False|0"> <pool>owner</pool> <!-- add systems that you are the owner of --> <pool>groups</pool> <!-- add systems that you have access via group membership --> <pool>Public</pool> <!-- add systems that are shared to everyone --> </autopick> <!-- Pick me any system randomly from any of the pools --> <autopick random="True"> <pool>owner</pool> <pool>groups</pool> <pool>Public</pool> </autopick> <!-- First try to find a system I'm the owner of, then a system that is a memeber of my groups --> <autopick> <pool>owner</pool> <pool>groups</pool> </autopick> <!-- Pick me a system I own randomly --> <autopick random="1"> <pool>owner</pool> </autopick> Could it be made to work with particular group as a parameter? It would be useful for people who are members of multiple groups as I am, e.g. I do not want to run some tests on rare machines dedicated to storage testing. (IIUC I could use "Public" in this case, but that makes the pool smaller.) Yes, But I feel that belongs in the <hostRequires/> section. (In reply to comment #2) > <!-- First try to find a system I'm the owner of, then a system that is a > memeber of my groups --> > <autopick> > <pool>owner</pool> > <pool>groups</pool> > </autopick> This one does not work. `autopick' element without `random' attribute fails with following message: <Fault 1: "exceptions.AttributeError:'bool' object has no attribute 'lower'"> IMHO it should work: autopick is used for randomization as well as for picking pools and without the attribute I do not care about randomization and system should provide a reasonable default according to its settings/preference. Shall I open a new BZ or will we name it a feature? It does not work as advertised...
I have tried:
> <autopick random="1">
> <pool>Public</pool>
> </autopick>
and it:
- still uses machines owned by a group
- it's not included in job-results and is not clone-able
Only the random part was implemented. The pools of systems was never done, I just wanted to make sure what ever we did implement made sense for that as well. Bulk reassignment of issues as Bill has moved to another team. This is on hold until we evaluate the possibility of switching to a more capable scheduling engine. |