Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1117016

Summary: RFE: Unable to CSV import or export 'Access Policy' for Beaker hosts
Product: [Retired] Beaker Reporter: Keith Fryklund <kfryklun>
Component: inventoryAssignee: beaker-dev-list
Status: CLOSED WONTFIX QA Contact: tools-bugs <tools-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 0.16CC: aigao, asaha, dcallagh, rmancy
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-07-09 05:04:11 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 Keith Fryklund 2014-07-07 19:54:52 UTC
Description of problem:
I can't export/import 'Access Policy' rules for new Beaker hosts which creates a significant amount of additional work when adding systems in bulk to Beaker.

Version-Release number of selected component (if applicable):
Beaker Version 0.16.2

Steps to Reproduce:
1. Go to the beaker home page
2. Go to Admin > Export

Actual results:
No 'System Access Policy' option available

Comment 2 Dan Callaghan 2014-07-07 22:29:09 UTC
Can you use the bkr client in a bash loop? For example:

    while read fqdn ; do
        bkr policy-grant --system=$fqdn --permission=reserve --group=colonel
        bkr policy-grant --system=$fqdn --permission=edit_system --group=colonel
    done <new-systems.txt

We are trying to move towards using the bkr client rather than CSV files for data automation, since it is generally more flexible, simpler to use, and simpler for us to implement. Especially for something like system access policies which don't really map well to a tabular format like CSV.

Comment 3 Keith Fryklund 2014-07-08 14:29:29 UTC
(In reply to Dan Callaghan from comment #2)
> Can you use the bkr client in a bash loop? For example:
> 
>     while read fqdn ; do
>         bkr policy-grant --system=$fqdn --permission=reserve --group=colonel
>         bkr policy-grant --system=$fqdn --permission=edit_system
> --group=colonel
>     done <new-systems.txt
> 
> We are trying to move towards using the bkr client rather than CSV files for
> data automation, since it is generally more flexible, simpler to use, and
> simpler for us to implement. Especially for something like system access
> policies which don't really map well to a tabular format like CSV.

Awesome, I was unaware bkr client had the capability to do this.  I much prefer bkr client over CSV as well. Thank you for your help, feel free to close this ticket.

Comment 4 Dan Callaghan 2014-07-09 05:04:11 UTC
WONTFIX since bkr client is preferred over CSV.