Bug 1322579

Summary: Swift client produces error "Providing attr without filter_value to get_urls() is '" in stdout
Product: Red Hat OpenStack Reporter: Dan Yasny <dyasny>
Component: python-swiftclientAssignee: Pete Zaitcev <zaitcev>
Status: CLOSED ERRATA QA Contact: Mike Abrams <mabrams>
Severity: low Docs Contact:
Priority: unspecified    
Version: 8.0 (Liberty)CC: derekh, dyasny, jruzicka, llasmith, mabrams, pgrist, scohen, sgotliv, srevivo, tshefi, zaitcev
Target Milestone: ---Keywords: Reopened, ZStream
Target Release: 8.0 (Liberty)   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: python-swiftclient-2.6.0-2.el7ost Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-10-26 13:42:14 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:

Description Dan Yasny 2016-03-30 19:28:30 UTC
Description of problem:
Every call to swift produces an annoying output in stdout. Other modules have no such problem:
[stack@instack ~]$ swift list --lh
/usr/lib/python2.7/site-packages/keystoneclient/service_catalog.py:196: UserWarning: Providing attr without filter_value to get_urls() is deprecated as of the 1.7.0 release and may be removed in the 2.0.0 release. Either both should be provided or neither should be provided.
  'Providing attr without filter_value to get_urls() is '

[stack@instack ~]$ swift stat
/usr/lib/python2.7/site-packages/keystoneclient/service_catalog.py:196: UserWarning: Providing attr without filter_value to get_urls() is deprecated as of the 1.7.0 release and may be removed in the 2.0.0 release. Either both should be provided or neither should be provided.
  'Providing attr without filter_value to get_urls() is '
        Account: AUTH_7d4af21e57314ca3ac922c859557d977
     Containers: 0
        Objects: 0
          Bytes: 0
X-Put-Timestamp: 1459363911.73865
    X-Timestamp: 1459363911.73865
     X-Trans-Id: tx51bf6137b3744149918f7-0056fc2047
   Content-Type: text/plain; charset=utf-8

[stack@instack ~]$ nova list
+----+------+--------+------------+-------------+----------+
| ID | Name | Status | Task State | Power State | Networks |
+----+------+--------+------------+-------------+----------+
+----+------+--------+------------+-------------+----------+

[stack@instack ~]$ neutron net-list



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

python-swiftclient-2.6.0-1.el7ost.noarch
openstack-aodh-listener-1.1.2-1.el7ost.noarch
openstack-ironic-common-4.2.2-4.el7ost.noarch
openstack-nova-compute-12.0.2-4.el7ost.noarch
openstack-neutron-ml2-7.0.1-14.el7ost.noarch
openstack-aodh-api-1.1.2-1.el7ost.noarch
openstack-heat-api-5.0.1-4.el7ost.noarch
openstack-swift-proxy-2.5.0-2.el7ost.noarch
openstack-selinux-0.6.58-1.el7ost.noarch
openstack-aodh-evaluator-1.1.2-1.el7ost.noarch
openstack-ceilometer-collector-5.0.2-2.el7ost.noarch
openstack-ceilometer-api-5.0.2-2.el7ost.noarch
openstack-heat-engine-5.0.1-4.el7ost.noarch
openstack-swift-container-2.5.0-2.el7ost.noarch
openstack-neutron-common-7.0.1-14.el7ost.noarch
openstack-ceilometer-common-5.0.2-2.el7ost.noarch
openstack-nova-conductor-12.0.2-4.el7ost.noarch
openstack-keystone-8.0.1-1.el7ost.noarch
openstack-nova-cert-12.0.2-4.el7ost.noarch
openstack-ironic-conductor-4.2.2-4.el7ost.noarch
openstack-puppet-modules-7.0.17-1.el7ost.noarch
openstack-utils-2014.2-1.el7ost.noarch
openstack-neutron-7.0.1-14.el7ost.noarch
openstack-tripleo-heat-templates-kilo-0.8.14-1.el7ost.noarch
openstack-tripleo-0.0.7-1.el7ost.noarch
openstack-aodh-notifier-1.1.2-1.el7ost.noarch
openstack-ceilometer-central-5.0.2-2.el7ost.noarch
openstack-tripleo-puppet-elements-0.0.5-1.el7ost.noarch
openstack-ironic-inspector-2.2.5-2.el7ost.noarch
openstack-neutron-openvswitch-7.0.1-14.el7ost.noarch
openstack-heat-api-cloudwatch-5.0.1-4.el7ost.noarch
openstack-swift-plugin-swift3-1.9-1.el7ost.noarch
openstack-swift-2.5.0-2.el7ost.noarch
openstack-ironic-api-4.2.2-4.el7ost.noarch
openstack-heat-common-5.0.1-4.el7ost.noarch
openstack-swift-account-2.5.0-2.el7ost.noarch
openstack-tripleo-heat-templates-0.8.14-1.el7ost.noarch
openstack-ceilometer-notification-5.0.2-2.el7ost.noarch
openstack-tripleo-image-elements-0.9.9-1.el7ost.noarch
openstack-ceilometer-polling-5.0.2-2.el7ost.noarch
openstack-heat-templates-0-0.1.20151019.el7ost.noarch
openstack-tripleo-common-0.3.1-1.el7ost.noarch
openstack-ceilometer-alarm-5.0.2-2.el7ost.noarch
openstack-nova-scheduler-12.0.2-4.el7ost.noarch
openstack-nova-api-12.0.2-4.el7ost.noarch
openstack-aodh-common-1.1.2-1.el7ost.noarch
openstack-nova-common-12.0.2-4.el7ost.noarch
openstack-heat-api-cfn-5.0.1-4.el7ost.noarch
openstack-swift-object-2.5.0-2.el7ost.noarch
openstack-glance-11.0.1-4.el7ost.noarch
python-openstackclient-1.7.2-1.el7ost.noarch

How reproducible:
always

Steps to Reproduce:
1. deploy OSP8 - I used OSP-director and today's puddle (30-04-2016) with a standalone swift node
2. source openstackrc
3. try to run a swift command

Actual results:
see above

Expected results:
normal output, no warnings/errors

Additional info:
setup available for debug if needed, but only for a day or two

Comment 1 Pete Zaitcev 2016-03-30 19:31:06 UTC
Dan, please run

rpm -q python-keystoneclient
rpm -q python-requests

Comment 2 Dan Yasny 2016-03-30 19:42:58 UTC
python-keystoneclient-1.7.2-1.el7ost.noarch
python-requests-2.7.0-1.el7ost.noarch

Comment 3 Sergey Gotliv 2016-03-31 21:30:18 UTC
I can't reproduce it with 

python-keystoneclient-1.7.2-1.el7ost.noarch
python-requests-2.7.0-6.el7ost.noarch

Comment 4 Sean Cohen 2016-07-19 17:54:21 UTC
(In reply to Dan Yasny from comment #2)
> python-keystoneclient-1.7.2-1.el7ost.noarch
> python-requests-2.7.0-1.el7ost.noarch

Feel free to re-open if problem resurface...
Sean

Comment 5 Dan Yasny 2016-07-20 16:20:36 UTC
I just redeployed OSP8 and the error is still there, flipping the BZ back to assigned

deploy command:
openstack overcloud deploy --templates --control-scale 3 --compute-scale 1 --swift-storage-scale 1 --neutron-network-type vxlan --neutron-tunnel-types vxlan --ntp-server clock.redhat.com --timeout 90 -e /usr/share/openstack-tripleo-heat-templates/environments/network-isolation.yaml -e network-environment.yaml -e /home/stack/ssl-heat-templates/environments/enable-tls.yaml -e /home/stack/ssl-heat-templates/environments/inject-trust-anchor.yaml --ceph-storage-scale 0

versions:
openstack-swift-object-2.5.0-2.el7ost.noarch
python-swiftclient-2.6.0-1.el7ost.noarch
openstack-swift-proxy-2.5.0-2.el7ost.noarch
openstack-swift-container-2.5.0-2.el7ost.noarch
openstack-swift-plugin-swift3-1.9-1.el7ost.noarch
openstack-swift-2.5.0-2.el7ost.noarch
openstack-swift-account-2.5.0-2.el7ost.noarch
python-keystoneclient-1.7.2-1.el7ost.noarch
python-keystonemiddleware-2.3.1-1.el7ost.noarch
python-keystoneauth1-1.1.0-4.el7ost.noarch
python-keystone-8.0.1-1.el7ost.noarch
python-requests-2.7.0-1.el7ost.noarch

I have the setup (09) running and available for debugging, at least for a day or two, please ping me on IRC for access

Comment 6 Paul Grist 2016-09-27 15:16:02 UTC
Fix merged upstream 12/22/15, so this one is for the backport to OSP8.  Updating the target release and flags accordingly

Comment 10 errata-xmlrpc 2016-10-26 13:42:14 UTC
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://rhn.redhat.com/errata/RHBA-2016-2114.html