Support for RBD namespaces was not added to the OCF resource agent.
This commit fixes this oversight and also fixes a bug in handling
of the "rbd device list" output.
Fixes: https://tracker.ceph.com/issues/48964
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
mgr/dashboard: Fix for incorrect validation in rgw user form
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
The rbd-wnbd daemon overflows when writing passed 4GB as the
offset field incorrectly uses uint32_t (initial versions of the
rbd-wnbd proposal used block increments).
This change updates the IO offset type to use uint64_t.
Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
explicit_bzero isn't available on Windows. We'll use the portable
ceph_memzero_s function instead.
Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
The new QCOW migration helpers are using functions such as "be64toh",
which aren't provided by MINGW, breaking the "rbd" tool on Windows.
We'll define those endianness related helpers in compat.h
Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
We need a space between the command (which ends with a container name)
and the 2> or else the 2 is considered part of the command. E.g.,
! /usr/bin/podman rm -f ceph-a9a8c7ee-5b72-11eb-8f93-001a4aab830c-mon.a2> /dev/null
Fixes: 1bed46e4b0
Signed-off-by: Sage Weil <sage@newdream.net>
`DaemonDescription.status` is annotated
as `Optional[int]` and thus can be `None`
This is a conflict between c95ba878c6
and 01f60cf4e0
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
iSCSI daemons need to execute <ceph service status> command
Fixes: https://tracker.ceph.com/issues/48925
Signed-off-by: Juan Miguel Olmo Martínez <jolmomar@redhat.com>
cephadm: latest stable release is now pacific
Reviewed-by: Juan Miguel Olmo Martínez <jolmomar@redhat.com>
Reviewed-by: Michael Fritch <mfritch@suse.com>
This PR intends to alert a user if a specific network is configured with a custom MTU
Fixes: https://tracker.ceph.com/issues/48748
Signed-off-by: Aashish Sharma <aasharma@redhat.com>
* fetch_config() before mkfs and starting osd
for populating settings related to booting and transport layer
before it starts.
* set fsid read from monitor before mkfs
it's crucial to mkfs if osd is supposed to retrieve the fsid
from monitor.
Signed-off-by: Kefu Chai <kchai@redhat.com>
just for waiting for monmap and config from mon. crimson-osd needs this
for populating settings related to booting and transport layer before it
starts.
Signed-off-by: Kefu Chai <kchai@redhat.com>
so, for instance, if we want to connect to monitor without bind to any
address, we can try to use the v2 addresses advertised in monmap or
local settings, instead of being unable to connect to mon because we are
using an `entity_addr_t::TYPE_NONE` address which is returned by
`entity_addrvec_t::front()` if the addrvec is empty.
see also AsyncMessenger::should_use_msgr2().
Signed-off-by: Kefu Chai <kchai@redhat.com>
The rgw users create form doesnt validate the username correctly if the username is a tenated one. For eg. Consider there is a user called tenate$sample. Now I am trying to create another user and I entered tenate$sample as username. But it doesn't async validate the username as existing. Instead it just shows the green tick and once the submit button is clicked it'll show the user as existing.
Fixes: https://tracker.ceph.com/issues/48907
Signed-off-by: Nizamudeen A <nia@redhat.com>
The expiration timestamp was hard-coded as
2020-12-31T19:14:44.180394
which is now in the past. Instead, use a timestamp
90 minutes in the future.
Fixes: https://tracker.ceph.com/issues/48919
Signed-off-by: Marcus Watts <mwatts@redhat.com>
The upstream git repository for keystone contains a dependency
for "python34-devel" which only exists in centos 7.
For centos 8, the correct package is "python36-devel".
So, patch bindep.txt before running bindep.
Fixes: https://tracker.ceph.com/issues/48920
Signed-off-by: Marcus Watts <mwatts@redhat.com>
The existing logic uses "python -m zipfile" to unzip files.
This will (most likely) fail on CentOS 8-Stream , where python
defaults to 'unset' (see man unversioned-python).
So: try harder: try unzip, python3, and python in that order,
to find something that can unzip files.
Fixes: https://tracker.ceph.com/issues/48921
Signed-off-by: Marcus Watts <mwatts@redhat.com>