[cephadm] bootstrap fails with the error "relabeling content in /usr is not allowed" while mentioning --apply-spec file.

Solution In Progress - Updated -

Issue

  • cephadm bootstrap fails with the error relabeling content in /usr is not allowed while mentioning --apply-spec file.
  • cephadm bootstrap fails with the below error:
# cephadm --verbose bootstrap --mon-ip <IP> --registry-json <registry_details> --apply-spec <service.yaml>

[...]

/usr/bin/ceph: stderr Error: relabeling content in /usr is not allowed
Traceback (most recent call last):
  File "/usr/sbin/cephadm", line 8140, in <module>
    main()
  File "/usr/sbin/cephadm", line 8128, in main
    r = ctx.func(ctx)
  File "/usr/sbin/cephadm", line 1730, in _default_image
    return func(ctx)
  File "/usr/sbin/cephadm", line 4156, in command_bootstrap
    out = cli(['orch', 'apply', '-i', '/tmp/spec.yml'], extra_mounts=mounts)
  File "/usr/sbin/cephadm", line 4050, in cli
    ).run(timeout=timeout)
  File "/usr/sbin/cephadm", line 3286, in run
    desc=self.entrypoint, timeout=timeout)
  File "/usr/sbin/cephadm", line 1424, in call_throws
    raise RuntimeError('Failed command: %s' % ' '.join(command))

Environment

  • RHCS 5.
  • cephadm

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content