Infrastruction Subset api‘ URL does not exist

Bug #1888188 reported by Xinxin Shen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StarlingX
Fix Released
Low
Xinxin Shen

Bug Description

I got an error when calling the URL interface of Infrastruction Subset.
1.Execute the following URL command
curl -i http://192.168.204.1:6385/v1/iinfra -X GET -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: ${TOKEN}"
 The following results are returned:
{"error_message": "{\"code\": 404, \"description\": \"\", \"title\": \"Not Found\"}"}
2.Error cause analysis
a.The API docs documentation is incorrect, the URL interface in the api documentation is /v1/iinfra
https://docs.starlingx.io/api-ref/config/api-ref-sysinv-v1-config.html?expanded=#infrastructure-subnet
b. The URL of Infrastructure Subnet in the code does not exist.

Tags: stx.config
Xinxin Shen (runsxx)
Changed in starlingx:
assignee: nobody → Xinxin Shen (runsxx)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to config (master)

Fix proposed to branch: master
Review: https://review.opendev.org/741880

Changed in starlingx:
status: New → In Progress
Ghada Khalil (gkhalil)
tags: added: stx.config
Changed in starlingx:
importance: Undecided → Low
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to config (master)

Reviewed: https://review.opendev.org/741880
Committed: https://git.openstack.org/cgit/starlingx/config/commit/?id=b50647b5b9334533138f1c5741e82a7f52c24b1c
Submitter: Zuul
Branch: master

commit b50647b5b9334533138f1c5741e82a7f52c24b1c
Author: XinxinShen <email address hidden>
Date: Mon Jul 20 15:02:56 2020 +0800

    Remove iinfra URL from API documentation

    An error occurred when using the URL interface of Infrastructure
    Subnet. After analysis, it is found that the URL does not exist
    in the starlingx/config code. See
    https://review.opendev.org/#/c/656571/ for details. Therefore,
    the Infrastructure Subnet part of the API documentation needs
    to be deleted.

    Change-Id: Icae1617c4b9c16592cfbd54f46391b9f70de5a19
    Closes-Bug: #1888188
    Signed-off-by: Xinxin Shen <email address hidden>

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