Skip to content

Swift primary storage tests - #19414

Merged
DeepDiver1975 merged 1 commit into
masterfrom
swift_primary_storage_tests
Oct 8, 2015
Merged

DeepDiver1975 merged 1 commit into
masterfrom
swift_primary_storage_tests

Conversation

@butonic

@butonic butonic commented Sep 28, 2015

Copy link
Copy Markdown
Contributor

with files external now using docker for swift tests I added them for primary storage as well.

to run use something like:

NOCOVERAGE=1 RUN_OBJECTSTORE_TESTS=1 PRIMARY_STORAGE_CONFIG="swift" ./autotest.sh sqlite

I tried to fix some of the trashbin tests however the current state is pretty bad:

Using PHP executable /usr/bin/php
Parsing all files in lib/public for the presence of @since or @deprecated on each method...

Using database oc_autotest
Setup environment for sqlite testing on  storage ...
Docker executable found - setup docker
xenopathic/ceph-keystone container: 9600c73855d6bad31065aeb71d07bc887f03f7ca98810c4ab52b89523de2c2cc
Waiting for ceph initialization...................................
Installing ....
ownCloud is not installed - only a limited number of commands are available
creating sqlite db
ownCloud was successfully installed
Testing with sqlite ...
No coverage
PHPUnit 4.1.6 by Sebastian Bergmann.

Configuration read from /home/jfd/Repositories/oc/core/tests/phpunit-autotest.xml

...................................S.........................   61 / 5586 (  1%)
.............................................................  122 / 5586 (  2%)
.............................................................  183 / 5586 (  3%)
.............................................................  244 / 5586 (  4%)
.............................................................  305 / 5586 (  5%)
.............................................................  366 / 5586 (  6%)
.............................................................  427 / 5586 (  7%)
.............................................................  488 / 5586 (  8%)
.............................................................  549 / 5586 (  9%)
.............................................................  610 / 5586 ( 10%)
.............................................................  671 / 5586 ( 12%)
.............................................................  732 / 5586 ( 13%)
.......EEEEE.E...............................................  793 / 5586 ( 14%)
.............................................................  854 / 5586 ( 15%)
.............................................................  915 / 5586 ( 16%)
...............S.....S.......................................  976 / 5586 ( 17%)
............................................................. 1037 / 5586 ( 18%)
............................................................. 1098 / 5586 ( 19%)
............................................................. 1159 / 5586 ( 20%)
............................................................. 1220 / 5586 ( 21%)
............................................................. 1281 / 5586 ( 22%)
............................................................. 1342 / 5586 ( 24%)
............................................................. 1403 / 5586 ( 25%)
............................................................. 1464 / 5586 ( 26%)
SSSSSS...FFF................................................. 1525 / 5586 ( 27%)
..........................EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE 1586 / 5586 ( 28%)
EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE....................... 1647 / 5586 ( 29%)
............................................................. 1708 / 5586 ( 30%)
............................................................. 1769 / 5586 ( 31%)
............................................................. 1830 / 5586 ( 32%)
............................................................. 1891 / 5586 ( 33%)
............................................................. 1952 / 5586 ( 34%)
............................................................. 2013 / 5586 ( 36%)
............................................................. 2074 / 5586 ( 37%)
............................................................S 2135 / 5586 ( 38%)
............................................................. 2196 / 5586 ( 39%)
.............S............................................... 2257 / 5586 ( 40%)
....................................S........................ 2318 / 5586 ( 41%)
............................................................. 2379 / 5586 ( 42%)
..S.......................................................... 2440 / 5586 ( 43%)
...............S............................................. 2501 / 5586 ( 44%)
...................S......................................... 2562 / 5586 ( 45%)
............................................................. 2623 / 5586 ( 46%)
............................................................. 2684 / 5586 ( 48%)
............................................................. 2745 / 5586 ( 49%)
............................................................. 2806 / 5586 ( 50%)
............................................................. 2867 / 5586 ( 51%)
............................................................. 2928 / 5586 ( 52%)
............................................................. 2989 / 5586 ( 53%)
...................................SS........................ 3050 / 5586 ( 54%)
...........................................................SS 3111 / 5586 ( 55%)
SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS...........................SS 3172 / 5586 ( 56%)
SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS............ 3233 / 5586 ( 57%)
............................................................. 3294 / 5586 ( 58%)
............................................................. 3355 / 5586 ( 60%)
............................................................. 3416 / 5586 ( 61%)
............................................................. 3477 / 5586 ( 62%)
............................................................. 3538 / 5586 ( 63%)
............................................................. 3599 / 5586 ( 64%)
............................................FFFF............. 3660 / 5586 ( 65%)
........SS..................................................F 3721 / 5586 ( 66%)
............................................................. 3782 / 5586 ( 67%)
............................................................. 3843 / 5586 ( 68%)
............................................................. 3904 / 5586 ( 69%)
............................................................. 3965 / 5586 ( 70%)
............................................................. 4026 / 5586 ( 72%)
............................................................. 4087 / 5586 ( 73%)
............................................................. 4148 / 5586 ( 74%)
............PHP Fatal error:  Call to a member function getId() on boolean in /home/jfd/Repositories/oc/core/tests/lib/share/share.php on line 408
PHP Stack trace:
PHP   1. {main}() /usr/local/bin/phpunit.4.1.6.phar:0
PHP   2. PHPUnit_TextUI_Command::main() /usr/local/bin/phpunit.4.1.6.phar:586
PHP   3. PHPUnit_TextUI_Command->run() phar:///usr/local/bin/phpunit.4.1.6.phar/phpunit/TextUI/Command.php:132
PHP   4. PHPUnit_TextUI_TestRunner->doRun() phar:///usr/local/bin/phpunit.4.1.6.phar/phpunit/TextUI/Command.php:179
PHP   5. PHPUnit_Framework_TestSuite->run() phar:///usr/local/bin/phpunit.4.1.6.phar/phpunit/TextUI/TestRunner.php:426
PHP   6. PHPUnit_Framework_TestSuite->run() phar:///usr/local/bin/phpunit.4.1.6.phar/phpunit/Framework/TestSuite.php:699
PHP   7. PHPUnit_Framework_TestCase->run() phar:///usr/local/bin/phpunit.4.1.6.phar/phpunit/Framework/TestSuite.php:699
PHP   8. PHPUnit_Framework_TestResult->run() phar:///usr/local/bin/phpunit.4.1.6.phar/phpunit/Framework/TestCase.php:760
PHP   9. PHP_Invoker->invoke() phar:///usr/local/bin/phpunit.4.1.6.phar/phpunit/Framework/TestResult.php:684
PHP  10. call_user_func_array:{phar:///usr/local/bin/phpunit.4.1.6.phar/php-invoker/Invoker.php:93}() phar:///usr/local/bin/phpunit.4.1.6.phar/php-invoker/Invoker.php:93
PHP  11. PHPUnit_Framework_TestCase->runBare() phar:///usr/local/bin/phpunit.4.1.6.phar/php-invoker/Invoker.php:93
PHP  12. PHPUnit_Framework_TestCase->runTest() phar:///usr/local/bin/phpunit.4.1.6.phar/phpunit/Framework/TestCase.php:826
PHP  13. ReflectionMethod->invokeArgs() phar:///usr/local/bin/phpunit.4.1.6.phar/phpunit/Framework/TestCase.php:962
PHP  14. Test_Share->testGetShareFromOutsideFilesFolder() phar:///usr/local/bin/phpunit.4.1.6.phar/phpunit/Framework/TestCase.php:962
PHP Warning:  Unknown: Cannot destroy the zip context in Unknown on line 0
PHP Stack trace:
PHP   1. {main}() /usr/local/bin/phpunit.4.1.6.phar:0
PHP   2. PHPUnit_TextUI_Command::main() /usr/local/bin/phpunit.4.1.6.phar:586
PHP   3. PHPUnit_TextUI_Command->run() phar:///usr/local/bin/phpunit.4.1.6.phar/phpunit/TextUI/Command.php:132
PHP   4. PHPUnit_TextUI_TestRunner->doRun() phar:///usr/local/bin/phpunit.4.1.6.phar/phpunit/TextUI/Command.php:179
PHP   5. PHPUnit_Framework_TestSuite->run() phar:///usr/local/bin/phpunit.4.1.6.phar/phpunit/TextUI/TestRunner.php:426
PHP   6. PHPUnit_Framework_TestSuite->run() phar:///usr/local/bin/phpunit.4.1.6.phar/phpunit/Framework/TestSuite.php:699
PHP   7. PHPUnit_Framework_TestCase->run() phar:///usr/local/bin/phpunit.4.1.6.phar/phpunit/Framework/TestSuite.php:699
PHP   8. PHPUnit_Framework_TestResult->run() phar:///usr/local/bin/phpunit.4.1.6.phar/phpunit/Framework/TestCase.php:760
PHP   9. PHP_Invoker->invoke() phar:///usr/local/bin/phpunit.4.1.6.phar/phpunit/Framework/TestResult.php:684
PHP  10. call_user_func_array:{phar:///usr/local/bin/phpunit.4.1.6.phar/php-invoker/Invoker.php:93}() phar:///usr/local/bin/phpunit.4.1.6.phar/php-invoker/Invoker.php:93
PHP  11. PHPUnit_Framework_TestCase->runBare() phar:///usr/local/bin/phpunit.4.1.6.phar/php-invoker/Invoker.php:93
PHP  12. PHPUnit_Framework_TestCase->runTest() phar:///usr/local/bin/phpunit.4.1.6.phar/phpunit/Framework/TestCase.php:826
PHP  13. ReflectionMethod->invokeArgs() phar:///usr/local/bin/phpunit.4.1.6.phar/phpunit/Framework/TestCase.php:962
PHP  14. Test_Share->testGetShareFromOutsideFilesFolder() phar:///usr/local/bin/phpunit.4.1.6.phar/phpunit/Framework/TestCase.php:962
PHP Warning:  Unknown: Cannot destroy the zip context in Unknown on line 0
PHP Stack trace:
PHP   1. {main}() /usr/local/bin/phpunit.4.1.6.phar:0
PHP   2. PHPUnit_TextUI_Command::main() /usr/local/bin/phpunit.4.1.6.phar:586
PHP   3. PHPUnit_TextUI_Command->run() phar:///usr/local/bin/phpunit.4.1.6.phar/phpunit/TextUI/Command.php:132
PHP   4. PHPUnit_TextUI_TestRunner->doRun() phar:///usr/local/bin/phpunit.4.1.6.phar/phpunit/TextUI/Command.php:179
PHP   5. PHPUnit_Framework_TestSuite->run() phar:///usr/local/bin/phpunit.4.1.6.phar/phpunit/TextUI/TestRunner.php:426
PHP   6. PHPUnit_Framework_TestSuite->run() phar:///usr/local/bin/phpunit.4.1.6.phar/phpunit/Framework/TestSuite.php:699
PHP   7. PHPUnit_Framework_TestCase->run() phar:///usr/local/bin/phpunit.4.1.6.phar/phpunit/Framework/TestSuite.php:699
PHP   8. PHPUnit_Framework_TestResult->run() phar:///usr/local/bin/phpunit.4.1.6.phar/phpunit/Framework/TestCase.php:760
PHP   9. PHP_Invoker->invoke() phar:///usr/local/bin/phpunit.4.1.6.phar/phpunit/Framework/TestResult.php:684
PHP  10. call_user_func_array:{phar:///usr/local/bin/phpunit.4.1.6.phar/php-invoker/Invoker.php:93}() phar:///usr/local/bin/phpunit.4.1.6.phar/php-invoker/Invoker.php:93
PHP  11. PHPUnit_Framework_TestCase->runBare() phar:///usr/local/bin/phpunit.4.1.6.phar/php-invoker/Invoker.php:93
PHP  12. PHPUnit_Framework_TestCase->runTest() phar:///usr/local/bin/phpunit.4.1.6.phar/phpunit/Framework/TestCase.php:826
PHP  13. ReflectionMethod->invokeArgs() phar:///usr/local/bin/phpunit.4.1.6.phar/phpunit/Framework/TestCase.php:962
PHP  14. Test_Share->testGetShareFromOutsideFilesFolder() phar:///usr/local/bin/phpunit.4.1.6.phar/phpunit/Framework/TestCase.php:962
Kill the swift docker
Docker executable found - stop and remove docker containers
Stopping and removing docker container 9600c73855d6bad31065aeb71d07bc887f03f7ca98810c4ab52b89523de2c2cc
9600c73855d6bad31065aeb71d07bc887f03f7ca98810c4ab52b89523de2c2cc

ref #17638

cc @MorrisJobke @Xenopathic I will continue to work on this tomorrow afternoon.

@DeepDiver1975 DeepDiver1975 added this to the 9.0-next milestone Sep 28, 2015
@butonic
butonic force-pushed the swift_primary_storage_tests branch 3 times, most recently from 9c03288 to a398389 Compare October 1, 2015 13:07
@butonic butonic changed the title Swift primary storage tests [WIP] Swift primary storage tests Oct 1, 2015
@butonic
butonic force-pushed the swift_primary_storage_tests branch from a398389 to 9f5c530 Compare October 2, 2015 08:00
@butonic
butonic force-pushed the swift_primary_storage_tests branch from 9f5c530 to ad007a5 Compare October 2, 2015 08:42
@butonic

butonic commented Oct 2, 2015

Copy link
Copy Markdown
Contributor Author

Tests: 5761, Assertions: 16197, Failures: 12, Errors: 9, Skipped: 293.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Testcase has a method to generate unique ids, which is to be used

@butonic
butonic force-pushed the swift_primary_storage_tests branch from ad007a5 to 285eba8 Compare October 2, 2015 11:55
@butonic

butonic commented Oct 2, 2015

Copy link
Copy Markdown
Contributor Author

we are going to separate this into enabling the ci for swift and then individual PRs for fixes to better discuss them.

@butonic
butonic force-pushed the swift_primary_storage_tests branch 6 times, most recently from 478d113 to 69724ed Compare October 2, 2015 14:42
@butonic

butonic commented Oct 2, 2015

Copy link
Copy Markdown
Contributor Author

@Xenopathic @DeepDiver1975 @MorrisJobke I am having problems getting the docker ceph container up and running on jenkins:

10:47:24 2015-10-02 14:47:20.808522 7f4f2b758900 -1 filestore(/var/lib/ceph/osd/ceph-0) mkjournal error creating journal on /var/lib/ceph/osd/ceph-0/journal: (22) Invalid argument
10:47:24 2015-10-02 14:47:20.808534 7f4f2b758900 -1 OSD::mkfs: ObjectStore::mkfs failed with error -22
10:47:24 2015-10-02 14:47:20.808564 7f4f2b758900 -1 �[0;31m ** ERROR: error creating empty object store in /var/lib/ceph/osd/ceph-0: (22) Invalid argument�[0m

seem familiar? my gut feeling tells me the ext4 extendet attributes needed by docker are not available? or some weird stuff like that ...

I dont know how long the jenkins console output will be available, so I'll post the log here again:


10:47:12 + rm -rf /var/jenkins/workspace/core-ci-linux-swift_primary_storage_tests/database/sqlite/label/SLAVE/tests/autotest-results-*.xml
10:47:12 + rm -rf /var/jenkins/workspace/core-ci-linux-swift_primary_storage_tests/database/sqlite/label/SLAVE/tests/autotest-clover*.xml
10:47:12 + touch config/config.php
10:47:12 + export NOCOVERAGE=1
10:47:12 + export RUN_OBJECTSTORE_TESTS=1
10:47:12 + export PRIMARY_STORAGE_CONFIG=swift
10:47:12 + ./autotest.sh sqlite
10:47:12 Using PHP executable /home/vagrant/.phpenv/shims/php
10:47:12 Parsing all files in lib/public for the presence of @since or @deprecated on each method...
10:47:12 
10:47:13 Using database oc_autotest6
10:47:13 Setup environment for sqlite testing on swift storage ...
10:47:13 Docker executable found - setup docker
10:47:13 Fetch recent xenopathic/ceph-keystone docker image
10:47:19 latest: Pulling from xenopathic/ceph-keystone
10:47:19 d3a1f33e8a5a: Already exists
10:47:19 c22013c84729: Already exists
10:47:19 d74508fb6632: Already exists
10:47:19 91e54dfb1179: Already exists
10:47:19 7b585fecd1c1: Already exists
10:47:19 b5337ec73d3b: Already exists
10:47:19 a9b3778019ea: Already exists
10:47:19 3e70c1a9582b: Already exists
10:47:19 8305a9090dd9: Already exists
10:47:19 b3fef19136ea: Already exists
10:47:19 38b60b55c591: Already exists
10:47:19 e24ad7cb9196: Already exists
10:47:19 636a68954d5a: Already exists
10:47:19 67440467a5a8: Already exists
10:47:19 e24cd2ab0630: Already exists
10:47:19 e8aa1a6b9a7f: Already exists
10:47:19 70b5a96524a3: Already exists
10:47:19 07f724879418: Already exists
10:47:19 dafecba13184: Already exists
10:47:19 94cef7387045: Already exists
10:47:19 ae800179483f: Already exists
10:47:19 e7916bac0536: Already exists
10:47:19 32cd989035ba: Already exists
10:47:19 65e9d016be61: Already exists
10:47:19 b042e1af1584: Already exists
10:47:19 95d35f81a043: Already exists
10:47:19 Digest: sha256:4d559504ead93d8a1bbe59dd31c95d5639a127b270de7b9f073da85d562dbfc5
10:47:19 Status: Image is up to date for xenopathic/ceph-keystone:latest
10:47:19 xenopathic/ceph-keystone container: fcc668feb45e6d5f4e80da1dbe08682ee10398ee7dca0971a9e537d2d6bf10f4
10:47:19 Waiting for ceph initialization
10:47:20 sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
10:47:20 proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
10:47:20 udev on /dev type devtmpfs (rw,relatime,size=10240k,nr_inodes=4110106,mode=755)
10:47:20 devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
10:47:20 tmpfs on /run type tmpfs (rw,nosuid,relatime,size=6577508k,mode=755)
10:47:20 /dev/sda1 on / type ext4 (rw,relatime,errors=remount-ro,data=ordered)
10:47:20 securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
10:47:20 tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
10:47:20 tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
10:47:20 tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
10:47:20 cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd)
10:47:20 pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
10:47:20 cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
10:47:20 cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
10:47:20 cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
10:47:20 cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
10:47:20 cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio)
10:47:20 cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
10:47:20 cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
10:47:20 systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=22,pgrp=1,timeout=300,minproto=5,maxproto=5,direct)
10:47:20 mqueue on /dev/mqueue type mqueue (rw,relatime)
10:47:20 debugfs on /sys/kernel/debug type debugfs (rw,relatime)
10:47:20 hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime)
10:47:20 rpc_pipefs on /run/rpc_pipefs type rpc_pipefs (rw,relatime)
10:47:20 binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,relatime)
10:47:20 tmpfs on /run/user/1002 type tmpfs (rw,nosuid,nodev,relatime,size=3288756k,mode=700,uid=1002,gid=1002)
10:47:20 tmpfs on /run/user/1001 type tmpfs (rw,nosuid,nodev,relatime,size=3288756k,mode=700,uid=1001,gid=1001)
10:47:20 fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
10:47:20 tmpfs on /run/user/999 type tmpfs (rw,nosuid,nodev,relatime,size=3288756k,mode=700,uid=999,gid=999)
10:47:20 <?php
10:47:20 $CONFIG = array (
10:47:20 'objectstore' => array(
10:47:20    'class' => 'OC\Files\ObjectStore\Swift',
10:47:20    'arguments' => array(
10:47:20        'username' => 'test',
10:47:20        'password' => 'testing',
10:47:20        'container' => 'owncloud-autotest6',
10:47:20        'autocreate' => true,
10:47:20        'region' => 'testregion',
10:47:20        'url' => 'http://172.17.3.6:5034/v2.0',
10:47:20        'tenantName' => 'testenant',
10:47:20        'serviceName' => 'testceph',
10:47:20    ),
10:47:20 ),
10:47:20 );
10:47:20 
10:47:20 fcc668feb45e6d5f4e80da1dbe08682ee10398ee7dca0971a9e537d2d6bf10f4
10:47:20 Installing ....
10:47:20 ownCloud is not installed - only a limited number of commands are available
10:47:20 creating sqlite db
10:47:24 
10:47:24 
10:47:24                                  
10:47:24   [OCP\Files\NotFoundException]  
10:47:24                                  
10:47:24 
10:47:24 
10:47:24 maintenance:install [--database="..."] [--database-name="..."] [--database-host="..."] [--database-user="..."] [--database-pass[="..."]] [--database-table-prefix[="..."]] [--admin-user="..."] [--admin-pass="..."] [--data-dir="..."]
10:47:24 
10:47:24 
10:47:24 Kill the swift docker
10:47:24 Docker executable found - stop and remove docker containers
10:47:24 creating /etc/ceph/ceph.client.admin.keyring
10:47:24 creating /etc/ceph/ceph.mon.keyring
10:47:24 monmaptool: monmap file /etc/ceph/monmap
10:47:24 monmaptool: set fsid to 40229aa1-e2bf-46c5-9214-0a93d48142bf
10:47:24 monmaptool: writing epoch 0 to /etc/ceph/monmap (1 monitors)
10:47:24 creating /tmp/ceph.mon.keyring
10:47:24 importing contents of /etc/ceph/ceph.client.admin.keyring into /tmp/ceph.mon.keyring
10:47:24 importing contents of /etc/ceph/ceph.mon.keyring into /tmp/ceph.mon.keyring
10:47:24 ceph-mon: set fsid to 40229aa1-e2bf-46c5-9214-0a93d48142bf
10:47:24 ceph-mon: created monfs at /var/lib/ceph/mon/ceph-fcc668feb45e for mon.fcc668feb45e
10:47:24 set pool 0 size to 1
10:47:24 0
10:47:24 2015-10-02 14:47:20.808522 7f4f2b758900 -1 filestore(/var/lib/ceph/osd/ceph-0) mkjournal error creating journal on /var/lib/ceph/osd/ceph-0/journal: (22) Invalid argument
10:47:24 2015-10-02 14:47:20.808534 7f4f2b758900 -1 OSD::mkfs: ObjectStore::mkfs failed with error -22
10:47:24 2015-10-02 14:47:20.808564 7f4f2b758900 -1 �[0;31m ** ERROR: error creating empty object store in /var/lib/ceph/osd/ceph-0: (22) Invalid argument�[0m
10:47:24 Stopping and removing docker container fcc668feb45e6d5f4e80da1dbe08682ee10398ee7dca0971a9e537d2d6bf10f4
10:47:24 fcc668feb45e6d5f4e80da1dbe08682ee10398ee7dca0971a9e537d2d6bf10f4
10:47:24 Build step 'Execute shell' marked build as failure
10:47:24 Recording test results
10:47:24 ERROR: Publisher 'Publish JUnit test result report' failed: No test report files were found. Configuration error?
10:47:24 Setting commit status on GitHub for https://github.com/owncloud/core/commit/69724edbfcf2bd2796fd27179bc33ff351155f40
10:47:25 Finished: FAILURE

@butonic

butonic commented Oct 5, 2015

Copy link
Copy Markdown
Contributor Author

hm, my local docker log looks like this

[...]
ceph-mon: created monfs at /var/lib/ceph/mon/ceph-1ee90a712319 for mon.1ee90a712319
set pool 0 size to 1
0
2015-10-05 07:39:04.882115 7f5f29b73900 -1 journal FileJournal::_open: disabling aio for non-block journal.  Use journal_force_aio to force use of aio anyway
2015-10-05 07:39:05.138066 7f5f29b73900 -1 journal FileJournal::_open: disabling aio for non-block journal.  Use journal_force_aio to force use of aio anyway
2015-10-05 07:39:05.142433 7f5f29b73900 -1 filestore(/var/lib/ceph/osd/ceph-0) could not find 23c2fcde/osd_superblock/0//-1 in index: (2) No such file or directory
2015-10-05 07:39:05.358966 7f5f29b73900 -1 created object store /var/lib/ceph/osd/ceph-0 journal /var/lib/ceph/osd/ceph-0/journal for osd.0 fsid 05743c86-b10c-460b-b6ae-267708c3c3f7
add item id 0 name 'osd.0' weight 1 at location {host=1ee90a712319,root=default} to crush map
starting osd.0 at :/0 osd_data /var/lib/ceph/osd/ceph-0 /var/lib/ceph/osd/ceph-0/journal
starting osd.0 at :/0 osd_data /var/lib/ceph/osd/ceph-0 /var/lib/ceph/osd/ceph-0/journal
pool 'cephfs_data' created
[...]

@butonic
butonic force-pushed the swift_primary_storage_tests branch from 69724ed to 8c01fb8 Compare October 5, 2015 07:58
@DeepDiver1975

Copy link
Copy Markdown
Contributor

This is the log message when executing the tests locally:

{"reqId":"g2bvsaBbqC89Ism2mP9+","remoteAddr":"","app":"objectstore","message":"Could not create object: [curl] 7: Failed to connect to 10.0.0.1 port 5034: Connection refused [url] http:\/\/10.0.0.1:5034\/v2.0\/t
okens","level":3,"time":"2015-10-05T08:03:39+00:00"}

@butonic

butonic commented Oct 5, 2015

Copy link
Copy Markdown
Contributor Author

after updating to docker 1.8.2 I now locally get:

ceph-mon: created monfs at /var/lib/ceph/mon/ceph-1af0bcb0d937 for mon.1af0bcb0d937
set pool 0 size to 1
0
2015-10-05 08:06:35.640992 7fb179aa5900 -1 journal FileJournal::_open: disabling aio for non-block journal.  Use journal_force_aio to force use of aio anyway
2015-10-05 08:06:35.841125 7fb179aa5900 -1 journal FileJournal::_open: disabling aio for non-block journal.  Use journal_force_aio to force use of aio anyway
2015-10-05 08:06:35.845933 7fb179aa5900 -1 filestore(/var/lib/ceph/osd/ceph-0) could not find 23c2fcde/osd_superblock/0//-1 in index: (2) No such file or directory
2015-10-05 08:06:36.077491 7fb179aa5900 -1 created object store /var/lib/ceph/osd/ceph-0 journal /var/lib/ceph/osd/ceph-0/journal for osd.0 fsid 13caa09e-8afc-40a3-8767-221c2fb5a650
add item id 0 name 'osd.0' weight 1 at location {host=1af0bcb0d937,root=default} to crush map
starting osd.0 at :/0 osd_data /var/lib/ceph/osd/ceph-0 /var/lib/ceph/osd/ceph-0/journal
starting osd.0 at :/0 osd_data /var/lib/ceph/osd/ceph-0 /var/lib/ceph/osd/ceph-0/journal
pool 'cephfs_data' created

@butonic

butonic commented Oct 5, 2015

Copy link
Copy Markdown
Contributor Author

@DeepDiver1975 the extended attributes don't seem to be enabled:

04:00:25 2015-10-05 08:00:22.372402 7f45b3f89900 -1 journal FileJournal::_open: disabling aio for non-block journal.  Use journal_force_aio to force use of aio anyway
04:00:25 2015-10-05 08:00:22.378503 7f45b3f89900 -1 filestore(/var/lib/ceph/osd/ceph-0) Extended attributes don't appear to work. Got error (95) Operation not supported. If you are using ext3 or ext4, be sure to mount the underlying file system with the 'user_xattr' option.
04:00:25 2015-10-05 08:00:22.378531 7f45b3f89900 -1 filestore(/var/lib/ceph/osd/ceph-0) FileStore::mount : error in _detect_fs: (95) Operation not supported
04:00:25 2015-10-05 08:00:22.378539 7f45b3f89900 -1 OSD::mkfs: couldn't mount ObjectStore: error -95
04:00:25 2015-10-05 08:00:22.378566 7f45b3f89900 -1 �[0;31m ** ERROR: error creating empty object store in /var/lib/ceph/osd/ceph-0: (95) Operation not supported�[0m

strange they are not enabled on my machine here and it still works. Investigating...

@butonic
butonic force-pushed the swift_primary_storage_tests branch 10 times, most recently from c3c7ca0 to dd09674 Compare October 6, 2015 14:13
use default config for swift primary storage test config

allow testsuite to complete

fix timeout, script cleanup, enable debug for now

use btrfs loopback device, requires privileged container and absolute path

throw exception when storage has problems

debug by echo ...

sleep more, more debug
@butonic
butonic force-pushed the swift_primary_storage_tests branch from dd09674 to 5646e39 Compare October 6, 2015 14:27
@butonic

butonic commented Oct 6, 2015

Copy link
Copy Markdown
Contributor Author

@DeepDiver1975 @MorrisJobke @Xenopathic

so ... this seems to work now. I had to use a privileged container to create a loopback btrfs inside the container. I also now bind mount the entrypoint.sh so we can change it via PRs.

I also now use the generated config for the objectstore tests.

The rest are fixes to the testsuite that allow execution of all tests by adding a few asserts.

We currently have 81 Failing tests. After this got merged I will submit PRs with fixes that bring this down to 14 IIRC. We can then review them separately. I need some more input on some of them.

But first things first. Please review so we can see how this behaves in CI.

@MorrisJobke MorrisJobke changed the title [WIP] Swift primary storage tests Swift primary storage tests Oct 6, 2015
@MorrisJobke

Copy link
Copy Markdown
Contributor

The setup shell scripts look good so far

@butonic

butonic commented Oct 7, 2015

Copy link
Copy Markdown
Contributor Author

@DeepDiver1975 can we get this in?

@DeepDiver1975 DeepDiver1975 modified the milestones: 8.2-current, 9.0-next Oct 7, 2015
@DeepDiver1975

Copy link
Copy Markdown
Contributor

👍 from my pov

@MorrisJobke

Copy link
Copy Markdown
Contributor

@schiesbn @rullzer @icewind1991 For the changes to sharing/etag propagation tests

@schiessle

Copy link
Copy Markdown
Contributor

changes to the sharing tests look good 👍

@butonic

butonic commented Oct 8, 2015

Copy link
Copy Markdown
Contributor Author

@icewind1991 a quick review of the added asserts in the file related tests please.

@icewind1991

Copy link
Copy Markdown
Contributor

👍

DeepDiver1975 added a commit that referenced this pull request Oct 8, 2015
@DeepDiver1975
DeepDiver1975 merged commit 17ffa4a into master Oct 8, 2015
@DeepDiver1975
DeepDiver1975 deleted the swift_primary_storage_tests branch October 8, 2015 12:08
@lock lock Bot locked as resolved and limited conversation to collaborators Aug 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants