Actions
Bug #16115
openAttributeError: package_type
Status:
New
Priority:
Normal
Assignee:
-
Category:
-
% Done:
0%
Source:
other
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Crash signature (v1):
Crash signature (v2):
Description
When I running teuthology test on SUSE slave, it throws a python error 'AttributeError'.
The details are presented as below:
(virtualenv)teuthology@ThinkCentre-XXXX:~/src/suse/teuthology_master$ ./virtualenv/bin/teuthology examples/example_ceph2.yaml 2016-06-01 09:04:09,907.907 WARNING:teuthology.report:No job_id found; not reporting results 2016-06-01 09:04:09,909.909 INFO:teuthology.run:Tasks not found; will attempt to fetch 2016-06-01 09:04:09,910.910 INFO:teuthology.repo_utils:Fetching from upstream into /home/teuthology/src/ceph-qa-suite_master 2016-06-01 09:04:13,240.240 INFO:teuthology.repo_utils:Resetting repo at /home/teuthology/src/ceph-qa-suite_master to branch master 2016-06-01 09:04:13,261.261 INFO:teuthology.run_tasks:Running task internal.check_packages... 2016-06-01 09:04:13,261.261 INFO:teuthology.task.internal:Checking packages... 2016-06-01 09:04:13,261.261 INFO:teuthology.task.internal:Checking packages skipped, missing os_type 'SUSE' or ceph hash 'None' 2016-06-01 09:04:13,261.261 INFO:teuthology.run_tasks:Running task internal.buildpackages_prep... 2016-06-01 09:04:13,262.262 INFO:teuthology.task.internal:no buildpackages task found 2016-06-01 09:04:13,262.262 INFO:teuthology.run_tasks:Running task internal.save_config... 2016-06-01 09:04:13,262.262 INFO:teuthology.task.internal:Saving configuration 2016-06-01 09:04:13,262.262 INFO:teuthology.run_tasks:Running task internal.check_lock... 2016-06-01 09:04:13,262.262 INFO:teuthology.task.internal:Checking locks... 2016-06-01 09:04:13,342.342 INFO:teuthology.run_tasks:Running task internal.add_remotes... 2016-06-01 09:04:13,343.343 INFO:teuthology.task.internal:roles: ubuntu@plana003.front.sepia.ceph.com - ['mon.a', 'osd.0', 'client.0'] 2016-06-01 09:04:13,343.343 INFO:teuthology.run_tasks:Running task internal.connect... 2016-06-01 09:04:13,343.343 INFO:teuthology.task.internal:Opening connections... 2016-06-01 09:04:13,451.451 INFO:teuthology.run_tasks:Running task internal.push_inventory... 2016-06-01 09:04:13,451.451 INFO:teuthology.orchestra.run.plana003:Running: 'uname -m' 2016-06-01 09:04:13,558.558 INFO:teuthology.orchestra.run.plana003:Running: "python -c 'import platform; print platform.linux_distribution()'" 2016-06-01 09:04:13,657.657 INFO:teuthology.lock:Updating plana003.front.sepia.ceph.com on lock server 2016-06-01 09:04:13,706.706 INFO:teuthology.run_tasks:Running task internal.serialize_remote_roles... 2016-06-01 09:04:13,706.706 INFO:teuthology.run_tasks:Running task internal.check_conflict... 2016-06-01 09:04:13,706.706 INFO:teuthology.task.internal:Checking for old test directory... 2016-06-01 09:04:13,706.706 INFO:teuthology.orchestra.run.plana003:Running: "test '!' -e /home/ubuntu/cephtest" 2016-06-01 09:04:13,780.780 INFO:teuthology.run_tasks:Running task internal.check_ceph_data... 2016-06-01 09:04:13,780.780 INFO:teuthology.task.internal:Checking for old /var/lib/ceph... 2016-06-01 09:04:13,781.781 INFO:teuthology.orchestra.run.plana003:Running: "test '!' -e /var/lib/ceph" 2016-06-01 09:04:13,837.837 INFO:teuthology.run_tasks:Running task internal.vm_setup... 2016-06-01 09:04:13,837.837 INFO:teuthology.run_tasks:Running task internal.base... 2016-06-01 09:04:13,837.837 INFO:teuthology.task.internal:Creating test directory... 2016-06-01 09:04:13,838.838 INFO:teuthology.orchestra.run.plana003:Running: 'mkdir -p -m0755 -- /home/ubuntu/cephtest' 2016-06-01 09:04:13,905.905 INFO:teuthology.run_tasks:Running task internal.archive_upload... 2016-06-01 09:04:13,905.905 INFO:teuthology.run_tasks:Running task internal.archive... 2016-06-01 09:04:13,905.905 INFO:teuthology.task.internal:Creating archive directory... 2016-06-01 09:04:13,905.905 INFO:teuthology.orchestra.run.plana003:Running: 'install -d -m0755 -- /home/ubuntu/cephtest/archive' 2016-06-01 09:04:13,992.992 INFO:teuthology.run_tasks:Running task internal.coredump... 2016-06-01 09:04:13,992.992 INFO:teuthology.task.internal:Enabling coredump saving... 2016-06-01 09:04:13,993.993 INFO:teuthology.orchestra.run.plana003:Running: 'install -d -m0755 -- /home/ubuntu/cephtest/archive/coredump && sudo sysctl -w kernel.core_pattern=/home/ubuntu/cephtest/archive/coredump/%t.%p.core' 2016-06-01 09:04:14,077.077 INFO:teuthology.orchestra.run.plana003.stdout:kernel.core_pattern = /home/ubuntu/cephtest/archive/coredump/%t.%p.core 2016-06-01 09:04:14,078.078 INFO:teuthology.run_tasks:Running task internal.sudo... 2016-06-01 09:04:14,079.079 INFO:teuthology.task.internal:Configuring sudo... 2016-06-01 09:04:14,079.079 INFO:teuthology.orchestra.run.plana003:Running: "sudo sed -i.orig.teuthology -e 's/^\\([^#]*\\) \\(requiretty\\)/\\1 !\\2/g' -e 's/^\\([^#]*\\) !\\(visiblepw\\)/\\1 \\2/g' /etc/sudoers" 2016-06-01 09:04:14,160.160 INFO:teuthology.run_tasks:Running task internal.syslog... 2016-06-01 09:04:14,160.160 INFO:teuthology.run_tasks:Running task internal.timer... 2016-06-01 09:04:14,160.160 INFO:teuthology.task.internal:Starting timer... 2016-06-01 09:04:14,160.160 INFO:teuthology.run_tasks:Running task selinux... 2016-06-01 09:04:14,180.180 ERROR:teuthology.run_tasks:Saw exception from tasks. Traceback (most recent call last): File "/home/teuthology/src/suse/teuthology_master/teuthology/run_tasks.py", line 66, in run_tasks manager = run_one_task(taskname, ctx=ctx, config=config) File "/home/teuthology/src/suse/teuthology_master/teuthology/run_tasks.py", line 45, in run_one_task return fn(**kwargs) File "/home/teuthology/src/suse/teuthology_master/teuthology/task/selinux.py", line 27, in __init__ super(SELinux, self).__init__(ctx, config) File "/home/teuthology/src/suse/teuthology_master/teuthology/task/__init__.py", line 36, in __init__ self.filter_hosts() File "/home/teuthology/src/suse/teuthology_master/teuthology/task/selinux.py", line 42, in filter_hosts elif remote.os.package_type == 'rpm': AttributeError: package_type 2016-06-01 09:04:14,180.180 INFO:teuthology.task.internal:Duration was 0.019855 seconds 2016-06-01 09:04:14,180.180 INFO:teuthology.task.internal:Restoring /etc/sudoers... 2016-06-01 09:04:14,180.180 INFO:teuthology.orchestra.run.plana003:Running: 'sudo mv -f /etc/sudoers.orig.teuthology /etc/sudoers' 2016-06-01 09:04:14,260.260 INFO:teuthology.orchestra.run.plana003:Running: 'sudo sysctl -w kernel.core_pattern=core && rmdir --ignore-fail-on-non-empty -- /home/ubuntu/cephtest/archive/coredump' 2016-06-01 09:04:14,358.358 INFO:teuthology.orchestra.run.plana003.stdout:kernel.core_pattern = core 2016-06-01 09:04:14,361.361 INFO:teuthology.orchestra.run.plana003:Running: "if test '!' -e /home/ubuntu/cephtest/archive/coredump ; then echo OK ; fi" 2016-06-01 09:04:14,434.434 INFO:teuthology.task.internal:Removing archive directory... 2016-06-01 09:04:14,435.435 INFO:teuthology.orchestra.run.plana003:Running: 'rm -rf -- /home/ubuntu/cephtest/archive' 2016-06-01 09:04:14,501.501 INFO:teuthology.task.internal:Not uploading archives. 2016-06-01 09:04:14,502.502 INFO:teuthology.task.internal:Tidying up after the test... 2016-06-01 09:04:14,502.502 INFO:teuthology.orchestra.run.plana003:Running: 'find /home/ubuntu/cephtest -ls ; rmdir -- /home/ubuntu/cephtest' 2016-06-01 09:04:14,571.571 INFO:teuthology.orchestra.run.plana003.stdout:247219 4 drwxr-xr-x 2 ubuntu ubuntu 4096 May 31 21:03 /home/ubuntu/cephtest 2016-06-01 09:04:14,577.577 INFO:teuthology.run:Summary data: {duration: 0.019855022430419922, failure_reason: package_type, owner: teuthology@ThinkCentre-XXXX, status: fail, success: false} 2016-06-01 09:04:14,577.577 WARNING:teuthology.report:No job_id found; not reporting results 2016-06-01 09:04:14,577.577 INFO:teuthology.run:FAIL
Files
Actions