Skip to contentSkip to conversation

Upgrade from Giant to Hammer and after some basic operations most of the OSD's went down

DISCUSSION tuomas.juntunen 3 participants 9 messages Apr 30, 2015 – May 4, 2015 7 messages not in the archive

lore
Share & tools
lore
#0 lore raw

Thanks man. I'll try it tomorrow. Have a good one.

Br,T

-------- Original message --------
From: Sage Weil <[email protected]>
Date: 30/04/2015 18:23 (GMT+02:00)
To: Tuomas Juntunen <[email protected]>
Cc: [email protected], [email protected]
Subject: RE: [ceph-users] Upgrade from Giant to Hammer and after some basic operations most of the OSD's went down

Quoted 3 lines · On Thu, 30 Apr 2015, [email protected] wrote:

Hey

Yes I can drop the images data, you think this will fix it?

It's a slightly different assert that (I believe) should not trigger once the pool is deleted.  Please give that a try and if you still hit it I'll whip up a workaround.

Thanks!
sage

Quoted 477 lines

Br,

Tuomas

Quoted 11 lines · Tuomas Juntunen
Quoted 9 lines

Hi

I updated that version and it seems that something did happen, the osd's stayed up for a while and 'ceph status' got updated. But then in couple of minutes, they all went down the same way.

I have attached new 'ceph osd dump -f json-pretty' and got a new log from one of the osd's with osd debug = 20,
http://beta.xaasbox.com/ceph/ceph-osd.15.log

Quoted 458 lines

Sam mentioned that you had said earlier that this was not critical data? If not, I think the simplest thing is to just drop those pools.  The important thing (from my perspective at least :) is that we understand the root cause and can prevent this in the future.

sage

Quoted 449 lines

Thank you!

Br,
Tuomas

-----Original Message-----
From: Sage Weil [mailto:[email protected]]
Sent: 28. huhtikuuta 2015 23:57
To: Tuomas Juntunen
Cc: [email protected]; [email protected]
Subject: Re: [ceph-users] Upgrade from Giant to Hammer and after some basic operations most of the OSD's went down

Hi Tuomas,

I've pushed an updated wip-hammer-snaps branch.  Can you please try it? The build will appear here

http://gitbuilder.ceph.com/ceph-deb-trusty-x86_64-basic/sha1/08bf531331afd5e
2eb514067f72afda11bcde286

(or a similar url; adjust for your distro).

Thanks!
sage

Quoted 31 lines · Sage Weil

[adding ceph-devel]

Okay, I see the problem.  This seems to be unrelated ot the giant -> hammer move... it's a result of the tiering changes you made:

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

The following:

ceph osd tier add img images --force-nonempty ceph osd tier cache-mode images forward ceph osd tier set-overlay img images

Specifically, --force-nonempty bypassed important safety checks.

1. images had snapshots (and removed_snaps)

2. images was added as a tier *of* img, and img's removed_snaps was copied to images, clobbering the removed_snaps value (see OSDMap::Incremental::propagate_snaps_to_tiers)

3. tiering relation was undone, but removed_snaps was still gone

4. on OSD startup, when we load the PG, removed_snaps is initialized with the older map.  later, in PGPool::update(), we assume that removed_snaps alwasy grows (never shrinks) and we trigger an assert.

To fix this I think we need to do 2 things:

1. make the OSD forgiving out removed_snaps getting smaller.  This is probably a good thing anyway: once we know snaps are removed on all OSDs we can prune the interval_set in the OSDMap.  Maybe.

Quoted 325 lines

2. Fix the mon to prevent this from happening, *even* when --force-nonempty is specified.  (This is the root cause.)

I've opened http://tracker.ceph.com/issues/11493 to track this.

sage

Quoted 316 lines
Quoted 53 lines
Quoted 53 lines
Quoted 53 lines
Quoted 53 lines
Quoted 3 lines

Idea was to make images as a tier to img, move data to img then change

clients to use the new img pool.

Quoted 8 lines

Br,
Tuomas

Quoted 4 lines

Can you explain exactly what you mean by:

"Also I created one pool for tier to be able to move data without

outage."

Quoted 40 lines
Quoted 40 lines

-Sam
----- Original Message -----
From: "tuomas juntunen" <[email protected]>
To: "Ian Colle" <[email protected]>
Cc: [email protected]
Sent: Monday, April 27, 2015 4:23:44 AM
Subject: Re: [ceph-users] Upgrade from Giant to Hammer and after some basic operations most of the OSD's went down

Hi

Any solution for this yet?

Br,
Tuomas

Quoted 21 lines

It looks like you may have hit
http://tracker.ceph.com/issues/7915

Ian R. Colle
Global Director
of Software Engineering Red Hat (Inktank is now part of Red Hat!) http://www.linkedin.com/in/ircolle
http://www.twitter.com/ircolle
Cell: +1.303.601.7713
Email: [email protected]

----- Original Message -----
From: "tuomas juntunen" <[email protected]>
To: [email protected]
Sent: Monday, April 27, 2015 1:56:29 PM
Subject: [ceph-users] Upgrade from Giant to Hammer and after some basic operations most of the OSD's went down

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

I upgraded Ceph from 0.87 Giant to 0.94.1 Hammer

Then created new pools and deleted some old ones. Also I created one pool for tier to be able to move data without

outage.

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

After these operations all but 10 OSD's are down and creating this kind of messages to logs, I get more than 100gb of these in a

night:

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

  -19> 2015-04-27 10:17:08.808584 7fd8e748d700  5 osd.23

pg_epoch:

Quoted 165 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines

17882 pg[0.189( v 8480'7 (0'0,8480'7] local-les=16609 n=0
ec=1 les/c
16609/16659
16590/16590/16590) [24,3,23] r=2 lpr=17838 pi=15659-16589/42
crt=8480'7 lcod
0'0 inactive NOTIFY] enter Started
    -18> 2015-04-27 10:17:08.808596 7fd8e748d700  5 osd.23

pg_epoch:

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines

17882 pg[0.189( v 8480'7 (0'0,8480'7] local-les=16609 n=0
ec=1 les/c
16609/16659
16590/16590/16590) [24,3,23] r=2 lpr=17838 pi=15659-16589/42
crt=8480'7 lcod
0'0 inactive NOTIFY] enter Start
    -17> 2015-04-27 10:17:08.808608 7fd8e748d700  1 osd.23

pg_epoch:

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines

17882 pg[0.189( v 8480'7 (0'0,8480'7] local-les=16609 n=0
ec=1 les/c
16609/16659
16590/16590/16590) [24,3,23] r=2 lpr=17838 pi=15659-16589/42
crt=8480'7 lcod
0'0 inactive NOTIFY] state<Start>: transitioning to Stray -16> 2015-04-27 10:17:08.808621 7fd8e748d700  5 osd.23

pg_epoch:

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines

17882 pg[0.189( v 8480'7 (0'0,8480'7] local-les=16609 n=0
ec=1 les/c
16609/16659
16590/16590/16590) [24,3,23] r=2 lpr=17838 pi=15659-16589/42
crt=8480'7 lcod
0'0 inactive NOTIFY] exit Start 0.000025 0 0.000000 -15> 2015-04-27 10:17:08.808637 7fd8e748d700  5 osd.23

pg_epoch:

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines

17882 pg[0.189( v 8480'7 (0'0,8480'7] local-les=16609 n=0
ec=1 les/c
16609/16659
16590/16590/16590) [24,3,23] r=2 lpr=17838 pi=15659-16589/42
crt=8480'7 lcod
0'0 inactive NOTIFY] enter Started/Stray
    -14> 2015-04-27 10:17:08.808796 7fd8e748d700  5 osd.23

pg_epoch:

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

17882 pg[10.181( empty local-les=17879 n=0 ec=17863 les/c
17879/17879
17863/17863/17863) [25,5,23] r=2 lpr=17879 crt=0'0 inactive NOTIFY] exit Reset 0.119467 4 0.000037 -13> 2015-04-27 10:17:08.808817 7fd8e748d700  5 osd.23

pg_epoch:

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

17882 pg[10.181( empty local-les=17879 n=0 ec=17863 les/c
17879/17879
17863/17863/17863) [25,5,23] r=2 lpr=17879 crt=0'0 inactive NOTIFY] enter Started
    -12> 2015-04-27 10:17:08.808828 7fd8e748d700  5 osd.23

pg_epoch:

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

17882 pg[10.181( empty local-les=17879 n=0 ec=17863 les/c
17879/17879
17863/17863/17863) [25,5,23] r=2 lpr=17879 crt=0'0 inactive NOTIFY] enter Start
    -11> 2015-04-27 10:17:08.808838 7fd8e748d700  1 osd.23

pg_epoch:

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

17882 pg[10.181( empty local-les=17879 n=0 ec=17863 les/c
17879/17879
17863/17863/17863) [25,5,23] r=2 lpr=17879 crt=0'0 inactive NOTIFY]
state<Start>: transitioning to Stray
    -10> 2015-04-27 10:17:08.808849 7fd8e748d700  5 osd.23

pg_epoch:

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

17882 pg[10.181( empty local-les=17879 n=0 ec=17863 les/c
17879/17879
17863/17863/17863) [25,5,23] r=2 lpr=17879 crt=0'0 inactive NOTIFY] exit Start 0.000020 0 0.000000 -9> 2015-04-27 10:17:08.808861 7fd8e748d700  5 osd.23

pg_epoch:

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

17882 pg[10.181( empty local-les=17879 n=0 ec=17863 les/c
17879/17879
17863/17863/17863) [25,5,23] r=2 lpr=17879 crt=0'0 inactive NOTIFY] enter Started/Stray
     -8> 2015-04-27 10:17:08.809427 7fd8e748d700  5 osd.23

pg_epoch:

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

17882 pg[2.189( empty local-les=16127 n=0 ec=1 les/c 16127/16344
16125/16125/16125) [23,5] r=0 lpr=17838 crt=0'0 mlcod 0'0 inactive] exit Reset 7.511623 45 0.000165 -7> 2015-04-27 10:17:08.809445 7fd8e748d700  5 osd.23

pg_epoch:

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

17882 pg[2.189( empty local-les=16127 n=0 ec=1 les/c 16127/16344
16125/16125/16125) [23,5] r=0 lpr=17838 crt=0'0 mlcod 0'0 inactive] enter Started
     -6> 2015-04-27 10:17:08.809456 7fd8e748d700  5 osd.23

pg_epoch:

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

17882 pg[2.189( empty local-les=16127 n=0 ec=1 les/c 16127/16344
16125/16125/16125) [23,5] r=0 lpr=17838 crt=0'0 mlcod 0'0 inactive] enter Start
     -5> 2015-04-27 10:17:08.809468 7fd8e748d700  1 osd.23

pg_epoch:

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

17882 pg[2.189( empty local-les=16127 n=0 ec=1 les/c 16127/16344
16125/16125/16125) [23,5] r=0 lpr=17838 crt=0'0 mlcod 0'0 inactive]
state<Start>: transitioning to Primary
     -4> 2015-04-27 10:17:08.809479 7fd8e748d700  5 osd.23

pg_epoch:

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

17882 pg[2.189( empty local-les=16127 n=0 ec=1 les/c 16127/16344
16125/16125/16125) [23,5] r=0 lpr=17838 crt=0'0 mlcod 0'0 inactive] exit Start 0.000023 0 0.000000 -3> 2015-04-27 10:17:08.809492 7fd8e748d700  5 osd.23

pg_epoch:

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

17882 pg[2.189( empty local-les=16127 n=0 ec=1 les/c 16127/16344
16125/16125/16125) [23,5] r=0 lpr=17838 crt=0'0 mlcod 0'0 inactive] enter Started/Primary
     -2> 2015-04-27 10:17:08.809502 7fd8e748d700  5 osd.23

pg_epoch:

Quoted 1 line
Quoted 16 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

17882 pg[2.189( empty local-les=16127 n=0 ec=1 les/c 16127/16344
16125/16125/16125) [23,5] r=0 lpr=17838 crt=0'0 mlcod 0'0 inactive] enter Started/Primary/Peering -1> 2015-04-27 10:17:08.809513 7fd8e748d700  5 osd.23

pg_epoch:

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

17882 pg[2.189( empty local-les=16127 n=0 ec=1 les/c 16127/16344
16125/16125/16125) [23,5] r=0 lpr=17838 crt=0'0 mlcod 0'0 peering] enter Started/Primary/Peering/GetInfo 0> 2015-04-27 10:17:08.813837 7fd8e748d700 -1

./include/interval_set.h:

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

In
function 'void interval_set<T>::erase(T, T) [with T =

snapid_t]'

Quoted 67 lines
Quoted 43 lines
Quoted 43 lines
Quoted 43 lines
Quoted 43 lines
Quoted 43 lines
Quoted 43 lines

thread
7fd8e748d700 time 2015-04-27 10:17:08.809899 ./include/interval_set.h: 385: FAILED assert(_size >=
0)

  ceph version 0.94.1 (e4bfad3a3c51054df7e537a724c8d0bf9be972ff)
  1: (ceph::__ceph_assert_fail(char const*, char const*, int, char
const*)+0x8b)
[0xbc271b]
  2:
(interval_set<snapid_t>::subtract(interval_set<snapid_t

Quoted 1 line

const&)+0xb0) [0x82cd50]
  3: (PGPool::update(std::tr1::shared_ptr<OSDMap const>)+0x52e) [0x80113e]
  4: (PG::handle_advance_map(std::tr1::shared_ptr<OSDMap const>, std::tr1::shared_ptr<OSDMap const>, const>std::vector<int,
std::allocator<int> >&, int, std::vector<int, std::allocator<int>

Quoted 1 line

&, int, PG::RecoveryCtx*)+0x282) [0x801652]

  5: (OSD::advance_pg(unsigned int, PG*, ThreadPool::TPHandle&, PG::RecoveryCtx*, std::set<boost::intrusive_ptr<PG>, std::less<boost::intrusive_ptr<PG> >, std::allocator<boost::intrusive_ptr<PG> > >*)+0x2c3) [0x6b0e43]
  6: (OSD::process_peering_events(std::list<PG*, std::allocator<PG*>

Quoted 1 line

const&,

ThreadPool::TPHandle&)+0x21c) [0x6b191c]
  7: (OSD::PeeringWQ::_process(std::list<PG*, std::allocator<PG*>

Quoted 1 line

const&,

ThreadPool::TPHandle&)+0x18) [0x709278]
  8: (ThreadPool::worker(ThreadPool::WorkThread*)+0xa5e) [0xbb38ae]
  9: (ThreadPool::WorkThread::entry()+0x10) [0xbb4950] 10: (()+0x8182) [0x7fd906946182]
  11: (clone()+0x6d) [0x7fd904eb147d]

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

Also by monitoring (ceph -w) I get the following messages, also lots of

them.

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
2015-04-27 10:39:52.935812 mon.0 [INF] from='client.?

10.20.0.13:0/1174409'

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

entity='osd.30' cmd=[{"prefix": "osd crush create-or-move",

"args":

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

["host=ceph3", "root=default"], "id": 30, "weight": 1.82}]:

dispatch

2015-04-27 10:39:53.297376 mon.0 [INF] from='client.?

10.20.0.13:0/1174483'

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

entity='osd.26' cmd=[{"prefix": "osd crush create-or-move",

"args":

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

["host=ceph3", "root=default"], "id": 26, "weight": 1.82}]:

dispatch

This is a cluster of 3 nodes with 36 OSD's, nodes are also mons and mds's to save servers. All run Ubuntu

14.04.2.

Quoted 58 lines
Quoted 52 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

I have pretty much tried everything I could think of.

Restarting daemons doesn't help.

Any help would be appreciated. I can also provide more logs if necessary. They just seem to get pretty large in few

moments.

Quoted 41 lines
Quoted 40 lines
Quoted 38 lines
Quoted 36 lines
Quoted 35 lines
Quoted 13 lines
Quoted 11 lines

Thank you
Tuomas

_______________________________________________
ceph-users mailing list [email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Quoted 7 lines

_______________________________________________
ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

_______________________________________________
ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

_______________________________________________
ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

_______________________________________________
ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Quoted 6 lines

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

_______________________________________________
ceph-users mailing list [email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

#1 lore raw

Hi

I deleted the images and img pools and started osd's, they still die.

Here's a log of one of the osd's after this, if you need it.

http://beta.xaasbox.com/ceph/ceph-osd.19.log

Br,
Tuomas

Quoted 510 lines

Thanks man. I'll try it tomorrow. Have a good one.

Br,T

-------- Original message --------
From: Sage Weil <[email protected]>
Date: 30/04/2015 18:23 (GMT+02:00)
To: Tuomas Juntunen <[email protected]>
Cc: [email protected], [email protected]
Subject: RE: [ceph-users] Upgrade from Giant to Hammer and after some basic

operations most of the OSD's went down

Quoted 3 lines · On Thu, 30 Apr 2015, [email protected] wrote:

Hey

Yes I can drop the images data, you think this will fix it?

It's a slightly different assert that (I believe) should not trigger once the pool is deleted.  Please give that a try and if you still hit it I'll whip up a workaround.

Thanks!
sage

Quoted 479 lines

Br,

Tuomas

Quoted 11 lines · Tuomas Juntunen
Quoted 9 lines

Hi

I updated that version and it seems that something did happen, the osd's stayed up for a while and 'ceph status' got updated. But then in couple of minutes, they all went down the same way.

I have attached new 'ceph osd dump -f json-pretty' and got a new log from one of the osd's with osd debug = 20,
http://beta.xaasbox.com/ceph/ceph-osd.15.log

Quoted 383 lines

Sam mentioned that you had said earlier that this was not critical data? If not, I think the simplest thing is to just drop those pools.  The important thing (from my perspective at least :) is that we understand the root cause and can prevent this in the future.

sage

Quoted 375 lines

Thank you!

Br,
Tuomas

-----Original Message-----
From: Sage Weil [mailto:[email protected]]
Sent: 28. huhtikuuta 2015 23:57
To: Tuomas Juntunen
Cc: [email protected]; [email protected]
Subject: Re: [ceph-users] Upgrade from Giant to Hammer and after some basic operations most of the OSD's went down

Hi Tuomas,

I've pushed an updated wip-hammer-snaps branch.  Can you please try it? The build will appear here

http://gitbuilder.ceph.com/ceph-deb-trusty-x86_64-basic/sha1/08bf531331afd5e
2eb514067f72afda11bcde286

(or a similar url; adjust for your distro).

Thanks!
sage

Quoted 342 lines · Sage Weil

[adding ceph-devel]

Okay, I see the problem.  This seems to be unrelated ot the giant -> hammer move... it's a result of the tiering changes you made:

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

The following:

ceph osd tier add img images --force-nonempty ceph osd tier cache-mode images forward ceph osd tier set-overlay img images

Specifically, --force-nonempty bypassed important safety checks.

1. images had snapshots (and removed_snaps)

2. images was added as a tier *of* img, and img's removed_snaps was copied to images, clobbering the removed_snaps value (see OSDMap::Incremental::propagate_snaps_to_tiers)

3. tiering relation was undone, but removed_snaps was still gone

4. on OSD startup, when we load the PG, removed_snaps is initialized with the older map.  later, in PGPool::update(), we assume that removed_snaps alwasy grows (never shrinks) and we trigger an assert.

To fix this I think we need to do 2 things:

1. make the OSD forgiving out removed_snaps getting smaller.  This is probably a good thing anyway: once we know snaps are removed on all OSDs we can prune the interval_set in the OSDMap.  Maybe.

2. Fix the mon to prevent this from happening, *even* when --force-nonempty is specified.  (This is the root cause.)

I've opened http://tracker.ceph.com/issues/11493 to track this.

sage

Quoted 302 lines
Quoted 53 lines
Quoted 53 lines
Quoted 53 lines
Quoted 53 lines
Quoted 3 lines

Idea was to make images as a tier to img, move data to img then change

clients to use the new img pool.

Quoted 8 lines

Br,
Tuomas

Quoted 4 lines

Can you explain exactly what you mean by:

"Also I created one pool for tier to be able to move data without

outage."

Quoted 40 lines
Quoted 40 lines

-Sam
----- Original Message -----
From: "tuomas juntunen" <[email protected]>
To: "Ian Colle" <[email protected]>
Cc: [email protected]
Sent: Monday, April 27, 2015 4:23:44 AM
Subject: Re: [ceph-users] Upgrade from Giant to Hammer and after some basic operations most of the OSD's went down

Hi

Any solution for this yet?

Br,
Tuomas

Quoted 21 lines

It looks like you may have hit
http://tracker.ceph.com/issues/7915

Ian R. Colle
Global Director
of Software Engineering Red Hat (Inktank is now part of
Red Hat!) http://www.linkedin.com/in/ircolle
http://www.twitter.com/ircolle
Cell: +1.303.601.7713
Email: [email protected]

----- Original Message -----
From: "tuomas juntunen"
<[email protected]>
To: [email protected]
Sent: Monday, April 27, 2015 1:56:29 PM
Subject: [ceph-users] Upgrade from Giant to Hammer and
after some basic operations most of the OSD's went down

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

I upgraded Ceph from 0.87 Giant to 0.94.1 Hammer

Then created new pools and deleted some old ones. Also
I created one pool for tier to be able to move data
without

outage.

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

After these operations all but 10 OSD's are down and
creating this kind of messages to logs, I get more than
100gb of these in a

night:

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

  -19> 2015-04-27 10:17:08.808584 7fd8e748d700  5 osd.23

pg_epoch:

Quoted 165 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines

17882 pg[0.189( v 8480'7 (0'0,8480'7] local-les=16609
n=0
ec=1 les/c
16609/16659
16590/16590/16590) [24,3,23] r=2 lpr=17838
pi=15659-16589/42
crt=8480'7 lcod
0'0 inactive NOTIFY] enter Started
    -18> 2015-04-27 10:17:08.808596 7fd8e748d700  5
osd.23

pg_epoch:

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines

17882 pg[0.189( v 8480'7 (0'0,8480'7] local-les=16609
n=0
ec=1 les/c
16609/16659
16590/16590/16590) [24,3,23] r=2 lpr=17838
pi=15659-16589/42
crt=8480'7 lcod
0'0 inactive NOTIFY] enter Start
    -17> 2015-04-27 10:17:08.808608 7fd8e748d700  1
osd.23

pg_epoch:

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines

17882 pg[0.189( v 8480'7 (0'0,8480'7] local-les=16609
n=0
ec=1 les/c
16609/16659
16590/16590/16590) [24,3,23] r=2 lpr=17838
pi=15659-16589/42
crt=8480'7 lcod
0'0 inactive NOTIFY] state<Start>: transitioning to Stray
    -16> 2015-04-27 10:17:08.808621 7fd8e748d700  5
osd.23

pg_epoch:

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines

17882 pg[0.189( v 8480'7 (0'0,8480'7] local-les=16609
n=0
ec=1 les/c
16609/16659
16590/16590/16590) [24,3,23] r=2 lpr=17838
pi=15659-16589/42
crt=8480'7 lcod
0'0 inactive NOTIFY] exit Start 0.000025 0 0.000000
    -15> 2015-04-27 10:17:08.808637 7fd8e748d700  5
osd.23

pg_epoch:

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines

17882 pg[0.189( v 8480'7 (0'0,8480'7] local-les=16609
n=0
ec=1 les/c
16609/16659
16590/16590/16590) [24,3,23] r=2 lpr=17838
pi=15659-16589/42
crt=8480'7 lcod
0'0 inactive NOTIFY] enter Started/Stray
    -14> 2015-04-27 10:17:08.808796 7fd8e748d700  5
osd.23

pg_epoch:

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

17882 pg[10.181( empty local-les=17879 n=0 ec=17863
les/c
17879/17879
17863/17863/17863) [25,5,23] r=2 lpr=17879 crt=0'0
inactive NOTIFY] exit Reset 0.119467 4 0.000037
    -13> 2015-04-27 10:17:08.808817 7fd8e748d700  5
osd.23

pg_epoch:

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

17882 pg[10.181( empty local-les=17879 n=0 ec=17863
les/c
17879/17879
17863/17863/17863) [25,5,23] r=2 lpr=17879 crt=0'0
inactive NOTIFY] enter Started
    -12> 2015-04-27 10:17:08.808828 7fd8e748d700  5
osd.23

pg_epoch:

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

17882 pg[10.181( empty local-les=17879 n=0 ec=17863
les/c
17879/17879
17863/17863/17863) [25,5,23] r=2 lpr=17879 crt=0'0
inactive NOTIFY] enter Start
    -11> 2015-04-27 10:17:08.808838 7fd8e748d700  1
osd.23

pg_epoch:

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

17882 pg[10.181( empty local-les=17879 n=0 ec=17863
les/c
17879/17879
17863/17863/17863) [25,5,23] r=2 lpr=17879 crt=0'0
inactive NOTIFY]
state<Start>: transitioning to Stray
    -10> 2015-04-27 10:17:08.808849 7fd8e748d700  5
osd.23

pg_epoch:

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

17882 pg[10.181( empty local-les=17879 n=0 ec=17863
les/c
17879/17879
17863/17863/17863) [25,5,23] r=2 lpr=17879 crt=0'0
inactive NOTIFY] exit Start 0.000020 0 0.000000
     -9> 2015-04-27 10:17:08.808861 7fd8e748d700  5
osd.23

pg_epoch:

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

17882 pg[10.181( empty local-les=17879 n=0 ec=17863
les/c
17879/17879
17863/17863/17863) [25,5,23] r=2 lpr=17879 crt=0'0
inactive NOTIFY] enter Started/Stray
     -8> 2015-04-27 10:17:08.809427 7fd8e748d700  5
osd.23

pg_epoch:

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

17882 pg[2.189( empty local-les=16127 n=0 ec=1 les/c
16127/16344
16125/16125/16125) [23,5] r=0 lpr=17838 crt=0'0 mlcod
0'0 inactive] exit Reset 7.511623 45 0.000165
     -7> 2015-04-27 10:17:08.809445 7fd8e748d700  5
osd.23

pg_epoch:

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

17882 pg[2.189( empty local-les=16127 n=0 ec=1 les/c
16127/16344
16125/16125/16125) [23,5] r=0 lpr=17838 crt=0'0 mlcod
0'0 inactive] enter Started
     -6> 2015-04-27 10:17:08.809456 7fd8e748d700  5
osd.23

pg_epoch:

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

17882 pg[2.189( empty local-les=16127 n=0 ec=1 les/c
16127/16344
16125/16125/16125) [23,5] r=0 lpr=17838 crt=0'0 mlcod
0'0 inactive] enter Start
     -5> 2015-04-27 10:17:08.809468 7fd8e748d700  1
osd.23

pg_epoch:

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

17882 pg[2.189( empty local-les=16127 n=0 ec=1 les/c
16127/16344
16125/16125/16125) [23,5] r=0 lpr=17838 crt=0'0 mlcod
0'0 inactive]
state<Start>: transitioning to Primary
     -4> 2015-04-27 10:17:08.809479 7fd8e748d700  5
osd.23

pg_epoch:

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

17882 pg[2.189( empty local-les=16127 n=0 ec=1 les/c
16127/16344
16125/16125/16125) [23,5] r=0 lpr=17838 crt=0'0 mlcod
0'0 inactive] exit Start 0.000023 0 0.000000
     -3> 2015-04-27 10:17:08.809492 7fd8e748d700  5
osd.23

pg_epoch:

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

17882 pg[2.189( empty local-les=16127 n=0 ec=1 les/c
16127/16344
16125/16125/16125) [23,5] r=0 lpr=17838 crt=0'0 mlcod
0'0 inactive] enter Started/Primary
     -2> 2015-04-27 10:17:08.809502 7fd8e748d700  5
osd.23

pg_epoch:

Quoted 1 line
Quoted 16 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

17882 pg[2.189( empty local-les=16127 n=0 ec=1 les/c
16127/16344
16125/16125/16125) [23,5] r=0 lpr=17838 crt=0'0 mlcod
0'0 inactive] enter Started/Primary/Peering
     -1> 2015-04-27 10:17:08.809513 7fd8e748d700  5
osd.23

pg_epoch:

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

17882 pg[2.189( empty local-les=16127 n=0 ec=1 les/c
16127/16344
16125/16125/16125) [23,5] r=0 lpr=17838 crt=0'0 mlcod
0'0 peering] enter Started/Primary/Peering/GetInfo
      0> 2015-04-27 10:17:08.813837 7fd8e748d700 -1

./include/interval_set.h:

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

In
function 'void interval_set<T>::erase(T, T) [with T =

snapid_t]'

Quoted 53 lines
Quoted 43 lines
Quoted 43 lines
Quoted 43 lines
Quoted 43 lines
Quoted 43 lines
Quoted 43 lines

thread
7fd8e748d700 time 2015-04-27 10:17:08.809899
./include/interval_set.h: 385: FAILED assert(_size >=
0)

  ceph version 0.94.1
(e4bfad3a3c51054df7e537a724c8d0bf9be972ff)
  1: (ceph::__ceph_assert_fail(char const*, char const*,
int, char
const*)+0x8b)
[0xbc271b]
  2:
(interval_set<snapid_t>::subtract(interval_set<snapid_t

const&)+0xb0) [0x82cd50]
  3: (PGPool::update(std::tr1::shared_ptr<OSDMap
const>)+0x52e) [0x80113e]
  4: (PG::handle_advance_map(std::tr1::shared_ptr<OSDMap
const>, std::tr1::shared_ptr<OSDMap const>,
const>std::vector<int,
std::allocator<int> >&, int, std::vector<int,
std::allocator<int>
&, int, PG::RecoveryCtx*)+0x282) [0x801652]
  5: (OSD::advance_pg(unsigned int, PG*,
ThreadPool::TPHandle&, PG::RecoveryCtx*,
std::set<boost::intrusive_ptr<PG>,
std::less<boost::intrusive_ptr<PG> >,
std::allocator<boost::intrusive_ptr<PG> > >*)+0x2c3)
[0x6b0e43]
  6: (OSD::process_peering_events(std::list<PG*,
std::allocator<PG*>
const&,
ThreadPool::TPHandle&)+0x21c) [0x6b191c]
  7: (OSD::PeeringWQ::_process(std::list<PG*,
std::allocator<PG*>
const&,
ThreadPool::TPHandle&)+0x18) [0x709278]
  8: (ThreadPool::worker(ThreadPool::WorkThread*)+0xa5e)
[0xbb38ae]
  9: (ThreadPool::WorkThread::entry()+0x10) [0xbb4950]
  10: (()+0x8182) [0x7fd906946182]
  11: (clone()+0x6d) [0x7fd904eb147d]

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

Also by monitoring (ceph -w) I get the following
messages, also lots of

them.

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

2015-04-27 10:39:52.935812 mon.0 [INF] from='client.?

10.20.0.13:0/1174409'

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

entity='osd.30' cmd=[{"prefix": "osd crush
create-or-move",

"args":

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

["host=ceph3", "root=default"], "id": 30, "weight":

1.82}]:

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

dispatch
2015-04-27 10:39:53.297376 mon.0 [INF] from='client.?

10.20.0.13:0/1174483'

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

entity='osd.26' cmd=[{"prefix": "osd crush
create-or-move",

"args":

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

["host=ceph3", "root=default"], "id": 26, "weight":

1.82}]:

Quoted 59 lines
Quoted 59 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

dispatch

This is a cluster of 3 nodes with 36 OSD's, nodes are
also mons and mds's to save servers. All run Ubuntu

14.04.2.

Quoted 52 lines
Quoted 52 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

I have pretty much tried everything I could think of.

Restarting daemons doesn't help.

Any help would be appreciated. I can also provide more
logs if necessary. They just seem to get pretty large
in few

moments.

Quoted 41 lines
Quoted 40 lines
Quoted 38 lines
Quoted 36 lines
Quoted 35 lines
Quoted 13 lines
Quoted 11 lines

Thank you
Tuomas

_______________________________________________
ceph-users mailing list [email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Quoted 7 lines

_______________________________________________
ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

_______________________________________________
ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

_______________________________________________
ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Quoted 8 lines
Quoted 7 lines
Quoted 6 lines

_______________________________________________
ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Quoted 6 lines

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Quoted 5 lines

_______________________________________________
ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): dc614dd85caf6cecfd59897b96a019ad-Mp+lKDbUk+6SvdrsE3bNcA@public.gmane.org

#3 lore raw
Quoted 7 lines · On Fri, 1 May 2015, [email protected]…

Hi

I deleted the images and img pools and started osd's, they still die.

Here's a log of one of the osd's after this, if you need it.

http://beta.xaasbox.com/ceph/ceph-osd.19.log

I've pushed another commit that should avoid this case, sha1 425bd4e1dba00cc2243b0c27232d1f9740b04e34.

Note that once the pools are fully deleted (shouldn't take too long once the osds are up and stabilize) you should switch back to the normal packages that don't have these workarounds.

sage

Quoted 523 lines

Br,
Tuomas

Quoted 515 lines

Thanks man. I'll try it tomorrow. Have a good one.

Br,T

-------- Original message --------
From: Sage Weil <[email protected]>
Date: 30/04/2015 18:23 (GMT+02:00)
To: Tuomas Juntunen <[email protected]>
Cc: [email protected], [email protected]
Subject: RE: [ceph-users] Upgrade from Giant to Hammer and after some basic

operations most of the OSD's went down

Quoted 3 lines · On Thu, 30 Apr 2015, [email protected]…

Hey

Yes I can drop the images data, you think this will fix it?

It's a slightly different assert that (I believe) should not trigger once the pool is deleted.  Please give that a try and if you still hit it I'll whip up a workaround.

Thanks!
sage

Quoted 479 lines

Br,

Tuomas

Quoted 11 lines · Tuomas Juntunen
Quoted 9 lines

Hi

I updated that version and it seems that something did happen, the osd's stayed up for a while and 'ceph status' got updated. But then in couple of minutes, they all went down the same way.

I have attached new 'ceph osd dump -f json-pretty' and got a new log from one of the osd's with osd debug = 20,
http://beta.xaasbox.com/ceph/ceph-osd.15.log

Quoted 383 lines

Sam mentioned that you had said earlier that this was not critical data? If not, I think the simplest thing is to just drop those pools.  The important thing (from my perspective at least :) is that we understand the root cause and can prevent this in the future.

sage

Quoted 375 lines

Thank you!

Br,
Tuomas

-----Original Message-----
From: Sage Weil [mailto:[email protected]]
Sent: 28. huhtikuuta 2015 23:57
To: Tuomas Juntunen
Cc: [email protected]; [email protected]
Subject: Re: [ceph-users] Upgrade from Giant to Hammer and after some basic
operations most of the OSD's went down

Hi Tuomas,

I've pushed an updated wip-hammer-snaps branch.  Can you please try it? The build will appear here

http://gitbuilder.ceph.com/ceph-deb-trusty-x86_64-basic/sha1/08bf531331afd5e
2eb514067f72afda11bcde286

(or a similar url; adjust for your distro).

Thanks!
sage

Quoted 342 lines · Sage Weil

[adding ceph-devel]

Okay, I see the problem.  This seems to be unrelated ot the giant -> hammer move... it's a result of the tiering changes you made:

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

The following:

ceph osd tier add img images --force-nonempty ceph osd tier cache-mode images forward ceph osd tier set-overlay img images

Specifically, --force-nonempty bypassed important safety checks.

1. images had snapshots (and removed_snaps)

2. images was added as a tier *of* img, and img's removed_snaps was copied to images, clobbering the removed_snaps value (see OSDMap::Incremental::propagate_snaps_to_tiers)

3. tiering relation was undone, but removed_snaps was still gone

4. on OSD startup, when we load the PG, removed_snaps is initialized with the older map.  later, in PGPool::update(), we assume that removed_snaps alwasy grows (never shrinks) and we trigger an assert.

To fix this I think we need to do 2 things:

1. make the OSD forgiving out removed_snaps getting smaller.  This is probably a good thing anyway: once we know snaps are removed on all OSDs we can prune the interval_set in the OSDMap.  Maybe.

2. Fix the mon to prevent this from happening, *even* when --force-nonempty is specified.  (This is the root cause.)

I've opened http://tracker.ceph.com/issues/11493 to track this.

sage

Quoted 302 lines
Quoted 53 lines
Quoted 53 lines
Quoted 53 lines
Quoted 53 lines
Quoted 3 lines

Idea was to make images as a tier to img, move data to img then change

clients to use the new img pool.

Quoted 8 lines

Br,
Tuomas

Quoted 4 lines

Can you explain exactly what you mean by:

"Also I created one pool for tier to be able to move
data without

outage."

Quoted 40 lines
Quoted 40 lines

-Sam
----- Original Message -----
From: "tuomas juntunen"
<[email protected]>
To: "Ian Colle" <[email protected]>
Cc: [email protected]
Sent: Monday, April 27, 2015 4:23:44 AM
Subject: Re: [ceph-users] Upgrade from Giant to Hammer
and after some basic operations most of the OSD's went
down

Hi

Any solution for this yet?

Br,
Tuomas

It looks like you may have hit
http://tracker.ceph.com/issues/7915

Ian R. Colle
Global Director
of Software Engineering Red Hat (Inktank is now part of
Red Hat!) http://www.linkedin.com/in/ircolle
http://www.twitter.com/ircolle
Cell: +1.303.601.7713
Email: [email protected]

----- Original Message -----
From: "tuomas juntunen"
<[email protected]>
To: [email protected]
Sent: Monday, April 27, 2015 1:56:29 PM
Subject: [ceph-users] Upgrade from Giant to Hammer and
after some basic operations most of the OSD's went down

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

I upgraded Ceph from 0.87 Giant to 0.94.1 Hammer

Then created new pools and deleted some old ones. Also
I created one pool for tier to be able to move data
without

outage.

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

After these operations all but 10 OSD's are down and
creating this kind of messages to logs, I get more than
100gb of these in a

night:

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

  -19> 2015-04-27 10:17:08.808584 7fd8e748d700  5 osd.23

pg_epoch:

Quoted 165 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines

17882 pg[0.189( v 8480'7 (0'0,8480'7] local-les=16609
n=0
ec=1 les/c
16609/16659
16590/16590/16590) [24,3,23] r=2 lpr=17838
pi=15659-16589/42
crt=8480'7 lcod
0'0 inactive NOTIFY] enter Started
    -18> 2015-04-27 10:17:08.808596 7fd8e748d700  5
osd.23

pg_epoch:

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines

17882 pg[0.189( v 8480'7 (0'0,8480'7] local-les=16609
n=0
ec=1 les/c
16609/16659
16590/16590/16590) [24,3,23] r=2 lpr=17838
pi=15659-16589/42
crt=8480'7 lcod
0'0 inactive NOTIFY] enter Start
    -17> 2015-04-27 10:17:08.808608 7fd8e748d700  1
osd.23

pg_epoch:

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines

17882 pg[0.189( v 8480'7 (0'0,8480'7] local-les=16609
n=0
ec=1 les/c
16609/16659
16590/16590/16590) [24,3,23] r=2 lpr=17838
pi=15659-16589/42
crt=8480'7 lcod
0'0 inactive NOTIFY] state<Start>: transitioning to Stray
    -16> 2015-04-27 10:17:08.808621 7fd8e748d700  5
osd.23

pg_epoch:

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines

17882 pg[0.189( v 8480'7 (0'0,8480'7] local-les=16609
n=0
ec=1 les/c
16609/16659
16590/16590/16590) [24,3,23] r=2 lpr=17838
pi=15659-16589/42
crt=8480'7 lcod
0'0 inactive NOTIFY] exit Start 0.000025 0 0.000000
    -15> 2015-04-27 10:17:08.808637 7fd8e748d700  5
osd.23

pg_epoch:

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines

17882 pg[0.189( v 8480'7 (0'0,8480'7] local-les=16609
n=0
ec=1 les/c
16609/16659
16590/16590/16590) [24,3,23] r=2 lpr=17838
pi=15659-16589/42
crt=8480'7 lcod
0'0 inactive NOTIFY] enter Started/Stray
    -14> 2015-04-27 10:17:08.808796 7fd8e748d700  5
osd.23

pg_epoch:

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

17882 pg[10.181( empty local-les=17879 n=0 ec=17863
les/c
17879/17879
17863/17863/17863) [25,5,23] r=2 lpr=17879 crt=0'0
inactive NOTIFY] exit Reset 0.119467 4 0.000037
    -13> 2015-04-27 10:17:08.808817 7fd8e748d700  5
osd.23

pg_epoch:

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

17882 pg[10.181( empty local-les=17879 n=0 ec=17863
les/c
17879/17879
17863/17863/17863) [25,5,23] r=2 lpr=17879 crt=0'0
inactive NOTIFY] enter Started
    -12> 2015-04-27 10:17:08.808828 7fd8e748d700  5
osd.23

pg_epoch:

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

17882 pg[10.181( empty local-les=17879 n=0 ec=17863
les/c
17879/17879
17863/17863/17863) [25,5,23] r=2 lpr=17879 crt=0'0
inactive NOTIFY] enter Start
    -11> 2015-04-27 10:17:08.808838 7fd8e748d700  1
osd.23

pg_epoch:

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

17882 pg[10.181( empty local-les=17879 n=0 ec=17863
les/c
17879/17879
17863/17863/17863) [25,5,23] r=2 lpr=17879 crt=0'0
inactive NOTIFY]
state<Start>: transitioning to Stray
    -10> 2015-04-27 10:17:08.808849 7fd8e748d700  5
osd.23

pg_epoch:

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

17882 pg[10.181( empty local-les=17879 n=0 ec=17863
les/c
17879/17879
17863/17863/17863) [25,5,23] r=2 lpr=17879 crt=0'0
inactive NOTIFY] exit Start 0.000020 0 0.000000
     -9> 2015-04-27 10:17:08.808861 7fd8e748d700  5
osd.23

pg_epoch:

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

17882 pg[10.181( empty local-les=17879 n=0 ec=17863
les/c
17879/17879
17863/17863/17863) [25,5,23] r=2 lpr=17879 crt=0'0
inactive NOTIFY] enter Started/Stray
     -8> 2015-04-27 10:17:08.809427 7fd8e748d700  5
osd.23

pg_epoch:

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

17882 pg[2.189( empty local-les=16127 n=0 ec=1 les/c
16127/16344
16125/16125/16125) [23,5] r=0 lpr=17838 crt=0'0 mlcod
0'0 inactive] exit Reset 7.511623 45 0.000165
     -7> 2015-04-27 10:17:08.809445 7fd8e748d700  5
osd.23

pg_epoch:

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

17882 pg[2.189( empty local-les=16127 n=0 ec=1 les/c
16127/16344
16125/16125/16125) [23,5] r=0 lpr=17838 crt=0'0 mlcod
0'0 inactive] enter Started
     -6> 2015-04-27 10:17:08.809456 7fd8e748d700  5
osd.23

pg_epoch:

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

17882 pg[2.189( empty local-les=16127 n=0 ec=1 les/c
16127/16344
16125/16125/16125) [23,5] r=0 lpr=17838 crt=0'0 mlcod
0'0 inactive] enter Start
     -5> 2015-04-27 10:17:08.809468 7fd8e748d700  1
osd.23

pg_epoch:

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

17882 pg[2.189( empty local-les=16127 n=0 ec=1 les/c
16127/16344
16125/16125/16125) [23,5] r=0 lpr=17838 crt=0'0 mlcod
0'0 inactive]
state<Start>: transitioning to Primary
     -4> 2015-04-27 10:17:08.809479 7fd8e748d700  5
osd.23

pg_epoch:

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

17882 pg[2.189( empty local-les=16127 n=0 ec=1 les/c
16127/16344
16125/16125/16125) [23,5] r=0 lpr=17838 crt=0'0 mlcod
0'0 inactive] exit Start 0.000023 0 0.000000
     -3> 2015-04-27 10:17:08.809492 7fd8e748d700  5
osd.23

pg_epoch:

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

17882 pg[2.189( empty local-les=16127 n=0 ec=1 les/c
16127/16344
16125/16125/16125) [23,5] r=0 lpr=17838 crt=0'0 mlcod
0'0 inactive] enter Started/Primary
     -2> 2015-04-27 10:17:08.809502 7fd8e748d700  5
osd.23

pg_epoch:

Quoted 1 line
Quoted 16 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

17882 pg[2.189( empty local-les=16127 n=0 ec=1 les/c
16127/16344
16125/16125/16125) [23,5] r=0 lpr=17838 crt=0'0 mlcod
0'0 inactive] enter Started/Primary/Peering
     -1> 2015-04-27 10:17:08.809513 7fd8e748d700  5
osd.23

pg_epoch:

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 6 lines
Quoted 6 lines

17882 pg[2.189( empty local-les=16127 n=0 ec=1 les/c
16127/16344
16125/16125/16125) [23,5] r=0 lpr=17838 crt=0'0 mlcod
0'0 peering] enter Started/Primary/Peering/GetInfo
      0> 2015-04-27 10:17:08.813837 7fd8e748d700 -1

./include/interval_set.h:

Quoted 2 lines
Quoted 2 lines

In
function 'void interval_set<T>::erase(T, T) [with T =

snapid_t]'

Quoted 53 lines
Quoted 43 lines
Quoted 43 lines
Quoted 43 lines
Quoted 43 lines
Quoted 43 lines

thread
7fd8e748d700 time 2015-04-27 10:17:08.809899
./include/interval_set.h: 385: FAILED assert(_size >=
0)

  ceph version 0.94.1
(e4bfad3a3c51054df7e537a724c8d0bf9be972ff)
  1: (ceph::__ceph_assert_fail(char const*, char const*,
int, char
const*)+0x8b)
[0xbc271b]
  2:
(interval_set<snapid_t>::subtract(interval_set<snapid_t

const&)+0xb0) [0x82cd50]
  3: (PGPool::update(std::tr1::shared_ptr<OSDMap
const>)+0x52e) [0x80113e]
  4: (PG::handle_advance_map(std::tr1::shared_ptr<OSDMap
const>, std::tr1::shared_ptr<OSDMap const>,
const>std::vector<int,
std::allocator<int> >&, int, std::vector<int,
std::allocator<int>
&, int, PG::RecoveryCtx*)+0x282) [0x801652]
  5: (OSD::advance_pg(unsigned int, PG*,
ThreadPool::TPHandle&, PG::RecoveryCtx*,
std::set<boost::intrusive_ptr<PG>,
std::less<boost::intrusive_ptr<PG> >,
std::allocator<boost::intrusive_ptr<PG> > >*)+0x2c3)
[0x6b0e43]
  6: (OSD::process_peering_events(std::list<PG*,
std::allocator<PG*>
const&,
ThreadPool::TPHandle&)+0x21c) [0x6b191c]
  7: (OSD::PeeringWQ::_process(std::list<PG*,
std::allocator<PG*>
const&,
ThreadPool::TPHandle&)+0x18) [0x709278]
  8: (ThreadPool::worker(ThreadPool::WorkThread*)+0xa5e)
[0xbb38ae]
  9: (ThreadPool::WorkThread::entry()+0x10) [0xbb4950]
  10: (()+0x8182) [0x7fd906946182]
  11: (clone()+0x6d) [0x7fd904eb147d]

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 2 lines
Quoted 2 lines

Also by monitoring (ceph -w) I get the following
messages, also lots of

them.

Quoted 2 lines
Quoted 2 lines

2015-04-27 10:39:52.935812 mon.0 [INF] from='client.?

10.20.0.13:0/1174409'

Quoted 2 lines
Quoted 2 lines

entity='osd.30' cmd=[{"prefix": "osd crush
create-or-move",

"args":

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

["host=ceph3", "root=default"], "id": 30, "weight":

1.82}]:

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 3 lines
Quoted 3 lines

dispatch
2015-04-27 10:39:53.297376 mon.0 [INF] from='client.?

10.20.0.13:0/1174483'

Quoted 2 lines
Quoted 2 lines

entity='osd.26' cmd=[{"prefix": "osd crush
create-or-move",

"args":

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

["host=ceph3", "root=default"], "id": 26, "weight":

1.82}]:

Quoted 59 lines
Quoted 59 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

dispatch

This is a cluster of 3 nodes with 36 OSD's, nodes are
also mons and mds's to save servers. All run Ubuntu

14.04.2.

Quoted 52 lines
Quoted 52 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

I have pretty much tried everything I could think of.

Restarting daemons doesn't help.

Any help would be appreciated. I can also provide more
logs if necessary. They just seem to get pretty large
in few

moments.

Quoted 41 lines
Quoted 40 lines
Quoted 38 lines
Quoted 36 lines
Quoted 35 lines
Quoted 20 lines

Thank you
Tuomas

_______________________________________________
ceph-users mailing list [email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

_______________________________________________
ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

_______________________________________________
ceph-users mailing list [email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

_______________________________________________
ceph-users mailing list [email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Quoted 8 lines
Quoted 7 lines
Quoted 6 lines

_______________________________________________
ceph-users mailing list [email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Quoted 6 lines

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected] More majordomo info at  http://vger.kernel.org/majordomo-info.html

_______________________________________________
ceph-users mailing list [email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

_______________________________________________
ceph-users mailing list [email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

#4 lore raw

Thanks, I'll do this when the commit is available and report back.

And indeed, I'll change to the official ones after everything is ok.

Br,
Tuomas

Quoted 9 lines · On Fri, 1 May 2015, [email protected] wrote:
Quoted 7 lines

Hi

I deleted the images and img pools and started osd's, they still die.

Here's a log of one of the osd's after this, if you need it.

http://beta.xaasbox.com/ceph/ceph-osd.19.log

Quoted 543 lines

I've pushed another commit that should avoid this case, sha1 425bd4e1dba00cc2243b0c27232d1f9740b04e34.

Note that once the pools are fully deleted (shouldn't take too long once the osds are up and stabilize) you should switch back to the normal packages that don't have these workarounds.

sage

Quoted 532 lines

Br,
Tuomas

Quoted 16 lines

Thanks man. I'll try it tomorrow. Have a good one.

Br,T

-------- Original message --------
From: Sage Weil <[email protected]>
Date: 30/04/2015 18:23 (GMT+02:00)
To: Tuomas Juntunen <[email protected]>
Cc: [email protected], [email protected]
Subject: RE: [ceph-users] Upgrade from Giant to Hammer and after some basic

operations most of the OSD's went down

Quoted 2 lines · On Thu, 30 Apr 2015, [email protected] wrote:

Hey

Quoted 20 lines
Quoted 1 line

Yes I can drop the images data, you think this will fix it?

It's a slightly different assert that (I believe) should not trigger once the pool is deleted.  Please give that a try and if you still hit it I'll whip up a workaround.

Thanks!
sage

Quoted 11 lines

Br,

Tuomas

Quoted 5 lines · Tuomas Juntunen
Quoted 4 lines

Hi

I updated that version and it seems that something did happen, the osd's stayed up for a while and 'ceph status' got updated. But then in couple

of

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

minutes, they all went down the same way.

I have attached new 'ceph osd dump -f json-pretty' and got a new log

from

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 2 lines

one of the osd's with osd debug = 20,
http://beta.xaasbox.com/ceph/ceph-osd.15.log

Sam mentioned that you had said earlier that this was not critical data? If not, I think the simplest thing is to just drop those pools.  The important thing (from my perspective at least :) is that we understand

the

Quoted 13 lines
Quoted 13 lines
Quoted 13 lines

root cause and can prevent this in the future.

sage

Quoted 8 lines

Thank you!

Br,
Tuomas

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

-----Original Message-----
From: Sage Weil [mailto:[email protected]]
Sent: 28. huhtikuuta 2015 23:57
To: Tuomas Juntunen
Cc: [email protected]; [email protected]
Subject: Re: [ceph-users] Upgrade from Giant to Hammer and after some

basic

Quoted 117 lines
Quoted 117 lines
Quoted 117 lines
Quoted 117 lines

operations most of the OSD's went down

Hi Tuomas,

I've pushed an updated wip-hammer-snaps branch.  Can you please try it? The build will appear here

http://gitbuilder.ceph.com/ceph-deb-trusty-x86_64-basic/sha1/08bf531331afd5e
2eb514067f72afda11bcde286

(or a similar url; adjust for your distro).

Thanks!
sage

Quoted 98 lines · Sage Weil

[adding ceph-devel]

Okay, I see the problem.  This seems to be unrelated ot the giant -> hammer move... it's a result of the tiering changes you made:

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

The following:

ceph osd tier add img images --force-nonempty ceph osd
tier cache-mode images forward ceph osd tier set-overlay
img images

Specifically, --force-nonempty bypassed important safety checks.

1. images had snapshots (and removed_snaps)

2. images was added as a tier *of* img, and img's removed_snaps was copied to images, clobbering the removed_snaps value (see OSDMap::Incremental::propagate_snaps_to_tiers)

3. tiering relation was undone, but removed_snaps was still gone

4. on OSD startup, when we load the PG, removed_snaps is initialized with the older map.  later, in PGPool::update(), we assume that removed_snaps alwasy grows (never shrinks) and we trigger an assert.

To fix this I think we need to do 2 things:

1. make the OSD forgiving out removed_snaps getting smaller.  This is probably a good thing anyway: once we know snaps are removed on all OSDs we can prune the interval_set in the OSDMap.  Maybe.

2. Fix the mon to prevent this from happening, *even* when --force-nonempty is specified.  (This is the root cause.)

I've opened http://tracker.ceph.com/issues/11493 to track this.

sage

Quoted 58 lines
Quoted 58 lines
Quoted 58 lines
Quoted 58 lines
Quoted 58 lines
Quoted 3 lines

Idea was to make images as a tier to img, move data to img
then change

clients to use the new img pool.

Quoted 8 lines

Br,
Tuomas

Can you explain exactly what you mean by:

"Also I created one pool for tier to be able to move
data without

outage."

Quoted 45 lines

-Sam
----- Original Message -----
From: "tuomas juntunen"
<[email protected]>
To: "Ian Colle" <[email protected]>
Cc: [email protected]
Sent: Monday, April 27, 2015 4:23:44 AM
Subject: Re: [ceph-users] Upgrade from Giant to Hammer
and after some basic operations most of the OSD's went
down

Hi

Any solution for this yet?

Br,
Tuomas

It looks like you may have hit
http://tracker.ceph.com/issues/7915

Ian R. Colle
Global Director
of Software Engineering Red Hat (Inktank is now part of
Red Hat!) http://www.linkedin.com/in/ircolle
http://www.twitter.com/ircolle
Cell: +1.303.601.7713
Email: [email protected]

----- Original Message -----
From: "tuomas juntunen"
<[email protected]>
To: [email protected]
Sent: Monday, April 27, 2015 1:56:29 PM
Subject: [ceph-users] Upgrade from Giant to Hammer and
after some basic operations most of the OSD's went down

I upgraded Ceph from 0.87 Giant to 0.94.1 Hammer

Then created new pools and deleted some old ones. Also
I created one pool for tier to be able to move data
without

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

outage.

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 4 lines
Quoted 4 lines

After these operations all but 10 OSD's are down and
creating this kind of messages to logs, I get more than
100gb of these in a

night:

Quoted 2 lines
Quoted 2 lines

  -19> 2015-04-27 10:17:08.808584 7fd8e748d700  5

osd.23

Quoted 26 lines
Quoted 26 lines
Quoted 26 lines
Quoted 26 lines
Quoted 26 lines
Quoted 26 lines

pg_epoch:

Quoted 25 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines

17882 pg[0.189( v 8480'7 (0'0,8480'7] local-les=16609
n=0
ec=1 les/c
16609/16659
16590/16590/16590) [24,3,23] r=2 lpr=17838
pi=15659-16589/42
crt=8480'7 lcod
0'0 inactive NOTIFY] enter Started
    -18> 2015-04-27 10:17:08.808596 7fd8e748d700  5
osd.23

pg_epoch:

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines

17882 pg[0.189( v 8480'7 (0'0,8480'7] local-les=16609
n=0
ec=1 les/c
16609/16659
16590/16590/16590) [24,3,23] r=2 lpr=17838
pi=15659-16589/42
crt=8480'7 lcod
0'0 inactive NOTIFY] enter Start
    -17> 2015-04-27 10:17:08.808608 7fd8e748d700  1
osd.23

pg_epoch:

Quoted 1 line
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

17882 pg[0.189( v 8480'7 (0'0,8480'7] local-les=16609
n=0
ec=1 les/c
16609/16659
16590/16590/16590) [24,3,23] r=2 lpr=17838
pi=15659-16589/42
crt=8480'7 lcod
0'0 inactive NOTIFY] state<Start>: transitioning to

Stray

Quoted 149 lines
Quoted 149 lines
Quoted 149 lines
Quoted 149 lines
Quoted 149 lines
Quoted 149 lines
Quoted 132 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

    -16> 2015-04-27 10:17:08.808621 7fd8e748d700  5
osd.23

pg_epoch:

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines

17882 pg[0.189( v 8480'7 (0'0,8480'7] local-les=16609
n=0
ec=1 les/c
16609/16659
16590/16590/16590) [24,3,23] r=2 lpr=17838
pi=15659-16589/42
crt=8480'7 lcod
0'0 inactive NOTIFY] exit Start 0.000025 0 0.000000
    -15> 2015-04-27 10:17:08.808637 7fd8e748d700  5
osd.23

pg_epoch:

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines

17882 pg[0.189( v 8480'7 (0'0,8480'7] local-les=16609
n=0
ec=1 les/c
16609/16659
16590/16590/16590) [24,3,23] r=2 lpr=17838
pi=15659-16589/42
crt=8480'7 lcod
0'0 inactive NOTIFY] enter Started/Stray
    -14> 2015-04-27 10:17:08.808796 7fd8e748d700  5
osd.23

pg_epoch:

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

17882 pg[10.181( empty local-les=17879 n=0 ec=17863
les/c
17879/17879
17863/17863/17863) [25,5,23] r=2 lpr=17879 crt=0'0
inactive NOTIFY] exit Reset 0.119467 4 0.000037
    -13> 2015-04-27 10:17:08.808817 7fd8e748d700  5
osd.23

pg_epoch:

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

17882 pg[10.181( empty local-les=17879 n=0 ec=17863
les/c
17879/17879
17863/17863/17863) [25,5,23] r=2 lpr=17879 crt=0'0
inactive NOTIFY] enter Started
    -12> 2015-04-27 10:17:08.808828 7fd8e748d700  5
osd.23

pg_epoch:

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

17882 pg[10.181( empty local-les=17879 n=0 ec=17863
les/c
17879/17879
17863/17863/17863) [25,5,23] r=2 lpr=17879 crt=0'0
inactive NOTIFY] enter Start
    -11> 2015-04-27 10:17:08.808838 7fd8e748d700  1
osd.23

pg_epoch:

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

17882 pg[10.181( empty local-les=17879 n=0 ec=17863
les/c
17879/17879
17863/17863/17863) [25,5,23] r=2 lpr=17879 crt=0'0
inactive NOTIFY]
state<Start>: transitioning to Stray
    -10> 2015-04-27 10:17:08.808849 7fd8e748d700  5
osd.23

pg_epoch:

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

17882 pg[10.181( empty local-les=17879 n=0 ec=17863
les/c
17879/17879
17863/17863/17863) [25,5,23] r=2 lpr=17879 crt=0'0
inactive NOTIFY] exit Start 0.000020 0 0.000000
     -9> 2015-04-27 10:17:08.808861 7fd8e748d700  5
osd.23

pg_epoch:

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

17882 pg[10.181( empty local-les=17879 n=0 ec=17863
les/c
17879/17879
17863/17863/17863) [25,5,23] r=2 lpr=17879 crt=0'0
inactive NOTIFY] enter Started/Stray
     -8> 2015-04-27 10:17:08.809427 7fd8e748d700  5
osd.23

pg_epoch:

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

17882 pg[2.189( empty local-les=16127 n=0 ec=1 les/c
16127/16344
16125/16125/16125) [23,5] r=0 lpr=17838 crt=0'0 mlcod
0'0 inactive] exit Reset 7.511623 45 0.000165
     -7> 2015-04-27 10:17:08.809445 7fd8e748d700  5
osd.23

pg_epoch:

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

17882 pg[2.189( empty local-les=16127 n=0 ec=1 les/c
16127/16344
16125/16125/16125) [23,5] r=0 lpr=17838 crt=0'0 mlcod
0'0 inactive] enter Started
     -6> 2015-04-27 10:17:08.809456 7fd8e748d700  5
osd.23

pg_epoch:

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

17882 pg[2.189( empty local-les=16127 n=0 ec=1 les/c
16127/16344
16125/16125/16125) [23,5] r=0 lpr=17838 crt=0'0 mlcod
0'0 inactive] enter Start
     -5> 2015-04-27 10:17:08.809468 7fd8e748d700  1
osd.23

pg_epoch:

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

17882 pg[2.189( empty local-les=16127 n=0 ec=1 les/c
16127/16344
16125/16125/16125) [23,5] r=0 lpr=17838 crt=0'0 mlcod
0'0 inactive]
state<Start>: transitioning to Primary
     -4> 2015-04-27 10:17:08.809479 7fd8e748d700  5
osd.23

pg_epoch:

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

17882 pg[2.189( empty local-les=16127 n=0 ec=1 les/c
16127/16344
16125/16125/16125) [23,5] r=0 lpr=17838 crt=0'0 mlcod
0'0 inactive] exit Start 0.000023 0 0.000000
     -3> 2015-04-27 10:17:08.809492 7fd8e748d700  5
osd.23

pg_epoch:

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

17882 pg[2.189( empty local-les=16127 n=0 ec=1 les/c
16127/16344
16125/16125/16125) [23,5] r=0 lpr=17838 crt=0'0 mlcod
0'0 inactive] enter Started/Primary
     -2> 2015-04-27 10:17:08.809502 7fd8e748d700  5
osd.23

pg_epoch:

Quoted 1 line
Quoted 16 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

17882 pg[2.189( empty local-les=16127 n=0 ec=1 les/c
16127/16344
16125/16125/16125) [23,5] r=0 lpr=17838 crt=0'0 mlcod
0'0 inactive] enter Started/Primary/Peering
     -1> 2015-04-27 10:17:08.809513 7fd8e748d700  5
osd.23

pg_epoch:

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 6 lines

17882 pg[2.189( empty local-les=16127 n=0 ec=1 les/c
16127/16344
16125/16125/16125) [23,5] r=0 lpr=17838 crt=0'0 mlcod
0'0 peering] enter Started/Primary/Peering/GetInfo
      0> 2015-04-27 10:17:08.813837 7fd8e748d700 -1

./include/interval_set.h:

Quoted 2 lines

In
function 'void interval_set<T>::erase(T, T) [with T =

snapid_t]'

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

thread
7fd8e748d700 time 2015-04-27 10:17:08.809899
./include/interval_set.h: 385: FAILED assert(_size >=
0)

  ceph version 0.94.1
(e4bfad3a3c51054df7e537a724c8d0bf9be972ff)
  1: (ceph::__ceph_assert_fail(char const*, char

const*,

Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines

int, char
const*)+0x8b)
[0xbc271b]
  2:
(interval_set<snapid_t>::subtract(interval_set<snapid_t

const&)+0xb0) [0x82cd50]
  3: (PGPool::update(std::tr1::shared_ptr<OSDMap
const>)+0x52e) [0x80113e]
  4:

(PG::handle_advance_map(std::tr1::shared_ptr<OSDMap

Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines

const>, std::tr1::shared_ptr<OSDMap const>,
const>std::vector<int,
std::allocator<int> >&, int, std::vector<int,
std::allocator<int>
&, int, PG::RecoveryCtx*)+0x282) [0x801652]
  5: (OSD::advance_pg(unsigned int, PG*,
ThreadPool::TPHandle&, PG::RecoveryCtx*,
std::set<boost::intrusive_ptr<PG>,
std::less<boost::intrusive_ptr<PG> >,
std::allocator<boost::intrusive_ptr<PG> > >*)+0x2c3)
[0x6b0e43]
  6: (OSD::process_peering_events(std::list<PG*,
std::allocator<PG*>

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

const&,
ThreadPool::TPHandle&)+0x21c) [0x6b191c]
  7: (OSD::PeeringWQ::_process(std::list<PG*,
std::allocator<PG*>
const&,
ThreadPool::TPHandle&)+0x18) [0x709278]
  8:

(ThreadPool::worker(ThreadPool::WorkThread*)+0xa5e)

Quoted 105 lines
Quoted 94 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

[0xbb38ae]
  9: (ThreadPool::WorkThread::entry()+0x10) [0xbb4950]
  10: (()+0x8182) [0x7fd906946182]
  11: (clone()+0x6d) [0x7fd904eb147d]

Also by monitoring (ceph -w) I get the following
messages, also lots of

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

them.

Quoted 2 lines

2015-04-27 10:39:52.935812 mon.0 [INF] from='client.?

10.20.0.13:0/1174409'

Quoted 2 lines

entity='osd.30' cmd=[{"prefix": "osd crush
create-or-move",

"args":

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

["host=ceph3", "root=default"], "id": 30, "weight":

1.82}]:

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 3 lines

dispatch
2015-04-27 10:39:53.297376 mon.0 [INF] from='client.?

10.20.0.13:0/1174483'

Quoted 2 lines

entity='osd.26' cmd=[{"prefix": "osd crush
create-or-move",

"args":

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

["host=ceph3", "root=default"], "id": 26, "weight":

1.82}]:

Quoted 59 lines
Quoted 59 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

dispatch

This is a cluster of 3 nodes with 36 OSD's, nodes are
also mons and mds's to save servers. All run Ubuntu

14.04.2.

Quoted 52 lines
Quoted 52 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

I have pretty much tried everything I could think of.

Restarting daemons doesn't help.

Any help would be appreciated. I can also provide more
logs if necessary. They just seem to get pretty large
in few

moments.

Quoted 41 lines
Quoted 40 lines
Quoted 38 lines
Quoted 36 lines
Quoted 35 lines

Thank you
Tuomas

_______________________________________________
ceph-users mailing list [email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

_______________________________________________
ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

_______________________________________________
ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

_______________________________________________
ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Quoted 8 lines
Quoted 7 lines
Quoted 6 lines

_______________________________________________
ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Quoted 6 lines

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

_______________________________________________
ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): 56c96198e8b0d8e70fbf96fdd209d70a-Mp+lKDbUk+6SvdrsE3bNcA@public.gmane.org

#6 lore raw

Hi

Thanks Sage, I got it working now. Everything else seems to be ok, except mds is reporting "mds cluster is degraded", not sure what could be wrong. Mds is running and all osds are up and pg's are active+clean and active+clean+replay.

Had to delete some empty pools which were created while the osd's were not working and recovery started to go through.

Seems mds is not that stable, this isn't the first time it goes degraded. Before it just started to work, but now I just can't get it back working.

Thanks

Br,
Tuomas

-----Original Message-----
From: [email protected] [mailto:[email protected]]
Sent: 1. toukokuuta 2015 21:14
To: Sage Weil
Cc: tuomas.juntunen; [email protected]; [email protected]
Subject: Re: [ceph-users] Upgrade from Giant to Hammer and after some basic
operations most of the OSD's went down

Thanks, I'll do this when the commit is available and report back.

And indeed, I'll change to the official ones after everything is ok.

Br,
Tuomas

Quoted 9 lines · On Fri, 1 May 2015, [email protected]…
Quoted 7 lines

Hi

I deleted the images and img pools and started osd's, they still die.

Here's a log of one of the osd's after this, if you need it.

http://beta.xaasbox.com/ceph/ceph-osd.19.log

Quoted 64 lines

I've pushed another commit that should avoid this case, sha1 425bd4e1dba00cc2243b0c27232d1f9740b04e34.

Note that once the pools are fully deleted (shouldn't take too long once the osds are up and stabilize) you should switch back to the normal packages that don't have these workarounds.

sage

Quoted 53 lines

Br,
Tuomas

Quoted 17 lines

Thanks man. I'll try it tomorrow. Have a good one.

Br,T

-------- Original message --------
From: Sage Weil <[email protected]>
Date: 30/04/2015 18:23 (GMT+02:00)
To: Tuomas Juntunen <[email protected]>
Cc: [email protected], [email protected]
Subject: RE: [ceph-users] Upgrade from Giant to Hammer and after
some basic

operations most of the OSD's went down

Quoted 2 lines · On Thu, 30 Apr 2015, [email protected]…

Hey

Quoted 21 lines
Quoted 1 line

Yes I can drop the images data, you think this will fix it?

It's a slightly different assert that (I believe) should not trigger once the pool is deleted.  Please give that a try and if you still hit it I'll whip up a workaround.

Thanks!
sage

Quoted 12 lines

Br,

Tuomas

Quoted 6 lines · Tuomas Juntunen
Quoted 5 lines

Hi

I updated that version and it seems that something did happen, the osd's stayed up for a while and 'ceph status' got updated. But then in couple

of

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

minutes, they all went down the same way.

I have attached new 'ceph osd dump -f json-pretty' and got a new log

from

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 2 lines

one of the osd's with osd debug = 20,
http://beta.xaasbox.com/ceph/ceph-osd.15.log

Sam mentioned that you had said earlier that this was not critical

data?

Quoted 24 lines
Quoted 24 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

If not, I think the simplest thing is to just drop those pools. The important thing (from my perspective at least :) is that we understand

the

Quoted 20 lines
Quoted 20 lines
Quoted 20 lines

root cause and can prevent this in the future.

sage

Quoted 15 lines

Thank you!

Br,
Tuomas

-----Original Message-----
From: Sage Weil [mailto:[email protected]]
Sent: 28. huhtikuuta 2015 23:57
To: Tuomas Juntunen
Cc: [email protected]; [email protected]
Subject: Re: [ceph-users] Upgrade from Giant to Hammer and
after some

Quoted 6 lines
Quoted 6 lines

basic

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

operations most of the OSD's went down

Hi Tuomas,

I've pushed an updated wip-hammer-snaps branch.  Can you please

try it?

Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines

The build will appear here

http://gitbuilder.ceph.com/ceph-deb-trusty-x86_64-basic/sha1/08
bf531331afd5e
2eb514067f72afda11bcde286

(or a similar url; adjust for your distro).

Thanks!
sage

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines · Sage Weil
Quoted 5 lines

[adding ceph-devel]

Okay, I see the problem.  This seems to be unrelated ot the giant -> hammer move... it's a result of the tiering changes you

made:

Quoted 16 lines
Quoted 16 lines
Quoted 16 lines
Quoted 16 lines
Quoted 16 lines
Quoted 16 lines
Quoted 16 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

The following:

ceph osd tier add img images --force-nonempty
ceph osd tier cache-mode images forward ceph osd
tier set-overlay img images

Specifically, --force-nonempty bypassed important safety checks.

1. images had snapshots (and removed_snaps)

2. images was added as a tier *of* img, and img's removed_snaps was copied to images, clobbering the removed_snaps value (see OSDMap::Incremental::propagate_snaps_to_tiers)

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

3. tiering relation was undone, but removed_snaps was still gone

4. on OSD startup, when we load the PG, removed_snaps is initialized with the older map.  later, in PGPool::update(), we assume that removed_snaps alwasy grows (never shrinks) and we

trigger an assert.

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

To fix this I think we need to do 2 things:

1. make the OSD forgiving out removed_snaps getting smaller. This is probably a good thing anyway: once we know snaps are removed on all OSDs we can prune the interval_set in the

OSDMap.  Maybe.

Quoted 349 lines
Quoted 349 lines
Quoted 72 lines
Quoted 72 lines
Quoted 72 lines
Quoted 72 lines
Quoted 72 lines

2. Fix the mon to prevent this from happening, *even* when --force-nonempty is specified.  (This is the root cause.)

I've opened http://tracker.ceph.com/issues/11493 to track this.

sage

Quoted 62 lines
Quoted 54 lines
Quoted 54 lines
Quoted 54 lines
Quoted 54 lines
Quoted 3 lines

Idea was to make images as a tier to img, move
data to img then change

clients to use the new img pool.

Quoted 8 lines

Br,
Tuomas

Can you explain exactly what you mean by:

"Also I created one pool for tier to be able to
move data without

outage."

Quoted 41 lines

-Sam
----- Original Message -----
From: "tuomas juntunen"
<[email protected]>
To: "Ian Colle" <[email protected]>
Cc: [email protected]
Sent: Monday, April 27, 2015 4:23:44 AM
Subject: Re: [ceph-users] Upgrade from Giant to
Hammer and after some basic operations most of
the OSD's went down

Hi

Any solution for this yet?

Br,
Tuomas

It looks like you may have hit
http://tracker.ceph.com/issues/7915

Ian R. Colle
Global Director of Software Engineering Red
Hat (Inktank is now part of Red Hat!)
http://www.linkedin.com/in/ircolle
http://www.twitter.com/ircolle
Cell: +1.303.601.7713
Email: [email protected]

----- Original Message -----
From: "tuomas juntunen"
<[email protected]>
To: [email protected]
Sent: Monday, April 27, 2015 1:56:29 PM
Subject: [ceph-users] Upgrade from Giant to
Hammer and after some basic operations most of
the OSD's went down

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

I upgraded Ceph from 0.87 Giant to 0.94.1
Hammer

Then created new pools and deleted some old
ones. Also I created one pool for tier to be
able to move data without

outage.

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 3 lines
Quoted 3 lines

After these operations all but 10 OSD's are
down and creating this kind of messages to
logs, I get more than 100gb of these in a

night:

Quoted 3 lines
Quoted 3 lines

  -19> 2015-04-27 10:17:08.808584
7fd8e748d700  5

osd.23

Quoted 28 lines
Quoted 28 lines
Quoted 28 lines
Quoted 28 lines
Quoted 28 lines
Quoted 28 lines

pg_epoch:

Quoted 27 lines
Quoted 12 lines
Quoted 12 lines
Quoted 12 lines
Quoted 12 lines

17882 pg[0.189( v 8480'7 (0'0,8480'7]
local-les=16609
n=0
ec=1 les/c
16609/16659
16590/16590/16590) [24,3,23] r=2 lpr=17838
pi=15659-16589/42
crt=8480'7 lcod
0'0 inactive NOTIFY] enter Started     -18>
2015-04-27 10:17:08.808596 7fd8e748d700  5
osd.23

pg_epoch:

Quoted 12 lines
Quoted 12 lines
Quoted 12 lines
Quoted 12 lines

17882 pg[0.189( v 8480'7 (0'0,8480'7]
local-les=16609
n=0
ec=1 les/c
16609/16659
16590/16590/16590) [24,3,23] r=2 lpr=17838
pi=15659-16589/42
crt=8480'7 lcod
0'0 inactive NOTIFY] enter Start     -17>
2015-04-27 10:17:08.808608 7fd8e748d700  1
osd.23

pg_epoch:

Quoted 1 line
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines

17882 pg[0.189( v 8480'7 (0'0,8480'7]
local-les=16609
n=0
ec=1 les/c
16609/16659
16590/16590/16590) [24,3,23] r=2 lpr=17838
pi=15659-16589/42
crt=8480'7 lcod
0'0 inactive NOTIFY] state<Start>:
transitioning to

Stray

Quoted 187 lines
Quoted 187 lines
Quoted 187 lines
Quoted 187 lines
Quoted 187 lines
Quoted 187 lines
Quoted 166 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

    -16> 2015-04-27 10:17:08.808621
7fd8e748d700  5
osd.23

pg_epoch:

Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines

17882 pg[0.189( v 8480'7 (0'0,8480'7]
local-les=16609
n=0
ec=1 les/c
16609/16659
16590/16590/16590) [24,3,23] r=2 lpr=17838
pi=15659-16589/42
crt=8480'7 lcod
0'0 inactive NOTIFY] exit Start 0.000025 0
0.000000     -15> 2015-04-27 10:17:08.808637
7fd8e748d700  5
osd.23

pg_epoch:

Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines

17882 pg[0.189( v 8480'7 (0'0,8480'7]
local-les=16609
n=0
ec=1 les/c
16609/16659
16590/16590/16590) [24,3,23] r=2 lpr=17838
pi=15659-16589/42
crt=8480'7 lcod
0'0 inactive NOTIFY] enter Started/Stray   Â
-14> 2015-04-27 10:17:08.808796 7fd8e748d700Â
5
osd.23

pg_epoch:

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

17882 pg[10.181( empty local-les=17879 n=0
ec=17863 les/c
17879/17879
17863/17863/17863) [25,5,23] r=2 lpr=17879
crt=0'0 inactive NOTIFY] exit Reset 0.119467 4
0.000037     -13> 2015-04-27 10:17:08.808817
7fd8e748d700  5
osd.23

pg_epoch:

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

17882 pg[10.181( empty local-les=17879 n=0
ec=17863 les/c
17879/17879
17863/17863/17863) [25,5,23] r=2 lpr=17879
crt=0'0 inactive NOTIFY] enter Started   Â
-12> 2015-04-27 10:17:08.808828 7fd8e748d700Â
5
osd.23

pg_epoch:

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

17882 pg[10.181( empty local-les=17879 n=0
ec=17863 les/c
17879/17879
17863/17863/17863) [25,5,23] r=2 lpr=17879
crt=0'0 inactive NOTIFY] enter Start   Â
-11> 2015-04-27 10:17:08.808838 7fd8e748d700Â
1
osd.23

pg_epoch:

Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines

17882 pg[10.181( empty local-les=17879 n=0
ec=17863 les/c
17879/17879
17863/17863/17863) [25,5,23] r=2 lpr=17879
crt=0'0 inactive NOTIFY]
state<Start>: transitioning to Stray   Â
-10> 2015-04-27 10:17:08.808849 7fd8e748d700Â
5
osd.23

pg_epoch:

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

17882 pg[10.181( empty local-les=17879 n=0
ec=17863 les/c
17879/17879
17863/17863/17863) [25,5,23] r=2 lpr=17879
crt=0'0 inactive NOTIFY] exit Start 0.000020 0
0.000000      -9> 2015-04-27
10:17:08.808861 7fd8e748d700  5
osd.23

pg_epoch:

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

17882 pg[10.181( empty local-les=17879 n=0
ec=17863 les/c
17879/17879
17863/17863/17863) [25,5,23] r=2 lpr=17879
crt=0'0 inactive NOTIFY] enter Started/Stray Â
    -8> 2015-04-27 10:17:08.809427
7fd8e748d700  5
osd.23

pg_epoch:

Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines

17882 pg[2.189( empty local-les=16127 n=0 ec=1
les/c
16127/16344
16125/16125/16125) [23,5] r=0 lpr=17838
crt=0'0 mlcod
0'0 inactive] exit Reset 7.511623 45 0.000165
     -7> 2015-04-27 10:17:08.809445
7fd8e748d700  5
osd.23

pg_epoch:

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

17882 pg[2.189( empty local-les=16127 n=0 ec=1
les/c
16127/16344
16125/16125/16125) [23,5] r=0 lpr=17838
crt=0'0 mlcod
0'0 inactive] enter Started      -6>
2015-04-27 10:17:08.809456 7fd8e748d700  5
osd.23

pg_epoch:

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

17882 pg[2.189( empty local-les=16127 n=0 ec=1
les/c
16127/16344
16125/16125/16125) [23,5] r=0 lpr=17838
crt=0'0 mlcod
0'0 inactive] enter Start      -5>
2015-04-27 10:17:08.809468 7fd8e748d700  1
osd.23

pg_epoch:

Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines

17882 pg[2.189( empty local-les=16127 n=0 ec=1
les/c
16127/16344
16125/16125/16125) [23,5] r=0 lpr=17838
crt=0'0 mlcod
0'0 inactive]
state<Start>: transitioning to Primary    Â
-4> 2015-04-27 10:17:08.809479 7fd8e748d700  5
osd.23

pg_epoch:

Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines

17882 pg[2.189( empty local-les=16127 n=0 ec=1
les/c
16127/16344
16125/16125/16125) [23,5] r=0 lpr=17838
crt=0'0 mlcod
0'0 inactive] exit Start 0.000023 0 0.000000 Â
    -3> 2015-04-27 10:17:08.809492
7fd8e748d700  5
osd.23

pg_epoch:

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

17882 pg[2.189( empty local-les=16127 n=0 ec=1
les/c
16127/16344
16125/16125/16125) [23,5] r=0 lpr=17838
crt=0'0 mlcod
0'0 inactive] enter Started/Primary    Â
-2> 2015-04-27 10:17:08.809502 7fd8e748d700  5
osd.23

pg_epoch:

Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines

17882 pg[2.189( empty local-les=16127 n=0 ec=1
les/c
16127/16344
16125/16125/16125) [23,5] r=0 lpr=17838
crt=0'0 mlcod
0'0 inactive] enter Started/Primary/Peering Â
    -1> 2015-04-27 10:17:08.809513
7fd8e748d700  5
osd.23

Quoted 14 lines

pg_epoch:

Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
Quoted 9 lines

17882 pg[2.189( empty local-les=16127 n=0 ec=1
les/c
16127/16344
16125/16125/16125) [23,5] r=0 lpr=17838
crt=0'0 mlcod
0'0 peering] enter
Started/Primary/Peering/GetInfo       0>
2015-04-27 10:17:08.813837 7fd8e748d700 -1

./include/interval_set.h:

Quoted 3 lines

In
function 'void interval_set<T>::erase(T, T)
[with T =

snapid_t]'

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

thread
7fd8e748d700 time 2015-04-27 10:17:08.809899
./include/interval_set.h: 385: FAILED
assert(_size >=
0)

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

  ceph version 0.94.1
(e4bfad3a3c51054df7e537a724c8d0bf9be972ff)
  1: (ceph::__ceph_assert_fail(char const*,
char

const*,

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

int, char
const*)+0x8b)
[0xbc271b]
  2:

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

(interval_set<snapid_t>::subtract(interval_set<
snapid_t

const&)+0xb0) [0x82cd50]   3:
(PGPool::update(std::tr1::shared_ptr<OSDMap
const>)+0x52e) [0x80113e]
  4:

(PG::handle_advance_map(std::tr1::shared_ptr<OSDMap

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines

const>, std::tr1::shared_ptr<OSDMap const>,
const>std::vector<int,
std::allocator<int> >&, int, std::vector<int,
std::allocator<int>
&, int, PG::RecoveryCtx*)+0x282) [0x801652]
  5: (OSD::advance_pg(unsigned int, PG*,
ThreadPool::TPHandle&, PG::RecoveryCtx*,
std::set<boost::intrusive_ptr<PG>,
std::less<boost::intrusive_ptr<PG> >,
std::allocator<boost::intrusive_ptr<PG> >
*)+0x2c3) [0x6b0e43]   6:

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

(OSD::process_peering_events(std::list<PG*,
std::allocator<PG*>
const&,
ThreadPool::TPHandle&)+0x21c) [0x6b191c]   7:
(OSD::PeeringWQ::_process(std::list<PG*,
std::allocator<PG*>
const&,
ThreadPool::TPHandle&)+0x18) [0x709278]   8:

(ThreadPool::worker(ThreadPool::WorkThread*)+0xa5e)

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

[0xbb38ae]
  9: (ThreadPool::WorkThread::entry()+0x10)
[0xbb4950]   10: (()+0x8182) [0x7fd906946182]
  11: (clone()+0x6d) [0x7fd904eb147d]

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 2 lines

Also by monitoring (ceph -w) I get the
following messages, also lots of

them.

Quoted 2 lines

2015-04-27 10:39:52.935812 mon.0 [INF]

from='client.?

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

10.20.0.13:0/1174409'

Quoted 2 lines

entity='osd.30' cmd=[{"prefix": "osd crush
create-or-move",

"args":

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

["host=ceph3", "root=default"], "id": 30,

"weight":

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

1.82}]:

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

dispatch
2015-04-27 10:39:53.297376 mon.0 [INF]

from='client.?

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

10.20.0.13:0/1174483'

Quoted 2 lines

entity='osd.26' cmd=[{"prefix": "osd crush
create-or-move",

"args":

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

["host=ceph3", "root=default"], "id": 26,

"weight":

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines

1.82}]:

Quoted 10 lines
Quoted 10 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

dispatch

This is a cluster of 3 nodes with 36 OSD's,
nodes are also mons and mds's to save servers.
All run Ubuntu

14.04.2.

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

I have pretty much tried everything I could think

of.

Quoted 78 lines
Quoted 78 lines
Quoted 75 lines
Quoted 63 lines
Quoted 53 lines
Quoted 53 lines
Quoted 53 lines
Quoted 53 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

Restarting daemons doesn't help.

Any help would be appreciated. I can also
provide more logs if necessary. They just seem
to get pretty large in few

moments.

Quoted 44 lines
Quoted 43 lines
Quoted 41 lines
Quoted 39 lines
Quoted 38 lines

Thank you
Tuomas

______________________________________________
_ ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-
ceph.com

_______________________________________________
ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-c
eph.com

_______________________________________________
ceph-users mailing list [email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-cep
h.com

_______________________________________________
ceph-users mailing list [email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-cep
h.com

Quoted 8 lines
Quoted 7 lines
Quoted 6 lines

_______________________________________________
ceph-users mailing list [email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Quoted 7 lines

--
To unsubscribe from this list: send the line "unsubscribe
ceph-devel" in the body of a message to [email protected] More majordomo info atÂ
http://vger.kernel.org/majordomo-info.html

_______________________________________________
ceph-users mailing list [email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): 90c912f778464020445a8a09c7d8c7f5-Mp+lKDbUk+6SvdrsE3bNcA@public.gmane.org

#9 lore raw
Quoted 6 lines · Tuomas Juntunen

Hi

Thanks Sage, I got it working now. Everything else seems to be ok, except mds is reporting "mds cluster is degraded", not sure what could be wrong. Mds is running and all osds are up and pg's are active+clean and active+clean+replay.

Great! The 'replay' part should clear after a minute or two.

Quoted 5 lines

Had to delete some empty pools which were created while the osd's were not working and recovery started to go through.

Seems mds is not that stable, this isn't the first time it goes degraded. Before it just started to work, but now I just can't get it back working.

What does 'ceph mds dump' say?

sage

Quoted 555 lines

Thanks

Br,
Tuomas

-----Original Message-----
From: [email protected] [mailto:[email protected]]
Sent: 1. toukokuuta 2015 21:14
To: Sage Weil
Cc: tuomas.juntunen; [email protected]; [email protected]
Subject: Re: [ceph-users] Upgrade from Giant to Hammer and after some basic
operations most of the OSD's went down

Thanks, I'll do this when the commit is available and report back.

And indeed, I'll change to the official ones after everything is ok.

Br,
Tuomas

Quoted 9 lines · On Fri, 1 May 2015, [email protected]…
Quoted 7 lines

Hi

I deleted the images and img pools and started osd's, they still die.

Here's a log of one of the osd's after this, if you need it.

http://beta.xaasbox.com/ceph/ceph-osd.19.log

Quoted 64 lines

I've pushed another commit that should avoid this case, sha1 425bd4e1dba00cc2243b0c27232d1f9740b04e34.

Note that once the pools are fully deleted (shouldn't take too long once the osds are up and stabilize) you should switch back to the normal packages that don't have these workarounds.

sage

Quoted 53 lines

Br,
Tuomas

Quoted 17 lines

Thanks man. I'll try it tomorrow. Have a good one.

Br,T

-------- Original message --------
From: Sage Weil <[email protected]>
Date: 30/04/2015 18:23 (GMT+02:00)
To: Tuomas Juntunen <[email protected]>
Cc: [email protected], [email protected]
Subject: RE: [ceph-users] Upgrade from Giant to Hammer and after
some basic

operations most of the OSD's went down

Quoted 2 lines · On Thu, 30 Apr 2015, [email protected]…

Hey

Quoted 21 lines
Quoted 1 line

Yes I can drop the images data, you think this will fix it?

It's a slightly different assert that (I believe) should not trigger once the pool is deleted.  Please give that a try and if you still hit it I'll whip up a workaround.

Thanks!
sage

Quoted 12 lines

Br,

Tuomas

Quoted 6 lines · Tuomas Juntunen
Quoted 5 lines

Hi

I updated that version and it seems that something did happen, the osd's stayed up for a while and 'ceph status' got updated. But then in couple

of

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

minutes, they all went down the same way.

I have attached new 'ceph osd dump -f json-pretty' and got a new log

from

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 2 lines

one of the osd's with osd debug = 20,
http://beta.xaasbox.com/ceph/ceph-osd.15.log

Sam mentioned that you had said earlier that this was not critical

data?

Quoted 24 lines
Quoted 24 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

If not, I think the simplest thing is to just drop those pools. The important thing (from my perspective at least :) is that we understand

the

Quoted 20 lines
Quoted 20 lines
Quoted 20 lines

root cause and can prevent this in the future.

sage

Quoted 15 lines

Thank you!

Br,
Tuomas

-----Original Message-----
From: Sage Weil [mailto:[email protected]]
Sent: 28. huhtikuuta 2015 23:57
To: Tuomas Juntunen
Cc: [email protected]; [email protected]
Subject: Re: [ceph-users] Upgrade from Giant to Hammer and
after some

Quoted 6 lines
Quoted 6 lines

basic

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

operations most of the OSD's went down

Hi Tuomas,

I've pushed an updated wip-hammer-snaps branch.  Can you please

try it?

Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines

The build will appear here

http://gitbuilder.ceph.com/ceph-deb-trusty-x86_64-basic/sha1/08
bf531331afd5e
2eb514067f72afda11bcde286

(or a similar url; adjust for your distro).

Thanks!
sage

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines · Sage Weil
Quoted 5 lines

[adding ceph-devel]

Okay, I see the problem.  This seems to be unrelated ot the giant -> hammer move... it's a result of the tiering changes you

made:

Quoted 16 lines
Quoted 16 lines
Quoted 16 lines
Quoted 16 lines
Quoted 16 lines
Quoted 16 lines
Quoted 16 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

The following:

ceph osd tier add img images --force-nonempty
ceph osd tier cache-mode images forward ceph osd
tier set-overlay img images

Specifically, --force-nonempty bypassed important safety checks.

1. images had snapshots (and removed_snaps)

2. images was added as a tier *of* img, and img's removed_snaps was copied to images, clobbering the removed_snaps value (see OSDMap::Incremental::propagate_snaps_to_tiers)

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

3. tiering relation was undone, but removed_snaps was still gone

4. on OSD startup, when we load the PG, removed_snaps is initialized with the older map.  later, in PGPool::update(), we assume that removed_snaps alwasy grows (never shrinks) and we

trigger an assert.

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

To fix this I think we need to do 2 things:

1. make the OSD forgiving out removed_snaps getting smaller. This is probably a good thing anyway: once we know snaps are removed on all OSDs we can prune the interval_set in the

OSDMap.  Maybe.

Quoted 349 lines
Quoted 349 lines
Quoted 72 lines
Quoted 72 lines
Quoted 72 lines
Quoted 72 lines
Quoted 72 lines

2. Fix the mon to prevent this from happening, *even* when --force-nonempty is specified.  (This is the root cause.)

I've opened http://tracker.ceph.com/issues/11493 to track this.

sage

Quoted 62 lines
Quoted 54 lines
Quoted 54 lines
Quoted 54 lines
Quoted 54 lines

Idea was to make images as a tier to img, move
data to img then change
clients to use the new img pool.

Br,
Tuomas

Can you explain exactly what you mean by:

"Also I created one pool for tier to be able to
move data without
outage."

-Sam
----- Original Message -----
From: "tuomas juntunen"
<[email protected]>
To: "Ian Colle" <[email protected]>
Cc: [email protected]
Sent: Monday, April 27, 2015 4:23:44 AM
Subject: Re: [ceph-users] Upgrade from Giant to
Hammer and after some basic operations most of
the OSD's went down

Hi

Any solution for this yet?

Br,
Tuomas

It looks like you may have hit
http://tracker.ceph.com/issues/7915

Ian R. Colle
Global Director of Software Engineering Red
Hat (Inktank is now part of Red Hat!)
http://www.linkedin.com/in/ircolle
http://www.twitter.com/ircolle
Cell: +1.303.601.7713
Email: [email protected]

----- Original Message -----
From: "tuomas juntunen"
<[email protected]>
To: [email protected]
Sent: Monday, April 27, 2015 1:56:29 PM
Subject: [ceph-users] Upgrade from Giant to
Hammer and after some basic operations most of
the OSD's went down

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

I upgraded Ceph from 0.87 Giant to 0.94.1
Hammer

Then created new pools and deleted some old
ones. Also I created one pool for tier to be
able to move data without

outage.

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 3 lines

After these operations all but 10 OSD's are
down and creating this kind of messages to
logs, I get more than 100gb of these in a

night:

Quoted 3 lines

  -19> 2015-04-27 10:17:08.808584
7fd8e748d700  5

osd.23

Quoted 28 lines
Quoted 28 lines
Quoted 28 lines
Quoted 28 lines
Quoted 28 lines
Quoted 28 lines

pg_epoch:

Quoted 27 lines
Quoted 12 lines
Quoted 12 lines
Quoted 12 lines

17882 pg[0.189( v 8480'7 (0'0,8480'7]
local-les=16609
n=0
ec=1 les/c
16609/16659
16590/16590/16590) [24,3,23] r=2 lpr=17838
pi=15659-16589/42
crt=8480'7 lcod
0'0 inactive NOTIFY] enter Started     -18>
2015-04-27 10:17:08.808596 7fd8e748d700  5
osd.23

pg_epoch:

Quoted 12 lines
Quoted 12 lines
Quoted 12 lines

17882 pg[0.189( v 8480'7 (0'0,8480'7]
local-les=16609
n=0
ec=1 les/c
16609/16659
16590/16590/16590) [24,3,23] r=2 lpr=17838
pi=15659-16589/42
crt=8480'7 lcod
0'0 inactive NOTIFY] enter Start     -17>
2015-04-27 10:17:08.808608 7fd8e748d700  1
osd.23

pg_epoch:

Quoted 1 line
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines

17882 pg[0.189( v 8480'7 (0'0,8480'7]
local-les=16609
n=0
ec=1 les/c
16609/16659
16590/16590/16590) [24,3,23] r=2 lpr=17838
pi=15659-16589/42
crt=8480'7 lcod
0'0 inactive NOTIFY] state<Start>:
transitioning to

Stray

Quoted 187 lines
Quoted 187 lines
Quoted 187 lines
Quoted 187 lines
Quoted 187 lines
Quoted 187 lines
Quoted 166 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

    -16> 2015-04-27 10:17:08.808621
7fd8e748d700  5
osd.23

pg_epoch:

Quoted 13 lines
Quoted 13 lines
Quoted 13 lines

17882 pg[0.189( v 8480'7 (0'0,8480'7]
local-les=16609
n=0
ec=1 les/c
16609/16659
16590/16590/16590) [24,3,23] r=2 lpr=17838
pi=15659-16589/42
crt=8480'7 lcod
0'0 inactive NOTIFY] exit Start 0.000025 0
0.000000     -15> 2015-04-27 10:17:08.808637
7fd8e748d700  5
osd.23

pg_epoch:

Quoted 13 lines
Quoted 13 lines
Quoted 13 lines

17882 pg[0.189( v 8480'7 (0'0,8480'7]
local-les=16609
n=0
ec=1 les/c
16609/16659
16590/16590/16590) [24,3,23] r=2 lpr=17838
pi=15659-16589/42
crt=8480'7 lcod
0'0 inactive NOTIFY] enter Started/Stray   Â
-14> 2015-04-27 10:17:08.808796 7fd8e748d700Â
5
osd.23

pg_epoch:

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

17882 pg[10.181( empty local-les=17879 n=0
ec=17863 les/c
17879/17879
17863/17863/17863) [25,5,23] r=2 lpr=17879
crt=0'0 inactive NOTIFY] exit Reset 0.119467 4
0.000037     -13> 2015-04-27 10:17:08.808817
7fd8e748d700  5
osd.23

pg_epoch:

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

17882 pg[10.181( empty local-les=17879 n=0
ec=17863 les/c
17879/17879
17863/17863/17863) [25,5,23] r=2 lpr=17879
crt=0'0 inactive NOTIFY] enter Started   Â
-12> 2015-04-27 10:17:08.808828 7fd8e748d700Â
5
osd.23

pg_epoch:

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

17882 pg[10.181( empty local-les=17879 n=0
ec=17863 les/c
17879/17879
17863/17863/17863) [25,5,23] r=2 lpr=17879
crt=0'0 inactive NOTIFY] enter Start   Â
-11> 2015-04-27 10:17:08.808838 7fd8e748d700Â
1
osd.23

pg_epoch:

Quoted 10 lines
Quoted 10 lines
Quoted 10 lines

17882 pg[10.181( empty local-les=17879 n=0
ec=17863 les/c
17879/17879
17863/17863/17863) [25,5,23] r=2 lpr=17879
crt=0'0 inactive NOTIFY]
state<Start>: transitioning to Stray   Â
-10> 2015-04-27 10:17:08.808849 7fd8e748d700Â
5
osd.23

pg_epoch:

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

17882 pg[10.181( empty local-les=17879 n=0
ec=17863 les/c
17879/17879
17863/17863/17863) [25,5,23] r=2 lpr=17879
crt=0'0 inactive NOTIFY] exit Start 0.000020 0
0.000000      -9> 2015-04-27
10:17:08.808861 7fd8e748d700  5
osd.23

pg_epoch:

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

17882 pg[10.181( empty local-les=17879 n=0
ec=17863 les/c
17879/17879
17863/17863/17863) [25,5,23] r=2 lpr=17879
crt=0'0 inactive NOTIFY] enter Started/Stray Â
    -8> 2015-04-27 10:17:08.809427
7fd8e748d700  5
osd.23

pg_epoch:

Quoted 10 lines
Quoted 10 lines
Quoted 10 lines

17882 pg[2.189( empty local-les=16127 n=0 ec=1
les/c
16127/16344
16125/16125/16125) [23,5] r=0 lpr=17838
crt=0'0 mlcod
0'0 inactive] exit Reset 7.511623 45 0.000165
     -7> 2015-04-27 10:17:08.809445
7fd8e748d700  5
osd.23

pg_epoch:

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

17882 pg[2.189( empty local-les=16127 n=0 ec=1
les/c
16127/16344
16125/16125/16125) [23,5] r=0 lpr=17838
crt=0'0 mlcod
0'0 inactive] enter Started      -6>
2015-04-27 10:17:08.809456 7fd8e748d700  5
osd.23

pg_epoch:

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

17882 pg[2.189( empty local-les=16127 n=0 ec=1
les/c
16127/16344
16125/16125/16125) [23,5] r=0 lpr=17838
crt=0'0 mlcod
0'0 inactive] enter Start      -5>
2015-04-27 10:17:08.809468 7fd8e748d700  1
osd.23

pg_epoch:

Quoted 10 lines
Quoted 10 lines
Quoted 10 lines

17882 pg[2.189( empty local-les=16127 n=0 ec=1
les/c
16127/16344
16125/16125/16125) [23,5] r=0 lpr=17838
crt=0'0 mlcod
0'0 inactive]
state<Start>: transitioning to Primary    Â
-4> 2015-04-27 10:17:08.809479 7fd8e748d700  5
osd.23

pg_epoch:

Quoted 10 lines
Quoted 10 lines
Quoted 10 lines

17882 pg[2.189( empty local-les=16127 n=0 ec=1
les/c
16127/16344
16125/16125/16125) [23,5] r=0 lpr=17838
crt=0'0 mlcod
0'0 inactive] exit Start 0.000023 0 0.000000 Â
    -3> 2015-04-27 10:17:08.809492
7fd8e748d700  5
osd.23

pg_epoch:

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

17882 pg[2.189( empty local-les=16127 n=0 ec=1
les/c
16127/16344
16125/16125/16125) [23,5] r=0 lpr=17838
crt=0'0 mlcod
0'0 inactive] enter Started/Primary    Â
-2> 2015-04-27 10:17:08.809502 7fd8e748d700  5
osd.23

pg_epoch:

Quoted 10 lines
Quoted 10 lines
Quoted 10 lines

17882 pg[2.189( empty local-les=16127 n=0 ec=1
les/c
16127/16344
16125/16125/16125) [23,5] r=0 lpr=17838
crt=0'0 mlcod
0'0 inactive] enter Started/Primary/Peering Â
    -1> 2015-04-27 10:17:08.809513
7fd8e748d700  5
osd.23

Quoted 14 lines

pg_epoch:

Quoted 13 lines
Quoted 13 lines
Quoted 13 lines

17882 pg[2.189( empty local-les=16127 n=0 ec=1
les/c
16127/16344
16125/16125/16125) [23,5] r=0 lpr=17838
crt=0'0 mlcod
0'0 peering] enter
Started/Primary/Peering/GetInfo       0>
2015-04-27 10:17:08.813837 7fd8e748d700 -1
./include/interval_set.h:
In
function 'void interval_set<T>::erase(T, T)
[with T =

snapid_t]'

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

thread
7fd8e748d700 time 2015-04-27 10:17:08.809899
./include/interval_set.h: 385: FAILED
assert(_size >=
0)

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

  ceph version 0.94.1
(e4bfad3a3c51054df7e537a724c8d0bf9be972ff)
  1: (ceph::__ceph_assert_fail(char const*,
char

const*,

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

int, char
const*)+0x8b)
[0xbc271b]
  2:

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

(interval_set<snapid_t>::subtract(interval_set<
snapid_t

const&)+0xb0) [0x82cd50]   3:
(PGPool::update(std::tr1::shared_ptr<OSDMap
const>)+0x52e) [0x80113e]
  4:

(PG::handle_advance_map(std::tr1::shared_ptr<OSDMap

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines

const>, std::tr1::shared_ptr<OSDMap const>,
const>std::vector<int,
std::allocator<int> >&, int, std::vector<int,
std::allocator<int>
&, int, PG::RecoveryCtx*)+0x282) [0x801652]
  5: (OSD::advance_pg(unsigned int, PG*,
ThreadPool::TPHandle&, PG::RecoveryCtx*,
std::set<boost::intrusive_ptr<PG>,
std::less<boost::intrusive_ptr<PG> >,
std::allocator<boost::intrusive_ptr<PG> >
*)+0x2c3) [0x6b0e43]   6:

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

(OSD::process_peering_events(std::list<PG*,
std::allocator<PG*>
const&,
ThreadPool::TPHandle&)+0x21c) [0x6b191c]   7:
(OSD::PeeringWQ::_process(std::list<PG*,
std::allocator<PG*>
const&,
ThreadPool::TPHandle&)+0x18) [0x709278]   8:

(ThreadPool::worker(ThreadPool::WorkThread*)+0xa5e)

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

[0xbb38ae]
  9: (ThreadPool::WorkThread::entry()+0x10)
[0xbb4950]   10: (()+0x8182) [0x7fd906946182]
  11: (clone()+0x6d) [0x7fd904eb147d]

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

Also by monitoring (ceph -w) I get the
following messages, also lots of
them.

2015-04-27 10:39:52.935812 mon.0 [INF]

from='client.?

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

10.20.0.13:0/1174409'
entity='osd.30' cmd=[{"prefix": "osd crush
create-or-move",

"args":

Quoted 1 line
Quoted 1 line
Quoted 1 line

["host=ceph3", "root=default"], "id": 30,

"weight":

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

1.82}]:

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

dispatch
2015-04-27 10:39:53.297376 mon.0 [INF]

from='client.?

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

10.20.0.13:0/1174483'
entity='osd.26' cmd=[{"prefix": "osd crush
create-or-move",

"args":

Quoted 1 line
Quoted 1 line
Quoted 1 line

["host=ceph3", "root=default"], "id": 26,

"weight":

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

1.82}]:

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

dispatch

Quoted 89 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

This is a cluster of 3 nodes with 36 OSD's,
nodes are also mons and mds's to save servers.
All run Ubuntu

14.04.2.

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

I have pretty much tried everything I could think

of.

Quoted 78 lines
Quoted 78 lines
Quoted 75 lines
Quoted 63 lines
Quoted 53 lines
Quoted 53 lines
Quoted 53 lines
Quoted 53 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

Restarting daemons doesn't help.

Any help would be appreciated. I can also
provide more logs if necessary. They just seem
to get pretty large in few

moments.

Quoted 44 lines
Quoted 43 lines
Quoted 41 lines
Quoted 39 lines

Thank you
Tuomas

______________________________________________
_ ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-
ceph.com

_______________________________________________
ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-c
eph.com

_______________________________________________
ceph-users mailing list [email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-cep
h.com

_______________________________________________
ceph-users mailing list [email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-cep
h.com

Quoted 8 lines
Quoted 7 lines
Quoted 6 lines

_______________________________________________
ceph-users mailing list [email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Quoted 7 lines

--
To unsubscribe from this list: send the line "unsubscribe
ceph-devel" in the body of a message to [email protected] More majordomo info atÂ
http://vger.kernel.org/majordomo-info.html

_______________________________________________
ceph-users mailing list [email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

_______________________________________________
ceph-users mailing list [email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

A message that is not in the archive (sent off-list or not yet received): alpine.DEB.2.00.1505040828590.24939-vIokxiIdD2AQNTJnQDzGJqxOck334EZe@public.gmane.org

#11 lore raw

Hi below is the mds dump

dumped mdsmap epoch 1799
epoch 1799
flags 0
created 2014-12-10 12:44:34.188118
modified 2015-05-04 07:16:37.205350
tableserver 0
root 0
session_timeout 60
session_autoclose 300
max_file_size 1099511627776
last_failure 1794
last_failure_osd_epoch 21750
compat compat={},rocompat={},incompat={1=base v0.20,2=client writeable ranges,3=default file layouts on dirs,4=dir inode in separate object,5=mds uses versioned encoding,6=dirfrag is stored in omap,8=no anchor table} max_mds 1
in 0
up {0=5827504}
failed
stopped

data_pools      0
metadata_pool   1
inline_data     disabled
5827504:        10.20.0.11:6800/3382530 'ceph1' mds.0.262 up:rejoin seq

33159

The active+clean+replay has been there for a day now, so there must be something that is not ok, if it should've gone away in cople of minutes.

Thanks

Tuomas

-----Original Message-----
From: Sage Weil [mailto:[email protected]]
Sent: 4. toukokuuta 2015 18:29
To: Tuomas Juntunen
Cc: [email protected]; [email protected]
Subject: RE: [ceph-users] Upgrade from Giant to Hammer and after some basic
operations most of the OSD's went down

Quoted 4 lines · Tuomas Juntunen

Hi

Thanks Sage, I got it working now. Everything else seems to be ok, except mds is reporting "mds cluster is degraded", not sure what could be

wrong.

Quoted 2 lines

Mds is running and all osds are up and pg's are active+clean and active+clean+replay.

Great! The 'replay' part should clear after a minute or two.

Quoted 5 lines

Had to delete some empty pools which were created while the osd's were not working and recovery started to go through.

Seems mds is not that stable, this isn't the first time it goes degraded. Before it just started to work, but now I just can't get it back working.

What does 'ceph mds dump' say?

sage

Quoted 17 lines

Thanks

Br,
Tuomas

-----Original Message-----
From: [email protected] [mailto:[email protected]]
Sent: 1. toukokuuta 2015 21:14
To: Sage Weil
Cc: tuomas.juntunen; [email protected]; [email protected]
Subject: Re: [ceph-users] Upgrade from Giant to Hammer and after some basic operations most of the OSD's went down

Quoted 69 lines

Thanks, I'll do this when the commit is available and report back.

And indeed, I'll change to the official ones after everything is ok.

Br,
Tuomas

Quoted 62 lines · On Fri, 1 May 2015, [email protected]…
Quoted 7 lines

Hi

I deleted the images and img pools and started osd's, they still die.

Here's a log of one of the osd's after this, if you need it.

http://beta.xaasbox.com/ceph/ceph-osd.19.log

I've pushed another commit that should avoid this case, sha1 425bd4e1dba00cc2243b0c27232d1f9740b04e34.

Note that once the pools are fully deleted (shouldn't take too long once the osds are up and stabilize) you should switch back to the normal packages that don't have these workarounds.

sage

Quoted 42 lines

Br,
Tuomas

Quoted 37 lines

Thanks man. I'll try it tomorrow. Have a good one.

Br,T

-------- Original message --------
From: Sage Weil <[email protected]>
Date: 30/04/2015 18:23 (GMT+02:00)
To: Tuomas Juntunen <[email protected]>
Cc: [email protected], [email protected]
Subject: RE: [ceph-users] Upgrade from Giant to Hammer and after
some basic

operations most of the OSD's went down

Quoted 3 lines · On Thu, 30 Apr 2015, [email protected]…

Hey

Yes I can drop the images data, you think this will fix it?

It's a slightly different assert that (I believe) should not trigger once the pool is deleted.  Please give that a try and if you still hit it I'll whip up a workaround.

Thanks!
sage

Quoted 11 lines

Br,

Tuomas

Quoted 5 lines · Tuomas Juntunen
Quoted 4 lines

Hi

I updated that version and it seems that something did happen, the osd's stayed up for a while and 'ceph status' got

updated.

Quoted 59 lines
Quoted 4 lines
Quoted 4 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

But then in couple

of

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

minutes, they all went down the same way.

Quoted 8 lines
Quoted 8 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

I have attached new 'ceph osd dump -f json-pretty' and got a new log

from

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 2 lines

one of the osd's with osd debug = 20,
http://beta.xaasbox.com/ceph/ceph-osd.15.log

Sam mentioned that you had said earlier that this was not critical

data?

Quoted 24 lines
Quoted 24 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

If not, I think the simplest thing is to just drop those pools. The important thing (from my perspective at least :) is that we understand

the

Quoted 20 lines
Quoted 20 lines
Quoted 20 lines

root cause and can prevent this in the future.

sage

Quoted 15 lines

Thank you!

Br,
Tuomas

-----Original Message-----
From: Sage Weil [mailto:[email protected]]
Sent: 28. huhtikuuta 2015 23:57
To: Tuomas Juntunen
Cc: [email protected]; [email protected]
Subject: Re: [ceph-users] Upgrade from Giant to Hammer and
after some

Quoted 7 lines
Quoted 7 lines

basic

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

operations most of the OSD's went down

Hi Tuomas,

I've pushed an updated wip-hammer-snaps branch.  Can you please

try it?

Quoted 14 lines
Quoted 14 lines
Quoted 14 lines
Quoted 14 lines
Quoted 14 lines
Quoted 14 lines

The build will appear here

http://gitbuilder.ceph.com/ceph-deb-trusty-x86_64-basic/sha1/
08
bf531331afd5e
2eb514067f72afda11bcde286

(or a similar url; adjust for your distro).

Thanks!
sage

Quoted 16 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines · Sage Weil
Quoted 6 lines

[adding ceph-devel]

Okay, I see the problem.  This seems to be unrelated ot the giant -> hammer move... it's a result of the tiering changes you

made:

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

The following:

ceph osd tier add img images --force-nonempty
ceph osd tier cache-mode images forward ceph
osd tier set-overlay img images

Specifically, --force-nonempty bypassed important safety

checks.

Quoted 503 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

1. images had snapshots (and removed_snaps)

2. images was added as a tier *of* img, and img's removed_snaps was copied to images, clobbering the removed_snaps value (see OSDMap::Incremental::propagate_snaps_to_tiers)

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

3. tiering relation was undone, but removed_snaps was still gone

4. on OSD startup, when we load the PG, removed_snaps is initialized with the older map.  later, in PGPool::update(), we assume that removed_snaps alwasy grows (never shrinks) and we

trigger an assert.

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

To fix this I think we need to do 2 things:

1. make the OSD forgiving out removed_snaps getting smaller. This is probably a good thing anyway: once we know snaps are removed on all OSDs we can prune the interval_set in the

OSDMap.  Maybe.

Quoted 355 lines
Quoted 355 lines
Quoted 71 lines
Quoted 71 lines
Quoted 71 lines
Quoted 71 lines
Quoted 71 lines

2. Fix the mon to prevent this from happening, *even* when --force-nonempty is specified.  (This is the root cause.)

I've opened http://tracker.ceph.com/issues/11493 to track this.

sage

Quoted 61 lines
Quoted 53 lines
Quoted 53 lines
Quoted 53 lines
Quoted 53 lines

Idea was to make images as a tier to img, move
data to img then change
clients to use the new img pool.

Br,
Tuomas

Can you explain exactly what you mean by:

"Also I created one pool for tier to be able
to move data without
outage."

-Sam
----- Original Message -----
From: "tuomas juntunen"
<[email protected]>
To: "Ian Colle" <[email protected]>
Cc: [email protected]
Sent: Monday, April 27, 2015 4:23:44 AM
Subject: Re: [ceph-users] Upgrade from Giant
to Hammer and after some basic operations
most of the OSD's went down

Hi

Any solution for this yet?

Br,
Tuomas

It looks like you may have hit
http://tracker.ceph.com/issues/7915

Ian R. Colle Global Director of Software
Engineering Red Hat (Inktank is now part of
Red Hat!) http://www.linkedin.com/in/ircolle
http://www.twitter.com/ircolle
Cell: +1.303.601.7713
Email: [email protected]

----- Original Message -----
From: "tuomas juntunen"
<[email protected]>
To: [email protected]
Sent: Monday, April 27, 2015 1:56:29 PM
Subject: [ceph-users] Upgrade from Giant to
Hammer and after some basic operations most
of the OSD's went down

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

I upgraded Ceph from 0.87 Giant to 0.94.1
Hammer

Then created new pools and deleted some old
ones. Also I created one pool for tier to be
able to move data without

outage.

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 3 lines

After these operations all but 10 OSD's are
down and creating this kind of messages to
logs, I get more than 100gb of these in a

night:

Quoted 3 lines

  -19> 2015-04-27 10:17:08.808584
7fd8e748d700  5

osd.23

Quoted 29 lines
Quoted 29 lines
Quoted 29 lines
Quoted 29 lines
Quoted 29 lines
Quoted 29 lines

pg_epoch:

Quoted 28 lines
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines

17882 pg[0.189( v 8480'7 (0'0,8480'7]
local-les=16609
n=0
ec=1 les/c
16609/16659
16590/16590/16590) [24,3,23] r=2 lpr=17838
pi=15659-16589/42
crt=8480'7 lcod
0'0 inactive NOTIFY] enter Started   Â
-18>
2015-04-27 10:17:08.808596 7fd8e748d700  5
osd.23

pg_epoch:

Quoted 12 lines
Quoted 12 lines
Quoted 12 lines

17882 pg[0.189( v 8480'7 (0'0,8480'7]
local-les=16609
n=0
ec=1 les/c
16609/16659
16590/16590/16590) [24,3,23] r=2 lpr=17838
pi=15659-16589/42
crt=8480'7 lcod
0'0 inactive NOTIFY] enter Start     -17>
2015-04-27 10:17:08.808608 7fd8e748d700  1
osd.23

pg_epoch:

Quoted 1 line
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines

17882 pg[0.189( v 8480'7 (0'0,8480'7]
local-les=16609
n=0
ec=1 les/c
16609/16659
16590/16590/16590) [24,3,23] r=2 lpr=17838
pi=15659-16589/42
crt=8480'7 lcod
0'0 inactive NOTIFY] state<Start>:
transitioning to

Stray

Quoted 193 lines
Quoted 193 lines
Quoted 193 lines
Quoted 193 lines
Quoted 193 lines
Quoted 193 lines
Quoted 172 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

    -16> 2015-04-27 10:17:08.808621
7fd8e748d700  5
osd.23

pg_epoch:

Quoted 13 lines
Quoted 13 lines
Quoted 13 lines

17882 pg[0.189( v 8480'7 (0'0,8480'7]
local-les=16609
n=0
ec=1 les/c
16609/16659
16590/16590/16590) [24,3,23] r=2 lpr=17838
pi=15659-16589/42
crt=8480'7 lcod
0'0 inactive NOTIFY] exit Start 0.000025 0
0.000000     -15> 2015-04-27
10:17:08.808637 7fd8e748d700  5
osd.23

pg_epoch:

Quoted 14 lines
Quoted 14 lines
Quoted 14 lines

17882 pg[0.189( v 8480'7 (0'0,8480'7]
local-les=16609
n=0
ec=1 les/c
16609/16659
16590/16590/16590) [24,3,23] r=2 lpr=17838
pi=15659-16589/42
crt=8480'7 lcod
0'0 inactive NOTIFY] enter Started/Stray  Â
Â
-14> 2015-04-27 10:17:08.808796 7fd8e748d700Â
5
osd.23

pg_epoch:

Quoted 10 lines
Quoted 10 lines
Quoted 10 lines

17882 pg[10.181( empty local-les=17879 n=0
ec=17863 les/c
17879/17879
17863/17863/17863) [25,5,23] r=2 lpr=17879
crt=0'0 inactive NOTIFY] exit Reset 0.119467
4
0.000037     -13> 2015-04-27
10:17:08.808817 7fd8e748d700  5
osd.23

pg_epoch:

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

17882 pg[10.181( empty local-les=17879 n=0
ec=17863 les/c
17879/17879
17863/17863/17863) [25,5,23] r=2 lpr=17879
crt=0'0 inactive NOTIFY] enter Started   Â
-12> 2015-04-27 10:17:08.808828 7fd8e748d700Â
5
osd.23

pg_epoch:

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

17882 pg[10.181( empty local-les=17879 n=0
ec=17863 les/c
17879/17879
17863/17863/17863) [25,5,23] r=2 lpr=17879
crt=0'0 inactive NOTIFY] enter Start   Â
-11> 2015-04-27 10:17:08.808838 7fd8e748d700Â
1
osd.23

pg_epoch:

Quoted 10 lines
Quoted 10 lines
Quoted 10 lines

17882 pg[10.181( empty local-les=17879 n=0
ec=17863 les/c
17879/17879
17863/17863/17863) [25,5,23] r=2 lpr=17879
crt=0'0 inactive NOTIFY]
state<Start>: transitioning to Stray   Â
-10> 2015-04-27 10:17:08.808849 7fd8e748d700Â
5
osd.23

pg_epoch:

Quoted 10 lines
Quoted 10 lines
Quoted 10 lines

17882 pg[10.181( empty local-les=17879 n=0
ec=17863 les/c
17879/17879
17863/17863/17863) [25,5,23] r=2 lpr=17879
crt=0'0 inactive NOTIFY] exit Start 0.000020
0
0.000000      -9> 2015-04-27
10:17:08.808861 7fd8e748d700  5
osd.23

pg_epoch:

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

17882 pg[10.181( empty local-les=17879 n=0
ec=17863 les/c
17879/17879
17863/17863/17863) [25,5,23] r=2 lpr=17879
crt=0'0 inactive NOTIFY] enter Started/Stray
     -8> 2015-04-27 10:17:08.809427
7fd8e748d700  5
osd.23

pg_epoch:

Quoted 10 lines
Quoted 10 lines
Quoted 10 lines

17882 pg[2.189( empty local-les=16127 n=0
ec=1 les/c
16127/16344
16125/16125/16125) [23,5] r=0 lpr=17838
crt=0'0 mlcod
0'0 inactive] exit Reset 7.511623 45
0.000165      -7> 2015-04-27
10:17:08.809445 7fd8e748d700  5
osd.23

pg_epoch:

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

17882 pg[2.189( empty local-les=16127 n=0
ec=1 les/c
16127/16344
16125/16125/16125) [23,5] r=0 lpr=17838
crt=0'0 mlcod
0'0 inactive] enter Started      -6>
2015-04-27 10:17:08.809456 7fd8e748d700  5
osd.23

pg_epoch:

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

17882 pg[2.189( empty local-les=16127 n=0
ec=1 les/c
16127/16344
16125/16125/16125) [23,5] r=0 lpr=17838
crt=0'0 mlcod
0'0 inactive] enter Start      -5>
2015-04-27 10:17:08.809468 7fd8e748d700  1
osd.23

pg_epoch:

Quoted 12 lines
Quoted 12 lines
Quoted 12 lines

17882 pg[2.189( empty local-les=16127 n=0
ec=1 les/c
16127/16344
16125/16125/16125) [23,5] r=0 lpr=17838
crt=0'0 mlcod
0'0 inactive]
state<Start>: transitioning to Primary   Â
Â
-4> 2015-04-27 10:17:08.809479 7fd8e748d700Â
-4> 5
osd.23

pg_epoch:

Quoted 10 lines
Quoted 10 lines
Quoted 10 lines

17882 pg[2.189( empty local-les=16127 n=0
ec=1 les/c
16127/16344
16125/16125/16125) [23,5] r=0 lpr=17838
crt=0'0 mlcod
0'0 inactive] exit Start 0.000023 0 0.000000
     -3> 2015-04-27 10:17:08.809492
7fd8e748d700  5
osd.23

pg_epoch:

Quoted 10 lines
Quoted 10 lines
Quoted 10 lines

17882 pg[2.189( empty local-les=16127 n=0
ec=1 les/c
16127/16344
16125/16125/16125) [23,5] r=0 lpr=17838
crt=0'0 mlcod
0'0 inactive] enter Started/Primary    Â
-2> 2015-04-27 10:17:08.809502 7fd8e748d700Â
-2> 5
osd.23

pg_epoch:

Quoted 10 lines
Quoted 10 lines
Quoted 10 lines

17882 pg[2.189( empty local-les=16127 n=0
ec=1 les/c
16127/16344
16125/16125/16125) [23,5] r=0 lpr=17838
crt=0'0 mlcod
0'0 inactive] enter Started/Primary/Peering
     -1> 2015-04-27 10:17:08.809513
7fd8e748d700  5
osd.23

Quoted 14 lines

pg_epoch:

Quoted 13 lines
Quoted 13 lines
Quoted 13 lines

17882 pg[2.189( empty local-les=16127 n=0
ec=1 les/c
16127/16344
16125/16125/16125) [23,5] r=0 lpr=17838
crt=0'0 mlcod
0'0 peering] enter
Started/Primary/Peering/GetInfo       0>
2015-04-27 10:17:08.813837 7fd8e748d700 -1
./include/interval_set.h:
In
function 'void interval_set<T>::erase(T, T)
[with T =

snapid_t]'

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

thread
7fd8e748d700 time 2015-04-27 10:17:08.809899
./include/interval_set.h: 385: FAILED
assert(_size >=
0)

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

  ceph version 0.94.1
(e4bfad3a3c51054df7e537a724c8d0bf9be972ff)
  1: (ceph::__ceph_assert_fail(char const*,
char

const*,

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines

int, char
const*)+0x8b) [0xbc271b]   2:

(interval_set<snapid_t>::subtract(interval_se
t<
snapid_t

const&)+0xb0) [0x82cd50]   3:
(PGPool::update(std::tr1::shared_ptr<OSDMap
const>)+0x52e) [0x80113e]
  4:

(PG::handle_advance_map(std::tr1::shared_ptr<OSDMap

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines

const>, std::tr1::shared_ptr<OSDMap const>,
const>std::vector<int,
std::allocator<int> >&, int,
std::vector<int, std::allocator<int>
&, int, PG::RecoveryCtx*)+0x282) [0x801652]
  5: (OSD::advance_pg(unsigned int, PG*,
ThreadPool::TPHandle&, PG::RecoveryCtx*,
std::set<boost::intrusive_ptr<PG>,
std::less<boost::intrusive_ptr<PG> >,
std::allocator<boost::intrusive_ptr<PG> >
*)+0x2c3) [0x6b0e43]   6:

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

(OSD::process_peering_events(std::list<PG*,
std::allocator<PG*>
const&,
ThreadPool::TPHandle&)+0x21c) [0x6b191c]   7:
(OSD::PeeringWQ::_process(std::list<PG*,
std::allocator<PG*>
const&,
ThreadPool::TPHandle&)+0x18) [0x709278]   8:

(ThreadPool::worker(ThreadPool::WorkThread*)+0xa5e)

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

[0xbb38ae]
  9: (ThreadPool::WorkThread::entry()+0x10)
[0xbb4950]   10: (()+0x8182)
[0x7fd906946182]   11: (clone()+0x6d)
[0x7fd904eb147d]

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

Also by monitoring (ceph -w) I get the
following messages, also lots of
them.

2015-04-27 10:39:52.935812 mon.0 [INF]

from='client.?

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

10.20.0.13:0/1174409'
entity='osd.30' cmd=[{"prefix": "osd crush
create-or-move",

"args":

Quoted 1 line
Quoted 1 line
Quoted 1 line

["host=ceph3", "root=default"], "id": 30,

"weight":

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

1.82}]:

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

dispatch
2015-04-27 10:39:53.297376 mon.0 [INF]

from='client.?

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

10.20.0.13:0/1174483'
entity='osd.26' cmd=[{"prefix": "osd crush
create-or-move",

"args":

Quoted 1 line
Quoted 1 line
Quoted 1 line

["host=ceph3", "root=default"], "id": 26,

"weight":

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

1.82}]:

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

dispatch

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

This is a cluster of 3 nodes with 36 OSD's,
nodes are also mons and mds's to save servers.
All run Ubuntu

14.04.2.

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

I have pretty much tried everything I could
think

of.

Quoted 84 lines
Quoted 84 lines
Quoted 81 lines
Quoted 69 lines
Quoted 59 lines
Quoted 59 lines
Quoted 59 lines
Quoted 59 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

Restarting daemons doesn't help.

Any help would be appreciated. I can also
provide more logs if necessary. They just
seem to get pretty large in few

moments.

Quoted 50 lines
Quoted 49 lines
Quoted 47 lines
Quoted 45 lines

Thank you
Tuomas

____________________________________________
__ _ ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-user
s-
ceph.com

_____________________________________________
__ ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users
-c
eph.com

_______________________________________________
ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-c
ep
h.com

_______________________________________________
ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-c
ep
h.com

Quoted 8 lines
Quoted 7 lines
Quoted 6 lines

_______________________________________________
ceph-users mailing list [email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Quoted 7 lines

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected] More majordomo info atÂ
http://vger.kernel.org/majordomo-info.html

_______________________________________________
ceph-users mailing list [email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

A message that is not in the archive (sent off-list or not yet received): f0d4624d313c49cf355543dbf52d6561-Mp+lKDbUk+6SvdrsE3bNcA@public.gmane.org

#13 lore raw
Quoted 1 line · Tuomas Juntunen

5827504: 10.20.0.11:6800/3382530 'ceph1' mds.0.262 up:rejoin seq 33159

This is why it is 'degraded'... stuck in up:rejoin state.

Quoted 2 lines

The active+clean+replay has been there for a day now, so there must be something that is not ok, if it should've gone away in cople of minutes.

...possibly because the pg is stuck in replay state. Can you do 'ceph pg <pgid> query' on one of them? And may be see if bouncing one of the OSDs for the pg clears it up (ceph osd down $osdid).

sage

Quoted 702 lines

Thanks

Tuomas

-----Original Message-----
From: Sage Weil [mailto:[email protected]]
Sent: 4. toukokuuta 2015 18:29
To: Tuomas Juntunen
Cc: [email protected]; [email protected]
Subject: RE: [ceph-users] Upgrade from Giant to Hammer and after some basic
operations most of the OSD's went down

Quoted 4 lines · Tuomas Juntunen

Hi

Thanks Sage, I got it working now. Everything else seems to be ok, except mds is reporting "mds cluster is degraded", not sure what could be

wrong.

Quoted 2 lines

Mds is running and all osds are up and pg's are active+clean and active+clean+replay.

Great! The 'replay' part should clear after a minute or two.

Quoted 5 lines

Had to delete some empty pools which were created while the osd's were not working and recovery started to go through.

Seems mds is not that stable, this isn't the first time it goes degraded. Before it just started to work, but now I just can't get it back working.

What does 'ceph mds dump' say?

sage

Quoted 17 lines

Thanks

Br,
Tuomas

-----Original Message-----
From: [email protected] [mailto:[email protected]]
Sent: 1. toukokuuta 2015 21:14
To: Sage Weil
Cc: tuomas.juntunen; [email protected]; [email protected]
Subject: Re: [ceph-users] Upgrade from Giant to Hammer and after some basic operations most of the OSD's went down

Quoted 69 lines

Thanks, I'll do this when the commit is available and report back.

And indeed, I'll change to the official ones after everything is ok.

Br,
Tuomas

Quoted 62 lines · On Fri, 1 May 2015, [email protected]…
Quoted 7 lines

Hi

I deleted the images and img pools and started osd's, they still die.

Here's a log of one of the osd's after this, if you need it.

http://beta.xaasbox.com/ceph/ceph-osd.19.log

I've pushed another commit that should avoid this case, sha1 425bd4e1dba00cc2243b0c27232d1f9740b04e34.

Note that once the pools are fully deleted (shouldn't take too long once the osds are up and stabilize) you should switch back to the normal packages that don't have these workarounds.

sage

Quoted 42 lines

Br,
Tuomas

Quoted 37 lines

Thanks man. I'll try it tomorrow. Have a good one.

Br,T

-------- Original message --------
From: Sage Weil <[email protected]>
Date: 30/04/2015 18:23 (GMT+02:00)
To: Tuomas Juntunen <[email protected]>
Cc: [email protected], [email protected]
Subject: RE: [ceph-users] Upgrade from Giant to Hammer and after
some basic

operations most of the OSD's went down

Quoted 3 lines · On Thu, 30 Apr 2015, [email protected]…

Hey

Yes I can drop the images data, you think this will fix it?

It's a slightly different assert that (I believe) should not trigger once the pool is deleted.  Please give that a try and if you still hit it I'll whip up a workaround.

Thanks!
sage

Quoted 11 lines

Br,

Tuomas

Quoted 5 lines · Tuomas Juntunen
Quoted 4 lines

Hi

I updated that version and it seems that something did happen, the osd's stayed up for a while and 'ceph status' got

updated.

Quoted 59 lines
Quoted 4 lines
Quoted 4 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

But then in couple

of

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

minutes, they all went down the same way.

Quoted 8 lines
Quoted 8 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

I have attached new 'ceph osd dump -f json-pretty' and got a new log

from

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 2 lines

one of the osd's with osd debug = 20,
http://beta.xaasbox.com/ceph/ceph-osd.15.log

Sam mentioned that you had said earlier that this was not critical

data?

Quoted 24 lines
Quoted 24 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

If not, I think the simplest thing is to just drop those pools. The important thing (from my perspective at least :) is that we understand

the

Quoted 20 lines
Quoted 20 lines
Quoted 20 lines

root cause and can prevent this in the future.

sage

Quoted 15 lines

Thank you!

Br,
Tuomas

-----Original Message-----
From: Sage Weil [mailto:[email protected]]
Sent: 28. huhtikuuta 2015 23:57
To: Tuomas Juntunen
Cc: [email protected]; [email protected]
Subject: Re: [ceph-users] Upgrade from Giant to Hammer and
after some

Quoted 7 lines
Quoted 7 lines

basic

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

operations most of the OSD's went down

Hi Tuomas,

I've pushed an updated wip-hammer-snaps branch.  Can you please

try it?

Quoted 14 lines
Quoted 14 lines
Quoted 14 lines
Quoted 14 lines
Quoted 14 lines
Quoted 14 lines

The build will appear here

http://gitbuilder.ceph.com/ceph-deb-trusty-x86_64-basic/sha1/
08
bf531331afd5e
2eb514067f72afda11bcde286

(or a similar url; adjust for your distro).

Thanks!
sage

Quoted 16 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines · Sage Weil
Quoted 6 lines

[adding ceph-devel]

Okay, I see the problem.  This seems to be unrelated ot the giant -> hammer move... it's a result of the tiering changes you

made:

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

The following:

ceph osd tier add img images --force-nonempty
ceph osd tier cache-mode images forward ceph
osd tier set-overlay img images

Specifically, --force-nonempty bypassed important safety

checks.

Quoted 407 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

1. images had snapshots (and removed_snaps)

2. images was added as a tier *of* img, and img's removed_snaps was copied to images, clobbering the removed_snaps value (see OSDMap::Incremental::propagate_snaps_to_tiers)

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

3. tiering relation was undone, but removed_snaps was still gone

4. on OSD startup, when we load the PG, removed_snaps is initialized with the older map.  later, in PGPool::update(), we assume that removed_snaps alwasy grows (never shrinks) and we

trigger an assert.

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

To fix this I think we need to do 2 things:

1. make the OSD forgiving out removed_snaps getting smaller. This is probably a good thing anyway: once we know snaps are removed on all OSDs we can prune the interval_set in the

OSDMap.  Maybe.

Quoted 355 lines
Quoted 355 lines
Quoted 71 lines
Quoted 71 lines
Quoted 71 lines
Quoted 71 lines
Quoted 71 lines

2. Fix the mon to prevent this from happening, *even* when --force-nonempty is specified.  (This is the root cause.)

I've opened http://tracker.ceph.com/issues/11493 to track this.

sage

Quoted 61 lines
Quoted 53 lines
Quoted 53 lines
Quoted 53 lines

Idea was to make images as a tier to img, move
data to img then change
clients to use the new img pool.

Br,
Tuomas

Can you explain exactly what you mean by:

"Also I created one pool for tier to be able
to move data without
outage."

-Sam
----- Original Message -----
From: "tuomas juntunen"
<[email protected]>
To: "Ian Colle" <[email protected]>
Cc: [email protected]
Sent: Monday, April 27, 2015 4:23:44 AM
Subject: Re: [ceph-users] Upgrade from Giant
to Hammer and after some basic operations
most of the OSD's went down

Hi

Any solution for this yet?

Br,
Tuomas

It looks like you may have hit
http://tracker.ceph.com/issues/7915

Ian R. Colle Global Director of Software
Engineering Red Hat (Inktank is now part of
Red Hat!) http://www.linkedin.com/in/ircolle
http://www.twitter.com/ircolle
Cell: +1.303.601.7713
Email: [email protected]

----- Original Message -----
From: "tuomas juntunen"
<[email protected]>
To: [email protected]
Sent: Monday, April 27, 2015 1:56:29 PM
Subject: [ceph-users] Upgrade from Giant to
Hammer and after some basic operations most
of the OSD's went down

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

I upgraded Ceph from 0.87 Giant to 0.94.1
Hammer

Then created new pools and deleted some old
ones. Also I created one pool for tier to be
able to move data without

outage.

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

After these operations all but 10 OSD's are
down and creating this kind of messages to
logs, I get more than 100gb of these in a
night:

  -19> 2015-04-27 10:17:08.808584
7fd8e748d700  5

osd.23

Quoted 29 lines
Quoted 29 lines
Quoted 29 lines
Quoted 29 lines
Quoted 29 lines
Quoted 29 lines

pg_epoch:

Quoted 28 lines
Quoted 13 lines
Quoted 13 lines

17882 pg[0.189( v 8480'7 (0'0,8480'7]
local-les=16609
n=0
ec=1 les/c
16609/16659
16590/16590/16590) [24,3,23] r=2 lpr=17838
pi=15659-16589/42
crt=8480'7 lcod
0'0 inactive NOTIFY] enter Started   Â
-18>
2015-04-27 10:17:08.808596 7fd8e748d700  5
osd.23

pg_epoch:

Quoted 12 lines
Quoted 12 lines

17882 pg[0.189( v 8480'7 (0'0,8480'7]
local-les=16609
n=0
ec=1 les/c
16609/16659
16590/16590/16590) [24,3,23] r=2 lpr=17838
pi=15659-16589/42
crt=8480'7 lcod
0'0 inactive NOTIFY] enter Start     -17>
2015-04-27 10:17:08.808608 7fd8e748d700  1
osd.23

pg_epoch:

Quoted 1 line
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines

17882 pg[0.189( v 8480'7 (0'0,8480'7]
local-les=16609
n=0
ec=1 les/c
16609/16659
16590/16590/16590) [24,3,23] r=2 lpr=17838
pi=15659-16589/42
crt=8480'7 lcod
0'0 inactive NOTIFY] state<Start>:
transitioning to

Stray

Quoted 193 lines
Quoted 193 lines
Quoted 193 lines
Quoted 193 lines
Quoted 193 lines
Quoted 193 lines
Quoted 172 lines
Quoted 3 lines
Quoted 3 lines

    -16> 2015-04-27 10:17:08.808621
7fd8e748d700  5
osd.23

pg_epoch:

Quoted 13 lines
Quoted 13 lines

17882 pg[0.189( v 8480'7 (0'0,8480'7]
local-les=16609
n=0
ec=1 les/c
16609/16659
16590/16590/16590) [24,3,23] r=2 lpr=17838
pi=15659-16589/42
crt=8480'7 lcod
0'0 inactive NOTIFY] exit Start 0.000025 0
0.000000     -15> 2015-04-27
10:17:08.808637 7fd8e748d700  5
osd.23

pg_epoch:

Quoted 14 lines
Quoted 14 lines

17882 pg[0.189( v 8480'7 (0'0,8480'7]
local-les=16609
n=0
ec=1 les/c
16609/16659
16590/16590/16590) [24,3,23] r=2 lpr=17838
pi=15659-16589/42
crt=8480'7 lcod
0'0 inactive NOTIFY] enter Started/Stray  Â
Â
-14> 2015-04-27 10:17:08.808796 7fd8e748d700Â
5
osd.23

pg_epoch:

Quoted 10 lines
Quoted 10 lines

17882 pg[10.181( empty local-les=17879 n=0
ec=17863 les/c
17879/17879
17863/17863/17863) [25,5,23] r=2 lpr=17879
crt=0'0 inactive NOTIFY] exit Reset 0.119467
4
0.000037     -13> 2015-04-27
10:17:08.808817 7fd8e748d700  5
osd.23

pg_epoch:

Quoted 9 lines
Quoted 9 lines

17882 pg[10.181( empty local-les=17879 n=0
ec=17863 les/c
17879/17879
17863/17863/17863) [25,5,23] r=2 lpr=17879
crt=0'0 inactive NOTIFY] enter Started   Â
-12> 2015-04-27 10:17:08.808828 7fd8e748d700Â
5
osd.23

pg_epoch:

Quoted 9 lines
Quoted 9 lines

17882 pg[10.181( empty local-les=17879 n=0
ec=17863 les/c
17879/17879
17863/17863/17863) [25,5,23] r=2 lpr=17879
crt=0'0 inactive NOTIFY] enter Start   Â
-11> 2015-04-27 10:17:08.808838 7fd8e748d700Â
1
osd.23

pg_epoch:

Quoted 10 lines
Quoted 10 lines

17882 pg[10.181( empty local-les=17879 n=0
ec=17863 les/c
17879/17879
17863/17863/17863) [25,5,23] r=2 lpr=17879
crt=0'0 inactive NOTIFY]
state<Start>: transitioning to Stray   Â
-10> 2015-04-27 10:17:08.808849 7fd8e748d700Â
5
osd.23

pg_epoch:

Quoted 10 lines
Quoted 10 lines

17882 pg[10.181( empty local-les=17879 n=0
ec=17863 les/c
17879/17879
17863/17863/17863) [25,5,23] r=2 lpr=17879
crt=0'0 inactive NOTIFY] exit Start 0.000020
0
0.000000      -9> 2015-04-27
10:17:08.808861 7fd8e748d700  5
osd.23

pg_epoch:

Quoted 9 lines
Quoted 9 lines

17882 pg[10.181( empty local-les=17879 n=0
ec=17863 les/c
17879/17879
17863/17863/17863) [25,5,23] r=2 lpr=17879
crt=0'0 inactive NOTIFY] enter Started/Stray
     -8> 2015-04-27 10:17:08.809427
7fd8e748d700  5
osd.23

pg_epoch:

Quoted 10 lines
Quoted 10 lines

17882 pg[2.189( empty local-les=16127 n=0
ec=1 les/c
16127/16344
16125/16125/16125) [23,5] r=0 lpr=17838
crt=0'0 mlcod
0'0 inactive] exit Reset 7.511623 45
0.000165      -7> 2015-04-27
10:17:08.809445 7fd8e748d700  5
osd.23

pg_epoch:

Quoted 9 lines
Quoted 9 lines

17882 pg[2.189( empty local-les=16127 n=0
ec=1 les/c
16127/16344
16125/16125/16125) [23,5] r=0 lpr=17838
crt=0'0 mlcod
0'0 inactive] enter Started      -6>
2015-04-27 10:17:08.809456 7fd8e748d700  5
osd.23

pg_epoch:

Quoted 9 lines
Quoted 9 lines

17882 pg[2.189( empty local-les=16127 n=0
ec=1 les/c
16127/16344
16125/16125/16125) [23,5] r=0 lpr=17838
crt=0'0 mlcod
0'0 inactive] enter Start      -5>
2015-04-27 10:17:08.809468 7fd8e748d700  1
osd.23

pg_epoch:

Quoted 12 lines
Quoted 12 lines

17882 pg[2.189( empty local-les=16127 n=0
ec=1 les/c
16127/16344
16125/16125/16125) [23,5] r=0 lpr=17838
crt=0'0 mlcod
0'0 inactive]
state<Start>: transitioning to Primary   Â
Â
-4> 2015-04-27 10:17:08.809479 7fd8e748d700Â
-4> 5
osd.23

pg_epoch:

Quoted 10 lines
Quoted 10 lines

17882 pg[2.189( empty local-les=16127 n=0
ec=1 les/c
16127/16344
16125/16125/16125) [23,5] r=0 lpr=17838
crt=0'0 mlcod
0'0 inactive] exit Start 0.000023 0 0.000000
     -3> 2015-04-27 10:17:08.809492
7fd8e748d700  5
osd.23

pg_epoch:

Quoted 10 lines
Quoted 10 lines

17882 pg[2.189( empty local-les=16127 n=0
ec=1 les/c
16127/16344
16125/16125/16125) [23,5] r=0 lpr=17838
crt=0'0 mlcod
0'0 inactive] enter Started/Primary    Â
-2> 2015-04-27 10:17:08.809502 7fd8e748d700Â
-2> 5
osd.23

pg_epoch:

Quoted 10 lines
Quoted 10 lines

17882 pg[2.189( empty local-les=16127 n=0
ec=1 les/c
16127/16344
16125/16125/16125) [23,5] r=0 lpr=17838
crt=0'0 mlcod
0'0 inactive] enter Started/Primary/Peering
     -1> 2015-04-27 10:17:08.809513
7fd8e748d700  5
osd.23

Quoted 14 lines

pg_epoch:

Quoted 13 lines
Quoted 13 lines

17882 pg[2.189( empty local-les=16127 n=0
ec=1 les/c
16127/16344
16125/16125/16125) [23,5] r=0 lpr=17838
crt=0'0 mlcod
0'0 peering] enter
Started/Primary/Peering/GetInfo       0>
2015-04-27 10:17:08.813837 7fd8e748d700 -1
./include/interval_set.h:
In
function 'void interval_set<T>::erase(T, T)
[with T =

snapid_t]'

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

thread
7fd8e748d700 time 2015-04-27 10:17:08.809899
./include/interval_set.h: 385: FAILED
assert(_size >=
0)

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

  ceph version 0.94.1
(e4bfad3a3c51054df7e537a724c8d0bf9be972ff)
  1: (ceph::__ceph_assert_fail(char const*,
char

const*,

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines

int, char
const*)+0x8b) [0xbc271b]   2:

(interval_set<snapid_t>::subtract(interval_se
t<
snapid_t

const&)+0xb0) [0x82cd50]   3:
(PGPool::update(std::tr1::shared_ptr<OSDMap
const>)+0x52e) [0x80113e]
  4:

(PG::handle_advance_map(std::tr1::shared_ptr<OSDMap

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines

const>, std::tr1::shared_ptr<OSDMap const>,
const>std::vector<int,
std::allocator<int> >&, int,
std::vector<int, std::allocator<int>
&, int, PG::RecoveryCtx*)+0x282) [0x801652]
  5: (OSD::advance_pg(unsigned int, PG*,
ThreadPool::TPHandle&, PG::RecoveryCtx*,
std::set<boost::intrusive_ptr<PG>,
std::less<boost::intrusive_ptr<PG> >,
std::allocator<boost::intrusive_ptr<PG> >
*)+0x2c3) [0x6b0e43]   6:

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

(OSD::process_peering_events(std::list<PG*,
std::allocator<PG*>
const&,
ThreadPool::TPHandle&)+0x21c) [0x6b191c]   7:
(OSD::PeeringWQ::_process(std::list<PG*,
std::allocator<PG*>
const&,
ThreadPool::TPHandle&)+0x18) [0x709278]   8:

(ThreadPool::worker(ThreadPool::WorkThread*)+0xa5e)

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

[0xbb38ae]
  9: (ThreadPool::WorkThread::entry()+0x10)
[0xbb4950]   10: (()+0x8182)
[0x7fd906946182]   11: (clone()+0x6d)
[0x7fd904eb147d]

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

Also by monitoring (ceph -w) I get the
following messages, also lots of
them.

2015-04-27 10:39:52.935812 mon.0 [INF]

from='client.?

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 3 lines
Quoted 3 lines

10.20.0.13:0/1174409'
entity='osd.30' cmd=[{"prefix": "osd crush
create-or-move",

"args":

Quoted 1 line
Quoted 1 line

["host=ceph3", "root=default"], "id": 30,

"weight":

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

1.82}]:

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

dispatch
2015-04-27 10:39:53.297376 mon.0 [INF]

from='client.?

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 3 lines
Quoted 3 lines

10.20.0.13:0/1174483'
entity='osd.26' cmd=[{"prefix": "osd crush
create-or-move",

"args":

Quoted 1 line
Quoted 1 line

["host=ceph3", "root=default"], "id": 26,

"weight":

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

1.82}]:

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

dispatch

Quoted 96 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

This is a cluster of 3 nodes with 36 OSD's,
nodes are also mons and mds's to save servers.
All run Ubuntu

14.04.2.

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

I have pretty much tried everything I could
think

of.

Quoted 84 lines
Quoted 84 lines
Quoted 81 lines
Quoted 69 lines
Quoted 59 lines
Quoted 59 lines
Quoted 59 lines
Quoted 59 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

Restarting daemons doesn't help.

Any help would be appreciated. I can also
provide more logs if necessary. They just
seem to get pretty large in few

moments.

Quoted 50 lines
Quoted 49 lines
Quoted 47 lines

Thank you
Tuomas

____________________________________________
__ _ ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-user
s-
ceph.com

_____________________________________________
__ ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users
-c
eph.com

_______________________________________________
ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-c
ep
h.com

_______________________________________________
ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-c
ep
h.com

Quoted 8 lines
Quoted 7 lines
Quoted 6 lines

_______________________________________________
ceph-users mailing list [email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Quoted 7 lines

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected] More majordomo info atÂ
http://vger.kernel.org/majordomo-info.html

_______________________________________________
ceph-users mailing list [email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Quoted 6 lines

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

_______________________________________________
ceph-users mailing list [email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

A message that is not in the archive (sent off-list or not yet received): alpine.DEB.2.00.1505041019300.24939-vIokxiIdD2AQNTJnQDzGJqxOck334EZe@public.gmane.org

#15 lore raw

Hi

Ok, restarting osd's did it. I thought I restarted the daemons after it was almost clean, but it seems I didn't.

Now everything is running fine.

Thanks again!

Br,
Tuomas

-----Original Message-----
From: Sage Weil [mailto:[email protected]]
Sent: 4. toukokuuta 2015 20:21
To: Tuomas Juntunen
Cc: [email protected]; [email protected]
Subject: RE: [ceph-users] Upgrade from Giant to Hammer and after some basic
operations most of the OSD's went down

Quoted 1 line · Tuomas Juntunen

5827504: 10.20.0.11:6800/3382530 'ceph1' mds.0.262 up:rejoin seq

33159

This is why it is 'degraded'... stuck in up:rejoin state.

Quoted 2 lines

The active+clean+replay has been there for a day now, so there must be something that is not ok, if it should've gone away in cople of minutes.

...possibly because the pg is stuck in replay state. Can you do 'ceph pg <pgid> query' on one of them? And may be see if bouncing one of the OSDs for the pg clears it up (ceph osd down $osdid).

sage

Quoted 17 lines

Thanks

Tuomas

-----Original Message-----
From: Sage Weil [mailto:[email protected]]
Sent: 4. toukokuuta 2015 18:29
To: Tuomas Juntunen
Cc: [email protected]; [email protected]
Subject: RE: [ceph-users] Upgrade from Giant to Hammer and after some
basic operations most of the OSD's went down

Quoted 2 lines · Tuomas Juntunen

Hi

Quoted 13 lines
Quoted 3 lines

Thanks Sage, I got it working now. Everything else seems to be ok, except mds is reporting "mds cluster is degraded", not sure what could be

wrong.

Quoted 2 lines

Mds is running and all osds are up and pg's are active+clean and active+clean+replay.

Great! The 'replay' part should clear after a minute or two.

Quoted 4 lines

Had to delete some empty pools which were created while the osd's were not working and recovery started to go through.

Seems mds is not that stable, this isn't the first time it goes

degraded.

Quoted 1 line
Quoted 1 line

Before it just started to work, but now I just can't get it back

working.

Quoted 162 lines

What does 'ceph mds dump' say?

sage

Quoted 17 lines

Thanks

Br,
Tuomas

-----Original Message-----
From: [email protected] [mailto:[email protected]]
Sent: 1. toukokuuta 2015 21:14
To: Sage Weil
Cc: tuomas.juntunen; [email protected]; [email protected]
Subject: Re: [ceph-users] Upgrade from Giant to Hammer and after some basic operations most of the OSD's went down

Quoted 70 lines

Thanks, I'll do this when the commit is available and report back.

And indeed, I'll change to the official ones after everything is ok.

Br,
Tuomas

Quoted 63 lines · On Fri, 1 May 2015, [email protected]…
Quoted 7 lines

Hi

I deleted the images and img pools and started osd's, they still die.

Here's a log of one of the osd's after this, if you need it.

http://beta.xaasbox.com/ceph/ceph-osd.19.log

I've pushed another commit that should avoid this case, sha1 425bd4e1dba00cc2243b0c27232d1f9740b04e34.

Note that once the pools are fully deleted (shouldn't take too long once the osds are up and stabilize) you should switch back to the normal packages that don't have these workarounds.

sage

Quoted 43 lines

Br,
Tuomas

Quoted 38 lines

Thanks man. I'll try it tomorrow. Have a good one.

Br,T

-------- Original message --------
From: Sage Weil <[email protected]>
Date: 30/04/2015 18:23 (GMT+02:00)
To: Tuomas Juntunen <[email protected]>
Cc: [email protected], [email protected]
Subject: RE: [ceph-users] Upgrade from Giant to Hammer and
after some basic

operations most of the OSD's went down

Quoted 3 lines · On Thu, 30 Apr 2015, [email protected]…

Hey

Yes I can drop the images data, you think this will fix it?

It's a slightly different assert that (I believe) should not trigger once the pool is deleted.  Please give that a try and if you still hit it I'll whip up a workaround.

Thanks!
sage

Quoted 12 lines

Br,

Tuomas

Quoted 6 lines · Tuomas Juntunen
Quoted 5 lines

Hi

I updated that version and it seems that something did happen, the osd's stayed up for a while and 'ceph status' got

updated.

Quoted 69 lines
Quoted 4 lines
Quoted 4 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

But then in couple

of

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

minutes, they all went down the same way.

Quoted 8 lines
Quoted 8 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

I have attached new 'ceph osd dump -f json-pretty' and got a new log

from

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 2 lines

one of the osd's with osd debug = 20,
http://beta.xaasbox.com/ceph/ceph-osd.15.log

Sam mentioned that you had said earlier that this was not critical

data?

Quoted 24 lines
Quoted 24 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

If not, I think the simplest thing is to just drop those pools. The important thing (from my perspective at least :) is that we understand

the

Quoted 20 lines
Quoted 20 lines
Quoted 20 lines

root cause and can prevent this in the future.

sage

Quoted 15 lines

Thank you!

Br,
Tuomas

-----Original Message-----
From: Sage Weil [mailto:[email protected]]
Sent: 28. huhtikuuta 2015 23:57
To: Tuomas Juntunen
Cc: [email protected]; [email protected]
Subject: Re: [ceph-users] Upgrade from Giant to Hammer and
after some

Quoted 7 lines
Quoted 7 lines

basic

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

operations most of the OSD's went down

Hi Tuomas,

I've pushed an updated wip-hammer-snaps branch.  Can you please

try it?

Quoted 15 lines
Quoted 15 lines
Quoted 15 lines
Quoted 15 lines
Quoted 15 lines
Quoted 15 lines

The build will appear here

http://gitbuilder.ceph.com/ceph-deb-trusty-x86_64-basic/sha
1/
08
bf531331afd5e
2eb514067f72afda11bcde286

(or a similar url; adjust for your distro).

Thanks!
sage

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines · Sage Weil
Quoted 6 lines

[adding ceph-devel]

Okay, I see the problem.  This seems to be unrelated ot the giant -> hammer move... it's a result of the tiering changes you

made:

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 38 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

The following:

ceph osd tier add img images --force-nonempty
ceph osd tier cache-mode images forward ceph
osd tier set-overlay img images

Specifically, --force-nonempty bypassed important safety

checks.

Quoted 30 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

1. images had snapshots (and removed_snaps)

2. images was added as a tier *of* img, and img's removed_snaps was copied to images, clobbering the removed_snaps value (see OSDMap::Incremental::propagate_snaps_to_tiers)

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

3. tiering relation was undone, but removed_snaps was still gone

4. on OSD startup, when we load the PG, removed_snaps is initialized with the older map.  later, in PGPool::update(), we assume that removed_snaps alwasy grows (never shrinks) and we

trigger an assert.

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

To fix this I think we need to do 2 things:

1. make the OSD forgiving out removed_snaps getting smaller. This is probably a good thing anyway: once we know snaps are removed on all OSDs we can prune the interval_set in the

OSDMap.  Maybe.

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

2. Fix the mon to prevent this from happening, *even* when --force-nonempty is specified.  (This is the root cause.)

I've opened http://tracker.ceph.com/issues/11493 to track

this.

Quoted 390 lines
Quoted 390 lines
Quoted 368 lines
Quoted 368 lines
Quoted 67 lines
Quoted 67 lines
Quoted 67 lines
Quoted 67 lines
Quoted 67 lines

sage

Quoted 62 lines
Quoted 54 lines
Quoted 54 lines
Quoted 54 lines

Idea was to make images as a tier to img,
move data to img then change
clients to use the new img pool.

Br,
Tuomas

Can you explain exactly what you mean by:

"Also I created one pool for tier to be
able to move data without
outage."

-Sam
----- Original Message -----
From: "tuomas juntunen"
<[email protected]>
To: "Ian Colle" <[email protected]>
Cc: [email protected]
Sent: Monday, April 27, 2015 4:23:44 AM
Subject: Re: [ceph-users] Upgrade from
Giant to Hammer and after some basic
operations most of the OSD's went down

Hi

Any solution for this yet?

Br,
Tuomas

It looks like you may have hit
http://tracker.ceph.com/issues/7915

Ian R. Colle Global Director of Software
Engineering Red Hat (Inktank is now part
of Red Hat!)
http://www.linkedin.com/in/ircolle
http://www.twitter.com/ircolle
Cell: +1.303.601.7713
Email: [email protected]

----- Original Message -----
From: "tuomas juntunen"
<[email protected]>
To: [email protected]
Sent: Monday, April 27, 2015 1:56:29 PM
Subject: [ceph-users] Upgrade from Giant
to Hammer and after some basic operations
most of the OSD's went down

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

I upgraded Ceph from 0.87 Giant to 0.94.1
Hammer

Then created new pools and deleted some
old ones. Also I created one pool for tier
to be able to move data without

outage.

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

After these operations all but 10 OSD's
are down and creating this kind of
messages to logs, I get more than 100gb of
these in a
night:

  -19> 2015-04-27 10:17:08.808584
7fd8e748d700  5

osd.23

Quoted 30 lines
Quoted 30 lines
Quoted 30 lines
Quoted 30 lines
Quoted 30 lines
Quoted 30 lines

pg_epoch:

Quoted 29 lines
Quoted 13 lines
Quoted 13 lines

17882 pg[0.189( v 8480'7 (0'0,8480'7]
local-les=16609
n=0
ec=1 les/c
16609/16659
16590/16590/16590) [24,3,23] r=2 lpr=17838
pi=15659-16589/42
crt=8480'7 lcod
0'0 inactive NOTIFY] enter Started   Â
-18>
2015-04-27 10:17:08.808596 7fd8e748d700  5
osd.23

pg_epoch:

Quoted 13 lines
Quoted 13 lines

17882 pg[0.189( v 8480'7 (0'0,8480'7]
local-les=16609
n=0
ec=1 les/c
16609/16659
16590/16590/16590) [24,3,23] r=2 lpr=17838
pi=15659-16589/42
crt=8480'7 lcod
0'0 inactive NOTIFY] enter Start   Â
-17>
2015-04-27 10:17:08.808608 7fd8e748d700  1
osd.23

pg_epoch:

Quoted 1 line
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines

17882 pg[0.189( v 8480'7 (0'0,8480'7]
local-les=16609
n=0
ec=1 les/c
16609/16659
16590/16590/16590) [24,3,23] r=2 lpr=17838
pi=15659-16589/42
crt=8480'7 lcod
0'0 inactive NOTIFY] state<Start>:
transitioning to

Stray

Quoted 205 lines
Quoted 205 lines
Quoted 205 lines
Quoted 205 lines
Quoted 205 lines
Quoted 205 lines
Quoted 182 lines
Quoted 3 lines
Quoted 3 lines

    -16> 2015-04-27 10:17:08.808621
7fd8e748d700  5
osd.23

pg_epoch:

Quoted 13 lines
Quoted 13 lines

17882 pg[0.189( v 8480'7 (0'0,8480'7]
local-les=16609
n=0
ec=1 les/c
16609/16659
16590/16590/16590) [24,3,23] r=2 lpr=17838
pi=15659-16589/42
crt=8480'7 lcod
0'0 inactive NOTIFY] exit Start 0.000025 0
0.000000     -15> 2015-04-27
10:17:08.808637 7fd8e748d700  5
osd.23

pg_epoch:

Quoted 15 lines
Quoted 15 lines

17882 pg[0.189( v 8480'7 (0'0,8480'7]
local-les=16609
n=0
ec=1 les/c
16609/16659
16590/16590/16590) [24,3,23] r=2 lpr=17838
pi=15659-16589/42
crt=8480'7 lcod
0'0 inactive NOTIFY] enter Started/Stray Â
 Â
-14> 2015-04-27 10:17:08.808796
-14> 7fd8e748d700Â
5
osd.23

pg_epoch:

Quoted 11 lines
Quoted 11 lines

17882 pg[10.181( empty local-les=17879 n=0
ec=17863 les/c
17879/17879
17863/17863/17863) [25,5,23] r=2 lpr=17879
crt=0'0 inactive NOTIFY] exit Reset
0.119467
4
0.000037     -13> 2015-04-27
10:17:08.808817 7fd8e748d700  5
osd.23

pg_epoch:

Quoted 11 lines
Quoted 11 lines

17882 pg[10.181( empty local-les=17879 n=0
ec=17863 les/c
17879/17879
17863/17863/17863) [25,5,23] r=2 lpr=17879
crt=0'0 inactive NOTIFY] enter Started  Â
Â
-12> 2015-04-27 10:17:08.808828
-12> 7fd8e748d700Â
5
osd.23

pg_epoch:

Quoted 10 lines
Quoted 10 lines

17882 pg[10.181( empty local-les=17879 n=0
ec=17863 les/c
17879/17879
17863/17863/17863) [25,5,23] r=2 lpr=17879
crt=0'0 inactive NOTIFY] enter Start   Â
-11> 2015-04-27 10:17:08.808838
-11> 7fd8e748d700Â
1
osd.23

pg_epoch:

Quoted 11 lines
Quoted 11 lines

17882 pg[10.181( empty local-les=17879 n=0
ec=17863 les/c
17879/17879
17863/17863/17863) [25,5,23] r=2 lpr=17879
crt=0'0 inactive NOTIFY]
state<Start>: transitioning to Stray   Â
-10> 2015-04-27 10:17:08.808849
-10> 7fd8e748d700Â
5
osd.23

pg_epoch:

Quoted 11 lines
Quoted 11 lines

17882 pg[10.181( empty local-les=17879 n=0
ec=17863 les/c
17879/17879
17863/17863/17863) [25,5,23] r=2 lpr=17879
crt=0'0 inactive NOTIFY] exit Start
0.000020
0
0.000000      -9> 2015-04-27
10:17:08.808861 7fd8e748d700  5
osd.23

pg_epoch:

Quoted 9 lines
Quoted 9 lines

17882 pg[10.181( empty local-les=17879 n=0
ec=17863 les/c
17879/17879
17863/17863/17863) [25,5,23] r=2 lpr=17879
crt=0'0 inactive NOTIFY] enter
Started/Stray      -8> 2015-04-27
10:17:08.809427 7fd8e748d700  5
osd.23

pg_epoch:

Quoted 10 lines
Quoted 10 lines

17882 pg[2.189( empty local-les=16127 n=0
ec=1 les/c
16127/16344
16125/16125/16125) [23,5] r=0 lpr=17838
crt=0'0 mlcod
0'0 inactive] exit Reset 7.511623 45
0.000165      -7> 2015-04-27
10:17:08.809445 7fd8e748d700  5
osd.23

pg_epoch:

Quoted 9 lines
Quoted 9 lines

17882 pg[2.189( empty local-les=16127 n=0
ec=1 les/c
16127/16344
16125/16125/16125) [23,5] r=0 lpr=17838
crt=0'0 mlcod
0'0 inactive] enter Started      -6>
2015-04-27 10:17:08.809456 7fd8e748d700  5
osd.23

pg_epoch:

Quoted 9 lines
Quoted 9 lines

17882 pg[2.189( empty local-les=16127 n=0
ec=1 les/c
16127/16344
16125/16125/16125) [23,5] r=0 lpr=17838
crt=0'0 mlcod
0'0 inactive] enter Start      -5>
2015-04-27 10:17:08.809468 7fd8e748d700  1
osd.23

pg_epoch:

Quoted 13 lines
Quoted 13 lines

17882 pg[2.189( empty local-les=16127 n=0
ec=1 les/c
16127/16344
16125/16125/16125) [23,5] r=0 lpr=17838
crt=0'0 mlcod
0'0 inactive]
state<Start>: transitioning to Primary  Â
 Â
-4> 2015-04-27 10:17:08.809479
-4> 7fd8e748d700Â
-4> 5
osd.23

pg_epoch:

Quoted 10 lines
Quoted 10 lines

17882 pg[2.189( empty local-les=16127 n=0
ec=1 les/c
16127/16344
16125/16125/16125) [23,5] r=0 lpr=17838
crt=0'0 mlcod
0'0 inactive] exit Start 0.000023 0
0.000000      -3> 2015-04-27
10:17:08.809492 7fd8e748d700  5
osd.23

pg_epoch:

Quoted 12 lines
Quoted 12 lines

17882 pg[2.189( empty local-les=16127 n=0
ec=1 les/c
16127/16344
16125/16125/16125) [23,5] r=0 lpr=17838
crt=0'0 mlcod
0'0 inactive] enter Started/Primary   Â
Â
-2> 2015-04-27 10:17:08.809502
-2> 7fd8e748d700Â
-2> 5
osd.23

pg_epoch:

Quoted 10 lines
Quoted 10 lines

17882 pg[2.189( empty local-les=16127 n=0
ec=1 les/c
16127/16344
16125/16125/16125) [23,5] r=0 lpr=17838
crt=0'0 mlcod
0'0 inactive] enter
Started/Primary/Peering      -1>
2015-04-27 10:17:08.809513 7fd8e748d700  5
osd.23

Quoted 15 lines

pg_epoch:

Quoted 14 lines
Quoted 14 lines

17882 pg[2.189( empty local-les=16127 n=0
ec=1 les/c
16127/16344
16125/16125/16125) [23,5] r=0 lpr=17838
crt=0'0 mlcod
0'0 peering] enter
Started/Primary/Peering/GetInfo     Â
0>
2015-04-27 10:17:08.813837 7fd8e748d700 -1
./include/interval_set.h:
In
function 'void interval_set<T>::erase(T,
T) [with T =

snapid_t]'

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

thread
7fd8e748d700 time 2015-04-27
10:17:08.809899
./include/interval_set.h: 385: FAILED
assert(_size >=
0)

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

  ceph version 0.94.1
(e4bfad3a3c51054df7e537a724c8d0bf9be972ff)
  1: (ceph::__ceph_assert_fail(char
const*, char

const*,

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

int, char
const*)+0x8b) [0xbc271b]   2:

(interval_set<snapid_t>::subtract(interval_
se
t<
snapid_t

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

const&)+0xb0) [0x82cd50]   3:
(PGPool::update(std::tr1::shared_ptr<OSDMap
const>)+0x52e) [0x80113e]
  4:

(PG::handle_advance_map(std::tr1::shared_ptr<OSDMap

Quoted 14 lines
Quoted 14 lines
Quoted 14 lines
Quoted 14 lines
Quoted 14 lines
Quoted 14 lines
Quoted 14 lines
Quoted 14 lines
Quoted 14 lines

const>, std::tr1::shared_ptr<OSDMap
const>const>, std::vector<int,
std::allocator<int> >&, int,
std::vector<int, std::allocator<int>
&, int, PG::RecoveryCtx*)+0x282)
[0x801652]
  5: (OSD::advance_pg(unsigned int, PG*,
ThreadPool::TPHandle&, PG::RecoveryCtx*,
std::set<boost::intrusive_ptr<PG>,
std::less<boost::intrusive_ptr<PG> >,
std::allocator<boost::intrusive_ptr<PG> >
*)+0x2c3) [0x6b0e43]   6:
(OSD::process_peering_events(std::list<PG*,
std::allocator<PG*>

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

const&,
ThreadPool::TPHandle&)+0x21c) [0x6b191c]   7:

(OSD::PeeringWQ::_process(std::list<PG*,
std::allocator<PG*>
const&,
ThreadPool::TPHandle&)+0x18) [0x709278]   8:

(ThreadPool::worker(ThreadPool::WorkThread*)+0xa5e)

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

[0xbb38ae]   9:
(ThreadPool::WorkThread::entry()+0x10)
[0xbb4950]   10: (()+0x8182)
[0x7fd906946182]   11: (clone()+0x6d)
[0x7fd904eb147d]

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

Also by monitoring (ceph -w) I get the
following messages, also lots of
them.

2015-04-27 10:39:52.935812 mon.0 [INF]

from='client.?

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 3 lines
Quoted 3 lines

10.20.0.13:0/1174409'
entity='osd.30' cmd=[{"prefix": "osd crush
create-or-move",

"args":

Quoted 1 line
Quoted 1 line

["host=ceph3", "root=default"], "id": 30,

"weight":

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

1.82}]:

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

dispatch
2015-04-27 10:39:53.297376 mon.0 [INF]

from='client.?

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 3 lines
Quoted 3 lines

10.20.0.13:0/1174483'
entity='osd.26' cmd=[{"prefix": "osd crush
create-or-move",

"args":

Quoted 1 line
Quoted 1 line

["host=ceph3", "root=default"], "id": 26,

Quoted 8 lines
Quoted 8 lines

"weight":

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

1.82}]:

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

dispatch

This is a cluster of 3 nodes with 36
OSD's, nodes are also mons and mds's to save

servers.

Quoted 105 lines
Quoted 98 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

All run Ubuntu

14.04.2.

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

I have pretty much tried everything I
could think

of.

Quoted 88 lines
Quoted 88 lines
Quoted 85 lines
Quoted 73 lines
Quoted 63 lines
Quoted 63 lines
Quoted 63 lines
Quoted 63 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

Restarting daemons doesn't help.

Any help would be appreciated. I can also
provide more logs if necessary. They just
seem to get pretty large in few

moments.

Quoted 54 lines
Quoted 53 lines
Quoted 51 lines

Thank you
Tuomas

__________________________________________
__ __ _ ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-us
er
s-
ceph.com

___________________________________________
__ __ ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-use
rs
-c
eph.com

_____________________________________________
__ ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users
-c
ep
h.com

_____________________________________________
__ ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users
-c
ep
h.com

Quoted 8 lines
Quoted 7 lines
Quoted 6 lines

_______________________________________________
ceph-users mailing list [email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Quoted 7 lines

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected] More majordomo info atÂ
http://vger.kernel.org/majordomo-info.html

_______________________________________________
ceph-users mailing list [email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel"
in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html