Code: 400. Title: Project-Id Missing. Description: The header X-PROJECT-ID was missing.

Bug #1668830 reported by jianfang
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Python client library for Zaqar
Fix Released
Undecided
jianfang

Bug Description

Error response from Zaqar. Code: 400. Title: Project-Id Missing. Description: The header X-PROJECT-ID was missing.
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/cliff/app.py", line 400, in run_subcommand
    result = cmd.run(parsed_args)
  File "/usr/local/lib/python2.7/dist-packages/osc_lib/command/command.py", line 41, in run
    return super(Command, self).run(parsed_args)
  File "/usr/local/lib/python2.7/dist-packages/cliff/display.py", line 112, in run
    column_names, data = self.take_action(parsed_args)
  File "/opt/stack/python-zaqarclient/zaqarclient/queues/v1/cli.py", line 99, in take_action
    data = client.queues(**kwargs)
  File "/opt/stack/python-zaqarclient/zaqarclient/queues/v1/client.py", line 114, in queues
    queue_list = core.queue_list(trans, req, **params)
  File "/opt/stack/python-zaqarclient/zaqarclient/queues/v1/core.py", line 171, in queue_list
    resp = transport.send(request)
  File "/opt/stack/python-zaqarclient/zaqarclient/transport/http.py", line 114, in send
    raise self.http_to_zaqar[resp.status_code](**kwargs)
MalformedRequest: Error response from Zaqar. Code: 400. Title: Project-Id Missing. Description: The header X-PROJECT-ID was missing.
clean_up ListQueues: Error response from Zaqar. Code: 400. Title: Project-Id Missing. Description: The header X-PROJECT-ID was missing.

jianfang (zengjianfang)
affects: tempest → python-zaqarclient
Changed in python-zaqarclient:
assignee: nobody → jianfang (zengjianfang)
status: New → In Progress
status: In Progress → Confirmed
Changed in python-zaqarclient:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-zaqarclient (master)

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-zaqarclient (master)

Reviewed: https://review.openstack.org/440223
Committed: https://git.openstack.org/cgit/openstack/python-zaqarclient/commit/?id=a0b6a79a3cf065efb38c0a29575ca16825971df5
Submitter: Jenkins
Branch: master

commit a0b6a79a3cf065efb38c0a29575ca16825971df5
Author: zengjianfang <email address hidden>
Date: Thu Mar 2 17:25:03 2017 +0800

    Fix The header X-PROJECT-ID missing bug

    This patch fixex X-PROJECT-ID missing bug.

    Change-Id: I8c13160f24f51a3f6588aefadae9ef8ff2519e1a
    Co-Authored-By: XueFeng Liu <email address hidden>
    Closes-Bug: #1668830

Changed in python-zaqarclient:
status: In Progress → Fix Released
Revision history for this message
Thomas Herve (therve) wrote :

I don't get the bug, are you passing project_id instead of os_project_id? The patch just changed the name.

Changed in python-zaqarclient:
status: Fix Released → New
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Reviewed: https://review.openstack.org/442906
Committed: https://git.openstack.org/cgit/openstack/python-zaqarclient/commit/?id=977414d0583f8e191a5e2bc5065d89f57ea95724
Submitter: Jenkins
Branch: master

commit 977414d0583f8e191a5e2bc5065d89f57ea95724
Author: wangxiyuan <email address hidden>
Date: Wed Mar 8 10:50:42 2017 +0800

    Drop "os" prefix for project id

    Keystone session now returns project id without "os" prefix.
    We should drop it as well.

    Closes-bug: #1668830
    Change-Id: I4ad9d0696c362723c4de7f7283105ba6f396fa96
    Co-Authored-By: XueFeng Liu <email address hidden>

Changed in python-zaqarclient:
status: New → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-zaqarclient 1.5.0

This issue was fixed in the openstack/python-zaqarclient 1.5.0 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.