Skip to content

Instantly share code, notes, and snippets.

View danehans's full-sized avatar

Daneyon Hansen danehans

View GitHub Profile
# docker version
Client version: 1.7.1.fc21
Client API version: 1.19
Package Version (client): docker-io-1.7.1-2.git33de319.fc21.x86_64
Go version (client): go1.4.2
Git commit (client): 33de319/1.7.1
OS/Arch (client): linux/amd64
Server version: 1.7.1.fc21
Server API version: 1.19
Package Version (server): docker-io-1.7.1-2.git33de319.fc21.x86_64
2015-10-06 20:22:33.679 ERROR oslo_db.sqlalchemy.exc_filters [-] DBAPIError exception wrapped from (pymysql.err.InternalError) (1054, u"Unknown column 'container.memory' in 'field list'") [SQL: u'SELECT count(*) AS count_1 \nFROM (SELECT container.created_at AS container_created_at, container.updated_at AS container_updated_at, container.id AS container_id, container.project_id AS container_project_id, container.user_id AS container_user_id, container.uuid AS container_uuid, container.name AS container_name, container.image AS container_image, container.command AS container_command, container.bay_uuid AS container_bay_uuid, container.status AS container_status, container.memory AS container_memory \nFROM container) AS anon_1']
2015-10-06 20:22:33.679 TRACE oslo_db.sqlalchemy.exc_filters Traceback (most recent call last):
2015-10-06 20:22:33.679 TRACE oslo_db.sqlalchemy.exc_filters File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1139, in _execute_context
2015-10-06 20:22:33.679
@danehans
danehans / gist:c3affc88ed9fe56a1efe
Created October 8, 2015 15:56
magnum bay failure reporting
$ heat stack-show swarm-mq4od7wpiqxc
+-----------------------+------------------------------------------------------------------------------------------------------------------------------------+
| Property | Value |
+-----------------------+------------------------------------------------------------------------------------------------------------------------------------+
| capabilities | [] |
.... |
| stack_name | swarm-mq4od7wpiqxc |
| stack_owner | None
@danehans
danehans / gist:b744da321989864b00e5
Created October 9, 2015 21:59
Swarm CNM Testing
It would also be a big help if you could cherry pick the patch and test it in your lab env:
https://review.openstack.org/#/c/224367/8
You should be able to create a baymodel that uses coe=swarm.
You can either not specify a network-driver or network-driver=flannel when creating the baymodel.
You can also pass the same labels that you do with k8s to change flannel default configs:
Example:
magnum --debug baymodel-create --name swarm --image-id fedora-21-atomic-3 --keypair-id your_kp \
--external-network-id public --dns-nameserver 8.8.8.8 --flavor-id m1.small --coe swarm \
--docker-volume-size 2 --network-driver flannel \
@danehans
danehans / gist:54d8999f92996623ed83
Last active October 12, 2015 21:26
kolla interfaces
Mgt:
NAME=enp15s0
TYPE=Ethernet
BOOTPROTO=none
ONBOOT=yes
IPV4_FAILURE_FATAL=no
UUID=cea61b61-ef12-4c7c-a0cc-e94ee18caa87
HWADDR=A4:4C:11:13:A7:F2
Neutron:
@danehans
danehans / git log
Last active October 14, 2015 19:38
swarm-troubleshooting
#paste in here
$ git log --oneline
adc909a Updates Swarm Heat Templates for Container Network Model
fd2e760 Baymodel create should allow no network_driver specified
98f915a Merge "Pull metrics by using TLS enabled client"
# systemctl status swarm-manager.service -l
● swarm-manager.service - Swarm Manager
Loaded: loaded (/etc/systemd/system/swarm-manager.service; enabled)
@danehans
danehans / gist:d8e3e884158dcf334b3e
Last active October 19, 2015 04:09
netplugin magnum
# my setup is 2 nodes, a kube master running kube-api/schedule/controller-mgr/docker/etcd
# and a minion running docker/kubelet/proxy
# Note: I was able to successfully instantiate pods/services prior to netplugin changes
#kubelet now starts with netplugin
# systemctl status kubelet.service -l
● kubelet.service - Kubernetes Kubelet Server
Loaded: loaded (/usr/lib/systemd/system/kubelet.service; enabled)
Active: active (running) since Sun 2015-10-18 20:14:45 UTC; 23min ago
Docs: https://github.com/GoogleCloudPlatform/kubernetes
@danehans
danehans / gist:137f295285fecff4784f
Last active October 19, 2015 19:51
magnum swarm cnm testing
# kubelet config
[Unit]
Description=Kubernetes Kubelet Server
Documentation=https://github.com/GoogleCloudPlatform/kubernetes
After=docker.service
Requires=docker.service
[Service]
WorkingDirectory=/var/lib/kubelet
@danehans
danehans / gist:e113c3a69195f7571ce4
Created October 19, 2015 20:31
magnum k8s flannel cnm example
$ magnum --debug baymodel-create --name test123 --image-id fedora-21-atomic-6 \
--keypair-id test --external-network-id public --dns-nameserver 1.1.1.1 \
--flavor-id m1.small --coe kubernetes --docker-volume-size 2 \
--labels flannel_use_vxlan=true,flannel_network_subnetlen=26,flannel_network_cidr=1.1.0.0/16
$ magnum baymodel-show test123
+---------------------+--------------------------------------------------------------------------------------------------------+
| Property | Value |
+---------------------+--------------------------------------------------------------------------------------------------------+
| http_proxy | None |
@danehans
danehans / gist:dcf4e759fc21be5bf39f
Created January 28, 2016 23:34
devstack for magnum
$ cat local.conf
[[local|localrc]]
VOLUME_BACKING_FILE_SIZE=100G
#GLANCE_BRANCH=1.0.0.0b1
#GLANCE_BRANCH=2015.1.2
#NOVA_BRANCH=2015.1.2
#KEYSTONE_BRANCH=2015.1.2
#HEAT_BRANCH=2015.1.2
#CINDER_BRANCH=2015.1.2
#HORIZON_BRANCH=2015.1.2