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
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
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
1) [root@gprfc045 infrared]# cat /infrared/oc_extra_templates.yml | |
--- | |
tripleo_heat_templates: | |
- /home/stack/networks-disable.yaml | |
- /usr/share/openstack-tripleo-heat-templates/environments/disable-telemetry.yaml | |
[root@gprfc045 infrared]# | |
2) copy instackenv.json from undercloud to /infrared in ansible/infrared node | |
3) in undercloud /home/stack/network_data.yaml |
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 |
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
git clone https://github.com/openstack/browbeat.git | |
cd browbeat | |
cd ansible | |
./generate_tripleo_hostfile.sh -l | |
#edit | |
vi install/vars/all.yml | |
#set | |
# dns_server : 10.11.5.9 | |
# collectd_compute: true |
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
[[local|localrc]] | |
DATABASE_PASSWORD=password | |
RABBIT_PASSWORD=password | |
SERVICE_PASSWORD=password | |
SERVICE_TOKEN=password | |
ADMIN_PASSWORD=password | |
disable_service n-net | |
enable_service q-svc |