Skip to content

cephadm: ceph-iscsi remove pool from cap#35786

Merged
sebastian-philipp merged 1 commit intoceph:masterfrom
matthewoliver:cephadm_iscsi_remove_pool_cap
Jun 29, 2020
Merged

cephadm: ceph-iscsi remove pool from cap#35786
sebastian-philipp merged 1 commit intoceph:masterfrom
matthewoliver:cephadm_iscsi_remove_pool_cap

Conversation

@matthewoliver
Copy link
Contributor

When we create a ceph-iscsi daemon/continer in cephadm we create a user
and set some caps. Turns out we were a little too restrictive.

We were locking down to only access the pool that was given in the spec,
which happens to be the pool the iscsi config is stored. But in reality
we need to be able to attach any rbd images which could exist in other
pools.

So this patch removes the pool= from the osd cap, so from:

osd = allow rwx pool={spec.pool}

To:

osd = allow rwx

Fixes: https://tracker.ceph.com/issues/46138
Signed-off-by: Matthew Oliver moliver@suse.com

Checklist

  • References tracker ticket
  • Updates documentation if necessary
  • Includes tests for new functionality or reproducer for bug

Show available Jenkins commands
  • jenkins retest this please
  • jenkins test classic perf
  • jenkins test crimson perf
  • jenkins test signed
  • jenkins test make check
  • jenkins test make check arm64
  • jenkins test submodules
  • jenkins test dashboard
  • jenkins test dashboard backend
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox

When we create a ceph-iscsi daemon/continer in cephadm we create a user
and set some caps. Turns out we were a little too restrictive.

We were locking down to only access the pool that was given in the spec,
which happens to be the pool the iscsi config is stored. But in reality
we need to be able  to attach any rbd images which could exist in other
pools.

So this patch removes the `pool=` from the osd cap, so from:

   osd = allow rwx pool={spec.pool}

To:

   osd = allow rwx

Fixes: https://tracker.ceph.com/issues/46138
Signed-off-by: Matthew Oliver <moliver@suse.com>
@sebastian-philipp
Copy link
Contributor

jenkins test dashboard backend

@sebastian-philipp
Copy link
Contributor

jenkins test docs

@sebastian-philipp
Copy link
Contributor

jenkins test docs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants