← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1027788] Re: os-hosts extension's show method cannot find host which has '.' in host-name (or host name is dotted quad)

 

** Changed in: nova/folsom
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1027788

Title:
  os-hosts extension's show method cannot find host which has '.' in
  host-name (or host name is dotted quad)

Status in OpenStack Compute (Nova):
  Fix Released
Status in OpenStack Compute (nova) folsom series:
  Fix Released

Bug description:
  How to reproduce:

  1. Run nova-compute service on host on some node. (Specify host field in nova.conf as dotted quad; eg: 192.168.0.3).
  2. Run nova-pythonclient (nova command) with admin credential: nova describe-resource 192.168.03
  3. nova-api fails with 404 response.

  
  nova.api.openstack.compute.contrib.hosts.HostController.show method accepts hostname as `id' argument.

  If nova-pythonclient sends id as dotted quad or hostname containing '.', os-hosts/{id} fails with 404 (host not found).
  It always strips last `.xx' from hostname. (processed by Routes package)

  I think os-hosts extension should process '.' like os-floaing-ip-dns
  (as in nova.api.openstack.compute.contrib.floaing_ip_dns.py).

  This bug currently affects stable branch (stable/essex) and not yet
  fixed in folsom development branch.

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1027788/+subscriptions