Skip to content

Instantly share code, notes, and snippets.

@tbielawa
Created August 23, 2016 18:12
Show Gist options
  • Save tbielawa/1d37c1afa41fbfef6001b382eca28f67 to your computer and use it in GitHub Desktop.
Save tbielawa/1d37c1afa41fbfef6001b382eca28f67 to your computer and use it in GitHub Desktop.
#############################################
# Creating a virtualenv
#############################################
virtualenv oo-installenv
New python executable in oo-installenv/bin/python2
Also creating executable in oo-installenv/bin/python
Installing setuptools, pip...done.
. oo-installenv/bin/activate && pip install -r requirements.txt
You are using pip version 6.0.8, however version 8.1.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
You must give at least one requirement to install (see "pip help install")
. oo-installenv/bin/activate && pip install pep8 nose coverage mock flake8 PyYAML click
You are using pip version 6.0.8, however version 8.1.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Collecting pep8
Using cached pep8-1.7.0-py2.py3-none-any.whl
Collecting nose
Using cached nose-1.3.7-py2-none-any.whl
Collecting coverage
Using cached coverage-4.2.tar.gz
Collecting mock
Using cached mock-2.0.0-py2.py3-none-any.whl
Collecting flake8
Using cached flake8-3.0.4-py2.py3-none-any.whl
Collecting PyYAML
Using cached PyYAML-3.11.zip
Collecting click
Using cached click-6.6.tar.gz
Collecting funcsigs>=1 (from mock)
Using cached funcsigs-1.0.2-py2.py3-none-any.whl
Collecting six>=1.9 (from mock)
Using cached six-1.10.0-py2.py3-none-any.whl
Collecting pbr>=0.11 (from mock)
Using cached pbr-1.10.0-py2.py3-none-any.whl
Collecting pyflakes!=1.2.0,!=1.2.1,!=1.2.2,<1.3.0,>=0.8.1 (from flake8)
Using cached pyflakes-1.2.3-py2.py3-none-any.whl
Collecting mccabe<0.6.0,>=0.5.0 (from flake8)
Using cached mccabe-0.5.2-py2.py3-none-any.whl
Collecting enum34 (from flake8)
Using cached enum34-1.1.6-py2-none-any.whl
Collecting pycodestyle<2.1.0,>=2.0.0 (from flake8)
Using cached pycodestyle-2.0.0-py2.py3-none-any.whl
Collecting configparser (from flake8)
Using cached configparser-3.5.0.tar.gz
Installing collected packages: configparser, pycodestyle, enum34, mccabe, pyflakes, pbr, six, funcsigs, click, PyYAML, flake8, mock, coverage, nose, pep8
Running setup.py install for configparser
Skipping installation of /home/tbielawa/rhat/os/openshift-ansible/utils/oo-installenv/lib/python2.7/site-packages/backports/__init__.py (namespace package)
Installing /home/tbielawa/rhat/os/openshift-ansible/utils/oo-installenv/lib/python2.7/site-packages/configparser-3.5.0-py2.7-nspkg.pth
Running setup.py install for click
Running setup.py install for PyYAML
checking if libyaml is compilable
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python2.7 -c build/temp.linux-x86_64-2.7/check_libyaml.c -o build/temp.linux-x86_64-2.7/check_libyaml.o
build/temp.linux-x86_64-2.7/check_libyaml.c:2:18: fatal error: yaml.h: No such file or directory
compilation terminated.
libyaml is not found or a compiler error: forcing --without-libyaml
(if libyaml is installed correctly, you may need to
specify the option --include-dirs or uncomment and
modify the parameter include_dirs in setup.cfg)
Running setup.py install for coverage
building 'coverage.tracer' extension
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python2.7 -c coverage/ctracer/datastack.c -o build/temp.linux-x86_64-2.7/coverage/ctracer/datastack.o
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python2.7 -c coverage/ctracer/filedisp.c -o build/temp.linux-x86_64-2.7/coverage/ctracer/filedisp.o
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python2.7 -c coverage/ctracer/module.c -o build/temp.linux-x86_64-2.7/coverage/ctracer/module.o
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python2.7 -c coverage/ctracer/tracer.c -o build/temp.linux-x86_64-2.7/coverage/ctracer/tracer.o
gcc -pthread -shared -Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld build/temp.linux-x86_64-2.7/coverage/ctracer/datastack.o build/temp.linux-x86_64-2.7/coverage/ctracer/filedisp.o build/temp.linux-x86_64-2.7/coverage/ctracer/module.o build/temp.linux-x86_64-2.7/coverage/ctracer/tracer.o -L/usr/lib64 -lpython2.7 -o build/lib.linux-x86_64-2.7/coverage/tracer.so
Installing coverage2 script to /home/tbielawa/rhat/os/openshift-ansible/utils/oo-installenv/bin
Installing coverage-2.7 script to /home/tbielawa/rhat/os/openshift-ansible/utils/oo-installenv/bin
Installing coverage script to /home/tbielawa/rhat/os/openshift-ansible/utils/oo-installenv/bin
Successfully installed PyYAML-3.11 click-6.6 configparser-3.5.0 coverage-4.2 enum34-1.1.6 flake8-3.0.4 funcsigs-1.0.2 mccabe-0.5.2 mock-2.0.0 nose-1.3.7 pbr-1.10.0 pep8-1.7.0 pycodestyle-2.0.0 pyflakes-1.2.3 six-1.10.0
#############################################
# Listing all pip deps
#############################################
. oo-installenv/bin/activate && pip freeze
You are using pip version 6.0.8, however version 8.1.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
alabaster==0.7.8
ansible-lint==3.0.1
Babel==2.3.4
certifi==2016.2.28
click==6.6
configparser==3.5.0
coverage==4.2
enum34==1.1.6
flake8==3.0.4
funcsigs==1.0.2
graphviz==0.4.10
imagesize==0.7.1
lib-openshift==0.0.1
mccabe==0.5.2
mock==2.0.0
nose==1.3.7
ooinstall==3.0.0
pbr==1.10.0
pep8==1.7.0
pycodestyle==2.0.0
pyflakes==1.2.3
pytz==2016.4
PyYAML==3.11
six==1.10.0
snowballstemmer==1.2.1
Sphinx==1.4.4
#############################################
# Running PyLint Tests in virtualenv
#############################################
python -m pylint --rcfile ../git/.pylintrc src/ooinstall/cli_installer.py src/ooinstall/oo_config.py src/ooinstall/openshift_ansible.py src/ooinstall/variants.py
************* Module ooinstall.cli_installer
I: 3, 0: Locally disabling bad-continuation (C0330) (locally-disabled)
I: 3, 0: Locally disabling missing-docstring (C0111) (locally-disabled)
I: 3, 0: Locally disabling no-self-use (R0201) (locally-disabled)
I: 3, 0: Locally disabling invalid-name (C0103) (locally-disabled)
I: 3, 0: Locally disabling no-value-for-parameter (E1120) (locally-disabled)
I: 3, 0: Locally disabling too-many-lines (C0302) (locally-disabled)
I:693, 0: Locally disabling too-many-branches (R0912) (locally-disabled)
I:817, 0: Locally disabling too-many-arguments (R0913) (locally-disabled)
I:818, 0: Locally disabling line-too-long (C0301) (locally-disabled)
I:904, 0: Locally disabling bad-builtin (W0141) (locally-disabled)
I:904, 0: Locally disabling too-many-statements (R0915) (locally-disabled)
I:1076, 0: Locally disabling unexpected-keyword-arg (E1123) (locally-disabled)
************* Module ooinstall.oo_config
I: 1, 0: Locally disabling bad-continuation (C0330) (locally-disabled)
I: 1, 0: Locally disabling missing-docstring (C0111) (locally-disabled)
I: 1, 0: Locally disabling no-self-use (R0201) (locally-disabled)
I: 1, 0: Locally disabling invalid-name (C0103) (locally-disabled)
I: 1, 0: Locally disabling too-many-instance-attributes (R0902) (locally-disabled)
I: 1, 0: Locally disabling too-few-public-methods (R0903) (locally-disabled)
I:171, 0: Locally disabling too-many-branches (R0912) (locally-disabled)
************* Module ooinstall.openshift_ansible
I: 1, 0: Locally disabling bad-continuation (C0330) (locally-disabled)
I: 1, 0: Locally disabling missing-docstring (C0111) (locally-disabled)
I: 1, 0: Locally disabling no-self-use (R0201) (locally-disabled)
I: 1, 0: Locally disabling invalid-name (C0103) (locally-disabled)
I: 1, 0: Locally disabling global-statement (W0603) (locally-disabled)
I: 1, 0: Locally disabling global-variable-not-assigned (W0602) (locally-disabled)
I: 94, 0: Locally disabling too-many-branches (R0912) (locally-disabled)
I:171, 0: Locally disabling too-many-branches (R0912) (locally-disabled)
************* Module ooinstall.variants
I: 3, 0: Locally disabling bad-continuation (C0330) (locally-disabled)
I: 3, 0: Locally disabling missing-docstring (C0111) (locally-disabled)
I: 3, 0: Locally disabling no-self-use (R0201) (locally-disabled)
I: 3, 0: Locally disabling invalid-name (C0103) (locally-disabled)
I: 3, 0: Locally disabling too-few-public-methods (R0903) (locally-disabled)
#############################################
# Running PEP8 Compliance Tests in virtualenv
#############################################
Skipping PEP8 tests until we clean them up
#############################################
# Running Unit Tests in virtualenv
#############################################
. oo-installenv/bin/activate && nosetests -v test/
test_add_nodes (test.cli_installer_tests.AttendedCliTests) ... ok
test_all_in_one (test.cli_installer_tests.AttendedCliTests) ... ok
test_fresh_install_with_config (test.cli_installer_tests.AttendedCliTests) ... ok
test_full_run (test.cli_installer_tests.AttendedCliTests) ... ok
test_gen_inventory (test.cli_installer_tests.AttendedCliTests) ... ok
test_get_hosts_to_run_on (test.cli_installer_tests.AttendedCliTests) ... ok
test_ha_dedicated_node (test.cli_installer_tests.AttendedCliTests) ... ok
test_ha_no_dedicated_nodes (test.cli_installer_tests.AttendedCliTests) ... ok
test_ha_reuse_master_as_lb (test.cli_installer_tests.AttendedCliTests) ... ok
test_ansible_config_specified_cli (test.cli_installer_tests.UnattendedCliTests) ... ok
test_ansible_config_specified_in_installer_config (test.cli_installer_tests.UnattendedCliTests) ... ok
test_bad_config (test.cli_installer_tests.UnattendedCliTests) ... ok
test_cfg_full_run (test.cli_installer_tests.UnattendedCliTests) ... ok
test_get_hosts_to_run_on1 (test.cli_installer_tests.UnattendedCliTests) ... ok
test_get_hosts_to_run_on2 (test.cli_installer_tests.UnattendedCliTests) ... ok
test_get_hosts_to_run_on3 (test.cli_installer_tests.UnattendedCliTests) ... ok
test_get_hosts_to_run_on4 (test.cli_installer_tests.UnattendedCliTests) ... ok
test_get_hosts_to_run_on5 (test.cli_installer_tests.UnattendedCliTests) ... ok
test_get_hosts_to_run_on6 (test.cli_installer_tests.UnattendedCliTests) ... ok
test_inventory_write (test.cli_installer_tests.UnattendedCliTests) ... ok
test_no_ansible_config_specified (test.cli_installer_tests.UnattendedCliTests) ... ok
test_quick_ha_full_run (test.cli_installer_tests.UnattendedCliTests) ... ok
test_quick_ha_no_lb (test.cli_installer_tests.UnattendedCliTests) ... ok
test_quick_ha_only_2_masters (test.cli_installer_tests.UnattendedCliTests) ... ok
test_quick_ha_preconfigured_lb (test.cli_installer_tests.UnattendedCliTests) ... ok
test_quick_ha_reused_lb (test.cli_installer_tests.UnattendedCliTests) ... ok
test_variant_version_latest_assumed (test.cli_installer_tests.UnattendedCliTests) ... ok
test_variant_version_preserved (test.cli_installer_tests.UnattendedCliTests) ... ok
test_load_host_no_ip_or_hostname (test.oo_config_tests.HostTests) ... ok
test_load_host_no_master_or_node_specified (test.oo_config_tests.HostTests) ... ok
test_load_bad_config (test.oo_config_tests.OOConfigTests) ... ok
test_load_complete_facts (test.oo_config_tests.OOConfigTests) ... ok
test_load_config (test.oo_config_tests.OOConfigTests) ... ok
test_load_host_incomplete_facts (test.oo_config_tests.OOConfigTests) ... ok
test_write_config (test.oo_config_tests.OOConfigTests) ... ok
----------------------------------------------------------------------
Ran 35 tests in 0.356s
OK
:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment