Commit Graph

295 Commits

Author SHA1 Message Date
Sage Weil
61bad5584d vstart.sh: set rgw dns name = localhost
So we can test buckets in the URL by adding entries in /etc/hosts

Signed-off-by: Sage Weil <sage@redhat.com>
2015-06-04 09:02:29 -07:00
Sage Weil
91dbc7871a vstart.sh: sudo radosgw for low port numbers
Signed-off-by: Sage Weil <sage@redhat.com>
2015-06-03 16:17:50 -07:00
Sage Weil
f2a4c2ae00 vstart.sh: show s3 creds at end
Signed-off-by: Sage Weil <sage@redhat.com>
2015-06-03 16:17:43 -07:00
Sage Weil
29ee7953c9 Merge pull request #3429 from liewegas/wip-precalc-pgtemp
RFC: mon: prime pg_temp when osdmap changes

Reviewed-by: Guang Yang <yguang@yahoo-inc.com>
Tested-by: Zhi (David) Zhang <zhangz@yahoo-inc.com>
2015-05-01 09:24:33 -07:00
Mykola Golub
e08bccf377 vstart.sh: set PATH to include pwd
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>
2015-03-27 15:44:35 +02:00
Yehuda Sadeh
4feb171bf4 vstart.sh: can use binaries outside of ceph/src
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>
2015-02-20 14:28:12 -08:00
Sage Weil
225a19fa67 vstart.sh: fix .ceph_port typo
Signed-off-by: Sage Weil <sage@redhat.com>
2015-02-03 03:23:28 -08:00
Sage Weil
f51ff28f87 vstart.sh: pull default CEPH_PORT from .ceph_port
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>
2015-01-22 11:06:23 -08:00
Sage Weil
7a1305b661 mon: prime pg_temp
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>
2015-01-20 19:20:24 -08:00
Loic Dachary
d1c4e5b640 vstart: use hostname -s instead of fqdn
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>
2014-11-15 23:27:15 +01:00
Sage Weil
ef2565ecf1 vstart.sh: complain less about fullish mon disks
Lots of people develop on file systems  > 70% full.

Signed-off-by: Sage Weil <sage@redhat.com>
2014-11-13 16:41:34 -08:00
Sage Weil
a69b8450f6 vstart.sh: warn less
Signed-off-by: Sage Weil <sage@redhat.com>
2014-11-12 13:35:43 -08:00
Samuel Just
07a441bdd2 Merge pull request #2822 from ceph/wip-9887
Wip 9887

Reviewed-by: Samuel Just <sjust@redhat.com>
2014-11-10 14:51:15 -08:00
Loic Dachary
bdca0ac0b5 tests: tolerate a disk 99% full
The tests do not need much space and will work fine even on a 99% full
disk.

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
2014-11-09 11:59:02 +01:00
David Zafman
84a5c8494c vstart.sh: Fix usage
Signed-off-by: David Zafman <dzafman@redhat.com>
2014-10-27 08:35:37 -07:00
Luis Pabón
20b27661f6 Update vstart to setup users for s3-tests
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>
2014-10-13 10:18:03 -04:00
John Spray
d15ecafea4 vstart: create fewer pgs for fs pools
Just so that dev clusters come up more
quickly.

Signed-off-by: John Spray <john.spray@redhat.com>
2014-10-08 11:58:20 +01:00
John Spray
5f6589cb1f vstart: mds * auth caps
...so that the default client.admin identity
can call 'tell mds' things.

Signed-off-by: John Spray <john.spray@redhat.com>
2014-10-08 11:58:20 +01:00
Abhishek Lekshmanan
a15ad3851e vstart: start rgw on port specified by env var
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>
2014-08-26 15:48:48 +05:30
Sage Weil
06682c4b2d vstart.sh: debug rgw = 20 on -d
Signed-off-by: Sage Weil <sage@redhat.com>
2014-08-22 11:08:34 -07:00
Luis Pabón
e665e62746 Rebased and changed debug option
Signed-off-by: Luis Pabón <lpabon@redhat.com>
2014-08-20 14:17:01 -04:00
Luis Pabón
4fa4553de8 Merge branch 'master' into rgw-doc
Conflicts:
	src/vstart.sh
2014-08-20 14:15:58 -04:00
Luis Pabón
98b24f3970 vstart.sh to enable support for simple RadosGW
Signed-off-by: Luis Pabón <lpabon@redhat.com>
2014-08-20 12:21:36 -04:00
Sage Weil
82409ee644 mon: make reweight-by-* sanity limits configurable
Also drop the somewhat redundant osd_sum.kb check; the main thing we care
about here is

Signed-off-by: Sage Weil <sage@redhat.com>
2014-08-19 11:32:07 -07:00
Sage Weil
904a5f1c31 vstart.sh: make filestore fd cache size smaller
I hit the fd limit on a vstart cluster with the default 128; reduce this
to 16.

Signed-off-by: Sage Weil <sage@redhat.com>
2014-08-16 13:19:46 -07:00
Sage Weil
ce4e559d29 vstart.sh: limit open files
Most users only get 1024 fds.

Signed-off-by: Sage Weil <sage@redhat.com>
2014-07-31 11:03:19 -07:00
Sage Weil
5ccfd37b19 vstart.sh: default to 3 osds
Signed-off-by: Sage Weil <sage@inktank.com>
2014-07-16 17:46:11 -07:00
John Spray
e2b151d009 mds: Update default FS name
From 'default' to 'cephfs' so that it looks
at least vaguely meaningful.

Signed-off-by: John Spray <john.spray@redhat.com>
2014-07-01 18:40:26 +01:00
John Spray
fd9c1fe6d4 vstart: update for newfs/rmfs changes
Signed-off-by: John Spray <john.spray@inktank.com>
2014-06-30 10:36:39 +01:00
Ilya Dryomov
8d1cb8bad2 vstart.sh: echo CEPH_{CONF,KEYRING} exports if necessary
If CEPH_DIR is not PWD, echo export statements for CEPH_{CONF,KEYRING}.

Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com>
2014-06-16 13:10:32 +04:00
Ilya Dryomov
2eb1f55a8c vstart.sh: rename conf variable to conf_fn
Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com>
2014-06-16 13:10:32 +04:00
Sage Weil
e54f5e3ab8 Merge pull request #1860 from ceph/wip-filestore
osd: filestore backend improvements

Reviewed-by: Loic Dachary <loic@dachary.org>
2014-05-29 10:37:23 -07:00
Sage Weil
2339d4a52d vstart.sh: -e to create an ec pool called 'ec'
Signed-off-by: Sage Weil <sage@inktank.com>
2014-05-28 13:52:12 -07:00
Sage Weil
3cf723c53e os/FileStore: fix journal-less operation
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>
2014-05-23 11:47:16 -07:00
Sage Weil
d1307631c9 vstart.sh: fix client admin socket path
Signed-off-by: Sage Weil <sage@inktank.com>
2014-05-07 14:46:53 -07:00
Sage Weil
1cdb7381c7 vstart.sh: make crush location match up with what init-ceph does
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>
2014-04-08 11:02:40 -07:00
Loic Dachary
e4a8535ad1 vstart: set a sensible default for ruleset-failure-domain
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>
2014-04-03 14:07:19 +02:00
John Spray
640ff98d31 test: Use non-default out/ dev/ paths in vstart
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>
2014-03-05 17:20:51 +00:00
Sage Weil
ba3eef86d8 mon/OSDMonitor: add 'mon osd allow primary affinity' bool option
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>
2014-02-15 10:50:09 -08:00
Loic Dachary
5bb4ca4d68 vstart: load erasure code plugins from sources
Signed-off-by: Loic Dachary <loic@dachary.org>
2014-02-04 08:16:23 +01:00
Sage Weil
2b36761b81 mon: favor 'mds set max_mds' over 'mds set_max_mds'
Signed-off-by: Sage Weil <sage@inktank.com>
2014-01-15 19:02:23 -08:00
Sage Weil
6bff648de9 vstart.sh: allow MDS=0
Signed-off-by: Sage Weil <sage@inktank.com>
2014-01-13 16:19:43 -08:00
Loic Dachary
b5c17f6f81 vstart: set fsid in [global]
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>
2013-12-30 10:09:41 +01:00
Sage Weil
1e529972f3 Merge remote-tracking branch 'gh/master' into wip-cache
Conflicts:
	src/osdc/Objecter.h
	src/vstart.sh

Reviewed-by: Samuel Just <sam.just@inktank.com>
2013-12-22 15:33:59 -08:00
Sage Weil
2a9c6fcda9 vstart.sh: go faster
Signed-off-by: Sage Weil <sage@inktank.com>
2013-12-19 16:40:01 -08:00
Sage Weil
ffdaa5f415 vstart.sh: --cache <pool> to set up pool cache(s) on startup
Signed-off-by: Sage Weil <sage@inktank.com>
2013-12-19 16:39:59 -08:00
Sage Weil
99f41de3be vstart.sh: NOTE, not WARNING, to make gitbuilder happy
Signed-off-by: Sage Weil <sage@inktank.com>
2013-12-18 21:22:08 -08:00
Christophe Courtaut
30f8aa1d7c vstart: Update apache conf to run against apache 2.4
Signed-off-by: Christophe Courtaut <christophe.courtaut@gmail.com>
2013-12-18 15:54:53 +01:00
Sage Weil
edc4224de4 Merge remote-tracking branch 'gh/wip-hitset'
Reviewed-by: Greg Farnum <greg@inktank.com>

Conflicts:
	src/common/config_opts.h
	src/osd/ReplicatedPG.cc
	src/osdc/Objecter.cc
	src/vstart.sh
2013-12-15 16:57:23 -08:00
Sage Weil
dabd5d6e34 vstart.sh: --hitset <pool> <type>
Signed-off-by: Sage Weil <sage@inktank.com>
2013-12-13 14:50:34 -08:00