ceph-mon needs crushtool to be in PATH. Don't set if it is run
from ceph_vstart_wrapper, which already sets it as it needs.
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
If setting CEPH_BUILD_ROOT, will use that path, otherwise runs
everything from current directory as before.
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
This lets you put a unique port in .ceph_port in your working dir and
vstart.sh instances will avoid each other without having to pass
CEPH_PORT=... to each one each time.
Signed-off-by: Sage Weil <sage@redhat.com>
Prime pg_temp values for
- any osd that goes up/down or has a reweight change
- all osds on crush map change
We're ignoring primary_affinity and primary_temp at the moment.
No attempt is made (yet) to limit the time or CPU we burn doing this.
Signed-off-by: Sage Weil <sage@redhat.com>
Otherwise init-ceph.in will fail if hostname returns a fqdn. It
validates the host entry of the [osd.x] section does not contain dots.
Signed-off-by: Loic Dachary <ldachary@redhat.com>
vstart.sh now creates the users for the default configuration
for the s3-tests, available on https://github.com/ceph/s3-tests.
Also updated the documentation to show the correct RadosGW port.
Signed-off-by: Luis Pabón <lpabon@redhat.com>
This ensures that user specified option according to $CEPH_RGW_PORT is
considered before starting radosgw
Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@ril.com>
A few different fixes here:
- make the op_seq correct on start when there is no replay
- make an explicit 'no journal' case in queue_transaction (one that
actually works). Note that the 'trailing journal' mode is probably
still broken.
- add a -J flag to vstart.sh for journalless operation
Signed-off-by: Sage Weil <sage@inktank.com>
This makes is to that ./init-ceph restart osd.0 won't modify the CRUSH
tree. And in any case, the localhost/localrack thing we were doing before
was pretty useless.
Signed-off-by: Sage Weil <sage@inktank.com>
Set ruleset-failure-domain=osd so that
./ceph osd pool create ecpool 12 12 erasure
./rados --pool ecpool put SOMETHING /etc/group
works by default. When using a vstart cluster the default failure
domain (host) won't work because all OSDs are in "localhost".
Signed-off-by: Loic Dachary <loic@dachary.org>
Currently, running "make check" nukes any existing vstart
setup in the tree. This change makes it use test_dev/ and test_out/
so that it can peacefully coexist.
Signed-off-by: John Spray <john.spray@inktank.com>
By default, disallow adjustment of primary affinity unless the user has
opted in by adjusting their monitor config. This will avoid some user
pain because inadvertantly setting the affinity will prevent older clients
from connecting to and using the cluster.
Signed-off-by: Sage Weil <sage@inktank.com>
If not set, commands that rely on --show-config-value fsid or something
equivalent will fail. ceph-disk does, for instance and setting the fsid
in CEPH_ARGS won't help because it will be appended after
--show-config-value :
CEPH_ARGS="--fsid 96a3abe6-7552-4635-a79b-f3c096ff8b95" ./ceph-mon --cluster=ceph --name=osd. --show_args --show-config-value fsid
args: --cluster=ceph --name=osd. --show_args --show-config-value fsid --fsid 96a3abe6-7552-4635-a79b-f3c096ff8b95
00000000-0000-0000-0000-000000000000
Signed-off-by: Loic Dachary <loic@dachary.org>