Description of problem: upgraded my OSP 16.2 stack now each time I ssh to the director I get: -bash: 2022-04-04: command not found Version-Release number of selected component (if applicable): python3-openstackclient-4.0.2-2.20220111042153.54bf2c0.el8ost.noarch How reproducible: all the time Steps to Reproduce: 1. sudo dnf reinstall python3-openstackclient4.0.2-2.20220111042153.54bf2c0.el8ost.noarch 2. tail /etc/bash_completion.d/osc.bash_completion 3. see garbage Actual results: $ tail /etc/bash_completion.d/osc.bash_completion if [ -z "${completed}" ] ; then COMPREPLY=( $( compgen -f -- "$cur" ) $( compgen -d -- "$cur" ) ) else COMPREPLY=( $(compgen -W "${completed}" -- ${cur}) ) fi return 0 } complete -F _openstack openstack 2022-04-04 20:08:04.813 645220 INFO osc_lib.shell [-] END return value: 0 Expected results: /etc/bash_completion.d/osc.bash_completion should not contain garbage Additional info: package spec reads: %post -n python%{pyver}-%{sname} mkdir -p /etc/bash_completion.d openstack complete | sed -n '/_openstack/,$p' > /etc/bash_completion.d/osc.bash_completion however I read $ openstack complete 2>/dev/null | tail if [ -z "${completed}" ] ; then COMPREPLY=( $( compgen -f -- "$cur" ) $( compgen -d -- "$cur" ) ) else COMPREPLY=( $(compgen -W "${completed}" -- ${cur}) ) fi return 0 } complete -F _openstack openstack 2022-04-04 20:17:22.149 666022 INFO osc_lib.shell [-] END return value: 0 there is one line there to remove.
I don't see that with a fresh installation with same openstackclient version. May be it's left behind for you from before? [stack@undercloud-0 ~]$ rpm -qa | grep python3-openstackclient python3-openstackclient-4.0.2-2.20220111042153.54bf2c0.el8ost.noarch [stack@undercloud-0 ~]$ tail /etc/bash_completion.d/osc.bash_completion done if [ -z "${completed}" ] ; then COMPREPLY=( $( compgen -f -- "$cur" ) $( compgen -d -- "$cur" ) ) else COMPREPLY=( $(compgen -W "${completed}" -- ${cur}) ) fi return 0 } complete -F _openstack openstack
Sorry I missed your comment hmmm I have different stacks,and they all have this issue (running "openstack complete" always end with an INFO log). Going to check if I can track what is adding the log. Maybe I have "INFO" logs coming from somewhere
so it comes from tripleoclient (python3-tripleoclient-12.6.1-2.20220114104841.el8ost.noarch) it seems. under /usr/lib/python3.6/site-packages/tripleoclient/v1 there are a couple of files setting the logging, like overcloud_external_update.py: CONF = cfg.CONF logging.register_options(CONF) logging.setup(CONF, '') commenting these 3 lines in files: overcloud_update.py overcloud_upgrade.py overcloud_admin.py overcloud_external_update.py overcloud_external_upgrade.py tripleo_upgrade.py removes the INFO message. Could you check if you reproduce after installing python3-tripleoclient? Thanks
so this is the sequence that breaks it: 1- install python3-openstackclient 2- install python3-tripleoclient 3- reinstall or update python3-openstackclient
OK, I suspect
*** Bug 2076667 has been marked as a duplicate of this bug. ***
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 (Release of components for Red Hat OpenStack Platform 16.2.4), 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-2022:8794