Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1072099

Summary: Cannot specify Swift disk, only loopback device
Product: Red Hat OpenStack Reporter: Martina Kollarova <mkollaro>
Component: openstack-packstackAssignee: Martina Kollarova <mkollaro>
Status: CLOSED ERRATA QA Contact: Ami Jeain <ajeain>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 4.0CC: acathrow, adahms, aortega, derekh, mkollaro, mmagr, ncredi, sputhenp, yeylon
Target Milestone: rc   
Target Release: 5.0 (RHEL 7)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-packstack-2014.1.1-0.26.dev1157.el7ost Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-07-08 15:37:47 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:
Attachments:
Description Flags
packstack answerfile
none
log file none

Description Martina Kollarova 2014-03-03 22:22:18 UTC
Created attachment 870163 [details]
packstack answerfile

Description of problem:
Using a disk or partition as Swift storage fails, for example:
CONFIG_SWIFT_STORAGE_HOSTS=192.168.1.12/vdb1

If I only use the IP address, which will cause it to create a loopback device, the problem goes away. However, this is only meant for a test setup.

The problem seems to be a missing split function that would remove the device name from the address before using it in firewall rules.

Version-Release number of selected component (if applicable):
rhel 6.5
puddle 2014-02-28.3
openstack-packstack-2013.2.1-0.25.dev987.el6ost.noarch
openstack-swift-1.10.0-3.el6ost.noarch

How reproducible:
100%

Steps to Reproduce:
1. create extra partition, create some filesystem on it
2. add the <ip_address>/sda1 or equivalent into CONFIG_SWIFT_STORAGE_HOSTS in the answerfile
3. run packstack

Actual results:

ERROR : Error appeared during Puppet run: 192.168.1.12_swift.pp
Error: Parameter source failed on Firewall[001 swift storage and rsync incoming 192.168.1.12/vdb1]: host_to_ip failed for 192.168.1.12/vdb1, exception no address for 192.168.1.12/vdb1 at /var/tmp/packstack/4d1205b5a0584a37bf8b4edbdcb5954c/manifests/192.168.1.12_swift.pp:110

Expected results:
Swift using the partition for storage.

Additional info:

Comment 1 Martina Kollarova 2014-03-03 22:23:48 UTC
Created attachment 870164 [details]
log file

Comment 10 errata-xmlrpc 2014-07-08 15:37:47 UTC
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/RHEA-2014-0846.html