Project

General

Profile

Actions

Bug #10063

closed

ceph_objectstore_tool does not support getting attributes for erasure coded objects

Added by Loïc Dachary over 9 years ago. Updated over 9 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
OSD
Target version:
-
% Done:

100%

Source:
other
Tags:
Backport:
giant, firefly
Regression:
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

loic@fold:~/software/ceph/ceph/src$ ./ceph_objectstore_tool --data-path dev/osd1 --journal-path dev/osd1.journal --pgid 1.6s0  --op list
{"oid":"YOPLA","key":"","snapid":-2,"hash":493361470,"max":0,"pool":1,"namespace":""}
loic@fold:~/software/ceph/ceph/src$ ./ceph_objectstore_tool --debug --data-path dev/osd1 --journal-path dev/osd1.journal --pgid 1.6s0 '{"oid":"YOPLA","key":"","snapid":-2,"hash":493361470,"max":0,"pool":1,"namespace":""}' list-attrs
2014-11-11 15:08:49.125271 7fb7b0ee0800  5 filestore(dev/osd1) basedir dev/osd1 journal dev/osd1.journal
2014-11-11 15:08:49.125298 7fb7b0ee0800 10 filestore(dev/osd1) mount fsid is aaa2e152-4a4e-4d0f-a2b7-dc2d426fe82b
2014-11-11 15:08:49.125352 7fb7b0ee0800  0 filestore(dev/osd1) backend generic (magic 0xef53)
2014-11-11 15:08:49.126631 7fb7b0ee0800  0 genericfilestorebackend(dev/osd1) detect_features: FIEMAP ioctl is supported and appears to work
2014-11-11 15:08:49.126637 7fb7b0ee0800  0 genericfilestorebackend(dev/osd1) detect_features: FIEMAP ioctl is disabled via 'filestore fiemap' config option
2014-11-11 15:08:49.233828 7fb7b0ee0800  0 genericfilestorebackend(dev/osd1) detect_features: syncfs(2) syscall fully supported (by glibc and kernel)
2014-11-11 15:08:49.448866 7fb7b0ee0800  0 filestore(dev/osd1) limited size xattrs
2014-11-11 15:08:49.448989 7fb7b0ee0800  5 filestore(dev/osd1) mount op_seq is 338
2014-11-11 15:08:49.533430 7fb7b0ee0800 20 filestore (init)dbobjectmap: seq is 25
2014-11-11 15:08:49.533461 7fb7b0ee0800 10 filestore(dev/osd1) open_journal at dev/osd1.journal
2014-11-11 15:08:49.533495 7fb7b0ee0800  0 filestore(dev/osd1) mount: enabling WRITEAHEAD journal mode: checkpoint is not enabled
2014-11-11 15:08:49.533499 7fb7b0ee0800 10 filestore(dev/osd1) list_collections
2014-11-11 15:08:49.533708 7fb7b0ee0800 10 journal journal_replay fs op_seq 338
2014-11-11 15:08:49.533715 7fb7b0ee0800  2 journal open dev/osd1.journal fsid aaa2e152-4a4e-4d0f-a2b7-dc2d426fe82b fs_op_seq 338
2014-11-11 15:08:49.533740 7fb7b0ee0800 -1 journal FileJournal::_open: disabling aio for non-block journal.  Use journal_force_aio to force use of aio anyway
2014-11-11 15:08:49.533744 7fb7b0ee0800 10 journal _open journal is not a block device, NOT checking disk write cache on 'dev/osd1.journal'
2014-11-11 15:08:49.533746 7fb7b0ee0800  1 journal _open dev/osd1.journal fd 15: 104857600 bytes, block size 4096 bytes, directio = 1, aio = 0
2014-11-11 15:08:49.533753 7fb7b0ee0800 10 journal read_header
2014-11-11 15:08:49.533723 7fb7a88bf700 20 filestore(dev/osd1) sync_entry waiting for max_interval 5.000000
2014-11-11 15:08:49.539259 7fb7b0ee0800 10 journal header: block_size 4096 alignment 4096 max_size 104857600
2014-11-11 15:08:49.539280 7fb7b0ee0800 10 journal header: start 1454080
2014-11-11 15:08:49.539281 7fb7b0ee0800 10 journal  write_pos 4096
2014-11-11 15:08:49.539285 7fb7b0ee0800 10 journal open header.fsid = aaa2e152-4a4e-4d0f-a2b7-dc2d426fe82b
2014-11-11 15:08:49.539315 7fb7b0ee0800  2 journal No further valid entries found, journal is most likely valid
2014-11-11 15:08:49.539316 7fb7b0ee0800 10 journal open reached end of journal.
2014-11-11 15:08:49.539321 7fb7b0ee0800  2 journal No further valid entries found, journal is most likely valid
2014-11-11 15:08:49.539323 7fb7b0ee0800  3 journal journal_replay: end of journal, done.
2014-11-11 15:08:49.539325 7fb7b0ee0800 10 journal make_writeable
2014-11-11 15:08:49.539354 7fb7b0ee0800 10 journal _open journal is not a block device, NOT checking disk write cache on 'dev/osd1.journal'
2014-11-11 15:08:49.539358 7fb7b0ee0800  1 journal _open dev/osd1.journal fd 15: 104857600 bytes, block size 4096 bytes, directio = 1, aio = 0
2014-11-11 15:08:49.539422 7fb7b0ee0800 10 journal journal_start
2014-11-11 15:08:49.539436 7fb7a806e700 10 journal write_thread_entry start
2014-11-11 15:08:49.539456 7fb7a806e700 20 journal prepare_multi_write queue_pos now 1454080
2014-11-11 15:08:49.539502 7fb7a806e700 15 journal do_write writing 1454080~0 + header
2014-11-11 15:08:49.539596 7fb7b0ee0800 15 filestore(dev/osd1) read meta/23c2fcde/osd_superblock/0//-1 0~0
2014-11-11 15:08:49.539688 7fb7b0ee0800 10 filestore(dev/osd1) FileStore::read meta/23c2fcde/osd_superblock/0//-1 0~414/414
Supported features: compat={},rocompat={},incompat={1=initial feature set(~v.18),2=pginfo object,3=object locator,4=last_epoch_clean,5=categories,6=hobjectpool,7=biginfo,8=leveldbinfo,9=leveldblog,10=snapmapper,11=sharded objects,12=transaction hints}
On-disk features: compat={},rocompat={},incompat={1=initial feature set(~v.18),2=pginfo object,3=object locator,4=last_epoch_clean,5=categories,6=hobjectpool,7=biginfo,8=leveldbinfo,9=leveldblog,10=snapmapper,11=sharded objects,12=transaction hints}
2014-11-11 15:08:49.540465 7fb7b0ee0800 10 filestore(dev/osd1) list_collections
2014-11-11 15:08:49.540591 7fb7b0ee0800 15 filestore(dev/osd1) getattrs 1.6s0_head/1d68193e/YOPLA/head//1
getattrs: 2014-11-11 15:08:49.540659 7fb7b0ee0800 10 filestore(dev/osd1) error opening file dev/osd1/current/1.6s0_head/YOPLA__head_1D68193E__1 with flags=2: (2) No such file or directory
(2) No such file or directory
2014-11-11 15:08:49.540691 7fb7b0ee0800 10 filestore(dev/osd1) getattrs 1.6s0_head/1d68193e/YOPLA/head//1 = -2
2014-11-11 15:08:49.540798 7fb7b0ee0800  5 filestore(dev/osd1) umount dev/osd1
2014-11-11 15:08:49.540806 7fb7b0ee0800 10 filestore(dev/osd1) do_force_sync
2014-11-11 15:08:49.540849 7fb7a88bf700 20 filestore(dev/osd1) sync_entry force_sync set
2014-11-11 15:08:49.540879 7fb7a88bf700 10 journal commit_start max_applied_seq 338, open_ops 0
2014-11-11 15:08:49.540882 7fb7a88bf700 10 journal commit_start blocked, all open_ops have completed
2014-11-11 15:08:49.540884 7fb7a88bf700 10 journal commit_start nothing to do
2014-11-11 15:08:49.540886 7fb7a88bf700 10 journal commit_start
2014-11-11 15:08:49.541115 7fb7b0ee0800 10 journal journal_stop
2014-11-11 15:08:49.541200 7fb7b0ee0800  1 journal close dev/osd1.journal
2014-11-11 15:08:49.547672 7fb7a806e700 20 journal do_write latency 0.008165
2014-11-11 15:08:49.547713 7fb7a806e700 20 journal do_write queueing finishers through seq 0
2014-11-11 15:08:49.547747 7fb7a806e700  5 journal put_throttle finished 0 ops and 0 bytes, now 0 ops and 0 bytes
2014-11-11 15:08:49.547754 7fb7a806e700 10 journal write_thread_entry finish

Related issues 1 (0 open1 closed)

Related to Ceph - Feature #10064: add ceph_objectstore_tool tests to make checkResolvedLoïc Dachary11/11/2014

Actions
Actions #1

Updated by Loïc Dachary over 9 years ago

error opening file dev/osd1/current/1.6s0_head/YOPLA__head_1D68193E__1 with flags=2: (2) No such file or directory

it should be
loic@fold:~/software/ceph/ceph/src$ find dev/osd1/current/ | grep YOPLA
dev/osd1/current/1.6s0_head/YOPLA__head_1D68193E__1_ffffffffffffffff_0
Actions #2

Updated by Loïc Dachary over 9 years ago

  • Status changed from 12 to Fix Under Review
  • % Done changed from 0 to 80
Actions #3

Updated by Loïc Dachary over 9 years ago

  • Status changed from Fix Under Review to Pending Backport
  • Backport set to giant, firefly
Actions #4

Updated by Loïc Dachary over 9 years ago

  • Status changed from Pending Backport to Fix Under Review
Actions #5

Updated by Loïc Dachary over 9 years ago

  • Status changed from Fix Under Review to Resolved
  • % Done changed from 80 to 100
Actions

Also available in: Atom PDF