[Container-tools] Build failed in Jenkins: atomicapp-test-unittest-pr #50

ci at centos.org ci at centos.org
Mon Mar 28 17:10:51 UTC 2016


See <https://ci.centos.org/job/atomicapp-test-unittest-pr/50/>

------------------------------------------
[...truncated 1963 lines...]
E        +    where SystemExit(1,) = <ExceptionInfo SystemExit tblen=5>.value

tests/units/cli/test_cli_gitlab_example.py:106: AssertionError
----------------------------- Captured stdout call -----------------------------
1459185050 - [INFO] - cli/main.py - Action/Mode Selected is: run
1459185050 - [DEBUG] - cli/main.py - Final parsed cmdline: run --verbose --dry-run /tmp/test/tests/units/cli/test_examples/gitlab/
1459185050 - [DEBUG] - nulecule/main.py - NuleculeManager init app_path: /tmp/test/tests/units/cli/test_examples/gitlab/
1459185050 - [DEBUG] - nulecule/main.py - NuleculeManager init image: None
1459185050 - [DEBUG] - nulecule/main.py - Request to unpack to None to /tmp/test/tests/units/cli/test_examples/gitlab/
1459185050 - [DEBUG] - atomicapp/plugin.py - Loading providers from /tmp/test/atomicapp/providers
1459185050 - [WARNING] - atomicapp/plugin.py - can't load module 'kubernetes.py': ImportError('No module named pykube.config',)
1459185050 - [DEBUG] - atomicapp/plugin.py - Loading providers from /tmp/test/atomicapp/providers
1459185050 - [WARNING] - atomicapp/plugin.py - can't load module 'kubernetes.py': ImportError('No module named pykube.config',)
1459185050 - [DEBUG] - atomicapp/plugin.py - Loading providers from /tmp/test/atomicapp/providers
1459185050 - [WARNING] - atomicapp/plugin.py - can't load module 'kubernetes.py': ImportError('No module named pykube.config',)
1459185050 - [DEBUG] - atomicapp/plugin.py - Loading providers from /tmp/test/atomicapp/providers
1459185050 - [WARNING] - atomicapp/plugin.py - can't load module 'kubernetes.py': ImportError('No module named pykube.config',)
1459185050 - [INFO] - nulecule/base.py - Provider not specified, using default provider - kubernetes
1459185050 - [ERROR] - cli/main.py - Invalid Provider - 'kubernetes', provided in answers.conf (choose from docker, kubernetes, openshift, marathon)
________________ TestPersistentStorage.test_missing_requirement ________________

self = <test_ps.TestPersistentStorage testMethod=test_missing_requirement>

    def setUp(self):
        config = {'helloapache-app': {'image': 'centos/httpd', 'hostport': 80},
                  'general': {'namespace': 'default', 'provider': 'kubernetes'}}
        graph = [{'persistentVolume': {'accessMode': 'ReadWriteOnce', 'name': 'var-lib-mongodb-data', 'size': 4}},
                 {'persistentVolume': {'accessMode': 'ReadWriteOnce', 'name': 'var-log-mongodb', 'size': 4}}]
        self.tmpdir = tempfile.mkdtemp(prefix="atomicapp-test", dir="/tmp")
        self.test = Requirements(
>           config=config, basepath=self.tmpdir, graph=graph, provider="kubernetes", dryrun=True)

tests/units/persistent_storage/test_ps.py:17: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <atomicapp.requirements.Requirements instance at 0x34a6f38>
config = {'general': {'namespace': 'default', 'provider': 'kubernetes'}, 'helloapache-app': {'hostport': 80, 'image': 'centos/httpd'}}
basepath = '/tmp/atomicapp-testyj2xcs'
graph = [{'persistentVolume': {'accessMode': 'ReadWriteOnce', 'name': 'var-lib-mongodb-data', 'size': 4}}, {'persistentVolume': {'accessMode': 'ReadWriteOnce', 'name': 'var-log-mongodb', 'size': 4}}]
provider = 'kubernetes', dryrun = True

    def __init__(self, config, basepath, graph, provider, dryrun):
        self.plugin = Plugin()
        self.plugin.load_plugins()
    
        self.config = config
        self.basepath = basepath
        self.graph = graph
        self.dryrun = dryrun
    
        # We initialize the provider in order to gather provider-specific
        # information
        p = self.plugin.getProvider(provider)
>       self.provider = p(config, basepath, dryrun)
E       TypeError: 'NoneType' object is not callable

atomicapp/requirements.py:39: TypeError
----------------------------- Captured stderr call -----------------------------
Traceback (most recent call last):
  File "/usr/lib64/python2.7/logging/__init__.py", line 872, in emit
    stream.write(fs % msg)
  File "/usr/lib/python2.7/site-packages/py/_io/capture.py", line 16, in write
    StringIO.write(self, data)
ValueError: I/O operation on closed file
Logged from file plugin.py, line 133
Traceback (most recent call last):
  File "/usr/lib64/python2.7/logging/__init__.py", line 872, in emit
    stream.write(fs % msg)
  File "/usr/lib/python2.7/site-packages/py/_io/capture.py", line 16, in write
    StringIO.write(self, data)
ValueError: I/O operation on closed file
Logged from file plugin.py, line 145
________________________ TestPersistentStorage.test_run ________________________

self = <test_ps.TestPersistentStorage testMethod=test_run>

    def setUp(self):
        config = {'helloapache-app': {'image': 'centos/httpd', 'hostport': 80},
                  'general': {'namespace': 'default', 'provider': 'kubernetes'}}
        graph = [{'persistentVolume': {'accessMode': 'ReadWriteOnce', 'name': 'var-lib-mongodb-data', 'size': 4}},
                 {'persistentVolume': {'accessMode': 'ReadWriteOnce', 'name': 'var-log-mongodb', 'size': 4}}]
        self.tmpdir = tempfile.mkdtemp(prefix="atomicapp-test", dir="/tmp")
        self.test = Requirements(
>           config=config, basepath=self.tmpdir, graph=graph, provider="kubernetes", dryrun=True)

tests/units/persistent_storage/test_ps.py:17: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <atomicapp.requirements.Requirements instance at 0x32229e0>
config = {'general': {'namespace': 'default', 'provider': 'kubernetes'}, 'helloapache-app': {'hostport': 80, 'image': 'centos/httpd'}}
basepath = '/tmp/atomicapp-testKZcukY'
graph = [{'persistentVolume': {'accessMode': 'ReadWriteOnce', 'name': 'var-lib-mongodb-data', 'size': 4}}, {'persistentVolume': {'accessMode': 'ReadWriteOnce', 'name': 'var-log-mongodb', 'size': 4}}]
provider = 'kubernetes', dryrun = True

    def __init__(self, config, basepath, graph, provider, dryrun):
        self.plugin = Plugin()
        self.plugin.load_plugins()
    
        self.config = config
        self.basepath = basepath
        self.graph = graph
        self.dryrun = dryrun
    
        # We initialize the provider in order to gather provider-specific
        # information
        p = self.plugin.getProvider(provider)
>       self.provider = p(config, basepath, dryrun)
E       TypeError: 'NoneType' object is not callable

atomicapp/requirements.py:39: TypeError
----------------------------- Captured stderr call -----------------------------
Traceback (most recent call last):
  File "/usr/lib64/python2.7/logging/__init__.py", line 872, in emit
    stream.write(fs % msg)
  File "/usr/lib/python2.7/site-packages/py/_io/capture.py", line 16, in write
    StringIO.write(self, data)
ValueError: I/O operation on closed file
Logged from file plugin.py, line 133
Traceback (most recent call last):
  File "/usr/lib64/python2.7/logging/__init__.py", line 872, in emit
    stream.write(fs % msg)
  File "/usr/lib/python2.7/site-packages/py/_io/capture.py", line 16, in write
    StringIO.write(self, data)
ValueError: I/O operation on closed file
Logged from file plugin.py, line 145
_______________________ TestPersistentStorage.test_stop ________________________

self = <test_ps.TestPersistentStorage testMethod=test_stop>

    def setUp(self):
        config = {'helloapache-app': {'image': 'centos/httpd', 'hostport': 80},
                  'general': {'namespace': 'default', 'provider': 'kubernetes'}}
        graph = [{'persistentVolume': {'accessMode': 'ReadWriteOnce', 'name': 'var-lib-mongodb-data', 'size': 4}},
                 {'persistentVolume': {'accessMode': 'ReadWriteOnce', 'name': 'var-log-mongodb', 'size': 4}}]
        self.tmpdir = tempfile.mkdtemp(prefix="atomicapp-test", dir="/tmp")
        self.test = Requirements(
>           config=config, basepath=self.tmpdir, graph=graph, provider="kubernetes", dryrun=True)

tests/units/persistent_storage/test_ps.py:17: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <atomicapp.requirements.Requirements instance at 0x3168098>
config = {'general': {'namespace': 'default', 'provider': 'kubernetes'}, 'helloapache-app': {'hostport': 80, 'image': 'centos/httpd'}}
basepath = '/tmp/atomicapp-testyqadTu'
graph = [{'persistentVolume': {'accessMode': 'ReadWriteOnce', 'name': 'var-lib-mongodb-data', 'size': 4}}, {'persistentVolume': {'accessMode': 'ReadWriteOnce', 'name': 'var-log-mongodb', 'size': 4}}]
provider = 'kubernetes', dryrun = True

    def __init__(self, config, basepath, graph, provider, dryrun):
        self.plugin = Plugin()
        self.plugin.load_plugins()
    
        self.config = config
        self.basepath = basepath
        self.graph = graph
        self.dryrun = dryrun
    
        # We initialize the provider in order to gather provider-specific
        # information
        p = self.plugin.getProvider(provider)
>       self.provider = p(config, basepath, dryrun)
E       TypeError: 'NoneType' object is not callable

atomicapp/requirements.py:39: TypeError
----------------------------- Captured stderr call -----------------------------
Traceback (most recent call last):
  File "/usr/lib64/python2.7/logging/__init__.py", line 872, in emit
    stream.write(fs % msg)
  File "/usr/lib/python2.7/site-packages/py/_io/capture.py", line 16, in write
    StringIO.write(self, data)
ValueError: I/O operation on closed file
Logged from file plugin.py, line 133
Traceback (most recent call last):
  File "/usr/lib64/python2.7/logging/__init__.py", line 872, in emit
    stream.write(fs % msg)
  File "/usr/lib/python2.7/site-packages/py/_io/capture.py", line 16, in write
    StringIO.write(self, data)
ValueError: I/O operation on closed file
Logged from file plugin.py, line 145
___________________ TestCli.test_run_k8s_persistent_storage ____________________

self = <test_ps_cli.TestCli testMethod=test_run_k8s_persistent_storage>

    def test_run_k8s_persistent_storage(self):
        command = [
            "main.py",
            "--verbose",
            "--dry-run",
            "run",
            "--provider=kubernetes",
            self.examples_dir + 'ps-helloapache/'
        ]
    
        with pytest.raises(SystemExit) as exec_info:
            self.exec_cli(command)
    
>       assert exec_info.value.code == 0
E       AssertionError: assert 1 == 0
E        +  where 1 = SystemExit(1,).code
E        +    where SystemExit(1,) = <ExceptionInfo SystemExit tblen=5>.value

tests/units/persistent_storage/test_ps_cli.py:71: AssertionError
----------------------------- Captured stdout call -----------------------------
1459185051 - [INFO] - cli/main.py - Action/Mode Selected is: run
1459185051 - [DEBUG] - cli/main.py - Final parsed cmdline: run --verbose --dry-run --provider=kubernetes /tmp/test/tests/units/persistent_storage/test_examples/ps-helloapache/
1459185051 - [DEBUG] - nulecule/main.py - NuleculeManager init app_path: /tmp/test/tests/units/persistent_storage/test_examples/ps-helloapache/
1459185051 - [DEBUG] - nulecule/main.py - NuleculeManager init image: None
1459185051 - [DEBUG] - nulecule/main.py - Request to unpack to None to /tmp/test/tests/units/persistent_storage/test_examples/ps-helloapache/
1459185051 - [DEBUG] - atomicapp/plugin.py - Loading providers from /tmp/test/atomicapp/providers
1459185051 - [WARNING] - atomicapp/plugin.py - can't load module 'kubernetes.py': ImportError('No module named pykube.config',)
1459185051 - [DEBUG] - atomicapp/plugin.py - Loading providers from /tmp/test/atomicapp/providers
1459185051 - [WARNING] - atomicapp/plugin.py - can't load module 'kubernetes.py': ImportError('No module named pykube.config',)
1459185051 - [INFO] - nulecule/base.py - Provider not specified, using default provider - kubernetes
1459185051 - [ERROR] - cli/main.py - Invalid Provider - 'kubernetes', provided in answers.conf (choose from docker, kubernetes, openshift, marathon)
___________________ TestCli.test_stop_k8s_persistent_storage ___________________

self = <test_ps_cli.TestCli testMethod=test_stop_k8s_persistent_storage>

    def test_stop_k8s_persistent_storage(self):
        command = [
            "main.py",
            "--verbose",
            "--dry-run",
            "stop",
            "--provider=kubernetes",
            self.examples_dir + 'ps-helloapache/'
        ]
    
        with pytest.raises(SystemExit) as exec_info:
            self.exec_cli(command)
    
>       assert exec_info.value.code == 0
E       AssertionError: assert 1 == 0
E        +  where 1 = SystemExit(1,).code
E        +    where SystemExit(1,) = <ExceptionInfo SystemExit tblen=5>.value

tests/units/persistent_storage/test_ps_cli.py:86: AssertionError
----------------------------- Captured stdout call -----------------------------
1459185051 - [INFO] - cli/main.py - Action/Mode Selected is: stop
1459185051 - [DEBUG] - cli/main.py - Final parsed cmdline: stop --verbose --dry-run --provider=kubernetes /tmp/test/tests/units/persistent_storage/test_examples/ps-helloapache/
1459185051 - [DEBUG] - nulecule/main.py - NuleculeManager init app_path: /tmp/test/tests/units/persistent_storage/test_examples/ps-helloapache/
1459185051 - [DEBUG] - nulecule/main.py - NuleculeManager init image: None
1459185051 - [ERROR] - cli/main.py - Provided answers file doesn't exist: /tmp/test/tests/units/persistent_storage/test_examples/ps-helloapache/answers.conf.gen
=========== 10 failed, 70 passed, 1 skipped, 1 error in 1.71 seconds ===========
make: *** [test] Error 1
Connection to n7.gusty.ci.centos.org closed.
Copying checked out repository to host: scp -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -r <https://ci.centos.org/job/atomicapp-test-unittest-pr/ws/> root at n7.gusty.ci.centos.org:/tmp/test
Running cmd: ssh -t -t -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no root at n7.gusty.ci.centos.org  "cd /tmp/test && yum install -y git epel-release && yum install -y python-pip && pip install pytest-cov coveralls && pip install pep8 && pip install flake8 && make install && make syntax-check && bash -c 'make test' "
Done
Build step 'Execute Python script' marked build as failure




More information about the Container-tools mailing list