Skip to content

Instantly share code, notes, and snippets.

View pdmack's full-sized avatar

Pete MacKinnon pdmack

  • NVIDIA @egx
  • Raleigh NC
View GitHub Profile
- sudo $HTTP_PROXY apt-get -y update
- sudo $HTTP_PROXY apt-get -y install qemu
+ sudo $HTTP_PROXY yum -y update
+ sudo $HTTP_PROXY yum -y install qemu
- sudo $HTTP_PROXY pip install --upgrade pip dib-utils
+ sudo -H $HTTP_PROXY pip install --upgrade pip dib-utils
cmd_clone_projects do_not_force_update $REDSTACK_SCRIPTS/image-projects-list
exclaim "Use tripleo-diskimagebuilder to actually build the Trove Guest Agent Image."
@pdmack
pdmack / gist:a8100f525c788cd3a699
Created January 6, 2015 14:40
nove compute error in trove int-tests
======================================================================
ERROR: proboscis.case.FunctionTest (start_compute)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/proboscis/case.py", line 296, in testng_method_mistake_capture_func
compatability.capture_type_error(s_func)
File "/usr/local/lib/python2.7/dist-packages/proboscis/compatability/exceptions_2_6.py", line 27, in capture_type_error
func()
File "/home/ubuntu/trove-integration/tests/integration/tests/initialize.py", line 143, in start_compute
conf_file_name="nova_conf").run()
@pdmack
pdmack / gist:381831f2b1af4ab8097d
Created January 6, 2015 14:49
nova compute libvirt
NovaException: Nova requires libvirt version 0.9.11 or greater.
2014-12-12 16:50:46.924 ERROR nova.openstack.common.threadgroup [-] Nova requires libvirt version 0.9.11 or greater.
2014-12-12 16:50:46.924 TRACE nova.openstack.common.threadgroup Traceback (most recent call last):
2014-12-12 16:50:46.924 TRACE nova.openstack.common.threadgroup File "/opt/stack/nova/nova/openstack/common/threadgroup.py", line 145, in wait
2014-12-12 16:50:46.924 TRACE nova.openstack.common.threadgroup x.wait()
2014-12-12 16:50:46.924 TRACE nova.openstack.common.threadgroup File "/opt/stack/nova/nova/openstack/common/threadgroup.py", line 47, in wait
2014-12-12 16:50:46.924 TRACE nova.openstack.common.threadgroup return self.thread.wait()
2014-12-12 16:50:46.924 TRACE nova.openstack.common.threadgroup File "/usr/local/lib/python2.7/dist-packages/eventlet/greenthread.py", line 173, in wait
2014-12-12 16:50:46.924 TRACE nova.openstack.common.threadgroup return self._exit_event.wait()
2014-12-12 16:50:46.924 TRACE
@pdmack
pdmack / gist:ecc053460aaed610df7f
Created January 9, 2015 14:03
https v http assert
======================================================================
FAIL: proboscis.case.MethodTest (confirm_flavors_lists_nearly_identical)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/proboscis/case.py", line 296, in testng_method_mistake_capture_func
compatability.capture_type_error(s_func)
File "/usr/local/lib/python2.7/dist-packages/proboscis/compatability/exceptions_2_6.py", line 27, in capture_type_error
func()
File "/usr/local/lib/python2.7/dist-packages/proboscis/case.py", line 350, in func
func(test_case.state.get_state())
@pdmack
pdmack / gist:77a8d3a7cbf4608411e4
Created January 14, 2015 14:44
f20 kick-start mysql
[pmackinn@localhost scripts]$ ./redstack kick-start mysql
*******************************************************************************
Initializing Configuration for Running Tests...
*******************************************************************************
*******************************************************************************
Installing python test packages.
*******************************************************************************
Requirement already satisfied (use --upgrade to upgrade): openstack.nose-plugin in /usr/lib/python2.7/site-packages
Requirement already satisfied (use --upgrade to upgrade): proboscis in /usr/lib/python2.7/site-packages
Requirement already satisfied (use --upgrade to upgrade): pexpect in /usr/lib/python2.7/site-packages
@pdmack
pdmack / gist:e482978f0f5309ed9868
Created January 14, 2015 15:57
trusty kick-start mysql
pmackinn@ubuntu:~/trove-integration/scripts$ ./redstack kick-start mysql
*******************************************************************************
Initializing Configuration for Running Tests...
*******************************************************************************
*******************************************************************************
Installing python test packages.
*******************************************************************************
The directory '/home/pmackinn/trove-integration/scripts/.cache/pip/log' or its parent directory is not owned by the current user and the debug log has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want the -H flag.
The directory '/home/pmackinn/trove-integration/scripts/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want the -H fla
cd /opt/stack/trove; /usr/local/bin/trove-api —config-file=/etc/trove/trove.conf —debug
cd /opt/stack/trove; /usr/local/bin/trove-taskmanager —config-file=/etc/trove/trove-taskmanager.conf —debug
cd /opt/stack/trove; /usr/local/bin/trove-conductor —config-file=/etc/trove/trove-conductor.conf —debug
@pdmack
pdmack / spongodb.py
Last active December 20, 2017 00:04
Adaptation of PySpark/MongoDB example illustrating dynamic jar loading: works with spark-submit AND python interpreter
from __future__ import print_function
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
@pdmack
pdmack / foo-pv-volume.yaml
Last active May 10, 2018 18:46
hostPath PV test
kind: PersistentVolume
apiVersion: v1
metadata:
name: foo-pv-volume
labels:
type: local
spec:
storageClassName: ""
capacity:
storage: 10Gi
@pdmack
pdmack / conda.txt
Created June 22, 2018 21:12
kaggle/python conda list
_ipyw_jlab_nb_ext_conf 0.1.0 py36he11e457_0
absl-py 0.1.13 <pip>
alabaster 0.7.10 py36h306e16b_0
algopy 0.5.7 <pip>
altair 1.2.1 <pip>
anaconda custom py36hbbc8b67_0
anaconda-client 1.6.5 py36h19c0dcd_0
anaconda-navigator 1.6.9 py36h11ddaaa_0
anaconda-project 0.8.0 py36h29abdf5_0
annoy 1.11.5 <pip>