Requests to EC2 fail with 400 Bad Request

Bug #1485681 reported by Roman Podoliaka
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mirantis OpenStack
Fix Released
High
Alexey Deryugin

Bug Description

Since https://review.openstack.org/#/c/209020/6 was merged, all requests to EC2 fail with:

boto.exception.EC2ResponseError: EC2ResponseError: 400 Bad Request
{"badRequest": {"message": "Unsupported Content-Type", "code": 400}}

This due to the fact https://review.openstack.org/#/c/209020/6 sets EC2 endpoints to point to the wrong port - 8774 instead of 8773. The former is actually used by Compute API process, while these requests are meant to be served by EC2 API process.

Compute API tries to check the request body before actually routing the request to an appropriate REST controller, thus, requests fail on the content-type check (Compute API expects JSON).

Tags: nova ec2
description: updated
description: updated
Changed in mos:
assignee: nobody → MOS Deployment Automation Team (mos-da)
tags: added: ec2 nova
Changed in mos:
status: New → Triaged
importance: Undecided → High
Changed in mos:
milestone: none → 7.0
assignee: MOS Deployment Automation Team (mos-da) → MOS Puppet Team (mos-puppet)
assignee: MOS Puppet Team (mos-puppet) → Alexey Deryugin (velovec)
Changed in mos:
status: Triaged → In Progress
Revision history for this message
Alexey Deryugin (velovec) wrote :
Changed in mos:
status: In Progress → Fix Committed
Revision history for this message
Yaroslav Lobankov (ylobankov) wrote :

Verified on

VERSION:
  feature_groups:
    - mirantis
  production: "docker"
  release: "7.0"
  openstack_version: "2015.1.0-7.0"
  api: "1.0"
  build_number: "203"
  build_id: "2015-08-21_03-00-36"
  nailgun_sha: "1e5034274e92cda41ab6861585c396470fe08a0f"
  python-fuelclient_sha: "fc7b63aa6900fe3b2c183108ba6a13e868bc0472"
  fuel-agent_sha: "f2df59bb3ff2b8a79a47be258421f603863a4bbc"
  fuel-nailgun-agent_sha: "e01693992d7a0304d926b922b43f3b747c35964c"
  astute_sha: "53c86cba593ddbac776ce5a3360240274c20738c"
  fuel-library_sha: "7aab6c2e53e5ee43333bce89ee406ae1db8c4063"
  fuel-ostf_sha: "16839cbf471b7142b04c0d2c2d94786bc486fefe"
  fuelmain_sha: "c9dad194e82a60bf33060eae635fff867116a9ce"

Changed in mos:
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.