powermax/vnx manila drivers failed on py3.6 - ‘TypeError: POST data should be bytes, an iterable of bytes, or a file object. It cannot be of type str.’

Bug #1853805 reported by Sam Wan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Shared File Systems Service (Manila)
Fix Released
High
Ryan Liang

Bug Description

Nov 24 21:32:40 vmaxmanila manila-share[13510]: ERROR manila.share.manager [None req-eadeb5f6-9269-4382-b773-a9b382da8c4d None None] Error encountered during initialization of driver EMCShareDriver@vmaxmanila@london: TypeError: POST data should be bytes, an iterable of bytes, or a file object. It cannot be of type str.
Nov 24 21:32:40 vmaxmanila manila-share[13510]: ERROR manila.share.manager Traceback (most recent call last):
Nov 24 21:32:40 vmaxmanila manila-share[13510]: ERROR manila.share.manager File "/opt/stack/new/manila/manila/share/manager.py", line 311, in _driver_setup
Nov 24 21:32:40 vmaxmanila manila-share[13510]: ERROR manila.share.manager self.driver.do_setup(ctxt)
Nov 24 21:32:40 vmaxmanila manila-share[13510]: ERROR manila.share.manager File "/opt/stack/new/manila/manila/share/drivers/dell_emc/driver.py", line 164, in do_setup
Nov 24 21:32:40 vmaxmanila manila-share[13510]: ERROR manila.share.manager self.plugin.connect(self, context)
Nov 24 21:32:40 vmaxmanila manila-share[13510]: ERROR manila.share.manager File "/opt/stack/new/manila/manila/share/drivers/dell_emc/common/enas/utils.py", line 52, in inner
Nov 24 21:32:40 vmaxmanila manila-share[13510]: ERROR manila.share.manager ret = func(self, *args, **kwargs)
Nov 24 21:32:40 vmaxmanila manila-share[13510]: ERROR manila.share.manager File "/opt/stack/new/manila/manila/share/drivers/dell_emc/plugins/powermax/connection.py", line 591, in connect
Nov 24 21:32:40 vmaxmanila manila-share[13510]: ERROR manila.share.manager self.manager = manager.StorageObjectManager(config)
Nov 24 21:32:40 vmaxmanila manila-share[13510]: ERROR manila.share.manager File "/opt/stack/new/manila/manila/share/drivers/dell_emc/plugins/powermax/object_manager.py", line 44, in _init__
Nov 24 21:32:40 vmaxmanila manila-share[13510]: ERROR manila.share.manager self.connectors['XML'] = connector.XMLAPIConnector(configuration)
Nov 24 21:32:40 vmaxmanila manila-share[13510]: ERROR manila.share.manager File "/opt/stack/new/manila/manila/share/drivers/dell_emc/common/enas/connector.py", line 55, in __init__
Nov 24 21:32:40 vmaxmanila manila-share[13510]: ERROR manila.share.manager self._do_setup()
Nov 24 21:32:40 vmaxmanila manila-share[13510]: ERROR manila.share.manager File "/opt/stack/new/manila/manila/share/drivers/dell_emc/common/enas/connector.py", line 63, in _do_setup
Nov 24 21:32:40 vmaxmanila manila-share[13510]: ERROR manila.share.manager resp = self.url_opener.open(req)
Nov 24 21:32:40 vmaxmanila manila-share[13510]: ERROR manila.share.manager File "/usr/lib/python3.6/urllib/request.py", line 524, in open
Nov 24 21:32:40 vmaxmanila manila-share[13510]: ERROR manila.share.manager req = meth(req)
Nov 24 21:32:40 vmaxmanila manila-share[13510]: ERROR manila.share.manager File "/usr/lib/python3.6/urllib/request.py", line 1248, in do_request_
Nov 24 21:32:40 vmaxmanila manila-share[13510]: ERROR manila.share.manager raise TypeError(msg)
Nov 24 21:32:40 vmaxmanila manila-share[13510]: ERROR manila.share.manager TypeError: POST data should be bytes, an iterable of bytes, or a file object. It cannot be of type str.

Sam Wan (sam-wan)
tags: added: manila powermax vnx
tags: added: dellemc
Tom Barron (tpb)
tags: added: driver
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/696002

Changed in manila:
assignee: nobody → Ryan Liang (ryan-liang)
status: New → In Progress
Tom Barron (tpb)
Changed in manila:
importance: Undecided → High
milestone: none → ussuri-1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to manila (master)

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

commit ddfb07987b15e53747d457dfc2e77fee5171fb40
Author: Ryan Liang <email address hidden>
Date: Thu Jul 25 09:41:18 2019 +0800

    VNX/Powermax: Make it work under python3

    Add and remove the unnecessary `encode`.

    Change-Id: I2fbbd9d3950d4b68eca9905839a1f910e5a8ce4a
    Closes-bug: #1853805

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/698829

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

Reviewed: https://review.opendev.org/698829
Committed: https://git.openstack.org/cgit/openstack/manila/commit/?id=ce302d04ecb4ef69ed14f2a8e982e8170f3e60a0
Submitter: Zuul
Branch: stable/train

commit ce302d04ecb4ef69ed14f2a8e982e8170f3e60a0
Author: Ryan Liang <email address hidden>
Date: Thu Jul 25 09:41:18 2019 +0800

    VNX/Powermax: Make it work under python3

    Add and remove the unnecessary `encode`.

    Change-Id: I2fbbd9d3950d4b68eca9905839a1f910e5a8ce4a
    Closes-bug: #1853805
    (cherry picked from commit ddfb07987b15e53747d457dfc2e77fee5171fb40)

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

Fix proposed to branch: stable/stein
Review: https://review.opendev.org/701647

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

Reviewed: https://review.opendev.org/701647
Committed: https://git.openstack.org/cgit/openstack/manila/commit/?id=0dc9e9105eac1027b5151509c7cc13e090f378dc
Submitter: Zuul
Branch: stable/stein

commit 0dc9e9105eac1027b5151509c7cc13e090f378dc
Author: Ryan Liang <email address hidden>
Date: Thu Jul 25 09:41:18 2019 +0800

    VNX/Powermax: Make it work under python3

    Add and remove the unnecessary `encode`.

    Change-Id: I2fbbd9d3950d4b68eca9905839a1f910e5a8ce4a
    Closes-bug: #1853805
    (cherry picked from commit ddfb07987b15e53747d457dfc2e77fee5171fb40)
    (cherry picked from commit ce302d04ecb4ef69ed14f2a8e982e8170f3e60a0)

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

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

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

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

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.