Flood of deprecation warnings in api.log file

Bug #1776947 reported by Tom Barron
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Shared File Systems Service (Manila)
Fix Released
Medium
Tom Barron

Bug Description

From https://bugzilla.redhat.com/show_bug.cgi?id=1591373

Description of problem:

It looks like manila client is not aligned with manila services. As a result every request generates multiple warning messages about deprecated properties. Those messages are useless, since customer can't fix them.

We should either update the client, or change severity of those messages to DEBUG.

- share_type is deprecated: ::

    2018-06-13 14:26:34.298 7785 WARNING manila.db.sqlalchemy.models
       [req-78e27bf3-0ba3-455c-bdab-a342ba35def5 <REMOVED UUIDs> - - -]
           Property 'share_type' is deprecated. Please use appropriate property from share instance.

- host is deprecated: ::

    2018-06-11 14:30:48.655 150572 WARNING manila.db.sqlalchemy.models
        [req-237b4904-cd07-47f1-aa62-3ce06410322d <REMOVED UUIDs> - - -]
           Property 'host' is deprecated. Please use appropriate property from share instance.

- share_server_id is deprecated: ::

    2018-06-11 14:30:48.655 150572 WARNING manila.db.sqlalchemy.models
        [req-237b4904-cd07-47f1-aa62-3ce06410322d <REMOVED UUIDs> - - -]
            Property 'share_server_id' is deprecated. Please use appropriate property from share instance.

- share_network_id is deprecated: ::

    2018-06-11 14:30:48.655 150572 WARNING manila.db.sqlalchemy.models
        [req-237b4904-cd07-47f1-aa62-3ce06410322d <REMOVED UUIDs> - - -]
            Property 'share_network_id' is deprecated. Please use appropriate property from share instance.

- availability_zone is deprecated: ::

    2018-06-11 14:30:48.656 150572 WARNING manila.db.sqlalchemy.models
        [req-237b4904-cd07-47f1-aa62-3ce06410322d <REMOVED UUIDs> - - -]
            Property 'availability_zone' is deprecated. Please use appropriate property from share instance.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to manila (master)

Fix proposed to branch: master
Review: https://review.openstack.org/575517

Changed in manila:
assignee: nobody → Tom Barron (tpb)
status: New → In Progress
Changed in manila:
importance: Undecided → Medium
milestone: none → rocky-3
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to manila (master)

Reviewed: https://review.openstack.org/575517
Committed: https://git.openstack.org/cgit/openstack/manila/commit/?id=8bdbbd86ae8efe05950ad0651c40aa17c8ec71c7
Submitter: Zuul
Branch: master

commit 8bdbbd86ae8efe05950ad0651c40aa17c8ec71c7
Author: Tom Barron <email address hidden>
Date: Thu Jun 14 13:41:56 2018 -0400

    Remove confusing DB deprecation messages

    When share instances were introduced a number of fields
    were moved in the database model to the underlying share instance
    and proxied back to the share in order to maintain compatability
    with APIs that assume these to belong to the share. A deprecation
    warning was added for these. The warning spams the API log and
    confuses end users because it sounds like they or their client
    should make a change to get rid of them and that cannot actually
    be done. The API would have to change to expose share instances
    to end users rather than just administrators and that is not
    something that we plan to do.

    Remove these confusing warnings.

    Closes-Bug: #1776947

    Change-Id: I95e99b26f416bbf25cfd1c8f7295f3ba6220efb3

Changed in manila:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to manila (stable/queens)

Fix proposed to branch: stable/queens
Review: https://review.openstack.org/575907

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to manila (stable/queens)

Reviewed: https://review.openstack.org/575907
Committed: https://git.openstack.org/cgit/openstack/manila/commit/?id=0c182bca8671dff0296899eef05ac0c473b1a115
Submitter: Zuul
Branch: stable/queens

commit 0c182bca8671dff0296899eef05ac0c473b1a115
Author: Tom Barron <email address hidden>
Date: Thu Jun 14 13:41:56 2018 -0400

    Remove confusing DB deprecation messages

    When share instances were introduced a number of fields
    were moved in the database model to the underlying share instance
    and proxied back to the share in order to maintain compatability
    with APIs that assume these to belong to the share. A deprecation
    warning was added for these. The warning spams the API log and
    confuses end users because it sounds like they or their client
    should make a change to get rid of them and that cannot actually
    be done. The API would have to change to expose share instances
    to end users rather than just administrators and that is not
    something that we plan to do.

    Remove these confusing warnings.

    Closes-Bug: #1776947

    Change-Id: I95e99b26f416bbf25cfd1c8f7295f3ba6220efb3
    (cherry picked from commit 8bdbbd86ae8efe05950ad0651c40aa17c8ec71c7)

tags: added: in-stable-queens
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to manila (stable/pike)

Fix proposed to branch: stable/pike
Review: https://review.openstack.org/576227

Tom Barron (tpb)
Changed in manila:
status: Fix Released → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to manila (stable/ocata)

Fix proposed to branch: stable/ocata
Review: https://review.openstack.org/577615

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to manila (stable/pike)

Reviewed: https://review.openstack.org/576227
Committed: https://git.openstack.org/cgit/openstack/manila/commit/?id=77db1b7889957e012dbd08bc63aa1f6d29f01221
Submitter: Zuul
Branch: stable/pike

commit 77db1b7889957e012dbd08bc63aa1f6d29f01221
Author: Tom Barron <email address hidden>
Date: Thu Jun 14 13:41:56 2018 -0400

    Remove confusing DB deprecation messages

    When share instances were introduced a number of fields
    were moved in the database model to the underlying share instance
    and proxied back to the share in order to maintain compatability
    with APIs that assume these to belong to the share. A deprecation
    warning was added for these. The warning spams the API log and
    confuses end users because it sounds like they or their client
    should make a change to get rid of them and that cannot actually
    be done. The API would have to change to expose share instances
    to end users rather than just administrators and that is not
    something that we plan to do.

    Remove these confusing warnings.

    Closes-Bug: #1776947

    Depends-On: https://review.openstack.org/578558
    Change-Id: I95e99b26f416bbf25cfd1c8f7295f3ba6220efb3
    (cherry picked from commit 8bdbbd86ae8efe05950ad0651c40aa17c8ec71c7)
    (cherry picked from commit 0c182bca8671dff0296899eef05ac0c473b1a115)

tags: added: in-stable-pike
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/manila 6.0.2

This issue was fixed in the openstack/manila 6.0.2 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/manila 7.0.0.0b3

This issue was fixed in the openstack/manila 7.0.0.0b3 development milestone.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to manila (stable/ocata)

Reviewed: https://review.openstack.org/577615
Committed: https://git.openstack.org/cgit/openstack/manila/commit/?id=ca0799125ff5a64a7e59772a2edeb4b6242615f0
Submitter: Zuul
Branch: stable/ocata

commit ca0799125ff5a64a7e59772a2edeb4b6242615f0
Author: Tom Barron <email address hidden>
Date: Thu Jun 14 13:41:56 2018 -0400

    Remove confusing DB deprecation messages

    When share instances were introduced a number of fields
    were moved in the database model to the underlying share instance
    and proxied back to the share in order to maintain compatability
    with APIs that assume these to belong to the share. A deprecation
    warning was added for these. The warning spams the API log and
    confuses end users because it sounds like they or their client
    should make a change to get rid of them and that cannot actually
    be done. The API would have to change to expose share instances
    to end users rather than just administrators and that is not
    something that we plan to do.

    Remove these confusing warnings.

    Closes-Bug: #1776947

    Change-Id: I95e99b26f416bbf25cfd1c8f7295f3ba6220efb3
    (cherry picked from commit 8bdbbd86ae8efe05950ad0651c40aa17c8ec71c7)
    (cherry picked from commit 0c182bca8671dff0296899eef05ac0c473b1a115)

tags: added: in-stable-ocata
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/manila 4.0.2

This issue was fixed in the openstack/manila 4.0.2 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/manila 5.0.2

This issue was fixed in the openstack/manila 5.0.2 release.

Tom Barron (tpb)
Changed in manila:
status: Fix Committed → Fix Released
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.