Project

General

Profile

Bug #16855

Updated by Jason Dillaman over 7 years ago

HI!

when i do some demote and promote operation.zhe mirror image often become up+error.

<pre>
my operating record:
ubuntu@plana140:~$ rbd --cluster cluster2 -p mirror create --size 128 --image-feature layering,exclusive-lock,journaling test123
2016-07-29 15:15:48.033155 7f89304a8700 0 -- 192.168.34.140:0/348281884 >> 192.168.34.140:6800/5665 pipe(0xb3ac60 sd=8 :51524 s=2 pgs=241 cs=1 l=1 c=0xb14b50).injecting socket failure
ubuntu@plana140:~$ rbd --cluster cluster1 -p mirror mirror image status test123
rbd: error opening image test123: (2) No such file or directory
ubuntu@plana140:~$ rbd --cluster cluster2 -p mirror mirror image status test123
test123:
global_id: be56d70d-3bd7-4c4e-b299-98b7af31463c
state: down+unknown
description: status not found
last_update: 1970-01-01 08:00:00
ubuntu@plana140:~$ rbd --cluster cluster2 -p mirror mirror image status test123
2016-07-29 15:16:17.456285 7f3be4362700 0 -- 192.168.34.140:0/3001668689 >> 192.168.34.140:6804/5666 pipe(0x24af440 sd=8 :0 s=1 pgs=0 cs=0 l=1 c=0x24b06f0).fault
test123:
global_id: be56d70d-3bd7-4c4e-b299-98b7af31463c
state: up+stopped
description: remote image is non-primary or local image is primary
last_update: 2016-07-29 15:16:13
ubuntu@plana140:~$ rbd --cluster cluster1 -p mirror mirror image status test123
test123:
global_id: be56d70d-3bd7-4c4e-b299-98b7af31463c
state: up+replaying
description: replaying, master_position=[object_number=3, tag_tid=1, entry_tid=3], mirror_position=[], entries_behind_master=3
last_update: 2016-07-29 15:16:13
ubuntu@plana140:~$
ubuntu@plana140:~$ *rbd --cluster=cluster2 mirror image demote mirror/test123*
2016-07-29 15:16:45.271475 7f4d857fa700 0 -- 192.168.34.140:0/1404170656 >> 192.168.34.140:6804/5666 pipe(0x864f90 sd=8 :53652 s=2 pgs=209 cs=1 l=1 c=0x866240).injecting socket failure
2016-07-29 15:16:45.271644 7f4d867fc700 0 -- 192.168.34.140:0/1404170656 submit_message osd_op(client.4235.0:19 2.daeeba7f journal.1085580bd78f [call journal.get_minimum_set,call journal.get_active_set] snapc 0=[] ack+read+known_if_redirected e24) v7 remote, 192.168.34.140:6804/5666, failed lossy con, dropping message 0x7f4d6c00da20
Image demoted to non-primary
ubuntu@plana140:~$ rbd --cluster cluster1 -p mirror mirror image status test123
2016-07-29 15:16:54.758774 7efff07f8700 0 -- 192.168.34.140:0/113640562 >> 192.168.34.135:6804/5633 pipe(0x22310d0 sd=9 :48824 s=2 pgs=270 cs=1 l=1 c=0x222e770).injecting socket failure
test123:
global_id: be56d70d-3bd7-4c4e-b299-98b7af31463c
state: up+stopped
description: stopped
last_update: 2016-07-29 15:16:45
ubuntu@plana140:~$ rbd --cluster cluster2 -p mirror mirror image status test123
test123:
global_id: be56d70d-3bd7-4c4e-b299-98b7af31463c
state: up+stopped
description: remote image is non-primary or local image is primary
last_update: 2016-07-29 15:16:42
ubuntu@plana140:~$ *rbd --cluster=cluster2 mirror image promote mirror/test123*
2016-07-29 15:17:16.756244 7f85547f8700 0 -- 192.168.34.140:0/3364772875 >> 192.168.34.140:6804/5666 pipe(0xd56200 sd=8 :53734 s=2 pgs=214 cs=1 l=1 c=0xd574b0).injecting socket failure
Image promoted to primary
ubuntu@plana140:~$ rbd --cluster cluster2 -p mirror mirror image status test123
test123:
global_id: be56d70d-3bd7-4c4e-b299-98b7af31463c
state: up+stopped
description: remote image is non-primary or local image is primary
last_update: 2016-07-29 15:17:12
ubuntu@plana140:~$ rbd --cluster cluster2 -p mirror mirror image status test123
test123:
global_id: be56d70d-3bd7-4c4e-b299-98b7af31463c
state: up+stopped
description: remote image is non-primary or local image is primary
last_update: 2016-07-29 15:17:12
ubuntu@plana140:~$ rbd --cluster cluster1 -p mirror mirror image status test123
test123:
global_id: be56d70d-3bd7-4c4e-b299-98b7af31463c
state: up+stopped
description: remote image is non-primary or local image is primary
last_update: 2016-07-29 15:17:10
ubuntu@plana140:~$ rbd --cluster cluster1 -p mirror mirror image status test123
test123:
global_id: be56d70d-3bd7-4c4e-b299-98b7af31463c
state: up+stopped
description: remote image is non-primary or local image is primary
last_update: 2016-07-29 15:17:10
ubuntu@plana140:~$ rbd --cluster cluster1 -p mirror mirror image status test123
test123:
global_id: be56d70d-3bd7-4c4e-b299-98b7af31463c
state: up+stopped
description: remote image is non-primary or local image is primary
last_update: 2016-07-29 15:17:10
ubuntu@plana140:~$ rbd --cluster cluster1 -p mirror mirror image status test123
test123:
global_id: be56d70d-3bd7-4c4e-b299-98b7af31463c
state: up+stopped
description: remote image is non-primary or local image is primary
last_update: 2016-07-29 15:17:10
ubuntu@plana140:~$ rbd --cluster cluster1 -p mirror mirror image status test123
test123:
global_id: be56d70d-3bd7-4c4e-b299-98b7af31463c
state: up+stopped
description: remote image is non-primary or local image is primary
last_update: 2016-07-29 15:17:10
ubuntu@plana140:~$ rbd --cluster cluster1 -p mirror mirror image status test123
test123:
global_id: be56d70d-3bd7-4c4e-b299-98b7af31463c
state: up+syncing
description: bootstrapping, OPEN_REMOTE_IMAGE
last_update: 2016-07-29 15:17:39
ubuntu@plana140:~$ rbd --cluster cluster1 -p mirror mirror image status test123
test123:
global_id: be56d70d-3bd7-4c4e-b299-98b7af31463c
* state: up+error*
description: error bootstrapping replay
last_update: 2016-07-29 15:17:40

ubuntu@plana140:~$ ceph -v
ceph version v11.0.0-1071-g06661c5 (06661c536cfac48ea1f3d11b8d46bc5a6a0d7c44)
ubuntu@plana140:~$
</pre>

Back