Skip to content

Instantly share code, notes, and snippets.

View mkfsn's full-sized avatar
🇯🇵

Peiming Wu mkfsn

🇯🇵
View GitHub Profile
@mkfsn
mkfsn / gist:2d50a621026e31dbf153413ab087bb91
Created February 9, 2018 06:21
kolla/ubuntu-binary-openvswitch-vswitchd:pike
INFO:__main__:Writing out command to execute
modprobe: ERROR: ../libkmod/libkmod.c:586 kmod_search_moddep() could not open moddep file '/lib/modules/4.9.78-xxxx-std-ipv6-64/modules.dep.bin'
modprobe: FATAL: Module openvswitch not found in directory /lib/modules/4.9.78-xxxx-std-ipv6-64
INFO:__main__:Loading config file at /var/lib/kolla/config_files/config.json
INFO:__main__:Validating config file
INFO:__main__:Kolla config strategy set to: COPY_ALWAYS
INFO:__main__:Copying service configuration files
INFO:__main__:Deleting /usr/local/bin/start-ovs
INFO:__main__:Copying /var/lib/kolla/config_files/start-ovs to /usr/local/bin/start-ovs
INFO:__main__:Setting permission for /usr/local/bin/start-ovs
@mkfsn
mkfsn / gist:084d1b0e9cfe1fd1cfbf175f2b4e22ed
Created February 9, 2018 05:21
/var/log/kolla/neutron/neutron-openvswitch-agent.log
2018-02-09 00:20:45.534 6 ERROR ovsdbapp.schema.open_vswitch.impl_idl timeout=self.timeout)
2018-02-09 00:20:45.534 6 ERROR ovsdbapp.schema.open_vswitch.impl_idl TimeoutException: Commands [<ovsdbapp.schema.open_vswitch.commands.AddBridgeCommand object at 0x65c8650>, <ovsdbapp.schema.open_vswitch.commands.DbAddCommand object at 0x65c8750>] exceeded timeout 10 seconds
2018-02-09 00:20:45.534 6 ERROR ovsdbapp.schema.open_vswitch.impl_idl
2018-02-09 00:20:45.537 6 CRITICAL neutron [-] Unhandled error: TimeoutException: Commands [<ovsdbapp.schema.open_vswitch.commands.AddBridgeCommand object at 0x65c8650>, <ovsdbapp.schema.open_vswitch.commands.DbAddCommand object at 0x65c8750>] exceeded timeout 10 seconds
2018-02-09 00:20:45.537 6 ERROR neutron Traceback (most recent call last):
2018-02-09 00:20:45.537 6 ERROR neutron File "/var/lib/kolla/venv/bin/neutron-openvswitch-agent", line 10, in <module>
2018-02-09 00:20:45.537 6 ERROR neutron sys.exit(main())
2018-02-09 00:20:45.537 6 ERROR neutron File "/va
@mkfsn
mkfsn / gist:a460b5daf80dbbbe03bbab982fe9c564
Created February 9, 2018 05:19
/var/log/kolla/neutron/neutron-server.log
2018-02-09 00:19:16.527 31 INFO neutron.plugins.ml2.plugin [req-15c74a42-80f5-4c1b-8e45-a262652315db - - - - -] Attempt 7 to bind port 10bd0d4f-351f-4f0d-a2e4-0c57d8e86b91
2018-02-09 00:19:16.542 31 ERROR neutron.plugins.ml2.managers [req-15c74a42-80f5-4c1b-8e45-a262652315db - - - - -] Failed to bind port 10bd0d4f-351f-4f0d-a2e4-0c57d8e86b91 on host ns541058 for vnic_type normal using segments [{'network_id': 'f0e03f77-9145-414c-aeb1-1f5a2e5daf77', 'segmentation_id': None, 'physical_network': u'physnet1', 'id': '376bb717-62d0-4cb7-bc50-30011ea0c842', 'network_type': u'flat'}]
2018-02-09 00:19:16.543 31 INFO neutron.plugins.ml2.plugin [req-15c74a42-80f5-4c1b-8e45-a262652315db - - - - -] Attempt 8 to bind port 10bd0d4f-351f-4f0d-a2e4-0c57d8e86b91
2018-02-09 00:19:16.544 30 ERROR neutron.plugins.ml2.managers [req-db6a0ee3-e6da-4ca5-827f-35773e03b302 - - - - -] Failed to bind port b810ee24-4b43-4e9e-8bd0-1e1d0bcae86d on host ns541058 for vnic_type normal using segments [{'network_id': '7e1219de-ff81-472b-b4a9-d10
@mkfsn
mkfsn / gist:d010a940b88f0df080cd5c5a5aa10612
Created February 9, 2018 05:14
centos-source-openvswitch-db-server
INFO:__main__:Loading config file at /var/lib/kolla/config_files/config.json
INFO:__main__:Validating config file
INFO:__main__:Kolla config strategy set to: COPY_ALWAYS
INFO:__main__:Copying service configuration files
INFO:__main__:Deleting /usr/local/bin/start-ovsdb-server
INFO:__main__:Copying /var/lib/kolla/config_files/start-ovsdb-server to /usr/local/bin/start-ovsdb-server
INFO:__main__:Setting permission for /usr/local/bin/start-ovsdb-server
INFO:__main__:Writing out command to execute
Running command: 'start-ovsdb-server 127.0.0.1'
Argument p_out is
@mkfsn
mkfsn / gist:ac1af83208bc26afa19f718225d33b7d
Created February 9, 2018 05:12
centos-source-neutron-openvswitch-agent
INFO:__main__:Setting permission for /var/log/kolla/neutron/neutron-openvswitch-agent.log^M
INFO:__main__:Setting permission for /var/log/kolla/neutron/neutron-l3-agent.log.1^M
INFO:__main__:Setting permission for /var/log/kolla/neutron/neutron-metadata-agent.log^M
INFO:__main__:Setting permission for /var/log/kolla/neutron/neutron-netns-cleanup.log^M
INFO:__main__:Setting permission for /var/log/kolla/neutron/neutron-server.log^M
Running command: 'neutron-openvswitch-agent --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugins/ml2/ml2_conf.ini'^M
Guru meditation now registers SIGUSR1 and SIGUSR2 by default for backward compatibility. SIGUSR1 will no longer be registered in a future release, so please use SIGUSR2 to generate reports.^M
Traceback (most recent call last):^M
File "/var/lib/kolla/venv/lib/python2.7/site-packages/eventlet/hubs/hub.py", line 457, in fire_timers^M
timer()^M
@mkfsn
mkfsn / gist:a4df9f3543e06aefd61066f4d9042876
Created February 9, 2018 05:11
centos-source-openvswitch-vswitchd
INFO:__main__:Copying /var/lib/kolla/config_files/start-ovs to /usr/local/bin/start-ovs
INFO:__main__:Setting permission for /usr/local/bin/start-ovs
INFO:__main__:Writing out command to execute
INFO:__main__:Loading config file at /var/lib/kolla/config_files/config.json
INFO:__main__:Validating config file
INFO:__main__:Kolla config strategy set to: COPY_ALWAYS
INFO:__main__:Copying service configuration files
INFO:__main__:Deleting /usr/local/bin/start-ovs
INFO:__main__:Copying /var/lib/kolla/config_files/start-ovs to /usr/local/bin/start-ovs
INFO:__main__:Setting permission for /usr/local/bin/start-ovs
@mkfsn
mkfsn / gist:233973ecc9ccb6d6fb5a4f6b0f21a3fc
Created February 9, 2018 05:10
centos-source-neutron-openvswitch-agent
INFO:__main__:Loading config file at /var/lib/kolla/config_files/config.json^M
INFO:__main__:Validating config file^M
INFO:__main__:Kolla config strategy set to: COPY_ALWAYS^M
INFO:__main__:Copying service configuration files^M
INFO:__main__:Copying /var/lib/kolla/config_files/neutron.conf to /etc/neutron/neutron.conf^M
INFO:__main__:Setting permission for /etc/neutron/neutron.conf^M
INFO:__main__:Copying /var/lib/kolla/config_files/ml2_conf.ini to /etc/neutron/plugins/ml2/ml2_conf.ini^M
INFO:__main__:Setting permission for /etc/neutron/plugins/ml2/ml2_conf.ini^M
INFO:__main__:Writing out command to execute^M
INFO:__main__:Setting permission for /var/log/kolla/neutron^M
INFO:__main__:Setting permission for /var/log/kolla/neutron/neutron-server.log
Running command: 'neutron-openvswitch-agent --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugins/ml2/ml2_conf.ini'
Guru meditation now registers SIGUSR1 and SIGUSR2 by default for backward compatibility. SIGUSR1 will no longer be registered in a future release, so please u
se SIGUSR2 to generate reports.
Traceback (most recent call last):
File "/var/lib/kolla/venv/lib/python2.7/site-packages/eventlet/hubs/hub.py", line 457, in fire_timers
timer()
File "/var/lib/kolla/venv/lib/python2.7/site-packages/eventlet/hubs/timer.py", line 58, in __call__
cb(*args, **kw)
File "/var/lib/kolla/venv/lib/python2.7/site-packages/eventlet/greenthread.py", line 214, in main
func getTwitterToken(key, secret string) (string, error) {
b64 := base64.StdEncoding.EncodeToString([]byte(key + ":" + secret))
data := url.Values{}
data.Set("grant_type", "client_credentials")
request, _ := http.NewRequest("POST", "https://api.twitter.com/oauth2/token", bytes.NewBufferString(data.Encode()))
request.Header.Add("Authorization", "Basic " + b64)
request.Header.Add("Content-Type", "application/x-www-form-urlencoded")
request.Header.Add("Content-Length", strconv.Itoa(len(data.Encode())))
2016-19826 Sr. Front-end Developer
https://www.104.com.tw/job/?jobno=4vz4k&jobsource=checkc
Software Developer - 軟體研發工程師
https://www.104.com.tw/job/?jobno=4rf82&jobsource=checkc
2015-19057: Sr. Backend/Data Engineer
https://www.104.com.tw/job/?jobno=4owiy&jobsource=checkc
2016-19672: Sr. Software Engineer- Deep Security SEG