Added a new "--from-snap" optional to restrict the calculation to
specific subsets of snapshots and the HEAD revision.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Disabling the journal and object map require acquiring the exclusive
lock locally. We don't want to start executing long-running ops
for this quick process.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
If a maint op is interrupted and restarted, it's possible that the
image will need to be refreshed.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
First cut for an rgw-admin to list current jobs for orphan search, as of
now we simply read the omap vals from index object and print the job id
and pool name, there is a --extra-info flag which dumps the detailed
json output and the normal option which just lists all the objects
Fixes: http://tracker.ceph.com/issues/15442
Suggested-by: Robin H. Johnson <robbat2@gentoo.org>
Signed-off-by: Abhishek Lekshmanan <alekshmanan@suse.com>
Adding a method in RGWOrphanStore to list jobs, which reads the omap
vals from index object and sets values in a map of job id and
RGWOrphanSearchState
Signed-off-by: Abhishek Lekshmanan <alekshmanan@suse.com>
* enable it using dh_systemd_enable
* start the target using dh_systemd_start
* move the dh_installinit, dh_systemd_enable, dh_systemd_start calls
down, so they can identify the service files if they care about them.
Fixes: http://tracker.ceph.com/issues/15573
Signed-off-by: Kefu Chai <kchai@redhat.com>
if update_flags fails we should not go any further, or the async request
will be removed from m_image_ctx.async_requests twice
Signed-off-by: runsisi <runsisi@zte.com.cn>
Properly shut down the journaler if a shut down has been requested
while start up is in-progress.
Fixes: http://tracker.ceph.com/issues/15630
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
rpm: implement scriptlets for the post-split daemon packages
Reviewed-by: Tim Serong <tserong@suse.com>
Reviewed-by: Nathan Cutler <ncutler@suse.com>
Reviewed-by: Boris Ranto <branto@redhat.com>
We are currently missing the systemd scripts for the new ceph-rbd-mirror
daemons. This patch introduces them.
Signed-off-by: Boris Ranto <branto@redhat.com>
We need to have the sub-targets active for the ceph.target to be able
to propagate its calls to the services. If the sub-target is inactive,
the main target won't propagate the stop/restart calls.
Signed-off-by: Boris Ranto <branto@redhat.com>
This patch gives each of the ceph-{mds,mon,osd,radosgw} packages its own
%post, %preun, and %postun scriptlets dealing with the package's unit files.
The scriptlets of ceph-base are adapted to handle the ceph.target unit file
only.
The scriptlets of ceph-mon handle ceph-create-keys services in addition to ceph-mon.
The scriptlets of ceph-osd handle ceph-disk services in addition to ceph-osd.
Fixes: http://tracker.ceph.com/issues/14941
Signed-off-by: Nathan Cutler <ncutler@suse.com>
Signed-off-by: Boris Ranto <branto@redhat.com>
Some distros, like Fedora and openSUSE, have a policy that all services are
disabled by default.
This patch changes that default for the ceph.target and
ceph-{mds,mon,osd,radosgw}.target services.
Signed-off-by: Nathan Cutler <ncutler@suse.com>
Signed-off-by: Boris Ranto <branto@redhat.com>
ceph-osd crashes on reference to where if it is not get_index or lfn_find.
So init with an "empty" indicator "()
Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
get_params() will accept -ERR_LENGTH_REQUIRED from
rgw_rest_read_all_input(), in which case 'data' will not be allocated
and we attempt to free() an uninitialized pointer
Fixes: http://tracker.ceph.com/issues/15595
Signed-off-by: Casey Bodley <cbodley@redhat.com>