[root@controller1 ~]# docker ps -a
ea063a285d58 172.16.68.200:4000/lokolla/centos-source-ceilometer-central:5.0.1 "kolla_start" About an hour ago Up About an hour ceilometer_central
fe64b7e81e3e 172.16.68.200:4000/lokolla/centos-source-ceilometer-notification:5.0.1 "kolla_start" About an hour ago Up About an hour ceilometer_notification
7d17f5c3d7a6 172.16.68.200:4000/lokolla/centos-source-gnocchi-statsd:5.0.1 "kolla_start" 2 hours ago Up 2 hours gnocchi_statsd
c4ae2e5e50d6 172.16.68.200:4000/lokolla/centos-source-gnocchi-metricd:5.0.1 "kolla_start" 2 hours ago Up 2 hours gnocchi_metricd
e68fa20405bb 172.16.68.200:4000/lokolla/centos-source-gnocchi-api:5.0.1 "kolla_start" 2 hours ago Up 2 hours gnocchi_api
This is a story about how I tried to use Go for scripting. In this story, I’ll discuss the need for a Go script, how we would expect it to behave and the possible implementations; During the discussion I’ll deep dive to scripts, shells, and shebangs. Finally, we’ll discuss solutions that will make Go scripts work.
While python and bash are popular scripting languages, C, C++ and Java are not used for scripts at all, and some languages are somewhere in between.
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
## File mau hoc cac lenh trong python | |
@######## | |
Thuc tap sinh 2018 @meditech.vn | |
Linux system network | |
@######## | |
Container ecosystem # docker %$ 1966 | |
Programing : C++, Java, Python, Golang, Ruby | |
Dinh Van Manh 1994 [email protected] OpenStack, DOCKER, Monitoring, graylog #HANU | |
NGUYEN VIET DUNG |
- Cài thêm gói
yum install -y python-setuptools
để fix nếu gặp lỗi dưới
# packstack --gen-answer-file=answers.cfg
ERROR:root:Failed to load plugin from file ssl_001.py
ERROR:root:Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/packstack/installer/run_setup.py", line 923, in loadPlugins
moduleobj = __import__(moduleToLoad)
File "/usr/lib/python2.7/site-packages/packstack/plugins/ssl_001.py", line 20, in <module>
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
## My result | |
I follow my tutorial, step by step: https://github.com/congto/openstack-tools/blob/master/docs/kolla/openstack-pike-kolla-aio.md | |
- Step curl: http://prntscr.com/ipqee2 | |
- Step pre-check: http://prntscr.com/ipqe27 |
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
#!/bin/bash | |
MGMT_IP=$(ifconfig br-mgmt | grep 'inet addr:'| cut -d: -f2 | awk '{ print $1}') | |
HOST=$(hostname -s) | |
ADMIN_IP=$(hiera management_vip) | |
PUB_IP=$(hiera public_vip) | |
USER='masakari' | |
PASS='masakari' | |
DIR="$(dirname `readlink -f $0`)" |
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
Name: Flash | |
Serial: eNrzzU/OLi0odswsqnHLSSzOqDGoca7JKCkpsNLXLy8v1ytJTczVLUotKNFLzs8FAJHYETc= | |
if anyone wants to thank ETH: 0x527c2aB55b744D6167dc981576318af96ed26676 | |
Thank you! |