Bug 886603
| Summary: | Openstack Installer: packstack should handle both IP addresses and hostnames for all parameters available in its answer file. | ||
|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | Nir Magnezi <nmagnezi> |
| Component: | openstack-packstack | Assignee: | Martin Magr <mmagr> |
| Status: | CLOSED ERRATA | QA Contact: | Nir Magnezi <nmagnezi> |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 2.0 (Folsom) | CC: | aortega, derekh, ykaul |
| Target Milestone: | snapshot3 | Keywords: | Triaged |
| Target Release: | 2.1 | ||
| Hardware: | Unspecified | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | openstack-packstack-2012.2.2-0.9.dev406 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2013-03-21 18:22:51 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Nir Magnezi
2012-12-12 16:29:06 UTC
This is now fixed upstream, https://github.com/fedora-openstack/packstack/commit/713d1f4350d95b5eb145e51cd0d3bd325bf2ce17 packstack now uses ip addresses in all place that were known to cause problems, even if a hostname was configured I would rather it insists on IP address where one is required. The thing what patch above is doing is that if you insert hostname, it will automatically convert it to appropriate IP address and let user know. Is this OK for you Yaniv? (In reply to comment #4) > The thing what patch above is doing is that if you insert hostname, it will > automatically convert it to appropriate IP address and let user know. Is > this OK for you Yaniv? No - if I've used a hostname, it's because I wanted to be flexible with my IP and not depend on it, rather on the hostname. If you convert transparently, the user will not be aware of it. He might later switch the host to a different IP and things will break. I think it'd be nice if we allow what is possible today to do with hostname and fail explicitly the rest. Verified NVR: openstack-packstack-2012.2.2-1.0.dev408.el6ost.noarch Verified that ALL[1] parameters can accept hostname as a value. [1] Aside from SWIFT_* and NOVA_API and NOVA_NETWORK won't accept hostname, which are not able to do so. Negative Tests: Configured CONFIG_NOVA_API_HOST with a hostname: Parameter CONFIG_NOVA_API_HOST failed validation: Given host is not in IP address format: <HOSTNAME> Additional information: * ERROR : Failed handling answer file: Given host is not in IP address format: puma06.scl.lab.tlv.redhat.com * Please check log file /var/tmp/packstack/20130227-150555-FLMKaa/openstack-setup.log for more information Configured CONFIG_NOVA_NETWORK_HOST with a hostname: Welcome to Installer setup utility Packstack changed given value to required value /root/.ssh/id_rsa.pub Parameter CONFIG_NOVA_NETWORK_HOST failed validation: Given host is not in IP address format: <HOSTNAME> Additional information: * ERROR : Failed handling answer file: Given host is not in IP address format: puma06.scl.lab.tlv.redhat.com * Please check log file /var/tmp/packstack/20130227-150731-xpFGJD/openstack-setup.log for more information Configured CONFIG_SWIFT_PROXY_HOSTS with a hostname: Welcome to Installer setup utility Packstack changed given value to required value /root/.ssh/id_rsa.pub Parameter CONFIG_SWIFT_PROXY_HOSTS failed validation: Given host is not in IP address format: <HOSTNAME> Additional information: * ERROR : Failed handling answer file: Given host is not in IP address format: puma06.scl.lab.tlv.redhat.com * Please check log file /var/tmp/packstack/20130227-150854-a64el8/openstack-setup.log for more information Configured CONFIG_SWIFT_STORAGE_HOSTS with a hostname: Welcome to Installer setup utility Packstack changed given value to required value /root/.ssh/id_rsa.pub Parameter CONFIG_SWIFT_STORAGE_HOSTS failed validation: Given host is not in IP address format: <HOSTNAME> Additional information: * ERROR : Failed handling answer file: Given host is not in IP address format: puma06.scl.lab.tlv.redhat.com * Please check log file /var/tmp/packstack/20130227-150953-OVoFwx/openstack-setup.log for more information Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHSA-2013-0671.html |