[Buildbot] #3664: ansible fails on vm1: pkgng: ValueError: invalid literal for int() with base 10: ''

Buildbot trac trac at buildbot.net
Tue Jan 17 23:35:46 UTC 2017


#3664: ansible fails on vm1: pkgng: ValueError: invalid literal for int() with
base 10: ''
-------------------+-------------------------------
Reporter:  rutsky  |      Owner:
    Type:  defect  |     Status:  new
Priority:  major   |  Milestone:  sys - on-bb-infra
 Version:          |   Keywords:  ansible
-------------------+-------------------------------
 {{{
 TASK [base : install mandatory packages (FreeBSD)]
 *****************************
 An exception occurred during task execution. To see the full traceback,
 use -vvv. The error was: ValueError: invalid literal for int() with base
 10: ''
 failed: [localhost] (item=[u'sudo', u'git', u'timelimit']) => {"failed":
 true, "item": ["sudo", "git", "timelimit"], "module_stderr": "Traceback
 (most recent call last):\n  File
 \"/tmp/ansible_viMES7/ansible_module_pkgng.py\", line 328, in <module>\n
 main()        \n  File \"/tmp/ansible_viMES7/ansible_module_pkgng.py\",
 line 307, in main\n    _changed, _msg = install_packages(module,
 pkgng_path, pkgs, p[\"cached\"], p[\"pkgsite\"], dir_arg)\n  File
 \"/tmp/ansible_viMES7/ansible_module_pkgng.py\", line 156, in
 install_packages\n    old_pkgng = pkgng_older_than(module, pkgng_path, [1,
 1, 4])\n  File \"/tmp/ansible_viMES7/ansible_module_pkgng.py\", line 112,
 in pkgng_older_than\n    version = map(lambda x: int(x),
 re.split(r'[\\._]', out))\n  File
 \"/tmp/ansible_viMES7/ansible_module_pkgng.py\", line 112, in <lambda>\n
 version = map(lambda x: int(x), re.split(r'[\\._]', out))\nValueError:
 invalid literal for int() with base 10: ''\n", "module_stdout": "", "msg":
 "MODULE !
  FAILURE", "parsed": false}
 }}}

 Traceback in more convenient format:

 {{{
 Traceback (most recent call last):
   File "/tmp/ansible_viMES7/ansible_module_pkgng.py", line 328, in
 <module>
     main()
   File "/tmp/ansible_viMES7/ansible_module_pkgng.py", line 307, in main
     _changed, _msg = install_packages(module, pkgng_path, pkgs,
 p["cached"], p["pkgsite"], dir_arg)
   File "/tmp/ansible_viMES7/ansible_module_pkgng.py", line 156, in
 install_packages
     old_pkgng = pkgng_older_than(module, pkgng_path, [1, 1, 4])
   File "/tmp/ansible_viMES7/ansible_module_pkgng.py", line 112, in
 pkgng_older_than
     version = map(lambda x: int(x), re.split(r'[\._]', out))
   File "/tmp/ansible_viMES7/ansible_module_pkgng.py", line 112, in
 <lambda>
     version = map(lambda x: int(x), re.split(r'[\._]', out))
 ValueError: invalid literal for int() with base 10: ''
 }}}

 Looks like this part fails:

 {{{
 def pkgng_older_than(module, pkgng_path, compare_version):

     rc, out, err = module.run_command("%s -v" % pkgng_path)
     version = [int(x) for x in re.split(r'[\._]', out)]
 }}}

 looks like it checks pkgng version --- might be error with too new/too old
 pkgng?

--
Ticket URL: <http://trac.buildbot.net/ticket/3664>
Buildbot <http://buildbot.net/>
Buildbot: build/test automation


More information about the bugs mailing list