Project

General

Profile

Bug #44456

qa/vstart_runner.py: AttributeError: 'LocalRemote' object has no attribute 'os'

Added by Xiubo Li about 4 years ago. Updated almost 4 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
-
% Done:

0%

Source:
Development
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
fs
Component(FS):
qa-suite
Labels (FS):
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

python2 ../qa/tasks/vstart_runner.py tasks.cephfs.test_client_recovery.TestClientRecovery
...
2020-03-05 11:05:03,263.263 INFO:__main__:Ready to start LocalFuseMount...
2020-03-05 11:05:03,264.264 INFO:__main__:Running ['mkdir', '-p', '/tmp/tmpnZJGF7/mnt.1']
2020-03-05 11:05:03,277.277 INFO:__main__:Running ['mount', '-t', 'fusectl', '/sys/fs/fuse/connections', '/sys/fs/fuse/connections']
mount: /sys/fs/fuse/connections is already mounted or /sys/fs/fuse/connections busy
2020-03-05 11:05:03,289.289 INFO:__main__:Running ['ls', '/sys/fs/fuse/connections']
2020-03-05 11:05:03,297.297 INFO:__main__:Pre-mount connections: [43]
2020-03-05 11:05:03,297.297 INFO:__main__:Running ['./bin/ceph-fuse', '-f', '--name', 'client.1', '/tmp/tmpnZJGF7/mnt.1']
2020-03-05 11:05:03,302.302 INFO:__main__:Mounting client.1 with pid 19606
2020-03-05 11:05:03,303.303 INFO:__main__:Running ['mount', '-t', 'fusectl', '/sys/fs/fuse/connections', '/sys/fs/fuse/connections']
mount: /sys/fs/fuse/connections is already mounted or /sys/fs/fuse/connections busy
2020-03-05 11:05:03,315.315 INFO:__main__:Running ['ls', '/sys/fs/fuse/connections']
2020-03-05 11:05:04,324.324 INFO:__main__:Running ['mount', '-t', 'fusectl', '/sys/fs/fuse/connections', '/sys/fs/fuse/connections']
mount: /sys/fs/fuse/connections is already mounted or /sys/fs/fuse/connections busy
2020-03-05 11:05:04,342.342 INFO:__main__:Running ['ls', '/sys/fs/fuse/connections']
2020-03-05 11:05:04,354.354 INFO:__main__:Post-mount connections: [43, 46]
2020-03-05 11:05:04,355.355 INFO:__main__:I think my launching pid was 19606
2020-03-05 11:05:04,356.356 INFO:__main__:Running ['sudo', 'python3', '-c', '\nimport glob\nimport re\nimport os\nimport subprocess\n\ndef find_socket(client_name):\n        asok_path = "/tmp/ceph-asok.3P2UZQ//client.1.19606.asok"\n        files = glob.glob(asok_path)\n\n        # Given a non-glob path, it better be there\n        if "*" not in asok_path:\n            assert(len(files) == 1)\n            return files[0]\n\n        for f in files:\n                pid = re.match(".*\\.(\\d+)\\.asok$", f).group(1)\n                if os.path.exists("/proc/{0}".format(pid)):\n                        return f\n        raise RuntimeError("Client socket {0} not found".format(client_name))\n\nprint(find_socket("client.1"))\n']
2020-03-05 11:05:04,460.460 INFO:tasks.cephfs.fuse_mount:Found client admin socket at /tmp/ceph-asok.3P2UZQ//client.1.19606.asok
2020-03-05 11:05:04,461.461 INFO:__main__:Running ['sudo', './bin/ceph', '--admin-daemon', '/tmp/ceph-asok.3P2UZQ//client.1.19606.asok', 'status']
2020-03-05 11:05:04,673.673 INFO:__main__:Running ['stat', '--file-system', '--printf=%T\n', '--', '/tmp/tmpnZJGF7/mnt.1']
2020-03-05 11:05:04,692.692 INFO:tasks.cephfs.fuse_mount:ceph-fuse is mounted on /tmp/tmpnZJGF7/mnt.1
2020-03-05 11:05:04,693.693 INFO:__main__:Running ['sudo', 'chmod', '1777', '/tmp/tmpnZJGF7/mnt.1']
2020-03-05 11:05:04,755.755 INFO:__main__:Running ['./bin/ceph', 'daemon', 'mds.a', 'config', 'get', 'mds_reconnect_timeout']
2020-03-05 11:05:05,009.009 INFO:tasks.cephfs.filesystem:_json_asok output: {
    "mds_reconnect_timeout": "45.000000" 
}

2020-03-05 11:05:05,010.010 INFO:__main__:Running ['./bin/ceph', 'daemon', 'mds.a', 'config', 'get', 'ms_max_backoff']
2020-03-05 11:05:05,279.279 INFO:tasks.cephfs.filesystem:_json_asok output: {
    "ms_max_backoff": "15.000000" 
}

2020-03-05 11:05:05,282.282 INFO:__main__:test_filelock (tasks.cephfs.test_client_recovery.TestClientRecovery) ... ERROR
2020-03-05 11:05:05,283.283 INFO:__main__:Running ['stat', '--file-system', '--printf=%T\n', '--', '/tmp/tmpnZJGF7/mnt.0']
2020-03-05 11:05:05,293.293 INFO:tasks.cephfs.fuse_mount:ceph-fuse is mounted on /tmp/tmpnZJGF7/mnt.0
2020-03-05 11:05:05,294.294 INFO:tasks.cephfs.fuse_mount:Running fusermount -u on local...
2020-03-05 11:05:05,294.294 INFO:__main__:Running ['sudo', 'fusermount', '-u', '/tmp/tmpnZJGF7/mnt.0']
2020-03-05 11:05:05,346.346 INFO:__main__:Running ['stat', '--file-system', '--printf=%T\n', '--', '/tmp/tmpnZJGF7/mnt.0']
2020-03-05 11:05:05,357.357 INFO:__main__:kill 
2020-03-05 11:05:05,358.358 INFO:__main__:kill: killing pid 19510 (['./bin/ceph-fuse', '-f', '--name', 'client.0', '/tmp/tmpnZJGF7/mnt.0'])
2020-03-05T11:05:01.103-0500 7fe29aa4cf80 -1 WARNING: all dangerous and experimental features are enabled.
2020-03-05T11:05:01.124-0500 7fe29aa4cf80 -1 WARNING: all dangerous and experimental features are enabled.
2020-03-05T11:05:01.136-0500 7fe29aa4cf80 -1 WARNING: all dangerous and experimental features are enabled.
ceph-fuse[195102020-03-05T11:05:01.138-0500 7fe29aa4cf80 -1 init, newargv = 0x562135847730 newargc=7
]: starting ceph client
ceph-fuse[19510]: starting fuse
ceph-fuse[19510]: fuse finished with error 0 and tester_r 0
2020-03-05 11:05:05,361.361 INFO:__main__:Running ['rm', '-rf', '/tmp/tmpnZJGF7/mnt.0']
2020-03-05 11:05:05,368.368 INFO:__main__:Running ['stat', '--file-system', '--printf=%T\n', '--', '/tmp/tmpnZJGF7/mnt.1']
2020-03-05 11:05:05,375.375 INFO:tasks.cephfs.fuse_mount:ceph-fuse is mounted on /tmp/tmpnZJGF7/mnt.1
2020-03-05 11:05:05,376.376 INFO:tasks.cephfs.fuse_mount:Running fusermount -u on local...
2020-03-05 11:05:05,376.376 INFO:__main__:Running ['sudo', 'fusermount', '-u', '/tmp/tmpnZJGF7/mnt.1']
2020-03-05 11:05:05,422.422 INFO:__main__:Running ['stat', '--file-system', '--printf=%T\n', '--', '/tmp/tmpnZJGF7/mnt.1']
2020-03-05 11:05:05,435.435 INFO:__main__:kill 
2020-03-05 11:05:05,436.436 INFO:__main__:kill: killing pid 19606 (['./bin/ceph-fuse', '-f', '--name', 'client.1', '/tmp/tmpnZJGF7/mnt.1'])
2020-03-05T11:05:03.365-0500 7fa52d067f80 -1 WARNING: all dangerous and experimental features are enabled.
2020-03-05T11:05:03.387-0500 7fa52d067f80 -1 WARNING: all dangerous and experimental features are enabled.
2020-03-05T11:05:03.393-0500 7fa52d067f80 -1 WARNING: all dangerous and experimental features are enabled.
ceph-fuse[19606]: starting ceph client
2020-03-05T11:05:03.395-0500 7fa52d067f80 -1 init, newargv = 0x5618e8d4f600 newargc=7
ceph-fuse[19606]: starting fuse
ceph-fuse[19606]: fuse finished with error 0 and tester_r 0
2020-03-05 11:05:05,440.440 INFO:__main__:Running ['rm', '-rf', '/tmp/tmpnZJGF7/mnt.1']
2020-03-05 11:05:05,448.448 INFO:__main__:Running ['./bin/ceph', 'log', 'Ended test tasks.cephfs.test_client_recovery.TestClientRecovery.test_filelock']
2020-03-05 11:05:06,119.119 INFO:__main__:Stopped test: test_filelock (tasks.cephfs.test_client_recovery.TestClientRecovery) in 27.721304s
2020-03-05 11:05:06,121.121 INFO:__main__:
2020-03-05 11:05:06,122.122 INFO:__main__:======================================================================
2020-03-05 11:05:06,122.122 INFO:__main__:ERROR: test_filelock (tasks.cephfs.test_client_recovery.TestClientRecovery)
2020-03-05 11:05:06,122.122 INFO:__main__:----------------------------------------------------------------------
2020-03-05 11:05:06,123.123 INFO:__main__:Traceback (most recent call last):
2020-03-05 11:05:06,123.123 INFO:__main__:  File "/data/ceph/qa/tasks/cephfs/test_client_recovery.py", line 397, in test_filelock
2020-03-05 11:05:06,123.123 INFO:__main__:    flockable = self._is_flockable()
2020-03-05 11:05:06,124.124 INFO:__main__:  File "/data/ceph/qa/tasks/cephfs/test_client_recovery.py", line 371, in _is_flockable
2020-03-05 11:05:06,124.124 INFO:__main__:    a_version_str = get_package_version(self.mount_a.client_remote, "fuse")
2020-03-05 11:05:06,124.124 INFO:__main__:  File "/data/teuthology/teuthology/packaging.py", line 351, in get_package_version
2020-03-05 11:05:06,124.124 INFO:__main__:    if remote.os.package_type == "deb":
2020-03-05 11:05:06,125.125 INFO:__main__:AttributeError: 'LocalRemote' object has no attribute 'os'
2020-03-05 11:05:06,125.125 INFO:__main__:
2020-03-05 11:05:06,126.126 INFO:__main__:----------------------------------------------------------------------
2020-03-05 11:05:06,126.126 INFO:__main__:Ran 8 tests in 673.980s
2020-03-05 11:05:06,126.126 INFO:__main__:
2020-03-05 11:05:06,126.126 INFO:__main__:FAILED (errors=1)
2020-03-05 11:05:06,127.127 INFO:__main__:
2020-03-05 11:05:06,127.127 INFO:__main__:======================================================================
2020-03-05 11:05:06,127.127 INFO:__main__:ERROR: test_filelock (tasks.cephfs.test_client_recovery.TestClientRecovery)
2020-03-05 11:05:06,127.127 INFO:__main__:----------------------------------------------------------------------
2020-03-05 11:05:06,127.127 INFO:__main__:Traceback (most recent call last):
2020-03-05 11:05:06,128.128 INFO:__main__:  File "/data/ceph/qa/tasks/cephfs/test_client_recovery.py", line 397, in test_filelock
2020-03-05 11:05:06,128.128 INFO:__main__:    flockable = self._is_flockable()
2020-03-05 11:05:06,128.128 INFO:__main__:  File "/data/ceph/qa/tasks/cephfs/test_client_recovery.py", line 371, in _is_flockable
2020-03-05 11:05:06,128.128 INFO:__main__:    a_version_str = get_package_version(self.mount_a.client_remote, "fuse")
2020-03-05 11:05:06,128.128 INFO:__main__:  File "/data/teuthology/teuthology/packaging.py", line 351, in get_package_version
2020-03-05 11:05:06,129.129 INFO:__main__:    if remote.os.package_type == "deb":
2020-03-05 11:05:06,129.129 INFO:__main__:AttributeError: 'LocalRemote' object has no attribute 'os'
2020-03-05 11:05:06,129.129 INFO:__main__:

History

#1 Updated by Xiubo Li about 4 years ago

  • Status changed from New to In Progress
  • Assignee set to Xiubo Li

#2 Updated by Kefu Chai about 4 years ago

  • Status changed from In Progress to Fix Under Review
  • Pull request ID set to 33769

#3 Updated by Patrick Donnelly about 4 years ago

  • Target version set to v15.0.0
  • Source set to Development

#4 Updated by Kefu Chai almost 4 years ago

  • Status changed from Fix Under Review to Resolved
  • Target version deleted (v15.0.0)

Also available in: Atom PDF