fixed ceph.conf newline issue and get_host_ip()

This commit is contained in:
Edward Hope-Morley 2014-09-24 14:29:10 +01:00
parent 1913919d34
commit 9dc6e5bfbb
2 changed files with 3 additions and 2 deletions

View File

@ -70,10 +70,10 @@ def get_unit_hostname():
@cached
def get_host_ip(hostname=None):
hostname = hostname or unit_get('private-address')
if config('prefer-ipv6'):
return hostname or get_ipv6_addr()[0]
hostname = hostname or unit_get('private-address')
try:
# Test to see if already an IPv4 address
socket.inet_aton(hostname)

View File

@ -30,4 +30,5 @@
[osd]
keyring = /var/lib/ceph/osd/$cluster-$id/keyring
osd journal size = {{ osd_journal_size }}
filestore xattr use omap = true
filestore xattr use omap = true