Install php7.4 on Centos8/Oracle Linux 8

Install epel-release check all available PHP versions using the following command: The default PHP version is set to PHP 7.2. If you want to install the latest PHP 7.4, you will need to reset the default PHP steams. Run the following command to reset the default PHP Next set php7.4 as default Now you can install php7.4

OVS调试排查指南

一、查看网卡状态:netstat -i 二、ARP操作查看ARP表:ip neigh show 删除ARP条目:ip neigh del x.x.x.x dev tun0 添加ARP条目:ip neigh add 三、OVS相关指令导出br0网桥上的流表:ovs-ofctl -O OpenFlow13 dump-ports-desc br0 列出网桥的端口:ovs-vsctl — –columns=name,ofport list 查看datapath的流表:ovs-dpctl dump-flows 查看数据包经过流表处理状态:ovs-appctl ofproto/trace br0 in_port=tun0,arp,arp_spa=tun0接口IP,arp_sha=tun0接口mac,arp_tpa=目标节点tun0接口ip -generate 四、抓包抓取物理网卡的vxlan包:tcpdump -i ens192 port 4789 and host 节点IP -enn 抓取tun0接口上的arp包:tcpdump -i tun0 host 节点ip and arp -n 抓取容器中的ARP流量tcpdump -i 容器的veth网卡 arp -n

Mysql 8.0 Allow Root Remote Login

When setting up mysql with mysql_secure_installation, Disallow root login remotely set to no, but login with root user from remote is still blcoked, try the other methods, such as blow. mysql> GRANT ALL PRIVILEGES ON *.* TO ‘root’@’localhost’; mysql> UPDATE mysql.user SET host=’%’ WHERE user=’root’; and then restart msyql service.

Angular Application Witch Ace Editor Error

In HyperKuber Web Project which is using angular 13 with ace editor for yaml/json display, an error occured in browser console, as follows blob: Uncaught DOMException: Failed to execute ‘importScripts’ on ‘WorkerGlobalScope’: The script at ” failed to load.at blob::1 or blob: Uncaught DOMException: Failed to execute ‘importScripts’ on ‘WorkerGlobalScope’: The script at ” failed to load.at blob::1 This is…

ShaunOS Open Sourced

Havent updated this site for a long time. this is a normal update. I have decided to opensource shaunos which was written by me from scrach 4 years ago. And i have no time to maintain it, so i upload it to github for those who are intrested in kernel dev or learning. Feel free to use it, it’s under…

openshift origin multi-master manually deployment part-5

8,deply route and docker registry service. deploy a router, running on three master nodes oadm policy add-scc-to-user hostnetwork -z router oadm router router –replicas=3 –selector=’region=infra’ \ –service-account=router deploy docker registry running on node1, on node1: mkdir -p /opt/openshift-registry chown 1001:root /opt/openshift-registry on master1, deploy docker registry service and secure it: oadm registry –service-account=registry –mount-host=/opt/openshift-registry –selector=’region=primary’ oadm policy add-scc-to-user privileged system:serviceaccount:default:registry…

openshift origin multi-master manually deployment part-3

6, install and cofigure etcd cluster, on all master nodes yum install -y etcd configure etcd, comment out all default configuration entries, and add contents below. vi ETCD_NAME=master1.openshift.qyos.com ETCD_LISTEN_PEER_URLS= ETCD_DATA_DIR=/var/lib/etcd/ #ETCD_SNAPSHOT_COUNTER=10000 ETCD_HEARTBEAT_INTERVAL=500 ETCD_ELECTION_TIMEOUT=2500 ETCD_LISTEN_CLIENT_URLS= #ETCD_MAX_SNAPSHOTS=5 #ETCD_MAX_WALS=5 #ETCD_CORS=

openshift origin multi-master manually deployment part-2

5, install origin master service, on all master yum install -y centos-release-openshift-origin yum install -y origin-master bash-completion create origin-master-api systemd file vi [Unit] Description=Atomic OpenShift Master API Documentation= After=network-online.target After=etcd.service Before=origin-node.service Requires=network-online.target [Service] Type=notify EnvironmentFile=/etc/sysconfig/origin-master-api Environment=GOTRACEBACK=crash ExecStart=/usr/bin/openshift start master api –config=${CONFIG_FILE} $OPTIONS LimitNOFILE=131072 LimitCORE=infinity WorkingDirectory=/var/lib/origin SyslogIdentifier=atomic-openshift-master-api RestartSec=5s

openshift origin multi-master manually deployment part-1

i have deployed an openshift origin muliti-master cluster successfully on centos and suse enterprise server. Since the deployment is done manually, i will describe it in detail as possibly as i can. first, take a whole view of architecture, we have three master nodes, all of them are in active state. the number of nodes is according to your cluster…

Happy New Year

The Chinese new year is coming soon!In the year of rooster,I wish you all be rich and live a life you want!

Rabbitmq Server cluster docker images for openshift origin platform

Build rabbitmq cluster docker images for openshift origin platform. Down load docker file tarball rabbitmq.tar, and cd rabbitmq, run docker build -t rabbitmq . after build process is done, tag the images built with rabbitmq:v002 docker images docker tag image-id rabbitmq:v002 and then deploy a rabbitmq-server cluster in openshift origin platform. we should create a serviceaccount rabbitmq, and add it…

Openshift origin multi-node installation guide

in this tutorial, i will describe how to deploy an openshift multi-node cluster manually. before we start, let’s clarify some basic requirements and deployment topology. one master node, virtual box vm, 2 cores + 2G mem + 20G disk two nodes, virtual box vm, 2 cores + 2G mem + 20G disk master hostname: master.openshift.shaunos.com ip address: 192.168.2.49 node1 hostname: node1.openshift.shaunos.com ip…

Adjust total file descriptors of rabbitmq

The total file descriptors number of rabbitmq is 1024 by default. This value is not big enough obviously when your openstack cluster grows. If the file descriptor or socket descriptor reaches its limit, the rabbitmq server will close incoming connections. and you will see the error below: AMQP server on controller1:5672 is unreachable: timed out. Trying again in 1 seconds.…

Monasca installation and configuration guide

In this tutorial, i will describe how to setup monasca components in detail. Before we start, something needs to be confirmed: All the components of monasca can be installed on one node, such as on openstack controller node, or you can deploy it in multi-nodes. In this tutorial, i will install monasca-api in a new VM created in my openstack…