Skip to content

Instantly share code, notes, and snippets.

@wiggin15
wiggin15 / gist:6267074
Created August 19, 2013 09:02
traceback of setuptools 1.0 ez_setup failure on windows
Downloading https://pypi.python.org/packages/source/s/setuptools/setuptools-1.0.tar.gz
Traceback (most recent call last):
File "ez_setup.py", line 346, in <module>
sys.exit(main())
File "ez_setup.py", line 342, in main
tarball = download_setuptools(download_base=options.download_base)
File "ez_setup.py", line 260, in download_setuptools
downloader(url, saveto)
File "ez_setup.py", line 165, in download_file_powershell
subprocess.check_call(cmd)
@wiggin15
wiggin15 / gist:319b5e828c42af3aed40
Created September 17, 2014 09:26
Add PCI passthrough device to a VM using pyvmomi
def add_pci_to_vm(host_object, vm_object, host_pci_dev):
"""
host_pci_dev must be one of the devices from the host_object.hardware.pciDevice list
which is configured as a PCI passthrough device
"""
pci_passthroughs = vm_object.environmentBrowser.QueryConfigTarget(host=None).pciPassthrough
systemid_by_pciid = {item.pciDevice.id: item.systemId for item in pci_passthroughs}
if host_pci_dev.id not in systemid_by_pciid:
raise Exception("Not a passthrough device")
@wiggin15
wiggin15 / gist:ae62963b33716da3a503
Created September 5, 2015 11:00
psutil #610 test output
root@host-ci20 (Solaris 10) ➜ psutil py.test
================================================================================ test session starts ================================================================================
platform sunos5 -- Python 2.7.8 -- py-1.4.30 -- pytest-2.7.2
rootdir: /root/psutil, inifile:
collected 260 items
test/test_memory_leaks.py ..ss.....sss.......s...sss....s..ss.....sss.......s...sss....s......s...F.ss..
test/test_psutil.py ..F.......F..........................sF.s..........ss.........s......Fsssss................................................................................F.....................F.FF.
===================================================================================== FAILURES ======================================================================================
@wiggin15
wiggin15 / gist:cefeef67e127ecbbfb95
Created October 6, 2015 12:48
pip insall zc.recipe.egg==2.0.2
(work)➜ cd /tmp
(work)➜ source temp/bin/activate
(temp)➜ pip install -Ui https://pypi.python.org/simple/ pip wheel
You are using pip version 6.0.8, however version 7.1.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Collecting pip from https://pypi.python.org/packages/py2.py3/p/pip/pip-7.1.2-py2.py3-none-any.whl#md5=5ff9fec0be479e4e36df467556deed4d
Using cached pip-7.1.2-py2.py3-none-any.whl
Collecting wheel
@wiggin15
wiggin15 / gist:2718ed5cce8df1b7804f
Last active October 6, 2015 13:23
pip install -U zc.recipe.egg==2.0.2
➜ pip --version
pip 7.1.2 from /usr/local/lib/python2.7/dist-packages (python 2.7)
➜ pip install -vvv -U -i https://pypi.python.org/simple/ zc.recipe.egg==2.0.2
Collecting zc.recipe.egg==2.0.2
Getting page https://pypi.python.org/simple/zc.recipe.egg/
1 location(s) to search for versions of zc.recipe.egg:
* https://pypi.python.org/simple/zc.recipe.egg/
Getting page https://pypi.python.org/simple/zc.recipe.egg/
Analyzing links from page https://pypi.python.org/simple/zc.recipe.egg/
@wiggin15
wiggin15 / gist:fa7469f5638bb52acc8e
Created October 20, 2015 09:31
psutil test run on AIX
root@host-vaix03 (AIX 7.1) > psutil git:(master) py.test test/test_psutil.py 15-10-20 12:26
=========================================================================================================================== test session starts ===========================================================================================================================
platform aix7 -- Python 2.7.8, pytest-2.8.2, py-1.4.30, pluggy-0.3.1
rootdir: /root/psutil, inifile:
collected 183 items
test/test_psutil.py ............F................FF.F.FF..F.s..........ss...F...FFs.F...FFsssssF..........FF....................................................................................F..........
================================================================================================================================ FAILURES ========================
@wiggin15
wiggin15 / gist:c825408ad08e427f245d
Created November 25, 2015 10:00
packstack fails due to EPEL
root@host-ci102 (Redhat 7.0) ➜ ~ yum repolist 15-11-25 11:53
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
repo id repo name status
kickstart/x86_64 Kickstart 4,299+6
openstack-kilo OpenS
root@host-ci036 (SunOS 5.10) ➜ ~ easy_install -i http://pypi.python.org/simple/ gevent 16-03-21 10:37
Searching for gevent
Reading http://pypi.python.org/simple/gevent/
Best match: gevent 1.1.0
Downloading https://pypi.python.org/packages/source/g/gevent/gevent-1.1.0.tar.gz#md5=24b3e44134fbff250526f3b949763f99
Processing gevent-1.1.0.tar.gz
Writing /tmp/easy_install-wR7aZN/gevent-1.1.0/setup.cfg
Running gevent-1.1.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-wR7aZN/gevent-1.1.0/egg-dist-tmp-Kr0Tsx
no previously-included directories found matching '*/__pycache__'
warning: no previously-included files matching '*.so' found anywhere in distribution
2 ** 2 ** 2 ** 2 == (2 ** 2 ** 2) ** 2
======================================================================
FAIL: cinder.tests.unit.volume.drivers.test_infinidat.InfiniboxDriverTestCase.test_get_volume_stats_refreshes
tags: worker-2
----------------------------------------------------------------------
Empty attachments:
stderr
stdout
pythonlogging:'': {{{2016-08-21 11:33:44,391 INFO [cinder.coordination] Coordination backend started successfully.}}}