fengshao0907 / weed-fs

Automatically exported from code.google.com/p/weed-fs
0 stars 0 forks source link

dir/assign returns wrong ip #47

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. (on server 1) weed master -mdir="."
2. (on server 2) weed volume -mserver="ip.of.server1:9333" -dir="volume" 
-port=9555 
3. (on any other machine) curl http://ip.of.server1:9333/dir/assign

What is the expected output? What do you see instead?
In step 3, it should return "publicUrl":"ip.of.server2:9555"
But I always get "publicUrl":"localhost:9555" 

What version of the product are you using? On what operating system?
version 0.42 linux amd64

Please provide any additional information below.

Original issue reported on code.google.com by yua...@gmail.com on 9 Oct 2013 at 7:57

GoogleCodeExporter commented 9 years ago
got it. I must add an arg "-ip=..." in the weed volume command.

Original comment by yua...@gmail.com on 9 Oct 2013 at 8:04

GoogleCodeExporter commented 9 years ago

Original comment by chris...@gmail.com on 9 Oct 2013 at 5:03