Bug 1010355
| Summary: | like operator support is missing in bkr.client | ||
|---|---|---|---|
| Product: | [Retired] Beaker | Reporter: | Miroslav Hradílek <mhradile> |
| Component: | command line | Assignee: | Dan Callaghan <dcallagh> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | tools-bugs <tools-bugs> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 0.14 | CC: | aigao, dcallagh, dowang, ebaak, lzachar, qwan, rjoost, sgao, tools-bugs |
| Target Milestone: | 21.1 | Keywords: | FutureFeature, NeedsTestCase, Patch |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Enhancement | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2015-10-21 03:25:22 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Miroslav Hradílek
2013-09-20 15:13:12 UTC
(In reply to Miroslav Hradílek from comment #0) > Steps to Reproduce: > bkr workflow-tomorrow 6.4 x86_64 Server --dryrun --hostrequire 'devicelikeipmi' That looks a bit bizarre. We can split on '\s+like\s+' instead. bkr workflow-tomorrow 6.4 x86_64 Server --dryrun --hostrequire 'device like ipmi' Note that you can already (since 0.17) pass raw XML to --hostrequire: bkr workflow-simple --hostrequire '<hostname op="like" value="%.khw.%"/>' ... *** Bug 1240974 has been marked as a duplicate of this bug. *** (In reply to Dan Callaghan from comment #2) > bkr workflow-tomorrow 6.4 x86_64 Server --dryrun --hostrequire 'device like ipmi' Actually that won't have any useful effect either. The <device/> host filter is special, it does not actually have a value="" attribute, it has separate XML attributes for each attribute of the device, so you would use it like this: <device op="like" description="%IPMI%"/> There's no way to represent that indirectly using --hostrequire, you can only pass the raw XML: --hostrequire '<device op="like" description="%IPMI%"/>' A better example (from bug 1240974) would be: --hostrequire 'hostname like %.khw.%' which will become: <hostname op="like" value="%.khw.%"/> This bug fix is included in beaker-client-21.1-0.git.3.58733b1 which is currently available for testing here: https://beaker-project.org/nightlies/release-21/ Beaker 21.1 has been released. |