stackforge/packstack — pull request #7 by harveyzh (2013-11-06 03:30:44+00:00)
Title: Fixed allowed host list for firewall

when CONFIG_SWIFT_STORAGE_HOSTS contains '/', for example,

CONFIG_SWIFT_STORAGE_HOSTS = 10.92.112.51/sdb1 ,

the allowed host list in 10.92.112.51_swift.pp will be wrong:

$hosts = [ '10.92.112.51','10.92.112.51/sdb1' ]

The error generate when puppet apply:

Error: Parameter source failed on Firewall[001 swift storage and rsync incoming 10.92.112.51/sdb1]: Munging failed for value "10.92.112.51/sdb1" in class source: no address for 10.92.112.51/sdb1 at /var/tmp/packstack/7bde90cee85b43878bb547b24bc3b7e3/manifests/10.92.112.51_swift.pp:94
Wrapped exception:
Munging failed for value "10.92.112.51/sdb1" in class source: no address for 10.92.112.51/sdb1