- /usr/local/etc/bird/bird.conf
- /etc/network/interfaces
This file contains hidden or 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
| #For k8s sanity | |
| if [ "${BRANCH}" \> "1910" ] && [[ $TAG =~ ubi ]]; then | |
| echo "ID=${ID}" > $WORKSPACE/${BUILD_NUMBER}_BLR_${DISTRO}_k8s_multi_interface_ha_sanity_ansible.properties | |
| echo "BRANCH=${BRANCH}" >> $WORKSPACE/${BUILD_NUMBER}_BLR_${DISTRO}_k8s_multi_interface_ha_sanity_ansible.properties | |
| echo "AVAILABLE_TESTBEDS=testbed_k8s_multi_intf_ha_sanity_setup.py" >> $WORKSPACE/${BUILD_NUMBER}_BLR_${DISTRO}_k8s_multi_interface_ha_sanity_ansible.properties | |
| fi | |
| #For k8s virtual sanity | |
| #if [ "${BRANCH}" \> "1910" ] && [[ $TAG =~ ubi ]]; then | |
| if [ "${BRANCH}" \> "2008" ] && [[ $TAG =~ ubi ]] && [[ ! "${BRANCH}" =~ "master" ]]; then |
This file contains hidden or 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
| if ip_fabric_forwarding is enabled, route “10.64.0.0 192.168.27.1 255.240.0.0 UG 0 0 0 vhost0” is needed which was missing. [Added manually. Now setup is fine] | |
| Here 192.168.27.1 is the Router ip |
This file contains hidden or 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
| apiVersion: v1 | |
| clusters: | |
| - cluster: | |
| certificate-authority-data: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURVVENDQWptZ0F3SUJBZ0lVTTBmWG05RVpwR2hQam81TStBQnMrTHlScS9jd0RRWUpLb1pJaHZjTkFRRUwKQlFBd0dERVdNQlFHQTFVRUF3d05NVGt5TGpFMk9DNHlOeTR5TURBZUZ3MHlNREV3TWpneE1EVTRNVE5hRncwegpNREV3TWpZeE1EVTRNVE5hTUJneEZqQVVCZ05WQkFNTURURTVNaTR4TmpndU1qY3VNakF3Z2dFaU1BMEdDU3FHClNJYjNEUUVCQVFVQUE0SUJEd0F3Z2dFS0FvSUJBUUNiUEZsQ3pCOTcwRC96THBLKzQ2MjZrY2hUNndPSkJvRjAKbHE0Ylh0bzlCeUlCRTlIQzlKVCt5SWF0U0NIYjlRaG9yTFkvZENELzV4aHUra2VaUUdCc04yU2x0Sy94bytkTQpCNzdHRFQxaTYyUmpCVGswLzAwT3pxeTRyRUlYOFRndWloeUxzNjhidGM3R1dQNWFJelNaUGdDZEZLRU9NZlE4Cm92OGkyVU9JVXc5UUlsaDJPVU5FWU42Z2NSbGNCb0g5VlNScVQ5a3I1c1N2NHBwZjJmT1FRN3FTbDRYUDg1clEKRjNRQVRScHNZT0VpRXUzY21qZnRyelV5ZWFGaUpRbVVPU2pjWDd5QkgrRERETmtobmtUbHkvSWJGTjYrM3ZTWQoySXdCNXdBUVFhM01zS2JyVzVLdmY0eEZFbGhmOUlwNkNuWmpJZHQ3RGh5a2VnRWhCc2wzQWdNQkFBR2pnWkl3CmdZOHdIUVlEVlIwT0JCWUVGTjlYUjgvd2V3aE5JS3dJeC9WWDFaNlBkVzJFTUZNR0ExVWRJd1JNTUVxQUZOOVgKUjgvd2V3aE5JS3dJeC9WWDFaNlBkVzJFb1J5a0dqQVlNUll3RkFZ |
This file contains hidden or 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
| command_servers: | |
| server1: | |
| ip: | |
| connection: ssh | |
| ssh_user: root | |
| ssh_pass: c0ntrail123 | |
| sudo_pass: c0ntrail123 | |
| ntpserver: 10.204.217.158 | |
| registry_insecure: true | |
| container_registry: bng-artifactory.juniper.net/contrail-nightly |
This file contains hidden or 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
| juju add-machine --constraints tags=compute-o7k --constraints spaces=data |
This file contains hidden or 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
| Fully qualified test name: scripts.k8s_scripts.test_policy.TestNetworkPolicy.test_egress_rules_label_edit | |
| test_egress_rules_label_edit | |
| Test case with class: TestNetworkPolicy.test_egress_rules_label_edit[k8s_sanity,once_again,rerun,run_again] | |
| Location of test case: /contrail-test/scripts/k8s_scripts/test_policy.py | |
| Fully qualified test name: scripts.k8s_scripts.test_policy.TestNetworkPolicy.test_ingress_rules_label_edit | |
| test_ingress_rules_label_edit | |
| Test case with class: TestNetworkPolicy.test_ingress_rules_label_edit[k8s_sanity,once_again,rerun,run_again] | |
| Location of test case: /contrail-test/scripts/k8s_scripts/test_policy.py |
This file contains hidden or 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
| server-manager reimage --cluster_id k8s_nodeg12_ha_setup centos-7.8 | |
| sleep 5m | |
| sshpass -p 'c0ntrail123' ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o "ServerAliveInterval 2" -l root nodeg12 reboot | |
| sshpass -p 'c0ntrail123' ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o "ServerAliveInterval 2" -l root nodeg31 reboot | |
| sshpass -p 'c0ntrail123' ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o "ServerAliveInterval 2" -l root nodec19 reboot | |
| sshpass -p 'c0ntrail123' ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o "ServerAliveInterval 2" -l root nodec21 reboot | |
| sshpass -p 'c0ntrail123' ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o "ServerAliveInterval 2" -l root nodec23 reboot |
This file contains hidden or 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
| from subprocess import check_output | |
| import os | |
| output = check_output("cd /tmp && ls -lhrt", shell=True, universal_newlines=True).split("\n") | |
| for out in output: | |
| if 'Sep 28' not in out: | |
| print(out.split(" ")[-1]) | |
| un = out.split(" ")[-1] | |
| print(f"rm -rf {un}") | |
| #new_out = check_output(f"rm -rf {un}", shell=True, universal_newlines=True) |
This file contains hidden or 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
| 2020-09-14 15:28:25,996 p=52 u=root | fatal: [10.204.218.100]: FAILED! => {"changed": false, "cmd": ["/usr/bin/pip2", "install", "docker-compose==1.24.1"], "msg": "stdout: Collecting docker-compose==1.24.1\n Downloading docker_compose-1.24.1-py2.py3-none-any.whl (134 kB)\nCollecting docker[ssh]<4.0,>=3.7.0\n Downloading docker-3.7.3-py2.py3-none-any.whl (134 kB)\nCollecting websocket-client<1.0,>=0.32.0\n Downloading websocket_client-0.57.0-py2.py3-none-any.whl (200 kB)\nCollecting PyYAML<4.3,>=3.10\n Downloading PyYAML-3.13.tar.gz (270 kB)\nCollecting dockerpty<0.5,>=0.4.1\n Downloading dockerpty-0.4.1.tar.gz (13 kB)\nCollecting docopt<0.7,>=0.6.1\n Downloading docopt-0.6.2.tar.gz (25 kB)\nCollecting jsonschema<3,>=2.5.1\n Downloading jsonschema-2.6.0-py2.py3-none-any.whl (39 kB)\nCollecting texttable<0.10,>=0.9.0\n Downloading texttable-0.9.1.tar.gz (11 kB)\nRequirement already satisfied: backports.ssl-match-hostname>=3.5; python_version < \"3.5\" in /usr/lib/python2.7/site-packages (from docker-co |