Closed Bug 645012 Opened 13 years ago Closed 13 years ago

Buildslave virtualenv install failing

Categories

(Release Engineering :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: dustin, Assigned: dustin)

References

Details

(Whiteboard: [buildslaves])

Attachments

(1 file)

notice: //Node[talos-r3-fed-002.build.mozilla.org]/talosslave/talos_fedora/buildslave::install/Buildslave::Install::Version[0.8.4-pre-moz1]/Python::Virtualenv[/tools/buildbot-0.8.4-pre-moz1]/Exec[virtualenv /tools/buildbot-0.8.4-pre-moz1]/returns: Already using interpreter /usr/bin/python
err: //Node[talos-r3-fed-002.build.mozilla.org]/talosslave/talos_fedora/buildslave::install/Buildslave::Install::Version[0.8.4-pre-moz1]/Python::Virtualenv[/tools/buildbot-0.8.4-pre-moz1]/Exec[virtualenv /tools/buildbot-0.8.4-pre-moz1]/returns: change from notrun to 0 failed: /usr/bin/python /tools/misc-python/virtualenv.py                             --python=/usr/bin/python --distribute /tools/buildbot-0.8.4-pre-moz1 returned 1 instead of 0 at /etc/puppet/modules/python/manifests/virtualenv.pp:123

I haven't figured out what triggers this, since it's works in "most" places.  Deleting the directory and letting puppet run again fixes it, suggesting that this is a consequence of my development work on this system.
Puppet is lying to me - this is the error:

[root@talos-r3-fed-002 ~]# /usr/bin/python /tools/misc-python/virtualenv.py                             --python=/usr/bin/python --distribute /tools/buildbot-0.8.4-pre-moz1
Already using interpreter /usr/bin/python
Traceback (most recent call last):
  File "/tools/misc-python/virtualenv.py", line 1647, in <module>
    main()
  File "/tools/misc-python/virtualenv.py", line 558, in main
    prompt=options.prompt)
  File "/tools/misc-python/virtualenv.py", line 647, in create_environment
    site_packages=site_packages, clear=clear))
  File "/tools/misc-python/virtualenv.py", line 751, in install_python
    fix_lib64(lib_dir)
  File "/tools/misc-python/virtualenv.py", line 1001, in fix_lib64
    if [p for p in distutils.sysconfig.get_config_vars().values()
  File "/usr/lib/python2.6/distutils/sysconfig.py", line 514, in get_config_vars
    func()
  File "/usr/lib/python2.6/distutils/sysconfig.py", line 371, in _init_posix
    raise DistutilsPlatformError(my_msg)
distutils.errors.DistutilsPlatformError: invalid Python installation: unable to open /usr/lib/python2.6/config/Makefile (No such file or directory)

which is because python-devel is not installed.  I was under the impression this was only missing on talos-r3-fed64-NNN, but perhaps that was incorrect.
Blocks: 631851
The fix is in: install python-devel on all fedora platforms, and make that a prerequisite to any virtualenv installs.
Attachment #521841 - Flags: review?(bhearsum)
Attachment #521841 - Flags: review?(bhearsum) → review+
Comment on attachment 521841 [details] [diff] [review]
m645012-puppet-manifests-r1.patch

checked in, new RPM deployed to all puppet servers
Attachment #521841 - Flags: checked-in+
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Product: mozilla.org → Release Engineering
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: