Project

General

Profile

Actions

Bug #20582

closed

common: config showing ints as floats

Added by John Spray almost 7 years ago. Updated almost 7 years ago.

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

0%

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

Description

Something broke in common/config.cc around printing values, the ints are coming out as floats, and it's breaking tests like this:

2017-07-10T06:37:52.631 INFO:tasks.cephfs_test_runner:======================================================================
2017-07-10T06:37:52.631 INFO:tasks.cephfs_test_runner:ERROR: test_network_death (tasks.cephfs.test_client_recovery.TestClientNetworkRecovery)
2017-07-10T06:37:52.631 INFO:tasks.cephfs_test_runner:----------------------------------------------------------------------
2017-07-10T06:37:52.631 INFO:tasks.cephfs_test_runner:Traceback (most recent call last):
2017-07-10T06:37:52.632 INFO:tasks.cephfs_test_runner:  File "/home/teuthworker/src/git.ceph.com_ceph_master/qa/tasks/cephfs/cephfs_test_case.py", line 164, in setUp
2017-07-10T06:37:52.632 INFO:tasks.cephfs_test_runner:    )[setting]))
2017-07-10T06:37:52.632 INFO:tasks.cephfs_test_runner:ValueError: invalid literal for int() with base 10: '60.000000'
2017-07-10T06:37:52.632 INFO:tasks.cephfs_test_runner:
2017-07-10T06:37:52.632 ERROR:teuthology.run_tasks:Saw exception from tasks.
Traceback (most recent call last):
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_master/teuthology/run_tasks.py", line 89, in run_tasks
    manager.__enter__()
  File "/usr/lib/python2.7/contextlib.py", line 17, in __enter__
    return self.gen.next()
  File "/home/teuthworker/src/git.ceph.com_ceph_master/qa/tasks/cephfs_test_runner.py", line 207, in task
    raise RuntimeError("Test failure: {0}".format(", ".join(bad_tests)))
RuntimeError: Test failure: test_network_death (tasks.cephfs.test_client_recovery.TestClientNetworkRecovery)

http://pulpito.ceph.com/teuthology-2017-07-10_03:15:05-fs-master-distro-basic-smithi/

Actions

Also available in: Atom PDF