Allow container template to recognize an update
authorRyan Hallisey <rhallise@redhat.com>
Fri, 8 Jan 2016 17:25:58 +0000 (12:25 -0500)
committerRyan Hallisey <rhallise@redhat.com>
Wed, 20 Jan 2016 12:39:34 +0000 (12:39 +0000)
The deployment resource looks for a change in name when
running an update.  If there is no change in containers,
docker will recognize that and the deployment will return.
If there is a new available container, docker will swap out
the old running container for a new one.

Change-Id: I60d45b5ef45714e6e0140dfc80c14d6a12701f32

docker/compute-post.yaml

index 82572e7..8f9e962 100644 (file)
@@ -191,7 +191,6 @@ resources:
             list_join:
             - '/'
             - [ {get_param: DockerNamespace}, {get_param: DockerOvsVswitchdImage} ]
-          container_name: ovs-vswitchd
           net: host
           privileged: true
           restart: always
@@ -207,7 +206,6 @@ resources:
             list_join:
             - '/'
             - [ {get_param: DockerNamespace}, {get_param: DockerOpenvswitchDBImage} ]
-          container_name: ovsdb-server
           net: host
           restart: always
           volumes:
@@ -265,7 +263,6 @@ resources:
             list_join:
             - '/'
             - [ {get_param: DockerNamespace}, {get_param: DockerLibvirtImage} ]
-          container_name: libvirt
           net: host
           pid: host
           privileged: true
@@ -299,7 +296,6 @@ resources:
             list_join:
             - '/'
             - [ {get_param: DockerNamespace}, {get_param: DockerOpenvswitchImage} ]
-          container_name: openvswitch
           net: host
           privileged: true
           restart: always
@@ -320,7 +316,6 @@ resources:
             list_join:
             - '/'
             - [ {get_param: DockerNamespace}, {get_param: DockerOpenvswitchImage} ]
-          container_name: neutronagent
           net: host
           pid: host
           privileged: true
@@ -345,7 +340,6 @@ resources:
             list_join:
             - '/'
             - [ {get_param: DockerNamespace}, {get_param: DockerComputeImage} ]
-          container_name: novacompute
           net: host
           privileged: true
           restart: always