modfieid to include mitaka support with xenial 75/13875/1
authorNarinder Gupta <narinder.gupta@canonical.com>
Tue, 10 May 2016 21:26:28 +0000 (15:26 -0600)
committerNarinder Gupta <narinder.gupta@canonical.com>
Tue, 10 May 2016 21:27:08 +0000 (15:27 -0600)
Change-Id: I39c760cff8db709237ff73f83bfce41e58ecfcb1
Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
ci/00-bootstrap.sh
ci/01-deploybundle.sh
ci/nosdn/fetch-charms.sh
ci/nosdn/juju-deployer/ovs-nosdn-ha.yaml
ci/nosdn/juju-deployer/ovs-nosdn-nonha.yaml
ci/nosdn/juju-deployer/ovs-nosdn-tip.yaml
ci/odl/fetch-charms.sh
ci/odl/juju-deployer/ovs-odl-ha.yaml
ci/odl/juju-deployer/ovs-odl-nonha.yaml
ci/odl/juju-deployer/ovs-odl-tip.yaml

index 961626b..375faa7 100755 (executable)
@@ -6,7 +6,8 @@ set -ex
 
 juju bootstrap --debug --to bootstrap.maas
 sleep 5
-juju deploy juju-gui --to 0
+#disable juju gui until xenial charms are in charm store.
+#juju deploy juju-gui --to 0
 
 JUJU_REPOSITORY=
 juju set-constraints tags=
index 6640ef0..2d6dc52 100755 (executable)
@@ -7,8 +7,8 @@ set -ex
     #copy and download charms
     cp $4/fetch-charms.sh ./fetch-charms.sh
     #modify the ubuntu series wants to deploy
-    sed -i -- "s|trusty|$6|g" ./fetch-charms.sh
-    sh ./fetch-charms.sh
+    sed -i -- "s|distro=trusty|distro=$6|g" ./fetch-charms.sh
+    sh ./fetch-charms.sh $6
 
 
 case "$1" in
@@ -31,8 +31,16 @@ esac
 #changing the target to the openstack release we want to deploy. 
 sed -i -- "s|mitaka|$2|g" ./bundles.yaml
 
-#changing the target to the ubuntu distro we want to deploy. 
-sed -i -- "s|trusty|$6|g" ./bundles.yaml
+#update source if trusty is target distribution
+case "$6" in
+    'trusty' )
+        sed -i -- "s|#source|source|g" ./bundles.yaml
+        ;;
+    'xenial' )
+        #changing the target to the ubuntu distro we want to deploy. 
+        sed -i -- "s|trusty|$6|g" ./bundles.yaml
+        ;;
+esac
 
 case "$3" in
     'orangepod1' )
index 1c1074e..2f6371a 100755 (executable)
@@ -1,26 +1,28 @@
 #!/bin/sh -ex
 
-distro=trusty
+distro=$1
 mkdir -p $distro
 
 # openstack
-bzr branch lp:~openstack-charmers/charms/$distro/ceilometer/next $distro/ceilometer
-bzr branch lp:~openstack-charmers/charms/$distro/ceilometer-agent/next $distro/ceilometer-agent
-bzr branch lp:~openstack-charmers/charms/$distro/ceph/next $distro/ceph
-bzr branch lp:~openstack-charmers/charms/$distro/ceph-osd/next $distro/ceph-osd
-bzr branch lp:~openstack-charmers/charms/$distro/ceph-radosgw/next $distro/ceph-radosgw
-bzr branch lp:~openstack-charmers/charms/$distro/cinder/next $distro/cinder
-bzr branch lp:~openstack-charmers/charms/$distro/cinder-ceph/next $distro/cinder-ceph
-bzr branch lp:~openstack-charmers/charms/$distro/glance/next $distro/glance
-bzr branch lp:~narindergupta/charms/$distro/promise/trunk $distro/promise
-bzr branch lp:~openstack-charmers/charms/$distro/keystone/next $distro/keystone
-bzr branch lp:~openstack-charmers/charms/$distro/percona-cluster/next $distro/percona-cluster
-bzr branch lp:~openstack-charmers/charms/$distro/neutron-api/next $distro/neutron-api
-bzr branch lp:~openstack-charmers/charms/$distro/neutron-gateway/next $distro/neutron-gateway
-bzr branch lp:~openstack-charmers/charms/$distro/neutron-openvswitch/next $distro/neutron-openvswitch
-bzr branch lp:~openstack-charmers/charms/$distro/nova-cloud-controller/next $distro/nova-cloud-controller
-bzr branch lp:~openstack-charmers/charms/$distro/nova-compute/next $distro/nova-compute
-bzr branch lp:~openstack-charmers/charms/$distro/openstack-dashboard/next $distro/openstack-dashboard
-bzr branch lp:~openstack-charmers/charms/$distro/rabbitmq-server/next $distro/rabbitmq-server
-bzr branch lp:~openstack-charmers/charms/$distro/hacluster/next $distro/hacluster
-bzr branch lp:~openstack-charmers/charms/$distro/heat/next $distro/heat
+bzr branch lp:~openstack-charmers/charms/trusty/ceilometer/next $distro/ceilometer
+bzr branch lp:~openstack-charmers/charms/trusty/ceilometer-agent/next $distro/ceilometer-agent
+bzr branch lp:~openstack-charmers/charms/trusty/ceph/next $distro/ceph
+bzr branch lp:~openstack-charmers/charms/trusty/ceph-osd/next $distro/ceph-osd
+bzr branch lp:~openstack-charmers/charms/trusty/ceph-radosgw/next $distro/ceph-radosgw
+bzr branch lp:~openstack-charmers/charms/trusty/cinder/next $distro/cinder
+bzr branch lp:~openstack-charmers/charms/trusty/cinder-ceph/next $distro/cinder-ceph
+bzr branch lp:~openstack-charmers/charms/trusty/glance/next $distro/glance
+bzr branch lp:~narindergupta/charms/trusty/promise/trunk $distro/promise
+bzr branch lp:~openstack-charmers/charms/trusty/keystone/next $distro/keystone
+bzr branch lp:~openstack-charmers/charms/trusty/percona-cluster/next $distro/percona-cluster
+bzr branch lp:~openstack-charmers/charms/trusty/neutron-api/next $distro/neutron-api
+bzr branch lp:~openstack-charmers/charms/trusty/neutron-gateway/next $distro/neutron-gateway
+bzr branch lp:~openstack-charmers/charms/trusty/neutron-openvswitch/next $distro/neutron-openvswitch
+bzr branch lp:~openstack-charmers/charms/trusty/nova-cloud-controller/next $distro/nova-cloud-controller
+bzr branch lp:~openstack-charmers/charms/trusty/nova-compute/next $distro/nova-compute
+bzr branch lp:~openstack-charmers/charms/trusty/openstack-dashboard/next $distro/openstack-dashboard
+bzr branch lp:~openstack-charmers/charms/trusty/rabbitmq-server/next $distro/rabbitmq-server
+bzr branch lp:~openstack-charmers/charms/trusty/hacluster/next $distro/hacluster
+bzr branch lp:~openstack-charmers/charms/trusty/heat/next $distro/heat
+bzr branch lp:~billy-olsen/charms/xenial/mongodb/trunk $distro/mongodb
+bzr branch lp:~openstack-charmers-next/charms/xenial/ntp/trunk $distro/ntp
index 2084630..91c55ea 100644 (file)
@@ -11,7 +11,7 @@ openstack-phase1:
       num_units: 2
       constraints: tags=compute
     ntp: 
-      charm: "cs:trusty/ntp"
+      charm: "local:trusty/ntp"
   relations:
     - - "ntp:juju-info"
       - "nodes-api:juju-info"
@@ -87,7 +87,6 @@ openstack-phase2:
         - "lxc:nodes-api=1"
     opnfv-promise:
       charm: local:trusty/promise
-      num_units: 1
       to:
         - "lxc:nodes-api=2"
     keystone:
@@ -103,7 +102,7 @@ openstack-phase2:
         - "lxc:nodes-api=1"
         - "lxc:nodes-api=2"
     mongodb:
-      charm: cs:trusty/mongodb
+      charm: local:trusty/mongodb
       num_units: 1
       to:
         - "lxc:nodes-api=0"
@@ -331,7 +330,7 @@ trusty-mitaka:
     #l2-population: true
     #ext-port: "eth1"
     region: Canonical
-    source: "cloud:trusty-mitaka"
+    #source: "cloud:trusty-mitaka"
     openstack-origin: "cloud:trusty-mitaka"
     series: trusty
     ceph-osd-replication-count: 2
index b078b30..f4e73bb 100644 (file)
@@ -11,7 +11,7 @@ openstack-phase1:
       num_units: 2
       constraints: tags=compute
     ntp: 
-      charm: "cs:trusty/ntp"
+      charm: "local:trusty/ntp"
   relations:
     - - "ntp:juju-info"
       - "nodes-api:juju-info"
@@ -79,7 +79,6 @@ openstack-phase2:
         - "lxc:nodes-api=0"
     opnfv-promise:
       charm: local:trusty/promise
-      num_units: 1
       to:
         - "lxc:nodes-api=0"
     keystone:
@@ -92,8 +91,7 @@ openstack-phase2:
       to:
         - "lxc:nodes-api=0"
     mongodb:
-      charm: cs:trusty/mongodb
-      num_units: 1
+      charm: local:trusty/mongodb
       to:
         - "lxc:nodes-api=0"
     mysql:
@@ -267,7 +265,7 @@ trusty-mitaka:
     #l2-population: true
     #ext-port: "eth1"
     region: Canonical
-    source: "cloud:trusty-mitaka"
+    #source: "cloud:trusty-mitaka"
     openstack-origin: "cloud:trusty-mitaka"
     series: trusty
     ceph-osd-replication-count: 2
index e8c560b..ce2f25d 100644 (file)
@@ -11,7 +11,7 @@ openstack-phase1:
       num_units: 2
       constraints: tags=compute
     ntp:
-      charm: "cs:trusty/ntp"
+      charm: "local:trusty/ntp"
   relations:
     - - "ntp:juju-info"
       - "nodes-api:juju-info"
@@ -36,7 +36,7 @@ openstack-phase2:
     ceilometer-agent:
       charm: "local:trusty/ceilometer-agent"
     mongodb:
-      charm: "cs:trusty/mongodb"
+      charm: "local:trusty/mongodb"
       num_units: 1
       to:
         - "lxc:nodes-api=0"
@@ -155,7 +155,6 @@ openstack-phase2:
         - "lxc:nodes-api=0"
     opnfv-promise:
       charm: local:trusty/promise
-      num_units: 1
       to:
         - "lxc:nodes-api=0"
     neutron-openvswitch:
@@ -265,7 +264,7 @@ trusty-mitaka:
     #l2-population: true
     #ext-port: "eth1"
     region: Canonical
-    source: "cloud:trusty-mitaka"
+    #source: "cloud:trusty-mitaka"
     openstack-origin: "cloud:trusty-mitaka"
     series: trusty
     ceph-osd-replication-count: 2
index a1b7304..c541df4 100755 (executable)
@@ -1,32 +1,34 @@
 #!/bin/sh -ex
 
-distro=trusty
+distro=$1
 mkdir -p $distro
 
 # openstack
-bzr branch lp:~openstack-charmers/charms/$distro/ceilometer/next $distro/ceilometer
-bzr branch lp:~openstack-charmers/charms/$distro/ceilometer-agent/next $distro/ceilometer-agent
-bzr branch lp:~openstack-charmers/charms/$distro/ceph/next $distro/ceph
-bzr branch lp:~openstack-charmers/charms/$distro/ceph-osd/next $distro/ceph-osd
-bzr branch lp:~openstack-charmers/charms/$distro/ceph-radosgw/next $distro/ceph-radosgw
-bzr branch lp:~openstack-charmers/charms/$distro/cinder/next $distro/cinder
-bzr branch lp:~openstack-charmers/charms/$distro/cinder-ceph/next $distro/cinder-ceph
-bzr branch lp:~openstack-charmers/charms/$distro/glance/next $distro/glance
-bzr branch lp:~narindergupta/charms/$distro/promise/trunk $distro/promise
-bzr branch lp:~openstack-charmers/charms/$distro/keystone/next $distro/keystone
-bzr branch lp:~openstack-charmers/charms/$distro/percona-cluster/next $distro/percona-cluster
-bzr branch lp:~openstack-charmers/charms/$distro/neutron-api/next $distro/neutron-api
-bzr branch lp:~openstack-charmers/charms/$distro/neutron-gateway/next $distro/neutron-gateway
-bzr branch lp:~openstack-charmers/charms/$distro/neutron-openvswitch/next $distro/neutron-openvswitch
-bzr branch lp:~openstack-charmers/charms/$distro/nova-cloud-controller/next $distro/nova-cloud-controller
-bzr branch lp:~openstack-charmers/charms/$distro/nova-compute/next $distro/nova-compute
-bzr branch lp:~openstack-charmers/charms/$distro/openstack-dashboard/next $distro/openstack-dashboard
-bzr branch lp:~openstack-charmers/charms/$distro/rabbitmq-server/next $distro/rabbitmq-server
-bzr branch lp:~openstack-charmers/charms/$distro/hacluster/next $distro/hacluster
-bzr branch lp:~openstack-charmers/charms/$distro/heat/next $distro/heat
+bzr branch lp:~openstack-charmers/charms/trusty/ceilometer/next $distro/ceilometer
+bzr branch lp:~openstack-charmers/charms/trusty/ceilometer-agent/next $distro/ceilometer-agent
+bzr branch lp:~openstack-charmers/charms/trusty/ceph/next $distro/ceph
+bzr branch lp:~openstack-charmers/charms/trusty/ceph-osd/next $distro/ceph-osd
+bzr branch lp:~openstack-charmers/charms/trusty/ceph-radosgw/next $distro/ceph-radosgw
+bzr branch lp:~openstack-charmers/charms/trusty/cinder/next $distro/cinder
+bzr branch lp:~openstack-charmers/charms/trusty/cinder-ceph/next $distro/cinder-ceph
+bzr branch lp:~openstack-charmers/charms/trusty/glance/next $distro/glance
+bzr branch lp:~narindergupta/charms/trusty/promise/trunk $distro/promise
+bzr branch lp:~openstack-charmers/charms/trusty/keystone/next $distro/keystone
+bzr branch lp:~openstack-charmers/charms/trusty/percona-cluster/next $distro/percona-cluster
+bzr branch lp:~openstack-charmers/charms/trusty/neutron-api/next $distro/neutron-api
+bzr branch lp:~openstack-charmers/charms/trusty/neutron-gateway/next $distro/neutron-gateway
+bzr branch lp:~openstack-charmers/charms/trusty/neutron-openvswitch/next $distro/neutron-openvswitch
+bzr branch lp:~openstack-charmers/charms/trusty/nova-cloud-controller/next $distro/nova-cloud-controller
+bzr branch lp:~openstack-charmers/charms/trusty/nova-compute/next $distro/nova-compute
+bzr branch lp:~openstack-charmers/charms/trusty/openstack-dashboard/next $distro/openstack-dashboard
+bzr branch lp:~openstack-charmers/charms/trusty/rabbitmq-server/next $distro/rabbitmq-server
+bzr branch lp:~openstack-charmers/charms/trusty/hacluster/next $distro/hacluster
+bzr branch lp:~openstack-charmers/charms/trusty/heat/next $distro/heat
+bzr branch lp:~billy-olsen/charms/xenial/mongodb/trunk $distro/mongodb
+bzr branch lp:~openstack-charmers-next/charms/xenial/ntp/trunk $distro/ntp
 
 #controller specific charm
-bzr branch lp:~openstack-charmers/charms/$distro/odl-controller/next $distro/odl-controller
-bzr branch lp:~openstack-charmers/charms/$distro/neutron-api-odl/next $distro/neutron-api-odl
-bzr branch lp:~openstack-charmers/charms/$distro/openvswitch-odl/trunk $distro/openvswitch-odl
+bzr branch lp:~openstack-charmers/charms/trusty/odl-controller/next $distro/odl-controller
+bzr branch lp:~openstack-charmers/charms/trusty/neutron-api-odl/next $distro/neutron-api-odl
+bzr branch lp:~openstack-charmers/charms/trusty/openvswitch-odl/trunk $distro/openvswitch-odl
 
index 67fec0d..7324224 100644 (file)
@@ -11,7 +11,7 @@ openstack-phase1:
       num_units: 2
       constraints: tags=compute
     ntp:
-      charm: "cs:trusty/ntp"
+      charm: "local:trusty/ntp"
   relations:
     - - "ntp:juju-info"
       - "nodes-api:juju-info"
@@ -82,7 +82,7 @@ openstack-phase2:
     ceilometer-agent:
       charm: "local:trusty/ceilometer-agent"
     mongodb:
-      charm: "cs:trusty/mongodb"
+      charm: "local:trusty/mongodb"
       num_units: 1
       to:
         - "lxc:nodes-api=0"
@@ -244,7 +244,6 @@ openstack-phase2:
         - "lxc:nodes-api=2"
     opnfv-promise:
       branch: lp:~narindergupta/charms/trusty/promise/trunk
-      num_units: 1
       to:
         - "lxc:nodes-api=2"
     neutron-api-odl:
@@ -442,7 +441,7 @@ trusty-mitaka:
     #l2-population: true
     #ext-port: "eth1"
     region: Canonical
-    source: "cloud:trusty-mitaka"
+    #source: "cloud:trusty-mitaka"
     openstack-origin: "cloud:trusty-mitaka"
     series: trusty
     ceph-osd-replication-count: 2
index 9220f84..dca4328 100644 (file)
@@ -11,7 +11,7 @@ openstack-phase1:
       num_units: 2
       constraints: tags=compute
     ntp: 
-      charm: "cs:trusty/ntp"
+      charm: "local:trusty/ntp"
   relations:
     - - "ntp:juju-info"
       - "nodes-api:juju-info"
@@ -36,7 +36,7 @@ openstack-phase2:
     ceilometer-agent:
       charm: "local:trusty/ceilometer-agent"
     mongodb:
-      charm: "cs:trusty/mongodb"
+      charm: "local:trusty/mongodb"
       num_units: 1
       to:
         - "lxc:nodes-api=0"
@@ -162,7 +162,6 @@ openstack-phase2:
         - "lxc:nodes-api=0"
     opnfv-promise:
       branch: lp:~narindergupta/charms/trusty/promise/trunk
-      num_units: 1
       to:
         - "lxc:nodes-api=0"
     neutron-api-odl:
@@ -279,7 +278,7 @@ trusty-mitaka:
     #l2-population: true
     #ext-port: "eth1"
     region: Canonical
-    source: "cloud:trusty-mitaka"
+    #source: "cloud:trusty-mitaka"
     openstack-origin: "cloud:trusty-mitaka"
     series: trusty
     ceph-osd-replication-count: 2
index 8c309c5..d9b7117 100644 (file)
@@ -11,7 +11,7 @@ openstack-phase1:
       num_units: 2
       constraints: tags=compute
     ntp:
-      charm: "cs:trusty/ntp"
+      charm: "local:trusty/ntp"
   relations:
     - - "ntp:juju-info"
       - "nodes-api:juju-info"
@@ -36,7 +36,7 @@ openstack-phase2:
     ceilometer-agent:
       charm: "local:trusty/ceilometer-agent"
     mongodb:
-      charm: "cs:trusty/mongodb"
+      charm: "local:trusty/mongodb"
       num_units: 1
       to:
         - "lxc:nodes-api=0"
@@ -164,7 +164,6 @@ openstack-phase2:
         - "lxc:nodes-api=0"
     opnfv-promise:
       branch: lp:~narindergupta/charms/trusty/promise/trunk
-      num_units: 1
       to:
         - "lxc:nodes-api=0"
     neutron-api-odl:
@@ -281,7 +280,7 @@ trusty-mitaka:
     #l2-population: true
     #ext-port: "eth1"
     region: Canonical
-    source: "cloud:trusty-mitaka"
+    #source: "cloud:trusty-mitaka"
     openstack-origin: "cloud:trusty-mitaka"
     series: trusty
     ceph-osd-replication-count: 2