Project

General

Profile

Bug #5474

ceph-deploy osd create host:/path/to/osd does not activate

Added by Ross Turk about 6 years ago. Updated over 1 year ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
-
Start date:
06/27/2013
Due date:
% Done:

0%

Source:
other
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:

Description

When using osd create host:disk, it does prepare+activate. When you do it against host:path, though, it prepares and does not activate. Possibly because there's no hotplug event?

Suggest making it behave the same for paths & disks. Alternatively, could document the difference.

Workaround: Call osd activate after osd create (or use prepare->activate instead).

History

#1 Updated by Alfredo Deza about 5 years ago

  • Assignee set to Alfredo Deza

#2 Updated by Alfredo Deza about 5 years ago

  • Status changed from New to Feedback

For some reason that is not entirely clear to me, `osd create` calls `prepare` and then does this behind the scenes:

        return remoto.process.run(
            conn,
            [
                'udevadm',
                'trigger',
                '--subsystem-match=block',
                '--action=add',
            ],
        )

But `activate` does something completely different! it doesn't even call `udevadm`! it uses ceph-disk:

        remoto.process.run(
            distro.conn,
            [
                'ceph-disk',
                '-v',
                'activate',
                '--mark-init',
                distro.init,
                '--mount',
                disk,
            ],
        )

I am not clear about the consequences of just not calling udevadm and going for `activate` after `prepare`

#3 Updated by Neil Levine almost 5 years ago

  • Project changed from devops to Ceph-deploy
  • Category deleted (ceph-deploy)

#4 Updated by Alfredo Deza over 1 year ago

  • Status changed from Feedback to Resolved

No longer a problem when using ceph-volume

Also available in: Atom PDF