Project

General

Profile

Actions

Bug #40749

open

/task/ansible.py: AnsibleFailedError: RepresenterError: ('cannot represent an object', u'mira062')

Added by Sebastian Wagner almost 5 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
ansible
% Done:

0%

Source:
Q/A
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Crash signature (v1):
Crash signature (v2):

Description

http://qa-proxy.ceph.com/teuthology/swagner-2019-07-11_11:08:19-rados:mgr-wip-swagner-testing-distro-basic-mira/4110614/teuthology.log

Thursday 11 July 2019  14:06:56 +0000 (0:00:00.272)       0:03:00.166 ********* 
=============================================================================== 
Check for /usr/bin/python ---------------------------------------------- 27.06s

2019-07-11T14:06:56.061 INFO:teuthology.task.ansible.out:users : Create all admin users with sudo access. ----------------------- 19.15s
users : Update authorized_keys using the keys repo --------------------- 18.43s
testnode : Zap all non-root disks --------------------------------------- 9.59s
testnode : Ensure packages are not present. ----------------------------- 9.53s
testnode : Install packages --------------------------------------------- 6.20s
testnode : ifdown and ifup ---------------------------------------------- 5.15s
users : Remove revoked users -------------------------------------------- 4.99s
common : Update apt cache ----------------------------------------------- 4.01s
testnode : Update apt cache. -------------------------------------------- 3.65s
testnode : Install python-apt ------------------------------------------- 3.11s
testnode : Blow away lingering OSD data and FSIDs ----------------------- 2.94s
testnode : Install apt keys --------------------------------------------- 2.09s
common : Install nrpe package and dependencies (Ubuntu) ----------------- 1.99s
testnode : Install packages via pip ------------------------------------- 1.72s
users : Update authorized_keys for each user with literal keys ---------- 1.72s
ansible-managed : Add authorized keys for the ansible user. ------------- 1.59s
Gathering Facts --------------------------------------------------------- 1.59s
testnode : Stop apache2 ------------------------------------------------- 1.45s
common : Upload megacli and cli64 for raid monitoring and smart.pl to /usr/sbin/. --- 1.18s

2019-07-11T14:06:56.319 ERROR:teuthology.task.ansible:Failed to parse ansible failure log: /tmp/teuth_ansible_failures_mF91TY (while parsing a flow mapping
  in "/tmp/teuth_ansible_failures_mF91TY", line 1, column 54
expected ',' or '}', but got ':'
  in "/tmp/teuth_ansible_failures_mF91TY", line 1, column 274)
2019-07-11T14:06:56.320 INFO:teuthology.task.ansible:Archiving ansible failure log at: /home/teuthworker/archive/swagner-2019-07-11_11:08:19-rados:mgr-wip-swagner-testing-distro-basic-mira/4110614/ansible_failures.yaml
2019-07-11T14:06:56.323 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 "/home/teuthworker/src/git.ceph.com_git_teuthology_master/teuthology/task/__init__.py", line 123, in __enter__
    self.begin()
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_master/teuthology/task/ansible.py", line 426, in begin
    super(CephLab, self).begin()
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_master/teuthology/task/ansible.py", line 268, in begin
    self.execute_playbook()
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_master/teuthology/task/ansible.py", line 295, in execute_playbook
    self._handle_failure(command, status)
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_master/teuthology/task/ansible.py", line 319, in _handle_failure
    raise AnsibleFailedError(failures)

AnsibleFailedError: 7
/site-packages/yaml/representer.py", line 227, in represent_dict
    return self.represent_mapping(u'tag:yaml.org,2002:map', data)  
File "/home/teuthworker/src/git.ceph.com_git_teuthology_master/virtualenv/local/lib/python2.7/site-packages/yaml/representer.py", line 125, in represent_mapping
    node_value = self.represent_data(item_value)  
File "/home/teuthworker/src/git.ceph.com_git_teuthology_master/virtualenv/local/lib/python2.7/site-packages/yaml/representer.py", line 58, in represent_data
    node = self.yaml_representers[data_types[0]](self, data)  
File "/home/teuthworker/src/git.ceph.com_git_teuthology_master/virtualenv/local/lib/python2.7/site-packages/yaml/representer.py", line 227, in represent_dict
    return self.represent_mapping(u'tag:yaml.org,2002:map', data)  
File "/home/teuthworker/src/git.ceph.com_git_teuthology_master/virtualenv/local/lib/python2.7/site-packages/yaml/representer.py", line 125, in represent_mapping
    node_value = self.represent_data(item_value)  
File "/home/teuthworker/src/git.ceph.com_git_teuthology_master/virtualenv/local/lib/python2.7/site-packages/yaml/representer.py", line 58, in represent_data
    node = self.yaml_representers[data_types[0]](self, data)  
File "/home/teuthworker/src/git.ceph.com_git_teuthology_master/virtualenv/local/lib/python2.7/site-packages/yaml/representer.py", line 227, in represent_dict
    return self.represent_mapping(u'tag:yaml.org,2002:map', data)  
File "/home/teuthworker/src/git.ceph.com_git_teuthology_master/virtualenv/local/lib/python2.7/site-packages/yaml/representer.py", line 125, in represent_mapping
    node_value = self.represent_data(item_value)  
File "/home/teuthworker/src/git.ceph.com_git_teuthology_master/virtualenv/local/lib/python2.7/site-packages/yaml/representer.py", line 68, in represent_data
    node = self.yaml_representers[None](self, data)  
File "/home/teuthworker/src/git.ceph.com_git_teuthology_master/virtualenv/local/lib/python2.7/site-packages/yaml/representer.py", line 251, in represent_undefined
    raise RepresenterError("cannot represent an object", data)
RepresenterError: ('cannot represent an object', u'mira062')

http://qa-proxy.ceph.com/teuthology/swagner-2019-07-11_11:08:19-rados:mgr-wip-swagner-testing-distro-basic-mira/4110614/ansible_failures.yaml

Failure object was: {'mira062.front.sepia.ceph.com': {'_ansible_no_log': False, u'invocation': {u'module_args': {u'name': u'mira062'}}, 'changed': False, u'msg': u"Command failed rc=1, out=, err=Could not get property: Failed to activate service 'org.freedesktop.hostname1': timed out\n"}}
Traceback (most recent call last):
  File "/home/teuthworker/src/git.ceph.com_git_ceph-cm-ansible_master/callback_plugins/failure_log.py", line 44, in log_failure
    log.error(yaml.safe_dump(failure))
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_master/virtualenv/local/lib/python2.7/site-packages/yaml/__init__.py", line 309, in safe_dump
    return dump_all([data], stream, Dumper=SafeDumper, **kwds)
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_master/virtualenv/local/lib/python2.7/site-packages/yaml/__init__.py", line 281, in dump_all
    dumper.represent(data)
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_master/virtualenv/local/lib/python2.7/site-packages/yaml/representer.py", line 29, in represent
    node = self.represent_data(data)
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_master/virtualenv/local/lib/python2.7/site-packages/yaml/representer.py", line 58, in represent_data
    node = self.yaml_representers[data_types[0]](self, data)
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_master/virtualenv/local/lib/python2.7/site-packages/yaml/representer.py", line 227, in represent_dict
    return self.represent_mapping(u'tag:yaml.org,2002:map', data)
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_master/virtualenv/local/lib/python2.7/site-packages/yaml/representer.py", line 125, in represent_mapping
    node_value = self.represent_data(item_value)
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_master/virtualenv/local/lib/python2.7/site-packages/yaml/representer.py", line 58, in represent_data
    node = self.yaml_representers[data_types[0]](self, data)
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_master/virtualenv/local/lib/python2.7/site-packages/yaml/representer.py", line 227, in represent_dict
    return self.represent_mapping(u'tag:yaml.org,2002:map', data)
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_master/virtualenv/local/lib/python2.7/site-packages/yaml/representer.py", line 125, in represent_mapping
    node_value = self.represent_data(item_value)
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_master/virtualenv/local/lib/python2.7/site-packages/yaml/representer.py", line 58, in represent_data
    node = self.yaml_representers[data_types[0]](self, data)
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_master/virtualenv/local/lib/python2.7/site-packages/yaml/representer.py", line 227, in represent_dict
    return self.represent_mapping(u'tag:yaml.org,2002:map', data)
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_master/virtualenv/local/lib/python2.7/site-packages/yaml/representer.py", line 125, in represent_mapping
    node_value = self.represent_data(item_value)
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_master/virtualenv/local/lib/python2.7/site-packages/yaml/representer.py", line 58, in represent_data
    node = self.yaml_representers[data_types[0]](self, data)
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_master/virtualenv/local/lib/python2.7/site-packages/yaml/representer.py", line 227, in represent_dict
    return self.represent_mapping(u'tag:yaml.org,2002:map', data)
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_master/virtualenv/local/lib/python2.7/site-packages/yaml/representer.py", line 125, in represent_mapping
    node_value = self.represent_data(item_value)
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_master/virtualenv/local/lib/python2.7/site-packages/yaml/representer.py", line 68, in represent_data
    node = self.yaml_representers[None](self, data)
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_master/virtualenv/local/lib/python2.7/site-packages/yaml/representer.py", line 251, in represent_undefined
    raise RepresenterError("cannot represent an object", data)
RepresenterError: ('cannot represent an object', u'mira062')

Is this a Teuthology issue or ceph-ansible or is this just because mira062 timed out?

No data to display

Actions

Also available in: Atom PDF