Skip to content

Instantly share code, notes, and snippets.

### Current content of /etc/cni/net.d"
root@ip-172-16-1-8:~# ls -al /etc/cni/net.d/
total 20
drwxr-xr-x 2 root root 4096 Aug 29 08:10 ./
drwxr-xr-x 3 root root 4096 Aug 23 08:08 ../
-rw-r--r-- 1 root root 260 Aug 29 08:10 10-aws.conflist
-rw-r--r-- 1 root root 294 Mar 13 13:25 100-crio-bridge.conf
-rw-r--r-- 1 root root 54 Mar 13 13:25 200-loopback.conf
@FlorianOtel
FlorianOtel / gist:a1d35d8b2bf5b57b791e969c023fc714
Last active February 27, 2018 17:10
mopidy-audioaddict error with mopidy 2.1.0
### the mopidy Error when trying to play a stream from https://jazzradio.com
ERROR 2018-02-23 13:46:35,436 [1956:Core-12] mopidy.core.playback
AudioAddictBackend backend caused an exception.
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/mopidy/core/playback.py", line 423, in _change
if not backend.playback.change_track(pending_tl_track.track).get():
File "/usr/local/lib/python2.7/dist-packages/pykka/threading.py", line 52, in get
compat.reraise(*self._data['exc_info'])
File "/usr/local/lib/python2.7/dist-packages/pykka/compat.py", line 12, in reraise
[root@nuage-gce1-net254-gw github.com]# cat /var/log/nuage-oci-plugin/nuage-oci-plugin.INFO
Log file created at: 2018/01/11 16:21:57
Running on machine: nuage-gce1-net254-gw
Binary: Built with gc go1.8 for linux/amd64
Log line format: [IWEF]mmdd hh:mm:ss.uuuuuu threadid file:line] msg
I0111 16:21:57.682805 5483 main.go:66] ===> Starting nuage-oci-plugin...
I0111 16:21:57.683623 5483 runc.go:41] Container State: specs.State{Version:"1.0.0", ID:"ubuntu_16.04", Status:"", Pid:5480, Bundle:"/mnt/gw-disk/runc/OCI-bundles/v1.0.0/ubuntu_16.04", Annotations:map[string]string{"io.nuage.Domain":"oci-containers-domain", "io.nuage.Enterprise":"runc-crio-test", "io.nuage.Subnet":"Subnet 0", "io.nuage.Zone":"Zone 0"}}
I0111 16:21:57.683712 5483 runc.go:24] Container state as hook data: {
"ociVersion": "1.0.0",
"id": "ubuntu_16.04",
### The hook output does NOT contain the Annotations
I0111 11:31:52.572042 617 runc.go:41] Container State: specs.State{Version:"1.0.0", ID:"ubuntu_16.04", Status:"", Pid:603, Bundle:"/mnt/gw-disk/runc/OCI-bundles/v1.0.0/ubuntu_16.04", Annotations:map[string]string(nil)}
I0111 11:31:52.572086 617 runc.go:24] Container state as hook data: {
"ociVersion": "1.0.0",
"id": "ubuntu_16.04",
"status": "",
"pid": 603,
"bundle": "/mnt/gw-disk/runc/OCI-bundles/v1.0.0/ubuntu_16.04"
}
{
"ociVersion": "1.0.0",
"hooks": {
"prestart": [
{
"path": "/mnt/gw-disk/Go/src/github.com/OpenPlatformSDN/nuage-oci-plugin/nuage-oci-plugin",
"args": ["nuage-oci-plugin", "-config", "/mnt/gw-disk/Go/src/github.com/OpenPlatformSDN/nuage-oci-plugin/samples/nuage-oci-plugin-config.yaml"]
}
]
@FlorianOtel
FlorianOtel / neutron --debug router-interface-add router1 subnet1
Created October 20, 2016 20:11
Error in adding interface to router
.....
DEBUG: keystoneauth.identity.v3.base Making authentication request to http://keystone.keystone.svc:35357/v3/auth/tokens
DEBUG: keystoneauth.identity.v3.base {"token": {"methods": ["password"], "roles": [{"id": "4ca8939dfe91430c8f0907068751a80f", "name": "admin"}], "expires_at": "201
6-10-20T21:07:54.957845Z", "project": {"domain": {"id": "5dc0142f951a40b98ebd19df19644921", "name": "default"}, "id": "9cbcca7f75de4d109861b26dabc6c51c", "name": "
admin"}, "catalog": [{"endpoints": [{"url": "http://keystone.keystone.svc:35357/v3", "interface": "admin", "region": "Spain_Mad", "region_id": "Spain_Mad", "id": "
3582a52fc72143d7b71600d8fd6c9007"}, {"url": "http://keystone.keystone.svc/v3", "interface": "public", "region": "Spain_Mad", "region_id": "Spain_Mad", "id": "6acef
ad9a34844099bca70221c6e76d3"}, {"url": "http://keystone.keystone.svc:5000/v3", "interface": "internal", "region": "Spain_Mad", "region_id": "Spain_Mad", "id": "beb
c0d0c200248d78880878d336086be"}], "type": "identity", "id": "00a265ede6cd4f06
@FlorianOtel
FlorianOtel / openstack --debug hypervisor show 1
Created October 20, 2016 14:13
Hypervisor #1 going missing..
root@nova-compute-tibif:~# openstack --debug hypervisor show 1
START with options: [u'--debug', u'hypervisor', u'show', u'1']
options: Namespace(access_token='***', access_token_endpoint='', access_token_type='', auth_type='', auth_url='http://keystone.keystone:35357/v3', authorization_code='', cacert=None, cert='', client_id='', client_secret='***', cloud='', debug=True, default_domain='default', default_domain_id='', default_domain_name='', deferred_help=False, discovery_endpoint='', domain_id='', domain_name='', endpoint='', identity_provider='', identity_provider_url='', insecure=None, interface='admin', key='', log_file=None, openid_scope='', os_beta_command=False, os_compute_api_version='', os_identity_api_version='3', os_image_api_version='2', os_network_api_version='', os_object_api_version='', os_project_id=None, os_project_name=None, os_volume_api_version='', passcode='', password='***', project_domain_id='', project_domain_name='default', project_id='', project_name='admin', protocol='', redirect_
root@nova-compute-tibif:~# openstack --debug endpoint list
START with options: [u'--debug', u'endpoint', u'list']
options: Namespace(access_token='***', access_token_endpoint='', access_token_type='', auth_type='', auth_url='', authorization_code='', cacert=None, cert='', clie
nt_id='', client_secret='***', cloud='', debug=True, default_domain='default', default_domain_id='', default_domain_name='', deferred_help=False, discovery_endpoin
t='', domain_id='', domain_name='', endpoint='', identity_provider='', identity_provider_url='', insecure=None, interface='', key='', log_file=None, openid_scope='
', os_beta_command=False, os_compute_api_version='', os_identity_api_version='', os_image_api_version='', os_network_api_version='', os_object_api_version='', os_p
roject_id=None, os_project_name=None, os_volume_api_version='', passcode='', password='***', project_domain_id='', project_domain_name='', project_id='', project_n
ame='', protocol='', redirect_uri='', region_name='', timing=False, token='***', trust_id=
@FlorianOtel
FlorianOtel / nova --debug boot...
Created October 20, 2016 13:29
K8S proxy issue
DEBUG (client:85) GET call to compute for http://nova-controller.nova-controller.svc:8774/v2.1/31f4fe32527845d58843d54c0f11b21b/flavors/1 used request id req-56c48c0d-0534-4432-8336-73917bcda14c
DEBUG (session:342) REQ: curl -g -i -X POST http://nova-controller.nova-controller.svc:8774/v2.1/31f4fe32527845d58843d54c0f11b21b/servers -H "User-Agent: python-novaclient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-OpenStack-Nova-API-Version: 2.25" -H "X-Auth-Token: {SHA1}ba37a2eca98d820636893eecb00423a99d52010d" -d '{"server": {"name": "cirros3", "imageRef": "3dd9114e-e31c-473c-8016-dec0c53ae78c", "flavorRef": "1", "max_count": 1, "min_count": 1, "networks": [{"uuid": "228dddba-a2ee-4701-9e8a-8bad5e1d5b6e"}], "security_groups": [{"name": "default"}]}}'
DEBUG (connectionpool:401) "POST /v2.1/31f4fe32527845d58843d54c0f11b21b/servers HTTP/1.1" 500 224
DEBUG (session:371) RESP: [500] X-Openstack-Nova-Api-Version: 2.25 Vary: X-OpenStack-Nova-API-Version Content-Type: application/json; charse
[Wed Oct 12 12:41:51.490070 2016] [:error] [pid 444:tid 140316650141440] Login successful for user "admin".
[Wed Oct 12 12:41:52.641339 2016] [:error] [pid 444:tid 140316650141440] Call to list enabled services failed. This is likely due to a problem communicating with the Neutron endpoint. Load Balancers panel will not be displayed.
[Wed Oct 12 12:41:52.641722 2016] [:error] [pid 444:tid 140316650141440] Call to list enabled services failed. This is likely due to a problem communicating with the Neutron endpoint. Firewalls panel will not be displayed.
[Wed Oct 12 12:41:52.641955 2016] [:error] [pid 444:tid 140316650141440] Call to list enabled services failed. This is likely due to a problem communicating with the Neutron endpoint. VPN panel will not be displayed.
[Wed Oct 12 12:41:52.642920 2016] [:error] [pid 444:tid 140316650141440] Call to list supported extensions failed. This is likely due to a problem communicating with the Nova endpoint. Host Aggregates panel will not be displayed.
[Wed Oct 12 12:42: