]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
4 years agorgw: crash on multipart upload to bucket with policy 41893/head
Or Friedmann [Thu, 13 May 2021 12:39:02 +0000 (15:39 +0300)]
rgw: crash on multipart upload to bucket with policy

crash on multipart upload to bucket with policy Fixes: https://tracker.ceph.com/issues/50556

Signed-off-by: Or Friedmann <ofriedma@redhat.com>
(cherry picked from commit 413b23a5483d1feb5ea087ee96bd31b14bc0a285)

Conflicts:
  src/rgw/rgw_op.cc
- rgw::sal::RGWObject renamed to rgw::sal::Object

4 years agoMerge pull request #41815 from sebastian-philipp/pacific-backport-41555-41444-41693...
Sebastian Wagner [Wed, 16 Jun 2021 11:57:42 +0000 (13:57 +0200)]
Merge pull request #41815 from sebastian-philipp/pacific-backport-41555-41444-41693-41653-41241-41242

pacific: cephadm: june batch 2

Reviewed-by: Michael Fritch <mfritch@suse.com>
4 years agoMerge pull request #41680 from neha-ojha/wip-50706-pacific
Yuri Weinstein [Tue, 15 Jun 2021 18:50:20 +0000 (11:50 -0700)]
Merge pull request #41680 from neha-ojha/wip-50706-pacific

pacific: osd/PG.cc: handle removal of pgmeta object

Reviewed-by: Neha Ojha <nojha@redhat.com>
4 years agoMerge pull request #41634 from rhcs-dashboard/wip-51038-pacific
Ernesto Puerta [Fri, 11 Jun 2021 17:45:23 +0000 (19:45 +0200)]
Merge pull request #41634 from rhcs-dashboard/wip-51038-pacific

pacific: mgr/dashboard: fix base-href

Reviewed-by: Aashish Sharma <aasharma@redhat.com>
Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
Reviewed-by: Pere Diaz Bou <pdiazbou@redhat.com>
4 years agodoc/dev/cephadm: cephadm bootstrap --shared_ceph_folder 41815/head
Sebastian Wagner [Fri, 4 Jun 2021 09:24:48 +0000 (11:24 +0200)]
doc/dev/cephadm: cephadm bootstrap --shared_ceph_folder

Signed-off-by: Sebastian Wagner <sewagner@redhat.com>
(cherry picked from commit 5f1aa05563fe3a2fc54ef02d39ad279f573da914)

4 years agomgr/cephadm: allow monitoring stack services to bind to network and port
Daniel Pivonka [Wed, 12 May 2021 17:46:11 +0000 (13:46 -0400)]
mgr/cephadm: allow monitoring stack services to bind to network and port

Signed-off-by: Daniel Pivonka <dpivonka@redhat.com>
(cherry picked from commit adecb2d2dad5732d610d53181e41d195819bdbb8)

4 years agodoc/cephadm: enriching "setting a limit"
Zac Dover [Wed, 2 Jun 2021 14:11:59 +0000 (00:11 +1000)]
doc/cephadm: enriching "setting a limit"

This PR improves the flow and syntax of the
sentences in the "Setting a Limit" section of the
"Service Management" chapter of the cephadm documentation.
(This section is about setting limits to the number of
daemons created, and about limiting the creation of daemons
to a specified number of hosts.)

Signed-off-by: Zac Dover <zac.dover@gmail.com>
(cherry picked from commit 8db4a8458f4fbaad2b556ec9c2313d370467e5d3)

4 years agocephadm: add `--allow-fqdn-hostname` test
Michael Fritch [Fri, 28 May 2021 17:12:12 +0000 (11:12 -0600)]
cephadm: add `--allow-fqdn-hostname` test

Signed-off-by: Michael Fritch <mfritch@suse.com>
(cherry picked from commit 0f210b0578cddd5cf6cd21d85d72c21b75209bea)

4 years agocephadm: add `--config` test
Michael Fritch [Thu, 27 May 2021 13:49:01 +0000 (07:49 -0600)]
cephadm: add `--config` test

follow-up test for:
https://github.com/ceph/ceph/pull/41351

Signed-off-by: Michael Fritch <mfritch@suse.com>
(cherry picked from commit 9bfdf31166ceadb3f9452a5f84116162eb252c55)

4 years agocephadm: add `bootstrap --mon-ip` test
Michael Fritch [Thu, 27 May 2021 13:18:40 +0000 (07:18 -0600)]
cephadm: add `bootstrap --mon-ip` test

Signed-off-by: Michael Fritch <mfritch@suse.com>
(cherry picked from commit b3e2c4393bbf390c99090469166b31f4445b3686)

4 years agocephadm: add `bootstrap --skip-mon-network` test
Michael Fritch [Thu, 27 May 2021 13:17:37 +0000 (07:17 -0600)]
cephadm: add `bootstrap --skip-mon-network` test

Signed-off-by: Michael Fritch <mfritch@suse.com>
(cherry picked from commit 849d00b1a5645363f1f37fb19c54b86214cf91d2)

4 years agocephadm: add basic `bootstrap` test
Michael Fritch [Thu, 27 May 2021 13:17:27 +0000 (07:17 -0600)]
cephadm: add basic `bootstrap` test

bootstrap requires --mon-ip or --mon-addrv

Signed-off-by: Michael Fritch <mfritch@suse.com>
(cherry picked from commit c61f80560bac367a339210bebfd3d3676b956964)

4 years agocephadm: move podman/docker test mock
Michael Fritch [Wed, 26 May 2021 13:05:24 +0000 (07:05 -0600)]
cephadm: move podman/docker test mock

to use as a default value in the fixtures

Signed-off-by: Michael Fritch <mfritch@suse.com>
(cherry picked from commit 3060962926bc69f03e11352f637d3586143d4ac6)

Conflicts:
src/cephadm/tests/test_cephadm.py

4 years agocephadm: add cephadm ContextManager
Michael Fritch [Mon, 24 May 2021 13:53:04 +0000 (07:53 -0600)]
cephadm: add cephadm ContextManager

to mock the CephadmContext during unit tests

Signed-off-by: Michael Fritch <mfritch@suse.com>
(cherry picked from commit 3e714ef1dcd4d30816932fdb35e8abcde773dca8)

4 years agocephadm: add pyfakefs fixture
Michael Fritch [Mon, 24 May 2021 14:03:55 +0000 (08:03 -0600)]
cephadm: add pyfakefs fixture

to mock the cephadm filesystem

Signed-off-by: Michael Fritch <mfritch@suse.com>
(cherry picked from commit d5eac27833ea830f35fb0d75bc205cf85e4256e4)

4 years agocephadm: clean-up imports
Michael Fritch [Wed, 26 May 2021 10:29:00 +0000 (04:29 -0600)]
cephadm: clean-up imports

Signed-off-by: Michael Fritch <mfritch@suse.com>
(cherry picked from commit 8fb0a5019c8ba7bf031eed7020bce10afff988e1)

4 years agocephadm: rework mismatched release check
Michael Fritch [Wed, 26 May 2021 10:28:50 +0000 (04:28 -0600)]
cephadm: rework mismatched release check

allow for `--allow-mismatched-release` to be passed during unit tests

Signed-off-by: Michael Fritch <mfritch@suse.com>
(cherry picked from commit 969eccffe92f337f8111347043063c665c67db94)

4 years agocephadm: move `json_loads_retry` func
Michael Fritch [Tue, 18 May 2021 16:21:23 +0000 (10:21 -0600)]
cephadm: move `json_loads_retry` func

move inner func `json_loads_retry` so it can be mocked during unit tests

Signed-off-by: Michael Fritch <mfritch@suse.com>
(cherry picked from commit dc8b7db7729cbb24b350de3c8bf2db34e73cd789)

4 years agocephadm: always require a CephadmContext
Michael Fritch [Mon, 24 May 2021 13:52:53 +0000 (07:52 -0600)]
cephadm: always require a CephadmContext

it's not possible for the CephadmContext to be a NoneType

Signed-off-by: Michael Fritch <mfritch@suse.com>
(cherry picked from commit 054f555afb6c0081f7b37a23932ff51d901092c7)

4 years agodoc/cephadm: rewrite "deploy. mon. w/cephadm" 2/2
Zac Dover [Sun, 9 May 2021 15:06:02 +0000 (01:06 +1000)]
doc/cephadm: rewrite "deploy. mon. w/cephadm" 2/2

This is the second half of PR#41241.

This PR creates a sub-subsection that explains
a configuration step that is sometimes necessary
when configuring monitoring in Ceph clusters. (The
configuration step involves DNS zones.)

Signed-off-by: Zac Dover <zac.dover@gmail.com>
(cherry picked from commit 808c91233c005ca7df8a7b43279915d6382ea26b)

4 years agodoc/cephadm: rewrite "deploy. mon. w/cephadm"
Zac Dover [Sun, 9 May 2021 14:39:47 +0000 (00:39 +1000)]
doc/cephadm: rewrite "deploy. mon. w/cephadm"

This PR corrects various minor usage errors in
the subsection "Deploying Monitoring with cephadm"
of the "monitoring" section of the cephadm guide.

It also adds prompts, and cleans up the list rst a
bit.

This is the first of two PRs planned for this section.
The second PR will create a sub-subsection that explains
an additional installation step that is necessary when
a Ceph cluster and a user accessing that cluster are in
different DNS zones. But that's another story, for another
PR.

Signed-off-by: Zac Dover <zac.dover@gmail.com>
(cherry picked from commit e8419b53fbfd143c37ae80b0eeb441c26c5316f1)

4 years agoMerge pull request #41086 from smithfarm/wip-50358-pacific
Yuri Weinstein [Thu, 10 Jun 2021 19:28:31 +0000 (12:28 -0700)]
Merge pull request #41086 from smithfarm/wip-50358-pacific

pacific: make-dist: refuse to run if script path contains a colon

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
4 years agoMerge PR #41596 into pacific
Patrick Donnelly [Thu, 10 Jun 2021 19:09:56 +0000 (12:09 -0700)]
Merge PR #41596 into pacific

* refs/pull/41596/head:
mds: do not infinitely recursively print a metric
mds: do not assert when receiving a unknow metric type

Reviewed-by: Milind Changire <mchangir@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
4 years agoMerge pull request #41685 from batrick/i51085
Yuri Weinstein [Thu, 10 Jun 2021 19:08:00 +0000 (12:08 -0700)]
Merge pull request #41685 from batrick/i51085

pacific: mds: scrub error on inode 0x1

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
4 years agoMerge pull request #41659 from batrick/i51070
Yuri Weinstein [Thu, 10 Jun 2021 19:06:53 +0000 (12:06 -0700)]
Merge pull request #41659 from batrick/i51070

pacific: qa: test_ephemeral_pin_distribution failure

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
4 years agoMerge pull request #41044 from leseb/bkp-40157
Yuri Weinstein [Thu, 10 Jun 2021 19:04:28 +0000 (12:04 -0700)]
Merge pull request #41044 from leseb/bkp-40157

pacific: mgr/pybind/snap_schedule: do not fail when no fs snapshots are available

Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
4 years agoMerge pull request #41577 from rhcs-dashboard/wip-50664-pacific
Ernesto Puerta [Wed, 9 Jun 2021 16:12:26 +0000 (18:12 +0200)]
Merge pull request #41577 from rhcs-dashboard/wip-50664-pacific

pacific: mgr/dashboard:include compression stats on pool dashboard

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
Reviewed-by: Paul Cuzner <pcuzner@redhat.com>
Reviewed-by: Pere Diaz Bou <pdiazbou@redhat.com>
4 years agoMerge pull request #41769 from ivancich/wip-51138-pacific
J. Eric Ivancich [Wed, 9 Jun 2021 15:53:44 +0000 (11:53 -0400)]
Merge pull request #41769 from ivancich/wip-51138-pacific

pacific: rgw: completion of multipart upload leaves delete marker

Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
4 years agoMerge pull request #41777 from rhcs-dashboard/wip-51135-pacific
Ernesto Puerta [Wed, 9 Jun 2021 11:57:03 +0000 (13:57 +0200)]
Merge pull request #41777 from rhcs-dashboard/wip-51135-pacific

pacific: mgr/dashboard: simplify object locking fields in 'Bucket Creation' form

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
4 years agoMerge pull request #41549 from rhcs-dashboard/pacific-npm-revert
Ernesto Puerta [Wed, 9 Jun 2021 08:24:33 +0000 (10:24 +0200)]
Merge pull request #41549 from rhcs-dashboard/pacific-npm-revert

Revert "pacific: mgr/dashboard: Generate NPM dependencies manifest"

Reviewed-by: Aashish Sharma <aasharma@redhat.com>
Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
4 years agomgr/dashboard: simplify object locking fields in 'Bucket Creation' form 41777/head
Alfonso Martínez [Thu, 3 Jun 2021 10:25:45 +0000 (12:25 +0200)]
mgr/dashboard: simplify object locking fields in 'Bucket Creation' form

- UI: The object locking retention period must be expressed in days.
  Years value from API (as API keeps param parity with RGW API) are converted to days.
- API: add more validation and increase test coverage.

Fixes: https://tracker.ceph.com/issues/49885
Signed-off-by: Alfonso Martínez <almartin@redhat.com>
(cherry picked from commit 09394a19913b8159a7608a594e29886eaae7570e)

4 years agorgw: completion of multipart upload leaves delete marker 41769/head
J. Eric Ivancich [Tue, 1 Jun 2021 19:17:23 +0000 (15:17 -0400)]
rgw: completion of multipart upload leaves delete marker

The multipart upload meta object is deleted when the multipart upload
is completed. When the bucket is versioned, it needs to be deleted
from the bucket index rather than go through versioning delete process
that adds a delete marker to the bucket index rather than simply
removing it from the bucket index.

Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
(cherry picked from commit 9ab7c18c4039f7b7283da3182807641d99b01ca7)

Conflicts:
  src/rgw/rgw_op.cc        : adapted to significant Zipper mods
  src/rgw/rgw_rados.cc     : adapted to significant Zipper mods
  src/rgw/rgw_rados.h      : adapted to significant Zipper mods
  src/rgw/rgw_sal.h        : adapted to significant Zipper mods
  src/rgw/rgw_sal_rados.cc : adapted to significant Zipper mods
  src/rgw/rgw_sal_rados.h  : adapted to significant Zipper mods

4 years agoMerge pull request #41675 from aaSharma14/wip-51037-pacific
Ernesto Puerta [Tue, 8 Jun 2021 15:57:59 +0000 (17:57 +0200)]
Merge pull request #41675 from aaSharma14/wip-51037-pacific

pacific: mgr/dashboard: API Version changes do not apply to pre-defined methods (list, create etc.)

Reviewed-by: Aashish Sharma <aasharma@redhat.com>
Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Avan Thakkar <athakkar@redhat.com>
4 years agoMerge pull request #41475 from vshankar/wip-cephfs-mirror-pacific-backports
Yuri Weinstein [Tue, 8 Jun 2021 14:34:48 +0000 (07:34 -0700)]
Merge pull request #41475 from vshankar/wip-cephfs-mirror-pacific-backports

pacific: cephfs-mirror backports

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
4 years agoMerge pull request #41576 from adamemerson/wip-50982-pacific
Yuri Weinstein [Tue, 8 Jun 2021 13:09:58 +0000 (06:09 -0700)]
Merge pull request #41576 from adamemerson/wip-50982-pacific

rgw: Simplify log shard probing and err on the side of omap

Reviewed-by: Casey Bodley <cbodley@redhat.com>
4 years agoMerge PR #41684 into pacific
Sage Weil [Mon, 7 Jun 2021 18:44:27 +0000 (13:44 -0500)]
Merge PR #41684 into pacific

* refs/pull/41684/head:
cephadm: improve is_container_running()
mgr/cephadm:fix alerts sent to wrong URL
mgr/cephadm: Warn about OSDs to be deleted manually when deleting an OSD service
doc: add ceph-nfs link
mgr: Fix orch osd rm stop help message
mgr/cephadm/inventory: do not try to resolve current mgr host
pybind/mgr/mgr_module: make get_mgr_ip() return mgr's IP from mgrmap
mgr/restful: use get_mgr_ip() instead of hostname
doc/cephadm: s/the the/the
doc/cephadm: enriching "daemon status"
doc/cephadm: enriching "Service Specification"
mgr/cephadm: Don't call _check_host without hosts
cephadm: stop passing --no-hosts to podman
mgr/nfs: use host.addr for backend IP where possible
mgr/cephadm: convert host addr if non-IP to IP
mgr/dashboard,prometheus: new method of getting mgr IP
doc/cephadm: remove any reference to the use of DNS or /etc/hosts
mgr/cephadm: use known host addr
mgr/cephadm: resolve IP at 'orch host add' time
doc/cephadm: enrich "service status"
doc/cephadm: recommend redeploying monitoring stack daemon after changing image
cephadm: clean-up error message
cephadm: raise an error when `--config` file is not found
cephadm: manage cephadm log with logrotated
mgr/cephadm: progress item for service apply
mgr: expose ceph.conf path to modules
common/config: track the path to the conf file we loaded
qa/tasks/cephfs/test_nfs: fix info test
doc/cephfs/fs-nfs-exports: document --ingress --virtual-ip
mgr/nfs: move ingress vs virtual_ip check to cluster interface
PendingReleaseNotes: clarify deprecated
PendingReleaseNotes: note breaking CLI changes
doc/cephadm/nfs: document nfs+ingress
qa/suites/rados/cephadm/smoke-roleless: test nfs, nfs + ingress
mgr/nfs: take --ingress argument to 'nfs cluster create'
mgr/cephadm: adjust debug output for device refresh
mgr/cephadm: ingress: fix log msg
mgr/cephadm: fix logging of config/placement errors
common/options: enable nfs module for new clusters
cephadm: --stop-signal=SIGTERM
mgr/orchestrator: default nfs pool, namespaces
mgr/cephadm: nfs: create pool if it doesn't yet exist
doc/cephadm/nfs: update
mgr/nfs: change 'nfs cluster info'
mgr/nfs: take optional virtual_ip for deploying ingress
mgr/nfs: remove 'nfs cluster update'
mgr/nfs: factor out ganesha pool creation
mgr/nfs: delete -> rm for CLI
mgr/nfs: add some type annotations
python-common: fix IngressSpec yaml dump
mgr/cephadm: ingress: remove eth0 default
qa/tasks/cephadm: allow mounting volumes in shell
cephadm: add -v arg to shell
qa/tasks/vip: add 'vip.exec' task
mgr/orchestrator: add --port arg to 'orch apply nfs'
mgr/cephadm: nfs: add purge
mgr/cephadm: ingress: support nfs
mgr/cephadm: do not reconfigure daemons on deleted services
mgr/cephadm: nfs: shell out to rados tool for conf creation
mgr/cephadm: nfs: add rank to grace file from mgr module
mgr/cephadm: nfs: bind ganesha to appropriate ip:port
mgr/cephadm: enable ranked daemons for nfs
mgr/cephadm: support creation of daemons with ranks
mgr/cephadm: make _plan show removed daemon names
mgr/cephadm/schedule: assign/map ranks
mgr/cephadm: add rank[_generation] properties
mgr/cephadm/inventory: store optional rank_map along with specs
mgr/cephadm: include service_name is generated DaemonDescription
mgr/orchestrator: include service_name in DaemonDescription dump
mgr/cephadm/inventory: fix deleted check
mgr/cephadm: simplify
mgr/cephadm/schedule: make placement shuffle deterministic
mgr/cephadm: document CephadmService flags
doc/cephadm: fix prompts in service-management.rst
qa/tasks/cephadm: Include bootstrap registry options for downstream
qa/suites/rados: include rook test in rados

Reviewed-by: Juan Miguel Olmo <jolmomar@redhat.com>
Reviewed-by: Avan Thakkar <athakkar@redhat.com>
4 years agocephadm: improve is_container_running() 41684/head
Sage Weil [Sat, 5 Jun 2021 15:05:48 +0000 (10:05 -0500)]
cephadm: improve is_container_running()

The 'podman ps' command sporatically exits with 125, I suspect due
to some race/bug in podman itself.

However, our goal here is just to check if a specific container
is running.  Use inspect for that instead--it's even (a bit) faster.

Fixes: https://tracker.ceph.com/issues/51109
Signed-off-by: Sage Weil <sage@newdream.net>
(cherry picked from commit 4757a13dc62d34d3649b1df3bd9f17793c201c1f)

4 years agomgr/cephadm:fix alerts sent to wrong URL
Paul Cuzner [Wed, 2 Jun 2021 23:34:19 +0000 (11:34 +1200)]
mgr/cephadm:fix alerts sent to wrong URL

The path_prefix in prometheus.yml was specifying an
endpoint prefix, which was invalid. This resulted in 404
errors when trying to send alerts to alertmanager and
blocked alerts being sent on to the ceph-dashboard API
receiver. This fix remves this prefix.

Fixes: https://tracker.ceph.com/issues/51073
Signed-off-by: Paul Cuzner <pcuzner@redhat.com>
(cherry picked from commit 9d408a70c7d01fd7c94f9b814af916396d7cbf1f)

4 years agomgr/cephadm: Warn about OSDs to be deleted manually when deleting an OSD service
Juan Miguel Olmo Martínez [Thu, 25 Mar 2021 15:59:55 +0000 (16:59 +0100)]
mgr/cephadm: Warn about OSDs to be deleted manually when deleting an OSD service

Provide information about what OSDs must be deleted in order to delete
completelly a OSD Service.

Signed-off-by: Juan Miguel Olmo Martínez <jolmomar@redhat.com>
(cherry picked from commit 84ac0b326dca8e9d44594a319c020250ea0709c0)

4 years agoMerge pull request #41664 from idryomov/wip-rbd-trash-purge-pacific
Yuri Weinstein [Mon, 7 Jun 2021 13:45:43 +0000 (06:45 -0700)]
Merge pull request #41664 from idryomov/wip-rbd-trash-purge-pacific

pacific: librbd: don't stop at the first unremovable image when purging

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
4 years agoMerge pull request #41643 from idryomov/wip-rbd-qemu-precise-repos-pacific
Yuri Weinstein [Mon, 7 Jun 2021 13:44:38 +0000 (06:44 -0700)]
Merge pull request #41643 from idryomov/wip-rbd-qemu-precise-repos-pacific

pacific: qa/tasks/qemu: precise repos have been archived

Reviewed-by: Deepika Upadhyay <dupadhya@redhat.com>
4 years agoMerge pull request #41655 from neha-ojha/wip-51040-pacific
Yuri Weinstein [Sat, 5 Jun 2021 14:37:25 +0000 (07:37 -0700)]
Merge pull request #41655 from neha-ojha/wip-51040-pacific

pacific:  os/bluestore: fix unexpected ENOSPC in Avl/Hybrid allocators.

Reviewed-by: Igor Fedotov <ifedotov@suse.com>
4 years agoMerge pull request #41131 from gregsfortytwo/pacific-mmonjoin-leader
Gregory Farnum [Fri, 4 Jun 2021 21:54:25 +0000 (14:54 -0700)]
Merge pull request #41131 from gregsfortytwo/pacific-mmonjoin-leader

Pacific: Direct MMonJoin messages to leader, not first rank [Merge after 41130]

Reviewed-by: Neha Ojha <nojha@redhat.com>
4 years agoMerge pull request #41130 from gregsfortytwo/pacific-stretch-mon-state
Gregory Farnum [Fri, 4 Jun 2021 21:54:08 +0000 (14:54 -0700)]
Merge pull request #41130 from gregsfortytwo/pacific-stretch-mon-state

Pacific stretch mon state [Merge after 40484]

Reviewed-by: Neha Ojha <nojha@redhat.com>
4 years agodoc: add ceph-nfs link
Sage Weil [Fri, 4 Jun 2021 17:56:04 +0000 (12:56 -0500)]
doc: add ceph-nfs link

This is a small piece of da4dcd673bda49a709c5457a2ef9de943f6de479,
which covers too much else to backport.

Signed-off-by: Sage Weil <sage@newdream.net>
4 years agomds: do not infinitely recursively print a metric 41596/head
Patrick Donnelly [Wed, 2 Jun 2021 14:28:49 +0000 (07:28 -0700)]
mds: do not infinitely recursively print a metric

Fixes: b1b44d775df3160d937c068d5e1079e24199ed6b
Fixes: https://tracker.ceph.com/issues/51067
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit 20a622a87ea4cd9671d975d09d33363726f4fc69)

4 years agomds/scrub: write root inode backtrace at creation 41685/head
Milind Changire [Wed, 2 Jun 2021 09:42:09 +0000 (15:12 +0530)]
mds/scrub: write root inode backtrace at creation

Write root inode backtrace as soon as it is created;
Unwritten backtrace always caused scrub to fail for root inode.

Fixes: https://tracker.ceph.com/issues/50976
Signed-off-by: Milind Changire <mchangir@redhat.com>
(cherry picked from commit 7757f3ea3c1aebb71fd34454751634a822c021bd)

4 years agomgr: Fix orch osd rm stop help message
VasishtaShastry [Mon, 10 May 2021 06:38:59 +0000 (12:08 +0530)]
mgr: Fix orch osd rm stop help message

Corrects help message of `ceph orch osd rm --help`
Doc link - https://docs.ceph.com/en/latest/cephadm/osd/#stopping-osd-removal

Signed-off-by: VasishtaShastry <vipin.indiasmg@gmail.com>
(cherry picked from commit 87fe9cec8ada9ef5d905d2d16f1726e05699398e)

4 years agomgr/cephadm/inventory: do not try to resolve current mgr host
Sage Weil [Thu, 3 Jun 2021 14:29:00 +0000 (10:29 -0400)]
mgr/cephadm/inventory: do not try to resolve current mgr host

The CNI configuration may set up a private network for the container, which
is mapped to the hostname in /etc/hosts.  For example, my test box sets
up 10.88.0.0/24 because I was using crio + kubeadm on this host earlier
(at least I think that's why):

$ sudo podman run --rm --name test123 --entrypoint /bin/bash -it quay.ceph.io/ceph-ci/ceph:master -c "cat /etc/hosts"
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
10.88.0.8 f9e91bf2478f test123

In any case, we should never trust a lookup of our own hostname from inside
a container!

This isn't quite sufficient, though: if this is a single-host cluster, then
we fall back to using get_mgr_ip(). That value may be distorted by the
public_network option on the mgr, but we don't have any other good
options here, and single-node clusters are unlikely to have complex
network configs.

Refactor a bit to avoid the try/except nesting.

Signed-off-by: Sage Weil <sage@newdream.net>
(cherry picked from commit 45e806676bc9bf85d4947eba9741387cec3ae2fd)

4 years agopybind/mgr/mgr_module: make get_mgr_ip() return mgr's IP from mgrmap
Sage Weil [Wed, 2 Jun 2021 02:31:11 +0000 (22:31 -0400)]
pybind/mgr/mgr_module: make get_mgr_ip() return mgr's IP from mgrmap

The previous approach was convoluted: we tried to do a DNS lookup on the
hostname, which would fail if /etc/hosts had an entry.  Which, with podman,
it does.  And the IP it has will vary in all sorts of weird ways.  For
example, CNI on my host means that I get a dynamic address in 10.88.0.0/24.

Avoid all of that nonsense and use the IP that is in the mgrmap.  There
may be multiple IPs (v2 + v1, or maybe even IPv4 + v6 in the future); in
that case, use the first one.

Signed-off-by: Sage Weil <sage@newdream.net>
(cherry picked from commit 72d72fc5db33110effdbfcdfd19e086d4dd831be)

4 years agomgr/restful: use get_mgr_ip() instead of hostname
Sage Weil [Wed, 2 Jun 2021 02:31:47 +0000 (22:31 -0400)]
mgr/restful: use get_mgr_ip() instead of hostname

Now we match dashboard!

Signed-off-by: Sage Weil <sage@newdream.net>
(cherry picked from commit df7994617438a53db84edfd1e83c8439e0cad8f6)

4 years agoosd/PG.cc: handle removal of pgmeta object 41680/head
Neha Ojha [Thu, 22 Apr 2021 17:13:40 +0000 (17:13 +0000)]
osd/PG.cc: handle removal of pgmeta object

In 7f047005fc72e1f37a45cde2d742bb2eb1e62881, we made the pg removal code
much more efficient. But it started marking the pgmeta object as an unexpected
onode, which in reality is expected to be removed after all the other objects.

This behavior is very easily reproducible in a vstart cluster:

ceph osd pool create test 1 1
rados -p test bench 10 write --no-cleanup
ceph osd pool delete test test  --yes-i-really-really-mean-it

Before this patch:

"do_delete_work additional unexpected onode list (new onodes has appeared
since PG removal started[#2:00000000::::head#]" seen in the OSD logs.

After this patch:

"do_delete_work removing pgmeta object #2:00000000::::head#" is seen.

Related to:https://tracker.ceph.com/issues/50466
Signed-off-by: Neha Ojha <nojha@redhat.com>
(cherry picked from commit 0e917f1b1e18ca9e48b3f91110d3a46b086f7d83)

4 years agomgr/dashboard: API Version changes do not apply to pre-defined methods (list, create... 41675/head
Aashish Sharma [Tue, 1 Jun 2021 05:09:24 +0000 (10:39 +0530)]
mgr/dashboard: API Version changes do not apply to pre-defined methods (list, create etc.)

Methods like list(), create(), get() etc doesn't get applied the version.Also for the endpoints that get the version changed, the docs and the request header has still the version v1.0+ in them. So with the version reduced it gives 415 error when trying to make the request. This PR fixes this issue.

Fixes: https://tracker.ceph.com/issues/50855
Signed-off-by: Aashish Sharma <aasharma@redhat.com>
(cherry picked from commit dc4becfde8ddf8745b5d63c941236f95d9e64ba3)

Conflicts:
    src/pybind/mgr/dashboard/controllers/__init__.py(resolved conflicts due to https://github.com/ceph/ceph/pull/40063)

4 years agomgr/dashboard: API Version changes doesnt appy to pre-defined methods(list, create...
Aashish Sharma [Wed, 19 May 2021 05:57:13 +0000 (11:27 +0530)]
mgr/dashboard: API Version changes doesnt appy to pre-defined methods(list, create etc.)

Methods like list(), create(), get() etc doesn't get applied the version.Also for the endpoints that get the version changed, the docs and the request header has still the version v1.0+ in them. So with the version reduced it gives 415 error when trying to make the request. This PR fixes this issue.

Fixes: https://tracker.ceph.com/issues/50855
Signed-off-by: Aashish Sharma <aasharma@redhat.com>
(cherry picked from commit bb52092cd37855a3dfcfae9287e231865e9af3fa)

Conflicts:
    src/pybind/mgr/dashboard/controllers/__init__.py(resolved conflicts due to https://github.com/ceph/ceph/pull/40063)
    src/pybind/mgr/dashboard/tests/test_docs.py(removed unused import DEFAULT_VERSION)

4 years agodoc/cephadm: s/the the/the
Zac Dover [Wed, 2 Jun 2021 14:06:06 +0000 (00:06 +1000)]
doc/cephadm: s/the the/the

This removes an extraneous "the" and reworks a
sentence so that it adheres to the grammatical
rules of the English language.

Signed-off-by: Zac Dover <zac.dover@gmail.com>
(cherry picked from commit 52701fe8651f9416dbb144284ab1043747e39449)

4 years agodoc/cephadm: enriching "daemon status"
Zac Dover [Mon, 31 May 2021 03:55:20 +0000 (13:55 +1000)]
doc/cephadm: enriching "daemon status"

This PR creates parallel structure for the
text in the "Daemon Status" section of the
cephadm Service Management chapter.

Signed-off-by: Zac Dover <zac.dover@gmail.com>
(cherry picked from commit 80dcbc80190c7fc5c25c2df9bb35ad8af1a41a19)

4 years agodoc/cephadm: enriching "Service Specification"
Zac Dover [Mon, 31 May 2021 04:15:56 +0000 (14:15 +1000)]
doc/cephadm: enriching "Service Specification"

This PR adds parallel construction to the "Service
Specification" section of the "Service Managment"
chapter of the cephadm documentation.

Signed-off-by: Zac Dover <zac.dover@gmail.com>
(cherry picked from commit c02fb2b25bc976decabb24cbbb8514ed43f6eddc)

4 years agomgr/cephadm: Don't call _check_host without hosts
Sebastian Wagner [Tue, 11 May 2021 11:08:31 +0000 (13:08 +0200)]
mgr/cephadm: Don't call _check_host without hosts

Fixes: https://tracker.ceph.com/issues/50691
Signed-off-by: Sebastian Wagner <sewagner@redhat.com>
(cherry picked from commit 8211927626fcd5fa2e14bc35126758f394a1f5ce)

4 years agocephadm: stop passing --no-hosts to podman
Sage Weil [Tue, 25 May 2021 17:55:08 +0000 (13:55 -0400)]
cephadm: stop passing --no-hosts to podman

This reverts cfc1f914ce74f1fd1f45e2efd3ba2ddcb2da129a, which is no longer
neceesary because (1) we don't use socket.getfqdn(), and (2) we generally
do not rely on DNS or /etc/hosts at all anymore (with the exception of
the upgrade transition).

Signed-off-by: Sage Weil <sage@newdream.net>
(cherry picked from commit d1bb94ba4c4b8401bf7799b7da3a8f5c2fd228c6)

4 years agomgr/nfs: use host.addr for backend IP where possible
Sage Weil [Wed, 26 May 2021 22:38:05 +0000 (18:38 -0400)]
mgr/nfs: use host.addr for backend IP where possible

Signed-off-by: Sage Weil <sage@newdream.net>
(cherry picked from commit 7e9f4ac7a11805b721d3857197b6d04c4cdae45e)

4 years agomgr/cephadm: convert host addr if non-IP to IP
Sage Weil [Tue, 25 May 2021 20:10:49 +0000 (16:10 -0400)]
mgr/cephadm: convert host addr if non-IP to IP

Previously we allowed the host.addr to be a DNS name (short or fqdn).
This is problematic because of the inconsistent way that docker and podman
handle /etc/hosts, and undesirable because relying on external DNS is
an external source of failure for the cluster without any benefit in
return (simply updating DNS is not sufficient to make ceph behave).

So: update any non-IP to an IP as soon as we start up (presumably on
upgrade).  If we get a loopback address (127.0.0.1 or 127.0.1.1), then
wait and hope that the next instance of the manager has better luck.

Signed-off-by: Sage Weil <sage@newdream.net>
(cherry picked from commit 781bfa14ffc9aa37eb85635a59af1f202999e874)

4 years agomgr/dashboard,prometheus: new method of getting mgr IP
Sage Weil [Tue, 25 May 2021 17:00:35 +0000 (13:00 -0400)]
mgr/dashboard,prometheus: new method of getting mgr IP

- Use a centralized method get_mgr_ip()
- Look up the hostname via DNS.  This is a bit more reliable than
getfqdn() since it will work even when podman adds the container
name to /etc/hosts.

Signed-off-by: Sage Weil <sage@newdream.net>
(cherry picked from commit 157a7b4183dbd888f106c613a758409d7e07b917)

4 years agodoc/cephadm: remove any reference to the use of DNS or /etc/hosts
Sage Weil [Tue, 25 May 2021 16:14:39 +0000 (12:14 -0400)]
doc/cephadm: remove any reference to the use of DNS or /etc/hosts

Signed-off-by: Sage Weil <sage@newdream.net>
(cherry picked from commit 872668a9b37ee5a0171c37b3b6f0f4d605ee54a2)

4 years agomgr/cephadm: use known host addr
Sage Weil [Fri, 21 May 2021 17:31:31 +0000 (13:31 -0400)]
mgr/cephadm: use known host addr

If the host IP/addr is known, use that.  The addr might even be a FQDN
instead of an IP address, in which case we want to look that up instead
of the bare hostname.

Signed-off-by: Sage Weil <sage@newdream.net>
(cherry picked from commit 900880050a2e57bcf477d8ebad3b38c001710be5)

4 years agomgr/cephadm: resolve IP at 'orch host add' time
Sage Weil [Fri, 21 May 2021 16:32:49 +0000 (12:32 -0400)]
mgr/cephadm: resolve IP at 'orch host add' time

We prefer to always have a real IP for hosts in the cluster.  This avoids
a reliance on DNS for most operations.

Perhaps more importantly, it means we are less sensitive to inconsistent
host lookup results, for example due to (1) mismatched /etc/hosts files
between machines, or (2) a lookup of the local hostname that returns
127.0.1.1.

Adjust with_hosts() fixture to take an addr, and adjust tests accordingly.

Signed-off-by: Sage Weil <sage@newdream.net>
(cherry picked from commit 3587a10b3eb5a35bfaad556a65eb83c6b062526c)

4 years agodoc/cephadm: enrich "service status"
Zac Dover [Thu, 27 May 2021 01:28:38 +0000 (11:28 +1000)]
doc/cephadm: enrich "service status"

This PR improves the syntax of the "Service
Status" section of the "Service Managment"
section of the cephadm guide. This includes
pretty significant reworking of the information
in the section, so vetting this one might be
annoying. Anyway, I think I've lowered the
cognitive load on the reader.

Signed-off-by: Zac Dover <zac.dover@gmail.com>
(cherry picked from commit 31558e5568da5b445b2da1b98ac2eb626d8efdf3)

4 years agodoc/cephadm: recommend redeploying monitoring stack daemon after changing image
Adam King [Fri, 7 May 2021 14:04:31 +0000 (10:04 -0400)]
doc/cephadm: recommend redeploying monitoring stack daemon after changing image

Fixes: https://tracker.ceph.com/issues/50687
Signed-off-by: Adam King <adking@redhat.com>
(cherry picked from commit 9be84658fbd5a51f631fcda050811ca0113fbea1)

4 years agocephadm: clean-up error message
Michael Fritch [Thu, 13 May 2021 23:03:32 +0000 (17:03 -0600)]
cephadm: clean-up error message

use the standard error message from FileNotFound:
```
cephadm bootstrap --mon-ip 192.168.1.1 --config ~/foobar
ERROR: [Errno 2] No such file or directory: '/root/foobar'
```

Signed-off-by: Michael Fritch <mfritch@suse.com>
(cherry picked from commit 870e9bddd2a059ae4930a2eed163bb862094dcaa)

4 years agocephadm: raise an error when `--config` file is not found
Michael Fritch [Thu, 13 May 2021 23:03:10 +0000 (17:03 -0600)]
cephadm: raise an error when `--config` file is not found

extend the common logic used by the deploy, ceph-volume, and shell
commands for validating the `--config` arg during bootstrap

Signed-off-by: Michael Fritch <mfritch@suse.com>
(cherry picked from commit 0e444191b93b76527eccb349bd0f68b1fc9302d4)

4 years agocephadm: manage cephadm log with logrotated
Daniel Pivonka [Mon, 10 May 2021 14:20:38 +0000 (10:20 -0400)]
cephadm: manage cephadm log with logrotated

Signed-off-by: Daniel Pivonka <dpivonka@redhat.com>
(cherry picked from commit 6790b21bc5ba1e2ccdacefc7f067d5e760e6836d)

4 years agomgr/cephadm: progress item for service apply
Sage Weil [Fri, 21 May 2021 18:43:24 +0000 (14:43 -0400)]
mgr/cephadm: progress item for service apply

Signed-off-by: Sage Weil <sage@newdream.net>
(cherry picked from commit 089d2fb01b72366aed021caf34dacb85c09b93cc)

4 years agomgr: expose ceph.conf path to modules
Sage Weil [Fri, 21 May 2021 22:49:58 +0000 (18:49 -0400)]
mgr: expose ceph.conf path to modules

This is useful for shelling back out to ceph utilities.

Signed-off-by: Sage Weil <sage@newdream.net>
(cherry picked from commit 3194b8d789ecf6d6b9cd8cadfd962011fa5f6ea0)

4 years agocommon/config: track the path to the conf file we loaded
Sage Weil [Fri, 21 May 2021 22:49:33 +0000 (18:49 -0400)]
common/config: track the path to the conf file we loaded

Signed-off-by: Sage Weil <sage@newdream.net>
(cherry picked from commit 340c799bf924d61b355abb9c5e3e34b66634eb45)

4 years agoqa/tasks/cephfs/test_nfs: fix info test
Sage Weil [Fri, 7 May 2021 19:01:10 +0000 (15:01 -0400)]
qa/tasks/cephfs/test_nfs: fix info test

Signed-off-by: Sage Weil <sage@newdream.net>
(cherry picked from commit 218eec938d1c241a595384984aa9e002ffc68e0e)

4 years agodoc/cephfs/fs-nfs-exports: document --ingress --virtual-ip
Sage Weil [Mon, 24 May 2021 15:16:45 +0000 (11:16 -0400)]
doc/cephfs/fs-nfs-exports: document --ingress --virtual-ip

Signed-off-by: Sage Weil <sage@newdream.net>
(cherry picked from commit ada85604ab3845fcd2d321791051b8da77eee748)

4 years agomgr/nfs: move ingress vs virtual_ip check to cluster interface
Sage Weil [Tue, 18 May 2021 22:02:25 +0000 (18:02 -0400)]
mgr/nfs: move ingress vs virtual_ip check to cluster interface

Signed-off-by: Sage Weil <sage@newdream.net>
(cherry picked from commit f2e78bf2e3009eb67a2e7ef06336371eddee7573)

4 years agoPendingReleaseNotes: clarify deprecated
Sage Weil [Fri, 7 May 2021 15:01:57 +0000 (11:01 -0400)]
PendingReleaseNotes: clarify deprecated

Signed-off-by: Sage Weil <sage@newdream.net>
(cherry picked from commit fe03c85b434c058db2d9fdcab888f128a9006d78)

4 years agoPendingReleaseNotes: note breaking CLI changes
Sage Weil [Fri, 7 May 2021 14:58:45 +0000 (10:58 -0400)]
PendingReleaseNotes: note breaking CLI changes

Signed-off-by: Sage Weil <sage@newdream.net>
(cherry picked from commit 0ca1400e4bb586963ed5da699a91d57ad99b64bd)

4 years agodoc/cephadm/nfs: document nfs+ingress
Sage Weil [Thu, 6 May 2021 22:47:38 +0000 (18:47 -0400)]
doc/cephadm/nfs: document nfs+ingress

Signed-off-by: Sage Weil <sage@newdream.net>
(cherry picked from commit e51c3dcf015730b30ad917117c88b395335808ca)

4 years agoqa/suites/rados/cephadm/smoke-roleless: test nfs, nfs + ingress
Sage Weil [Fri, 30 Apr 2021 15:37:51 +0000 (11:37 -0400)]
qa/suites/rados/cephadm/smoke-roleless: test nfs, nfs + ingress

Still missing a full client mount test, though!

Signed-off-by: Sage Weil <sage@newdream.net>
(cherry picked from commit e2db373698a79adfe17927fb9bd0fb3e908a8f64)

4 years agomgr/nfs: take --ingress argument to 'nfs cluster create'
Sage Weil [Thu, 6 May 2021 22:47:27 +0000 (18:47 -0400)]
mgr/nfs: take --ingress argument to 'nfs cluster create'

It is likely that the rook/k8s variation of ingress will not take a
virtual_ip argument.  We want to make sure that ingress yes/no can be
specified independent of the virtual_ip.

Signed-off-by: Sage Weil <sage@newdream.net>
(cherry picked from commit 81f0b6984fcfd90b470052b9de19b8b10d176972)

4 years agomgr/cephadm: adjust debug output for device refresh
Sage Weil [Thu, 6 May 2021 18:37:14 +0000 (14:37 -0400)]
mgr/cephadm: adjust debug output for device refresh

Signed-off-by: Sage Weil <sage@newdream.net>
(cherry picked from commit feb741dd734468eb24d9fac5814beda6112cd100)

4 years agomgr/cephadm: ingress: fix log msg
Sage Weil [Thu, 6 May 2021 18:16:43 +0000 (14:16 -0400)]
mgr/cephadm: ingress: fix log msg

Signed-off-by: Sage Weil <sage@newdream.net>
(cherry picked from commit d72d1b5c4e797d8217ab1152e5b05dba8aec15f7)

4 years agomgr/cephadm: fix logging of config/placement errors
Sage Weil [Thu, 6 May 2021 18:16:38 +0000 (14:16 -0400)]
mgr/cephadm: fix logging of config/placement errors

Signed-off-by: Sage Weil <sage@newdream.net>
(cherry picked from commit 14af47070a8b05b8e8e9f94a7676d573407f3a16)

4 years agocommon/options: enable nfs module for new clusters
Sage Weil [Thu, 3 Jun 2021 12:39:30 +0000 (07:39 -0500)]
common/options: enable nfs module for new clusters

Signed-off-by: Sage Weil <sage@newdream.net>
(cherry picked from commit 8085a7e9cc6a409c59fc8a1542c3c94607fc4e0b)

# Conflicts:
# src/common/options/mgr.yaml.in
  - common/options.cc

4 years agocephadm: --stop-signal=SIGTERM
Sage Weil [Thu, 6 May 2021 14:57:46 +0000 (10:57 -0400)]
cephadm: --stop-signal=SIGTERM

haproxy's container image tells docker|podman to send SIGUSR1 for a "clean"
shutdown.  For NFS, the connections never close, so we will always hit the
podman|docker 10s timeout and get a SIGKILL.  That, in turn, causes haproxy
to exit with 143, and puts the systemd unit in a failed state.

This highlights a general problem(?) with stopping containers: if they don't
do it quickly then we'll end up in this error state.  We don't directly
address that here.

Avoid this problem by always stopping containers with SIGTERM.  In the
haproxy case, that means an immediate shutdown (no graceful drain of
open connections).  In theory we could do this only for haproxy with
NFS, but we can easily imagine RGW connections that don't close in 10s
either, and we don't want containers exiting in error state--we just
want the proxy to stop quickly.

Signed-off-by: Sage Weil <sage@newdream.net>
(cherry picked from commit 9ab674579f51a89febec69a93d179505e85a066a)

4 years agomgr/orchestrator: default nfs pool, namespaces
Sage Weil [Mon, 3 May 2021 15:48:45 +0000 (11:48 -0400)]
mgr/orchestrator: default nfs pool, namespaces

Apply nfs default pool (currently 'nfs-ganesha'), and default the
namespace to the service_id.

There is no practical reason for users to ever need to change this, and
requiring them to provide this informaiton at config/apply time just
complicates life.

Signed-off-by: Sage Weil <sage@newdream.net>
(cherry picked from commit 09be2e14cc8d1d06609e876b6f0b0a579c11cd58)

4 years agomgr/cephadm: nfs: create pool if it doesn't yet exist
Sage Weil [Mon, 3 May 2021 15:42:13 +0000 (11:42 -0400)]
mgr/cephadm: nfs: create pool if it doesn't yet exist

Signed-off-by: Sage Weil <sage@newdream.net>
(cherry picked from commit 548f1681e093ee7bda0629ce587724e00eeae1b3)

4 years agodoc/cephadm/nfs: update
Sage Weil [Wed, 5 May 2021 16:26:28 +0000 (12:26 -0400)]
doc/cephadm/nfs: update

- leave off pool/ns, since they should almost never be necessary.
- add port

Signed-off-by: Sage Weil <sage@newdream.net>
(cherry picked from commit 0e0f89266898f350a31480cb4915d66dcba0d17f)

4 years agomgr/nfs: change 'nfs cluster info'
Sage Weil [Tue, 4 May 2021 17:10:14 +0000 (13:10 -0400)]
mgr/nfs: change 'nfs cluster info'

- include the virtual_ip and port at top level
- move backend server list into a sub-item
- include (haproxy) monitoring port

Signed-off-by: Sage Weil <sage@newdream.net>
(cherry picked from commit 00aac5df9ea603d26c340279f97f45f366b6f26f)

4 years agomgr/nfs: take optional virtual_ip for deploying ingress
Sage Weil [Tue, 4 May 2021 17:09:38 +0000 (13:09 -0400)]
mgr/nfs: take optional virtual_ip for deploying ingress

For 'nfs cluster create', optionally take a virtual_ip to deploy ingress.

Signed-off-by: Sage Weil <sage@newdream.net>
(cherry picked from commit 26cb491d196bb9257c7e959c3c9f180e6d9f136a)

4 years agomgr/nfs: remove 'nfs cluster update'
Sage Weil [Wed, 5 May 2021 16:59:44 +0000 (12:59 -0400)]
mgr/nfs: remove 'nfs cluster update'

This command is very awkward to implement unless all service spec fields
are always required.  That will soon mean both the placement *and*
virtual_ip (if any), making it much less useful for a human to make use
of.

Instead, let them update yaml, or adjust the nfs and/or ingress specs
directly.  I don't think this command is needed.

Signed-off-by: Sage Weil <sage@newdream.net>
(cherry picked from commit e5c1d4aa71ddf24304ec5d18b22bea739c20226d)

4 years agomgr/nfs: factor out ganesha pool creation
Sage Weil [Wed, 5 May 2021 16:34:56 +0000 (12:34 -0400)]
mgr/nfs: factor out ganesha pool creation

Signed-off-by: Sage Weil <sage@newdream.net>
(cherry picked from commit 5585fdd5e384ca816a34d7918ccebc02b66d6abc)

4 years agomgr/nfs: delete -> rm for CLI
Sage Weil [Tue, 4 May 2021 17:02:23 +0000 (13:02 -0400)]
mgr/nfs: delete -> rm for CLI

The rest of the CLI uses 'rm' in place of 'remove' or 'delete', so let's
deprecate 'delete' and add 'rm'.

Signed-off-by: Sage Weil <sage@newdream.net>
(cherry picked from commit ad0a62dc9db196ada4c962e7dacb18b73ab54a25)

4 years agomgr/nfs: add some type annotations
Sage Weil [Wed, 5 May 2021 16:57:17 +0000 (12:57 -0400)]
mgr/nfs: add some type annotations

Signed-off-by: Sage Weil <sage@newdream.net>
(cherry picked from commit 7a5b45268cdeef47968a8f901b79406c40b243c3)

4 years agopython-common: fix IngressSpec yaml dump
Sage Weil [Wed, 5 May 2021 19:44:44 +0000 (15:44 -0400)]
python-common: fix IngressSpec yaml dump

Signed-off-by: Sage Weil <sage@newdream.net>
(cherry picked from commit 05fdbc8c76274952d2ef10e1ab1be3679efe479e)

4 years agomgr/cephadm: ingress: remove eth0 default
Sage Weil [Mon, 3 May 2021 15:02:24 +0000 (11:02 -0400)]
mgr/cephadm: ingress: remove eth0 default

Better to raise an error; eth0 will never be correct.

Signed-off-by: Sage Weil <sage@newdream.net>
(cherry picked from commit 9dba27edfeaa24f758121d3032775bf89cd4856a)

4 years agoqa/tasks/cephadm: allow mounting volumes in shell
Sage Weil [Sun, 2 May 2021 22:08:52 +0000 (18:08 -0400)]
qa/tasks/cephadm: allow mounting volumes in shell

Signed-off-by: Sage Weil <sage@newdream.net>
(cherry picked from commit b711a752775bb21bafa2ec376346eb7cd99f5c18)

4 years agocephadm: add -v arg to shell
Sage Weil [Sun, 2 May 2021 22:08:33 +0000 (18:08 -0400)]
cephadm: add -v arg to shell

Signed-off-by: Sage Weil <sage@newdream.net>
(cherry picked from commit 693fd30532760067a262f381fb3487deae52f689)

4 years agoqa/tasks/vip: add 'vip.exec' task
Sage Weil [Fri, 30 Apr 2021 15:41:23 +0000 (11:41 -0400)]
qa/tasks/vip: add 'vip.exec' task

Signed-off-by: Sage Weil <sage@newdream.net>
(cherry picked from commit 54542fdaab5b710eed8127be21111d4f3a030f69)