Since the plugin has been merged upstream, this repository is deprecated!
Please go to: https://github.com/openstack/heat/tree/master/contrib/heat_docker
Orchestrate Docker containers with OpenStack Heat
License: Apache License 2.0
Since the plugin has been merged upstream, this repository is deprecated!
Please go to: https://github.com/openstack/heat/tree/master/contrib/heat_docker
Steps to reproduce ( >= Docker 0.6.5 and its recent changes regarding port redirects) :
heat stack-create wordpresstest -f wordpress_mysql.yml
Getting create_failed status :
Resource create failed: StackValidationFailed: Property error : Blog: Env 'NoneType' object has no attribute '__getitem__'
The cause:
Created Container (samalba/mysql) has the following properties when inspecting
"PortMapping": null,
"Ports": {
"3306/tcp": null
}
Failing at line 144 of docker_container.py (PortMapping being null) when creating the second container
tcp = ','.join(networkinfo['PortMapping']['Tcp'].values())
Hi,
We just tried to install the plugin to our Icehouse (upgraded from Havana lately) environment. When the heat engine is restarted, we encountered the issues below (excerpt from the heat-engine.log).
2014-06-11 03:40:48.799 18036 TRACE heat File "/usr/lib64/python2.6/pkgutil.py", line 238, in load_module
2014-06-11 03:40:48.799 18036 TRACE heat mod = imp.load_module(fullname, self.file, self.filename, self.etc)
2014-06-11 03:40:48.799 18036 TRACE heat File "/usr/local/c7-openstack/heat/contrib/docker/docker/resources/docker_container.py", line 35, in
2014-06-11 03:40:48.799 18036 TRACE heat class DockerContainer(resource.Resource):
2014-06-11 03:40:48.799 18036 TRACE heat File "/usr/local/c7-openstack/heat/contrib/docker/docker/resources/docker_container.py", line 153, in DockerContainer
2014-06-11 03:40:48.799 18036 TRACE heat INFO: attributes.Schema(
2014-06-11 03:40:48.799 18036 TRACE heat AttributeError: 'module' object has no attribute 'Schema'
2014-06-11 03:40:48.799 18036 TRACE heat
2014-06-11 03:49:49.533 18407 WARNING heat.common.config [-] The "instance_user" option in heat.conf is deprecated and will be removed in the Juno release.
2014-06-11 03:49:49.649 18407 CRITICAL heat [-] AttributeError: 'module' object has no attribute 'add_metaclass'
2014-06-11 03:49:49.649 18407 TRACE heat Traceback (most recent call last):
2014-06-11 03:49:49.649 18407 TRACE heat File "/usr/bin/heat-engine", line 63, in
2014-06-11 03:49:49.649 18407 TRACE heat from heat.engine import service as engine
2014-06-11 03:49:49.649 18407 TRACE heat File "/usr/lib/python2.6/site-packages/heat/engine/service.py", line 26, in
2014-06-11 03:49:49.649 18407 TRACE heat from heat.common import context
2014-06-11 03:49:49.649 18407 TRACE heat File "/usr/lib/python2.6/site-packages/heat/common/context.py", line 18, in
2014-06-11 03:49:49.649 18407 TRACE heat from heat.common import policy
2014-06-11 03:49:49.649 18407 TRACE heat File "/usr/lib/python2.6/site-packages/heat/common/policy.py", line 25, in
2014-06-11 03:49:49.649 18407 TRACE heat from heat.openstack.common import policy
2014-06-11 03:49:49.649 18407 TRACE heat File "/usr/lib/python2.6/site-packages/heat/openstack/common/policy.py", line 280, in
2014-06-11 03:49:49.649 18407 TRACE heat @six.add_metaclass(abc.ABCMeta)
2014-06-11 03:49:49.649 18407 TRACE heat AttributeError: 'module' object has no attribute 'add_metaclass'
2014-06-11 03:49:49.649 18407 TRACE heat
Any suggestion? Thanks!
Steve
git clone command must come before pip command in step 2.
Hi,
I have a havana docker setup on centos 6.4 (not devstack)
I have cloned the git respository and linked the plugin folder into /usr/lib/python2.6/site-packages/heat/docker/
After I have restart all heat services. When I try to import a template I get following error:
ERROR: Unknown resource Type : OS::Heat::Docker
It seems like the plugin will not be picked up.
Any help will be appreciated
thank you,
Daniel
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.