package_update command is broken

Bug #1530077 reported by Nikolay Starodubtsev
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-muranoclient
Fix Released
High
Nikolay Starodubtsev

Bug Description

Client `package_update` command is broken. Here is output from console:
Traceback (most recent call last):
  File "/home/kezar/.local/bin/murano", line 10, in <module>
    sys.exit(main())
  File "/home/kezar/wrk/murano-project/python-muranoclient/muranoclient/shell.py", line 512, in main
    MuranoShell().main(args)
  File "/home/kezar/wrk/murano-project/python-muranoclient/muranoclient/shell.py", line 471, in main
    args.func(client, args)
  File "/home/kezar/wrk/murano-project/python-muranoclient/muranoclient/v1/shell.py", line 635, in do_package_update
    mc.packages.update(args.id, data)
  File "/home/kezar/wrk/murano-project/python-muranoclient/muranoclient/v1/packages.py", line 126, in update
    return self.api.json_patch_request(url, data=data)
  File "/home/kezar/wrk/murano-project/python-muranoclient/muranoclient/common/http.py", line 338, in json_patch_request
    method, url, content_type=content_type, **kwargs)
  File "/home/kezar/wrk/murano-project/python-muranoclient/muranoclient/common/http.py", line 333, in json_request
    return self.request(url, method, **kwargs)
  File "/home/kezar/wrk/murano-project/python-muranoclient/muranoclient/common/http.py", line 312, in request
    **kwargs)
  File "/home/kezar/.local/lib/python2.7/site-packages/keystoneclient/adapter.py", line 206, in request
    resp = super(LegacyJsonAdapter, self).request(*args, **kwargs)
  File "/home/kezar/.local/lib/python2.7/site-packages/keystoneclient/adapter.py", line 95, in request
    return self.session.request(url, method, **kwargs)
  File "/home/kezar/.local/lib/python2.7/site-packages/keystoneclient/utils.py", line 337, in inner
    return func(*args, **kwargs)
  File "/home/kezar/.local/lib/python2.7/site-packages/keystoneclient/session.py", line 390, in request
    resp = send(**kwargs)
  File "/home/kezar/.local/lib/python2.7/site-packages/keystoneclient/session.py", line 424, in _send_request
    resp = self.session.request(method, url, **kwargs)
TypeError: request() got an unexpected keyword argument 'content_type'

Changed in python-muranoclient:
importance: Undecided → High
assignee: nobody → Nikolay Starodubtsev (starodubcevna)
Changed in python-muranoclient:
milestone: none → 0.8.1
status: New → Confirmed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-muranoclient (master)

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

Changed in python-muranoclient:
status: Confirmed → In Progress
Changed in python-muranoclient:
assignee: Nikolay Starodubtsev (starodubcevna) → Kirill Zaitsev (kzaitsev)
Changed in python-muranoclient:
assignee: Kirill Zaitsev (kzaitsev) → Nikolay Starodubtsev (starodubcevna)
Changed in python-muranoclient:
assignee: Nikolay Starodubtsev (starodubcevna) → zhurong (zhu-rong)
Changed in python-muranoclient:
assignee: zhurong (zhu-rong) → Nikolay Starodubtsev (starodubcevna)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-muranoclient (master)

Reviewed: https://review.openstack.org/262517
Committed: https://git.openstack.org/cgit/openstack/python-muranoclient/commit/?id=26f1151d0637c1d184851357b4f440f17a747693
Submitter: Jenkins
Branch: master

commit 26f1151d0637c1d184851357b4f440f17a747693
Author: Nikolay Starodubtsev <email address hidden>
Date: Wed Dec 30 16:52:12 2015 +0300

    Repair package-update command

    During enabling keystone v3 support we encountered some problems with
    package-update command. The cause that murano wants to operate with
    application/murano-packages-json-patch type and try to pass through
    keystone adapter which cause some errors.

    Change-Id: I9b4368c0d1f1546299ebf880c17c044239f6fbb1
    Closes-Bug: #1530077

Changed in python-muranoclient:
status: In Progress → 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.