Skip to content

jtopjian/grizzly-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker Driver on Grizzly

This repository contains files and instructions to get the OpenStack Docker driver working on Grizzly.

Notes:

  • This is not official OpenStack code. This is simply something I was tinkering with was able to successfully get working in my environment.
  • I'm using nova-network and VlanManager so the networking changes are specific toward that type of configuration.

Files

  • driver.py needs to replace the nova/virt/docker/driver.py file. A patch is included to more clearly see the changes that were made.
  • images.py needs to replace the glance/api/v1/images.py file. A patch is also included.

Getting Docker to Work

The above-linked wiki entry does a great job at explaining how this driver works. In addition, I found the following resources helpful:

Host Aggregates

By creating a Host Aggregate, you can designate a group of compute nodes to host Docker containers while having the rest of your compute nodes use your original hypervisor. OpenStack Docs, as usual, does an excellent job at explaining Host Aggregates and how to use them. For Docker:

Configure nova-scheduler:

$ grep scheduler_default_filters /etc/nova/nova.conf
scheduler_default_filters=AggregateInstanceExtraSpecsFilter,AvailabilityZoneFilter,RamFilter,ComputeFilter

Create a Host Aggregate:

$ nova aggregate-create docker nova
$ nova aggregate-set-metadata 1 docker=true
$ nova aggregate-add-host 1 node1.example.com

Now create a flavor and tie it to the aggregate:

$ nova flavor-create d1.tiny 500 1024 5 1
$ nova-manage instance_type set_key --name=d1.tiny --key=docker --value=true

Launching instances of type d1.tiny will cause OpenStack to launch the instance on node1.example.com only.

About

OpenStack Docker driver on Grizzly

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages