The redis example in the dev quickstart needs update/clarification
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Magnum |
Fix Released
|
Undecided
|
Martin Falatic |
Bug Description
Considering dev-quickstart.
The last step appears to be broken:
ssh minion@$(nova list | grep 10.0.0.4 | awk '{print $13}')
REDIS_ID=$(docker ps | grep redis:v1 | grep k8s_redis | tail -n +2 | awk '{print $1}')
docker exec -i -t $REDIS_ID redis-cli
...
There are four redis instances, one master and three slaves, running across the bay, replicating data between one another.”
Behavior and workaround as reported by user:
I see one master redis instance on one minion and one slave redis instance on a second minion (each has its own associated sentinel container as expected).
The redis-cli command times out with “Could not connect to Redis at 127.0.0.1:6379: Connection refused”. HOWEVER, if I add a host IP and port for the redis master minion (“-h 10.100.84.2 -p 6379”), the example works.
A workaround, using “-h 10.100.84.2 -p 6379“:
[minion@
[minion@
10.100.84.2:6379> get replication:test
"true"
10.100.84.2:6379>
Note: address for the redis master was found by running the following on the master minion:
sudo docker exec -i -t $REDIS_ID ip addr show dev eth0
5: eth0: <BROADCAST,
link/ether 02:42:0a:64:54:02 brd ff:ff:ff:ff:ff:ff
inet 10.100.84.2/24 scope global eth0
valid_lft forever preferred_lft forever
inet6 fe80::42:
valid_lft forever preferred_lft forever
The documentation should be updated to reflect this workaround if it is indeed the right way to do this now.
Changed in magnum: | |
assignee: | nobody → Martin Falatic (martinfalatic) |
status: | New → In Progress |
Changed in magnum: | |
milestone: | none → mitaka-1 |
status: | Fix Committed → Fix Released |
Currently getting an error during pod-create (which used to work):
ERROR: 'NoneType' object has no attribute 'status' (HTTP 500)
May need to update docs to reflect newer k8s version as well? Not sure yet.
e.g., https:/ /github. com/GoogleCloud Platform/ kubernetes/ releases/ download/ v1.0.1/ kubernetes. tar.gz
Still throws a (different) error:
ERROR: Timed out waiting for a reply to message ID 5c9fa2ec09224f6 bae1c1b2da2a625 2d (HTTP 500)