Description of problem: If not install kubectl command, apb refresh return exception when executed against a remotely hosted cluster Version-Release number of selected component (if applicable): Version: apb-1.2.10 How reproducible: Always Steps to Reproduce: 1. run "apb refresh" remotely 2. 3. Actual results: [szh@localhost ~]$ apb refresh Deleting clusterserviceclasses Exception occurred! Command 'kubectl delete clusterserviceclass /bin/sh: kubectl: command not found' returned non-zero exit status 127 Expected results: run "apb refresh" remotely return successful if not install kubectl command. Additional info:
We did not intend to include this CLI option for the next release so I will simply remove `apb refresh` as a valid option.
https://github.com/ansibleplaybookbundle/ansible-playbook-bundle/pull/301
verified successful. [szh@localhost ~]$ apb version Version: apb-1.2.12 [szh@localhost ~]$ apb -h usage: apb [-h] [--debug] [--project BASE_PATH] [--token AUTH_TOKEN] {relist,run,help,test,prepare,setup,bootstrap,list,remove,init,version,build,push,serviceinstance} ... APB tooling for assisting in building and packaging APBs. optional arguments: -h, --help show this help message and exit --debug Enable debug output --project BASE_PATH, -p BASE_PATH Specify a path to your project. Defaults to CWD. --token AUTH_TOKEN Specify OpenShift auth token to be used subcommand: {relist,run,help,test,prepare,setup,bootstrap,list,remove,init,version,build,push,serviceinstance} relist Relist the APBs available within the Service Catalog run Run APB help Display this help message test Test the APB prepare Prepare an ansible-container project for APB packaging setup Initialize OpenShift with APB development environment bootstrap Tell Ansible Service Broker to reload APBs from the container repository list List APBs from the target Ansible Service Broker remove Remove APBs from the target Ansible Service Broker init Initialize the directory for APB development version Get current version of APB tool build Build and package APB container push Push local APB spec to an Ansible Service Broker serviceinstance Create a ServiceInstance template based on apb.yaml [szh@localhost ~]$ apb refresh usage: apb [-h] [--debug] [--project BASE_PATH] [--token AUTH_TOKEN] {relist,run,help,test,prepare,setup,bootstrap,list,remove,init,version,build,push,serviceinstance} ... apb: error: argument subcommand: invalid choice: 'refresh' (choose from 'relist', 'run', 'help', 'test', 'prepare', 'setup', 'bootstrap', 'list', 'remove', 'init', 'version', 'build', 'push', 'serviceinstance')
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2018:1816