ci: Add connection to a RADOS cluster
authorFilippos Giannakos <philipgian@grnet.gr>
Thu, 1 Aug 2013 09:27:26 +0000 (12:27 +0300)
committerFilippos Giannakos <philipgian@grnet.gr>
Thu, 1 Aug 2013 10:51:01 +0000 (13:51 +0300)
ci/archiptest.py
ci/ceph.conf [new file with mode: 0644]
ci/ceph.list [new file with mode: 0644]
ci/config

index 2b7a569..a7e891c 100644 (file)
@@ -7,6 +7,12 @@ class TestCluster(Cluster):
     def execute_test(self, ci_dir, packages_dir):
         tests = os.path.join(ci_dir, '../xseg/tools/qa')
         self.inject_file(tests, '/root')
+        self.execute_command('mkdir  -p /etc/ceph/')
+        ceph_conf = os.path.join(ci_dir, 'ceph.conf')
+        self.inject_file(ceph_conf, '/etc/ceph/ceph.conf')
+        ceph_apt = os.path.join(ci_dir, 'ceph.list')
+        self.inject_file(ceph_apt, '/etc/apt/sources.list.d/')
+        self.install_packages(['ceph-common', 'librados2'])
         self.inject_file(packages_dir, '/root')
         cmd = """dpkg -i \
         libxseg0_*_amd64.deb                    \
@@ -16,18 +22,20 @@ class TestCluster(Cluster):
         archipelago-modules-dkms_*_amd64.deb    \
         archipelago_*_amd64.deb                 \
         archipelago-dbg_*_amd64.deb             \
+        archipelago-rados_*_amd64.deb           \
+        archipelago-rados-dbg_*_amd64.deb       \
         archipelago-ganeti_*_amd64.deb"""
         remote_folder = os.path.normpath(packages_dir)
         remote_folder = os.path.basename(remote_folder)
         self.execute_command('cd /root/' + remote_folder + ' ; ' + cmd)
-        #self.execute_command('python /root/qa/tests.py -v', verbose=True)
-        self.execute_command('python /root/qa/tests.py -v FiledTest', verbose=True)
-        self.execute_command('python /root/qa/tests.py -v MapperdTest', verbose=True)
-        self.execute_command('python /root/qa/tests.py -v VlmcdTest', verbose=True)
+        self.execute_command('python /root/qa/tests.py -v', verbose=True)
+#        self.execute_command('python /root/qa/tests.py -v FiledTest', verbose=True)
+#        self.execute_command('python /root/qa/tests.py -v MapperdTest', verbose=True)
+#        self.execute_command('python /root/qa/tests.py -v VlmcdTest', verbose=True)
         self.execute_command('mkdir  -p /srv/archip/blocks')
         self.execute_command('mkdir  -p /srv/archip/maps')
         self.execute_command('mkdir  -p /mnt/mountpoint')
-        self.execute_command('archipelago start', verbose=True)
+        self.execute_command('archipelago start')
         self.execute_command('python /root/qa/basictest.py', verbose=True)
 
 if __name__ == '__main__':
diff --git a/ci/ceph.conf b/ci/ceph.conf
new file mode 100644 (file)
index 0000000..454d68b
--- /dev/null
@@ -0,0 +1,12 @@
+[global]
+auth supported = none
+
+[mon.a]
+host = snf-57662
+mon addr = 192.168.8.11:6789
+
+[osd.0]
+
+host = snf-57662
+;cluster addr = 192.168.8.11
+
diff --git a/ci/ceph.list b/ci/ceph.list
new file mode 100644 (file)
index 0000000..2e4c8e0
--- /dev/null
@@ -0,0 +1 @@
+deb http://ceph.com/debian-testing/ wheezy main
index 735c357..aab0c29 100644 (file)
--- a/ci/config
+++ b/ci/config
@@ -1,7 +1,7 @@
 [Global]
 #files = ../xseg/tools/qa/tests.py, /root/
 cleanup_servers = True
-install_cmd = apt-get --yes install
+install_cmd = apt-get --yes --force-yes install
 build_timeout = 240
 servers = archipelago-test
 #flavor_id = 1