"Property is deprecated. Please use appropriate property from share instance." spams API logs

Bug #1528270 reported by Matt Riedemann
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
OpenStack Shared File Systems Service (Manila)
Confirmed
Undecided
Unassigned

Bug Description

This change deprecated getting a few properties from the share db object:

https://github.com/openstack/manila/commit/f5f36e3bfc11d39569cc084e132ce32cadb5af56

And one should now get them from the share_instance.

The API view builder code still accesses the properties from the share object, so we have a ton of deprecation warnings in the API logs:

http://logs.openstack.org/51/253151/1/gate/gate-manila-tempest-dsvm-neutron/7e62321/logs/screen-m-api.txt.gz?level=TRACE

2015-12-19 05:40:49.053 31957 WARNING manila.db.sqlalchemy.models [req-1ce2451f-0139-4bf4-95e8-623f5e336ce2 - - - - -] Property 'host' is deprecated. Please use appropriate property from share instance.
2015-12-19 05:40:49.053 31957 WARNING manila.db.sqlalchemy.models [req-1ce2451f-0139-4bf4-95e8-623f5e336ce2 - - - - -] Property 'share_server_id' is deprecated. Please use appropriate property from share instance.
2015-12-19 05:40:49.053 31957 WARNING manila.db.sqlalchemy.models [req-1ce2451f-0139-4bf4-95e8-623f5e336ce2 - - - - -] Property 'share_network_id' is deprecated. Please use appropriate property from share instance.
2015-12-19 05:40:49.054 31957 WARNING manila.db.sqlalchemy.models [req-1ce2451f-0139-4bf4-95e8-623f5e336ce2 - - - - -] Property 'availability_zone' is deprecated. Please use appropriate property from share instance.

We should really just get this cleaned up, the change was made back in 8/7/15.

Tags: api db
Revision history for this message
Matt Riedemann (mriedem) wrote :
Changed in manila:
status: New → Confirmed
Matt Riedemann (mriedem)
tags: added: api db
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.