Opened 4 months ago

Last modified 4 months ago

#3664 new defect

ansible fails on vm1: pkgng: ValueError: invalid literal for int() with base 10: ''

Reported by: rutsky Owned by:
Priority: major Milestone: sys - on-bb-infra
Version: Keywords: ansible
Cc:

Description

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?

Change History (1)

comment:1 Changed 4 months ago by skelly

I am pretty sure the error is because the build of pkg doesn't match userland so it can't actually run right now. Amar is in the process of updating the kernel and userland of vm1.

Note: See TracTickets for help on using tickets.