os-hosts extension's show method cannot find host which has '.' in host-name (or host name is dotted quad)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Low
|
Vish Ishaya | ||
Folsom |
Fix Released
|
Low
|
Joe Gordon |
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.
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.
This bug currently affects stable branch (stable/essex) and not yet fixed in folsom development branch.
description: | updated |
Changed in nova: | |
status: | New → Triaged |
importance: | Undecided → Low |
tags: | added: folsom-backport-potential |
tags: | removed: folsom-backport-potential |
Changed in nova: | |
assignee: | nobody → Vish Ishaya (vishvananda) |
status: | Triaged → Fix Committed |
Changed in nova: | |
milestone: | none → grizzly-2 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | grizzly-2 → 2012.2.3 |
status: | Fix Released → Fix Committed |
Changed in nova: | |
milestone: | 2012.2.3 → grizzly-2 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | grizzly-2 → 2013.1 |
I has met this problem too. and I search git log and find this patch fix this bug: f65522488c1aca5 df5b03050d
commit 8935c3bde9e9635
Author: Vishvananda Ishaya <email address hidden>
Date: Wed Nov 7 23:28:28 2012 -0800
Limit formatting routes when adding resources
By default, routes. mapper. Mapper. resource adds a bunch of formatted
routes that accept anything after a '.'. Our spec says only .xml
and .json are accepted so limit the formatting to those valuse.
This allows identifiers with a '.' in urls. A few tests were added
to the extensions test to prove that .xml and .json are stripped
but other values are not.
Change-Id: Ic888aa5d75050d 6b14763c2a787ac 8c8d5ab1f69