Nova:The site missing get servers api related info and servers usage section needed to add {tenant_id} in request parameter.

Bug #1475464 reported by Duncan.C
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openstack-api-site
Fix Released
Low
Duncan.C

Bug Description

Use Compute API v2.1 (CURRENT):

URL:http://developer.openstack.org/api-ref-compute-v2.1.html
Issue1: The request parameter needs add {tenant_id},otherwise will return 404 resource not found.
for example: Get /v2.1/servers/detail -> /v2.1/{tenant_id}/servers/detail

Issue2: The site doesn't show get servers api (/v2.1/{tenant_id}/servers)

Actual response:
{
    "servers": [
        {
            "id": "ae114799-9164-48f5-a036-6ef9310acbc4",
            "links": [
                {
                    "href": "http://openstack.example.com/v2.1/servers/ae114799-9164-48f5-a036-6ef9310acbc4",
                    "rel": "self"
                },
                {
                    "href": "http://openstack.example.com/servers/ae114799-9164-48f5-a036-6ef9310acbc4",
                    "rel": "bookmark"
                }
            ],
            "name": "new-server-test"
        }
    ]
}

Duncan.C (duncan-c)
Changed in openstack-api-site:
assignee: nobody → Duncan.C (duncan-c)
Duncan.C (duncan-c)
Changed in openstack-api-site:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to api-site (master)

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

Changed in openstack-api-site:
importance: Undecided → Low
Revision history for this message
Diane Fleming (diane-fleming) wrote : Re: Nova:The site missing get servers api related info

Was this bug ever triaged and confirmed?

Revision history for this message
Duncan.C (duncan-c) wrote :

Hi:
No,it wat not triaged and confirmed.

Revision history for this message
Anne Gentle (annegentle) wrote :

Hi Duncan, can you tell us which cloud provider (or devstack) you're using where you see a tenant_id required in the endpoint? Possibly the provider is redirecting requests to 2.0?

Revision history for this message
Duncan.C (duncan-c) wrote :

Hi :
I used devstack to deploy all-in-one env.(stable/kilo) and fully follow default script.

I show compute endpoint has two url.
http://172.20.3.18:8774/v2.1/$(tenant_id)s
http://172.20.3.18:8774/v2/$(tenant_id)s

And I use curl cmd to call these api that needed add tenant_id.

Besiedes,
[openstack/nova-specs.git] / specs / liberty / nova-pagination-prevpage.rst

There have use rest api example.
http://cloudcontroller:8774/v2.1/{tenant_id}/servers

Thank you for reviewing.

Revision history for this message
Anne Gentle (annegentle) wrote :

I heard from nova core Melanie Witt that v3 did not have tenant_id, but v 2.1 does have tenant_id.

Revision history for this message
Alex Xu (xuhj) wrote :

yes, v2.1 have tenant_id in the URL. because v2.1 compatible with v2 API. And V3 API is totally replaced by v2.1. Just forget v3, v3 doesn't exist anymore

Duncan.C (duncan-c)
summary: - Nova:The site missing get servers api related info
+ Nova:The site missing get servers api related info and servers usage
+ section needed to add {tenant_id} in request parameter.
Duncan.C (duncan-c)
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to api-site (master)

Reviewed: https://review.openstack.org/203534
Committed: https://git.openstack.org/cgit/openstack/api-site/commit/?id=853f038c5e15df7855a2763d56aabf53b55ecb21
Submitter: Jenkins
Branch: master

commit 853f038c5e15df7855a2763d56aabf53b55ecb21
Author: Duncan.C <email address hidden>
Date: Mon Jul 20 17:18:41 2015 +0800

    Add "List servers" in Compute API v2.1 ref

    1. Add /v2.1/{tenant_id}/servers (List servers) api.
    2. Modify /v2.1/servers/detail -> /v2.1/{tenant_id}/servers/detail.
              /v2.1/serveers/{server_id} -> /v2.1/{tenant_id}/serveers/{server_id}.

    Change-Id: I9d7a999dec859cdd0af664db2fd5cec8c86d67a1
    Closes-Bug: #1475464

Changed in openstack-api-site:
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.