Bug 1458824

Summary: "openstack complete" no longer returns bash completion functions
Product: Red Hat OpenStack Reporter: Chris Janiszewski <cjanisze>
Component: python-openstackclientAssignee: Julie Pichon <jpichon>
Status: ASSIGNED --- QA Contact: Shai Revivo <srevivo>
Severity: medium Docs Contact:
Priority: medium    
Version: 11.0 (Ocata)CC: apevec, belwell, lhh, srevivo
Target Milestone: Upstream M2Keywords: Triaged
Target Release: 13.0 (Queens)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description Chris Janiszewski 2017-06-05 10:43:56 EDT
Description of problem:
"openstack complete" no longer returns bash completion functions in RH OSP11. It still works on OSP10

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

How reproducible:
Every time



Steps to Reproduce:
1. Log on to undercloud as stack
2. source stackrc
3. openstack complete

Actual results:
[stack@undercloud ~]$ openstack complete
'endpoint'


Expected results:
[stack@chrisj-undercloud ~]$ openstack complete
_openstack()
{
  local cur prev words
  COMPREPLY=()
  _get_comp_words_by_ref -n : cur prev words

  # Command data:
  cmds='acl action address aggregate alarm alarm-history alarming availability backup baremetal ca catalog category claim class-schema command complete compute configuration console container cron dataprocessing deployment dns ec2 endpoint environment extension flavor floating help host hypervisor image ip keypair limits messaging metric module network object orchestration overcloud package pool port project ptr queue quota recordset resource role router secret security server service snapshot software stack static-action subnet subscription task tld token undercloud usage user volume workbook workflow zone'
  cmds_acl='delete get submit user'
  cmds_acl_delete='-h --help'
  cmds_acl_get='-h --help -f --format -c --column --max-width --noindent --quote'
  cmds_acl_submit='-h --help -f --format -c --column --max-width --noindent --quote --user -u --project-access --no-project-access --operation-type -o'
  cmds_acl_user='add remove'
  cmds_acl_user_add='-h --help -f --format -c --column --max-width --noindent --quote --user -u --project-access --no-project-access --operation-type -o'
  cmds_acl_user_remove='-h --help -f --format -c --column --max-width --noindent --quote --user -u --project-access --no-project-access --operation-type -o'
  cmds_action='definition execution'
......
and the rest of it

Additional info: