NetApp ONTAP Manila driver logs 'package python-manila is not installed'

Bug #1886232 reported by Lucio Seki
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Shared File Systems Service (Manila)
Low
Andre Luiz Beltrami Rocha

Bug Description

Description
===========

NetApp ONTAP Manila driver fails to get information from 'python-manila' package in the periodic tasks, and logs INFO messages with the errors.

It doesn't break anything, but the message might be scary, and the procedure is being useless.

Steps to reproduce
==================

1. Deploy some OpenStack distro (I reproduced this in RHOSP 16, but should happen on RDO or Ubuntu OpenStack as well) with NetApp ONTAP Manila driver
2. Look at the manila-share log

Expected result
===============

To have no error messages in manila-share log

Actual result
=============

Get INFO messages in manila-share log like this:

```
2020-07-03 20:08:16.967 7 INFO manila.share.drivers.netapp.utils [req-1682d8c3-deff-4edd-87fe-163a3ff6bdf2 - - - - -] Could not run rpm command: Unexpected error while running command.
Command: rpm -q --queryformat '%{version} %{release} %{vendor}' python-manila
Exit code: 1
Stdout: 'package python-manila is not installed\n'
Stderr: ''.
2020-07-03 20:08:16.974 7 INFO manila.share.drivers.netapp.utils [req-1682d8c3-deff-4edd-87fe-163a3ff6bdf2 - - - - -] Could not run dpkg-query command: [Errno 2] No such file or directory: 'dpkg-query': 'dpkg-query'.
```

Possible solution
===========

Just update the hardcoded package name [0] to 'python3-manila'

[0] https://github.com/openstack/manila/blob/master/manila/share/drivers/netapp/utils.py#L121

Douglas Viroel (dviroel)
Changed in manila:
status: New → Triaged
importance: Undecided → Low
milestone: none → victoria-2
assignee: nobody → Andre Luiz Beltrami Rocha (andrebeltrami)
Changed in manila:
milestone: victoria-2 → victoria-3
Changed in manila:
milestone: victoria-3 → victoria-rc1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to manila (master)

Fix proposed to branch: master
Review: https://review.opendev.org/753137

Changed in manila:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to manila (master)

Reviewed: https://review.opendev.org/753137
Committed: https://git.openstack.org/cgit/openstack/manila/commit/?id=b1c7c8d688956db8c9be36d1075aef2dd2614634
Submitter: Zuul
Branch: master

commit b1c7c8d688956db8c9be36d1075aef2dd2614634
Author: debeltrami <email address hidden>
Date: Mon Jul 6 11:31:36 2020 +0000

    [NetApp] Fix python-manila package version

    NetApp ONTAP Manila driver fails to get information from 'python-manila'
    package in the periodic tasks, and logs INFO messages saying the package
    was not found. It doesn't break anything, but the message might be scary.

    Change-Id: I2e773f7cca0c95d18922281832afd93a99de5123
    Closes-Bug: #1886232

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

Fix proposed to branch: stable/train
Review: https://review.opendev.org/c/openstack/manila/+/794059

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

Reviewed: https://review.opendev.org/c/openstack/manila/+/779475
Committed: https://opendev.org/openstack/manila/commit/6b9532eebcfc42ea954bc8ec3510550b22f81229
Submitter: "Zuul (22348)"
Branch: stable/ussuri

commit 6b9532eebcfc42ea954bc8ec3510550b22f81229
Author: debeltrami <email address hidden>
Date: Mon Jul 6 11:31:36 2020 +0000

    [NetApp] Fix python-manila package version

    NetApp ONTAP Manila driver fails to get information from 'python-manila'
    package in the periodic tasks, and logs INFO messages saying the package
    was not found. It doesn't break anything, but the message might be scary.

    Change-Id: I2e773f7cca0c95d18922281832afd93a99de5123
    Closes-Bug: #1886232
    (cherry picked from commit b1c7c8d688956db8c9be36d1075aef2dd2614634)

tags: added: in-stable-ussuri
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to manila (stable/train)

Reviewed: https://review.opendev.org/c/openstack/manila/+/794059
Committed: https://opendev.org/openstack/manila/commit/590f346e01c59530dc5e1088e1b3b99d38d9fe7f
Submitter: "Zuul (22348)"
Branch: stable/train

commit 590f346e01c59530dc5e1088e1b3b99d38d9fe7f
Author: debeltrami <email address hidden>
Date: Mon Jul 6 11:31:36 2020 +0000

    [NetApp] Fix python-manila package version

    NetApp ONTAP Manila driver fails to get information from 'python-manila'
    package in the periodic tasks, and logs INFO messages saying the package
    was not found. It doesn't break anything, but the message might be scary.

    Change-Id: I2e773f7cca0c95d18922281832afd93a99de5123
    Closes-Bug: #1886232
    (cherry picked from commit b1c7c8d688956db8c9be36d1075aef2dd2614634)
    (cherry picked from commit 6b9532eebcfc42ea954bc8ec3510550b22f81229)

tags: added: in-stable-train
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers