comment of the host index api is incorrect

Bug #1407370 reported by Lingxian Kong
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Undecided
Lingxian Kong

Bug Description

Just a little nit, the comment of the host index api in the source code(the formatted version):

{
 'hosts': [{
  'host_name': 'some.host.name',
  'service': 'cells',
  'zone': 'internal'
 },
 {
  'host_name': 'some.other.host.name',
  'service': 'cells',
  'zone': 'internal'
 },
 {
  'host_name': 'some.celly.host.name',
  'service': 'cells',
  'zone': 'internal'
 },
 {
  'host_name': 'console1.host.com',
  'service': 'consoleauth',
  'zone': 'internal'
 },
 {
  'host_name': 'network1.host.com',
  'service': 'network',
  'zone': 'internal'
 },
 {
  'host_name': 'netwwork2.host.com',
  'service': 'network',
  'zone': 'internal'
 },
 {
  'host_name': 'compute1.host.com',
  'service': 'compute',
  'zone': 'nova'
 },
 {
  'host_name': 'compute2.host.com',
  'service': 'compute',
  'zone': 'nova'
 },
 {
  'host_name': 'sched1.host.com',
  'service': 'scheduler',
  'zone': 'internal'
 },
 {
  'host_name': 'sched2.host.com',
  'service': 'scheduler',
  'zone': 'internal'
 },
 {
  'host_name': 'vol1.host.com',
  'service': 'volume'
 },
 'zone': 'internal']
}

which should be:

{
 'hosts': [{
  'host_name': 'some.host.name',
  'service': 'cells',
  'zone': 'internal'
 },
 {
  'host_name': 'some.other.host.name',
  'service': 'cells',
  'zone': 'internal'
 },
 {
  'host_name': 'some.celly.host.name',
  'service': 'cells',
  'zone': 'internal'
 },
 {
  'host_name': 'console1.host.com',
  'service': 'consoleauth',
  'zone': 'internal'
 },
 {
  'host_name': 'network1.host.com',
  'service': 'network',
  'zone': 'internal'
 },
 {
  'host_name': 'netwwork2.host.com',
  'service': 'network',
  'zone': 'internal'
 },
 {
  'host_name': 'compute1.host.com',
  'service': 'compute',
  'zone': 'nova'
 },
 {
  'host_name': 'compute2.host.com',
  'service': 'compute',
  'zone': 'nova'
 },
 {
  'host_name': 'sched1.host.com',
  'service': 'scheduler',
  'zone': 'internal'
 },
 {
  'host_name': 'sched2.host.com',
  'service': 'scheduler',
  'zone': 'internal'
 },
 {
  'host_name': 'vol1.host.com',
  'service': 'volume',
  'zone': 'internal'
 }]
}

Lingxian Kong (kong)
Changed in nova:
assignee: nobody → Lingxian Kong (kong)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

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

Changed in nova:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/144853
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=59e4b9f1984a11321c15e9c8635eb293e9e3a3b6
Submitter: Jenkins
Branch: master

commit 59e4b9f1984a11321c15e9c8635eb293e9e3a3b6
Author: LingxianKong <email address hidden>
Date: Sun Jan 4 10:10:55 2015 +0800

    Fix the comment of host index api

    Change-Id: I84e36dd0740d52ed2a80e275a937741a156f9900
    Closes-bug: #1407370

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → kilo-2
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: kilo-2 → 2015.1.0
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.