This was hard-coded to ceph.git (almost) and breaks when
you specify --ceph-repo. Remove it entirely. We'll see if
github.com is better at handling our load than it used to
be!
Signed-off-by: Sage Weil <sage@redhat.com>
all newly created files and directories under the mount dir inherit the
SELinux type of their parent directory. so we need to set it before
mkfs.
Fixes: http://tracker.ceph.com/issues/16800
Signed-off-by: Kefu Chai <kchai@redhat.com>
We allocate a cursor in the constructor but simply reassign it in these
functions without cleaning up the original. We have a utility setter that
handles this exact case so we should use it.
Fixes: http://tracker.ceph.com/issues/18252
Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
Use this occasion of serialized map to implement encoders
for boost::container::flat_map, which is optimized for
in-order insertion.
After some discussion, I'm proposing to just add the new template
forms, rather than (e.g.) adding either a large amount of
specialization machinery, or alternatively using C-style
macros.
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
Tracks headers that should be handled conditionally (currently,
can only log, so using minimal structure to represent the
mapping).
Adds map of custom headers to rgw_log_entry, and populate it with
headers pre-selected for custom logging in RGWREST. Added to encoder
and Formatter output.
Some additional optimization possible.
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
Concurrent IO to the same object would previously result in the first
IO pausing to update the object map while the other IO would proceed
to directly update the object before the object map state was properly
updated.
Fixes: http://tracker.ceph.com/issues/16176
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
os/bluestore: avoid resharding if the last shard size fall below shar…
Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
Reviewed-by: Somnath Roy <somnath.roy@sandisk.com>
Reviewed-by: Sage Weil <sage@redhat.com>
Observed "feature":
During rebind due to a "wrongly marked down" log message, FreeBSD is
able to bind to the port used by client_messenger.
The Linux variant avoids that port because it is already in use.
Result:
In FreeBSD there would be 2 listeners on the port, and due to the rebind
they have different nonces. (This is written in the logfile)
But they also will expect different protocols on that same port.
This is likely due to an interpretation difference in the SO_REUSEADDR
socket option:
Linux:
SO_REUSEADDR
Indicates that the rules used in validating addresses supplied
in a bind(2) call should allow reuse of local addresses.
For AF_INET sockets this means that a socket may bind,
except when there is an active listening socket bound to the address.
When the listening socket is bound to INADDR_ANY with a specific port
then it is not possible to bind to this port for any local address.
Argument is an integer boolean flag.
FreeBSD:
SO_REUSEADDR
Enables local address reuse
indicates that the rules used in validating addresses supplied in a
bind(2) system call should allow reuse of local addresses.
So FreeBSD doesn't guarantee that the connection is refused when there is already
a connection. So it is best avoided during rebinding otherwise any of the
cluster_messengers will attach to the port.
FreeBSD log with wrong connect:
bb98d80 0 log_channel(cluster) log [WRN] : map e18 wrongly marked me down
bb98d80 1 -- 127.0.0.1:6801/17881 rebind rebind avoid 6801,6802,6803
bb98d80 1 -- 127.0.0.1:6801/17881 shutdown_connections
bb98d80 1 -- 127.0.0.1:6800/1017881 _finish_bind bind my_inst.addr is 127.0.0.1:6800/1017881
bb98d80 1 Processor -- start
bb98d80 1 -- 127.0.0.1:6802/17881 rebind rebind avoid 6801,6802,6803
bb98d80 1 -- 127.0.0.1:6802/17881 shutdown_connections
bb98d80 1 -- 127.0.0.1:0/17881 learned_addr learned my addr 127.0.0.1:0/17881
bb98d80 1 -- 127.0.0.1:6804/1017881 _finish_bind bind my_inst.addr is 127.0.0.1:6804/1017881
FreeBSD with the correct behaviour:
bb98d80 0 log_channel(cluster) log [WRN] : map e17 wrongly marked me down
bb98d80 1 -- 127.0.0.1:6802/15296 rebind rebind avoid 6801,6802,6803,6812
bb98d80 1 -- 127.0.0.1:6802/15296 shutdown_connections
bb98d80 1 -- 127.0.0.1:6806/1015296 _finish_bind bind my_inst.addr is 127.0.0.1:6806/1015296
bb98d80 1 Processor -- start
bb98d80 1 -- 127.0.0.1:6803/15296 rebind rebind avoid 6801,6802,6803,6812
bb98d80 1 -- 127.0.0.1:6803/15296 shutdown_connections
bb98d80 1 -- 127.0.0.1:0/15296 learned_addr learned my addr 127.0.0.1:0/15296
bb98d80 1 -- 127.0.0.1:6807/1015296 _finish_bind bind my_inst.addr is 127.0.0.1:6807/1015296
Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
If no snapshot has been made, we will use CEPH_NOSNAP instead of 0,
to query the parent overlap.
Fixes bug http://tracker.ceph.com/issues/18200
Signed-off-by: Xiaoxi Chen <xiaoxchen@ebay.com>