The copy functionality of ceph::static_ptr is unused, and it means that
nothing containing a std::unique_ptr (or any other non-copyable type)
can be put into a static_ptr.
Remove the copy functionality, so that unique_ptr can be used in
static_ptr.
Signed-off-by: Daniel Gryniewicz <dang@redhat.com>
- Move cluste stat into public header, allowing more zipper cleanup
- Swift versioning
- Implement a MPSerializer for Zipper.
- Add Lifecycle APIs to Zipper.
Signed-off-by: Daniel Gryniewicz <dang@redhat.com>
`PG` is heavy-weight class with many responsibilities.
Exposing it to lower-layer may suggest there is far more
coupling between them than in reality.
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
We'll update the "rbd-wnbd show" command to return -ENOENT
when the specified mapping doesn't exist, instead of returning
-EINVAL. At the moment, it's impossible to tell if the operation
failed because of an error or the mapping simply doesn't exist.
Worth mentioning that on Windows, we can use 32b for the exit code,
which is a bit more flexible.
Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
mgr/dashboard: use http://docs.ceph.com/en/${release}/ for the domain…
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Kiefer Chang <kiefer.chang@suse.com>
Without the fix, on a build with `NDEBUG` set,
GCC complains:
```
crimson/osd/pg.cc:869:35: warning: control reaches end of non-void function [-Wreturn-type]
869 | const hobject_t oid = get_oid(*m);
```
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
Let's call this function by using the same syntax than other tests.
This will make it work with py2 in nautilus branch.
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
Address tracker 23443
Signed-off-by: Anthony D'Atri <anthony.datri@gmail.com>
doc: object -> file -> disk is wrong for bluestore
Signed-off-by: Anthony D'Atri <anthony.datri@gmail.com>
* use the URL of RTD, where the locale is encoded in it.
* s/http/https/
* add test accordingly
Fixes: https://tracker.ceph.com/issues/48012
Signed-off-by: Kiefer Chang <kiefer.chang@suse.com>
Signed-off-by: Kefu Chai <kchai@redhat.com>
Create the progress module event upon receipt of the first
progress callback from the librbd API. This will help to ensure
that all prereqs have been validated for retryable errors like
scheduling an image to be removed while it still has attached
cloned children.
Fixes: https://tracker.ceph.com/issues/48296
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
If a retryable error occurs, include the reason message in the
task JSON structure that is exposed via the "rbd task list"
MGR command.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
When a task fails but will be retried, linearly increase the
delay for the next retry up to a maximum of 5 minutes.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
The uuid set for tags['ceph.journal_uuid'] should point to its
corresponding lv_uuid instead of the uuid generated for the lv_name.
The variable name 'uuid' used so far was probably too confusing so let's
change it to make it more clear.
Closes: https://tracker.ceph.com/issues/48271
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>