On Mon, Jul 16, 2012 at 8:26 AM, Sage Weil <sage@xxxxxxxxxxx> wrote: > On Mon, 16 Jul 2012, Noah Watkins wrote: >> Ramu, >> >> I receive the same error code in my installation when the >> CEPH_CONF_FILE environment variable contains an invalid path. Could >> you please verify that the path you are using points to a valid Ceph >> configuration? > > BTW it's CEPH_CONF for the config file (not CEPH_CONFG_FILE). It turns out to be quite awkward to tell the unit tests about the configuration location, and using an environment variable is convenient. However, I wasn't aware of CEPH_CONF, and in fact the unit test framework looks for CEPH_CONFIG_FILE. The later should definitely be removed (ramu, can you try CEPH_CONF?), and this isn't an issue in libcephfs wrappers -- the rados wrappers are incredibly old. Thanks, Noah > > Alternatively, you can stick config options in the same format as the > command line arguments in CEPH_ARGS. E.g., > > CEPH_ARGS="--debug-ms 1 --log-file foo" some_command ... > > sage > > >> >> Thanks, >> - Noah >> >> On Sun, Jul 15, 2012 at 10:32 PM, ramu <ramu.freesystems@xxxxxxxxx> wrote: >> > >> > Hi Noah, >> > >> > I tried but am getting following error in terminal , >> > >> > Buildfile: /home/vu/java-rados/build.xml >> > >> > makedir: >> > >> > compile-rados: >> > >> > compile-tests: >> > >> > jar: >> > >> > test: >> > [junit] Running ClusterStatsTest >> > [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0.04 sec >> > >> > BUILD FAILED >> > /home/vu/java-rados/build.xml:134: Test ClusterStatsTest failed >> > >> > Total time: 1 second >> > >> > and one more error file >> > is /home/vu/java-rados/TEST-ClusterStatsTest.txt in that file the text is like >> > this, >> > >> > Testsuite: ClusterStatsTest >> > Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0.04 sec >> > >> > Testcase: test_ClusterStats took 0.022 sec >> > Caused an ERROR >> > conf_read_file: ret=-22 >> > net.newdream.ceph.rados.RadosException: conf_read_file: ret=-22 >> > at net.newdream.ceph.rados.Cluster.native_conf_read_file(Native Method) >> > at net.newdream.ceph.rados.Cluster.readConfigFile(Unknown Source) >> > at ClusterStatsTest.setup(Unknown Source) >> > >> > Thanks, >> > Ramu. >> > >> > >> > >> > -- >> > To unsubscribe from this list: send the line "unsubscribe ceph-devel" in >> > the body of a message to majordomo@xxxxxxxxxxxxxxx >> > More majordomo info at http://vger.kernel.org/majordomo-info.html >> -- >> To unsubscribe from this list: send the line "unsubscribe ceph-devel" in >> the body of a message to majordomo@xxxxxxxxxxxxxxx >> More majordomo info at http://vger.kernel.org/majordomo-info.html >> >> -- To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html