This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Wed Dec 26 10:53:21 2018 myfile1 | |
2422047 function calls (2514985 primitive calls) in 33.336 seconds | |
Ordered by: cumulative time | |
ncalls tottime percall cumtime percall filename:lineno(function) | |
243 0.007 0.000 38.766 0.160 /usr/lib/python2.7/site-packages/eventlet/greenpool.py:85(GreenPool._spawn_n_impl) | |
243 0.003 0.000 38.742 0.159 /usr/lib/python2.7/site-packages/eventlet/wsgi.py:724(Server.process_request) | |
243 0.005 0.000 38.738 0.159 /usr/lib64/python2.7/SocketServer.py:643(HttpProtocol.__init__) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -o rhos-release-latest.noarch.rpm http://download-node-02.eng.bos.redhat.com/rcm-guest/puddles/OpenStack/rhos-release/rhos-release-latest.noarch.rpm | |
yum install -y rhos-release-latest.noarch.rpm | |
rhos-release --help | |
rhos-release 16-director -p passed_phase2 | |
yum update -y; reboot | |
======================================= | |
sudo yum install git gcc libffi-devel openssl-devel python3-virtualenv libselinux-python3 tmux -y | |
#install kvm and libvirt | |
sudo yum install qemu-kvm libvirt libvirt-python3 libguestfs-tools virt-install -y | |
#sudo yum install libguestfs libguestfs-tools-c libguestfs-tools-xfs python-lxml wget libselinux-python expect -y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[root@gprfc049 ~]# pyvenv-3.6 3.6 | |
WARNING: the pyenv script is deprecated in favour of `python3.6 -m venv` | |
[root@gprfc049 ~]# source 3.6/bin/activate | |
(3.6) [root@gprfc049 ~]# pip install greenlet | |
Collecting greenlet | |
Using cached https://files.pythonhosted.org/packages/bf/45/142141aa47e01a5779f0fa5a53b81f8379ce8f2b1cd13df7d2f1d751ae42/greenlet-0.4.15-cp36-cp36m-manylinux1_x86_64.whl | |
Installing collected packages: greenlet | |
Successfully installed greenlet-0.4.15 | |
You are using pip version 10.0.1, however version 18.1 is available. | |
You should consider upgrading via the 'pip install --upgrade pip' command. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[stack@undercloud-0 ~]$ source overcloudrc | |
(overcloud) [stack@undercloud-0 ~]$ openstack domain list | |
+----------------------------------+------------+---------+--------------------+ | |
| ID | Name | Enabled | Description | | |
+----------------------------------+------------+---------+--------------------+ | |
| 39f85d82ada6433c8cff239dfe5b2ba9 | test | True | | | |
| 9b28c602f5e542048fcff2970828ccc9 | heat_stack | True | | | |
| default | Default | True | The default domain | | |
+----------------------------------+------------+---------+--------------------+ | |
(overcloud) [stack@undercloud-0 ~]$ openstack project list |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://jvns.ca/blog/2017/06/04/learning-about-kubernetes/ | |
https://docs.openshift.com/enterprise/3.1/admin_guide/manage_nodes.html | |
https://blog.openshift.com/openshift-container-platform-reference-architecture-implementation-guides/ | |
gcheresh, juriarte, itzik and udi dmellado mcornea aopincar | |
http://file.rdu.redhat.com/~mcornea/osp_ocp_demo/ | |
https://access.redhat.com/documentation/en-us/red_hat_openstack_platform/14/html/installing_openshift_container_platform_on_bare_metal_using_director/installing-ocp-on-bm | |
ocp installation with infrared https://gist.github.com/venkataanil/bb49eb9c27dd640a60e0282e02d13858 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo yum install git gcc libffi-devel openssl-devel python-virtualenv libselinux-python tmux -y | |
tmux new -s deployed_server | |
#install kvm and libvirt | |
sudo yum install qemu-kvm libvirt libvirt-python libguestfs-tools virt-install -y | |
sudo yum install libguestfs libguestfs-tools-c libguestfs-tools-xfs python-lxml wget libselinux-python expect -y | |
systemctl enable libvirtd | |
systemctl start libvirtd | |
# checks |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
create vms using https://gist.github.com/venkataanil/3ec45c26ab3c9dbb6cd1c20eea9c7b16 | |
sudo yum install git gcc libffi-devel openssl-devel python-virtualenv libselinux-python tmux -y | |
Don't add hostname in /etc/hosts. Make sure /etc/hosts empty in controller-0 and compute-0 | |
# https://docs.openstack.org/tripleo-docs/latest/install/installation/installation.html | |
useradd stack | |
passwd stack | |
echo "stack ALL=(root) NOPASSWD:ALL" | tee -a /etc/sudoers.d/stack | |
chmod 0440 /etc/sudoers.d/stack |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
IMAGE='http://rhos-qe-mirror-tlv.usersys.redhat.com/brewroot/packages/rhel-guest-image/7.6/215/images/rhel-guest-image-7.6-215.x86_64.qcow2' | |
TOPOLOGY_NODES=undercloud:1,openshift-master:3,openshift-worker:3,openshift-infra:3,openshift-tester:1 | |
MIRROR=tlv | |
HOST=$HOST | |
## CLEANUP ## | |
infrared virsh -v -o cleanup.yml \ | |
--host-address $HOST \ | |
--host-key ~/.ssh/id_rsa \ | |
--cleanup yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -o rhos-release-latest.noarch.rpm http://download-node-02.eng.bos.redhat.com/rcm-guest/puddles/OpenStack/rhos-release/rhos-release-latest.noarch.rpm | |
yum install -y rhos-release-latest.noarch.rpm | |
rhos-release --help | |
rhos-release 14-director -p passed_phase2 | |
yum update -y; reboot | |
======================================= | |
sudo yum install git gcc libffi-devel openssl-devel python-virtualenv libselinux-python tmux -y | |
#install kvm and libvirt | |
sudo yum install qemu-kvm libvirt libvirt-python libguestfs-tools virt-install -y | |
sudo yum install libguestfs libguestfs-tools-c libguestfs-tools-xfs python-lxml wget libselinux-python expect -y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
======================================================= | |
Use RHEL6 for OCP master and worker nodes | |
[vkommadi@localhost copy-ssh-keys]$ ssh root@ansible1 | |
Last login: Mon May 20 00:51:23 2019 from ovpn-116-142.sin2.redhat.com | |
[root@gprfc046 ~]# ssh master | |
Last login: Fri May 17 09:22:19 2019 from 172.16.0.1 | |
[root@openshift-master-0 ~]# cat /etc/redhat-release | |
Red Hat Enterprise Linux Server release 7.6 (Maipo) | |
[root@openshift-master-0 ~]# ls /etc/yum.repos.d/ | |
CentOS-OpenShift-Origin311.repo ose-v3.repo rhos-release.repo rhos-release-rhel-7.6.repo |