summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzhangsong <zhangsong@cmss.chinamobile.com>2016-07-21 11:53:18 +0800
committerzhangsong <zhangsong@cmss.chinamobile.com>2016-07-21 11:53:18 +0800
commit0528e7d2386cd7e53cd2bd06f57ac79950579338 (patch)
tree9fd7b183031f18b4488af8140346779edd1ddb7d
parentc1ba85406e4f59ec27854e1e8bc5b2f98ff358d1 (diff)
downloadglance_store-0528e7d2386cd7e53cd2bd06f57ac79950579338.tar.gz
Sheepdog:modify default addr
The collie command doesn't support 'localhost' addr, change the default addr to '127.0.0.1'. Here is an example: $ collie node list -a localhost Invalid ip address localhost $ collie node list -a 127.0.0.1 Id Host:Port V-Nodes Zone 0 10.254.2.102:7000 141 1 1 10.254.2.104:7000 121 2 2 10.254.2.118:7000 121 3 Change-Id: I8d003ea7fe280eb9596472602e5eb4fe8b47e0a8
-rw-r--r--glance_store/_drivers/sheepdog.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/glance_store/_drivers/sheepdog.py b/glance_store/_drivers/sheepdog.py
index 0563311..55991ea 100644
--- a/glance_store/_drivers/sheepdog.py
+++ b/glance_store/_drivers/sheepdog.py
@@ -36,7 +36,7 @@ import glance_store.location
LOG = logging.getLogger(__name__)
-DEFAULT_ADDR = 'localhost'
+DEFAULT_ADDR = '127.0.0.1'
DEFAULT_PORT = 7000
DEFAULT_CHUNKSIZE = 64 # in MiB