diff options
author | Narinder Gupta <narinder.gupta@canonical.com> | 2016-06-27 14:58:31 -0500 |
---|---|---|
committer | Narinder Gupta <narinder.gupta@canonical.com> | 2016-06-27 14:59:16 -0500 |
commit | b58f01b1b21427d16bc9a991704884ef7421cc90 (patch) | |
tree | 57855f479212ac1cb8249c0f9c4497d420a2d17c /ci | |
parent | 7c34d298ecd10989c94e2a08b1e073a20fadf349 (diff) |
modfied to include the os qualified domain name for public API.
Change-Id: If169aab5f81fc0b6a112068066815e194f8f9e36
Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
Diffstat (limited to 'ci')
-rwxr-xr-x | ci/01-deploybundle.sh | 5 | ||||
-rw-r--r-- | ci/deploy.py | 4 | ||||
-rw-r--r-- | ci/nosdn/juju-deployer/ovs-nosdn-ha.yaml | 50 | ||||
-rw-r--r-- | ci/nosdn/juju-deployer/ovs-nosdn-nonha.yaml | 3 | ||||
-rw-r--r-- | ci/nosdn/juju-deployer/ovs-nosdn-tip.yaml | 1 | ||||
-rw-r--r-- | ci/odl/juju-deployer/ovs-odl-ha.yaml | 14 | ||||
-rw-r--r-- | ci/odl/juju-deployer/ovs-odl-nonha.yaml | 2 | ||||
-rw-r--r-- | ci/odl/juju-deployer/ovs-odl-tip.yaml | 1 | ||||
-rw-r--r-- | ci/onos/juju-deployer/ovs-onos-ha.yaml | 12 | ||||
-rw-r--r-- | ci/onos/juju-deployer/ovs-onos-nonha.yaml | 2 | ||||
-rw-r--r-- | ci/onos/juju-deployer/ovs-onos-tip.yaml | 1 | ||||
-rw-r--r-- | ci/opencontrail/juju-deployer/ovs-opencontrail-ha.yaml | 10 | ||||
-rw-r--r-- | ci/opencontrail/juju-deployer/ovs-opencontrail-nonha.yaml | 1 | ||||
-rw-r--r-- | ci/opencontrail/juju-deployer/ovs-opencontrail-tip.yaml | 1 | ||||
-rwxr-xr-x | ci/openstack.sh | 72 |
15 files changed, 135 insertions, 44 deletions
diff --git a/ci/01-deploybundle.sh b/ci/01-deploybundle.sh index 404dc213..2d35d481 100755 --- a/ci/01-deploybundle.sh +++ b/ci/01-deploybundle.sh @@ -43,6 +43,11 @@ if [ -e ~/.juju/deployment.yaml ]; then sed --i "s@10.4.1.1@$admnet@g" ./bundles.yaml cephdisk=`grep "disk" deployconfig.yaml | cut -d ':' -f 2 | sed -e 's/ //'` sed --i "s@osd-devices: /srv@osd-devices: $cephdisk@g" ./bundles.yaml + osdomname=`grep "os-domain-name" deployconfig.yaml | cut -d ':' -f 2 | sed -e 's/ //'` + if [ "$osdomname" != "''" ]; then + sed --i "s@#os-public-hostname: pod.maas@os-public-hostname: api.$osdomname@g" ./bundles.yaml + sed --i "s@#console-proxy-ip: pod.maas@console-proxy-ip: $osdomname@g" ./bundles.yaml + fi fi fi diff --git a/ci/deploy.py b/ci/deploy.py index 99dce0df..3ec50dca 100644 --- a/ci/deploy.py +++ b/ci/deploy.py @@ -54,7 +54,8 @@ opnfvcfg['demo-maas']={'juju-bootstrap':{'memory': 4096,'name': "bootstrap",\ } opnfvlabcfg['opnfv']={'ext-port':'','floating-ip-range':'','dataNetwork':'','ceph-disk':'/srv/',\ - 'storageNetwork':'','interface-enable':'','publicNetwork':''} + 'storageNetwork':'','interface-enable':'','publicNetwork':'',\ + 'os-domain-name':''} opnfvcfg['demo-maas']['maas']['apt_sources'].append("ppa:maas/stable") opnfvcfg['demo-maas']['maas']['apt_sources'].append("ppa:juju/stable") @@ -214,6 +215,7 @@ opnfvlabcfg["opnfv"]["floating-ip-range"]=labcfg["lab"]["racks"][0]["floating-ip opnfvlabcfg["opnfv"]["ext-port"]=labcfg["lab"]["racks"][0]["ext-port"] opnfvlabcfg["opnfv"]["ceph-disk"]=labcfg["opnfv"]["storage"][0]["disk"] opnfvlabcfg["opnfv"]["interface-enable"]=",".join(list(set(ifnamelist))) +opnfvlabcfg["opnfv"]["os-domain-name"] = labcfg["lab"]["racks"][0]["osdomainname"] with open('deployment.yaml', 'wa') as opnfvf: yaml.dump(opnfvcfg, opnfvf, default_flow_style=False) diff --git a/ci/nosdn/juju-deployer/ovs-nosdn-ha.yaml b/ci/nosdn/juju-deployer/ovs-nosdn-ha.yaml index 9e5c901c..b4ab8bfc 100644 --- a/ci/nosdn/juju-deployer/ovs-nosdn-ha.yaml +++ b/ci/nosdn/juju-deployer/ovs-nosdn-ha.yaml @@ -16,6 +16,8 @@ trusty-mitaka: #ceph-osd-replication-count: 2 admin-role: admin keystone-admin-role: admin + use-internal-endpoints: true + #os-public-hostname: pod.maas openstack-phase1: services: @@ -43,6 +45,12 @@ openstack-phase2: - hacluster-nova:ha - - openstack-dashboard:ha - hacluster-horizon:ha + - - ceilometer:ha + - hacluster-ceilometer:ha + - - cinder:ha + - hacluster-cinder:ha + - - heat:ha + - hacluster-heat:ha - - nova-compute:amqp - rabbitmq-server:amqp - - neutron-gateway:amqp @@ -146,36 +154,62 @@ openstack-phase2: hacluster-keystone: charm: "local:trusty/hacluster" options: + corosync_transport: unicast corosync_key: | 'QisjNpoKHLkvyc3PEdDHP5VZjgD0kOk9t0ABPWmCELlu5AgWgnW6bJd34BVXO7VhW+3ZwNQM3W+bZ3pl28ftY4ki4N/S0KLFNia5egFgiA3AH2QXLnokS7OYXuu6GMJJ1S5mDe6P5zU+tfJe/Mebq24u7CgR0gAvohSPRdDTwdY=' + hacluster-cinder: + charm: "local:trusty/hacluster" + options: + corosync_transport: unicast + corosync_key: | + 'cc6n5Zv6M2mQ2mUhTx/aKoImQ7q77pKDdkSwBUG5VqoSb23SxnGUsAxH5E8lOeCZ84EURzS71FEb8F9P5YY+2deh0+tdXukoKTugdVmJfarahPpWpEEZRRCigUngdFw/479FOcFCkN1SJtQNqWi1ACYSn1/GRoQ2vP+2byrkV6E=' + hacluster-heat: + charm: "local:trusty/hacluster" + options: + corosync_transport: unicast + corosync_key: | + 'tNeFXmOqzytRq7loxLMDaaMqZZXjC7BNfMbcKxSNeIPyBj4lkJwHZyuV7mo0ogzcfVJqLBHBULai+ed9uyWCZJxLXoi+WwTj5AqcXfxfSo9vLCthukJJ4zuKvzeGibZRszwINf32RW9jtXSCPosv8a+9MSg49KD1c9fS20aEuIM=' hacluster-horizon: charm: "local:trusty/hacluster" options: + corosync_transport: unicast corosync_key: | 'aCVPHw6XYne+Hxv0WPiM3+yEfeIxs0Ly0EMKB494Rdzjf5rE52GcXqqxuvIa/nXJ4GCR+UdKk9FEwcASfYkeu3HDWUld9uTE6pOc+ibWYnybNH7VBfEHW8h9YmQKs3HD2T3wlTcS2irU4CUW7/IKNok4etYdM3iFn1K2ReSGXEI=' + hacluster-ceilometer: + charm: "local:trusty/hacluster" + options: + corosync_transport: unicast + corosync_key: | + 'cHkgKGJpdHMgPSA5NjApLgpQcmVzcyBrZXlzIG9uIHlvdXIga2V5Ym9hcmQgdG8gZ2VuZXJhdGUgZW50cm9weSAoYml0cyA9IDEwMDgpLgpXcml0aW5nIGNvcm9zeW5jIGtleSB0byAvZXRjL2Nvcm9zeW5jL2F1dGhrZXkuCg==' hacluster-nova: charm: "local:trusty/hacluster" options: + corosync_transport: unicast corosync_key: | 'gel86qmEze8dYKYbfqIgRpqapJpKtdYL2hxC1y5nWYBPq7EMf6V8mF01IjeUkSRs14CUDrsPpT4PWeom7EOY2fleuLx/aIuqQUfEDkhf/gvaz7BaU4hrmTCoDBK7/HvEwY+/wu4qkEeckzSRPsm9MYzqnLRshh8yjZJ70xU/mmk=' hacluster-neutron: charm: "local:trusty/hacluster" options: + corosync_transport: unicast corosync_key: | 'KNhb4++3jlllbnscS5D3qdzOJDsQPEeZ7zOLZJHbkKrRjX9gRCijVVOiv2JCvq03HqQ7LIufQzWGl9Za8qh0f6QmQ3XhFh/Cb/3WaYFj+tEf0zArWv+8miswmM1z4eyTSrTWBq0dTgx1z96wjBxP5HV0+1LWW+3Ei4oZWyRGeR0=' hacluster-glance: charm: "local:trusty/hacluster" options: + corosync_transport: unicast corosync_key: | 'el1dd8107J5mwQDPS7tEJPZrr0XFfL95+Tku/QG90W5Q5f5SP4W8TRfKvddGmZWZl2lVd1neG5WqaHa1mq/aScJpoflzVAJCvshN7Gd2AjHhLNNugeI8S90j/7wrKUhqiCAlkKaeri2xs5bB5PZ7Z9AHuNZL7SW1al8lxrKhUFI=' hacluster-mysql: charm: "local:trusty/hacluster" options: + corosync_transport: unicast corosync_key: | 'Q29yb3N5bmMgQ2x1c3RlciBFbmdpbmUgQXV0aGVudGljYXRpb24ga2V5IGdlbmVyYXRvci4KR2F0aGVyaW5nIDEwMjQgYml0cyBmb3Iga2V5IGZyb20gL2Rldi9yYW5kb20uClByZXNzIGtleXMgb24geW91ciBrZXlib2FyZCB0byBnZW5lcmF0ZSBlbnRyb3B5LgpQcmVzcyBrZXlzIG9uIHlvdXIga2V5Ym9hcmQgdG8gZ2VuZXJhdGUgZW50cm9weSAoYml0cyA9IDkyMCkuClByZXNzIGtleXMgb24geW91ciBrZXlib2FyZCB0byBnZW5lcmF0ZSBlbnRyb3B5IChiaXRzID0gMTAwMCkuCldyaXRpbmcgY29yb3N5bmMga2V5IHRvIC9ldGMvY29yb3N5bmMvYXV0aGtleS4K' ceilometer: charm: "local:trusty/ceilometer" num_units: 3 + options: + vip: 10.4.1.14 to: - "lxc:nodes=0" - "lxc:nodes=1" @@ -219,7 +253,7 @@ openstack-phase2: options: block-device: None glance-api-version: 2 - ha-mcastport: 5401 + vip: 10.4.1.19 to: - "lxc:nodes=2" - "lxc:nodes=3" @@ -230,7 +264,6 @@ openstack-phase2: charm: "local:trusty/glance" num_units: 3 options: - ha-mcastport: 5402 vip: 10.4.1.12 to: - "lxc:nodes=3" @@ -246,7 +279,6 @@ openstack-phase2: options: admin-password: openstack admin-token: admin - ha-mcastport: 5403 vip: 10.4.1.13 to: - "lxc:nodes=4" @@ -260,6 +292,7 @@ openstack-phase2: charm: "local:trusty/percona-cluster" num_units: 3 options: + min-cluster-size: 3 max-connections: 20000 lp1366997-workaround: true root-password: 293rhc395m @@ -300,6 +333,7 @@ openstack-phase2: num_units: 3 options: console-access-protocol: novnc + #console-proxy-ip: pod.maas network-manager: Neutron service-guard: true vip: 10.4.1.16 @@ -329,6 +363,7 @@ openstack-phase2: secret: admin webroot: / vip: 10.4.1.11 + endpoint-type: internalURL to: - "lxc:nodes=3" - "lxc:nodes=4" @@ -336,14 +371,21 @@ openstack-phase2: rabbitmq-server: charm: "local:trusty/rabbitmq-server" num_units: 3 + options: + vip: 10.4.1.10 to: - "lxc:nodes=4" - "lxc:nodes=0" - "lxc:nodes=1" heat: charm: "local:trusty/heat" + num_units: 3 + options: + vip: 10.4.1.18 to: - - "lxc:nodes=0" + - "lxc:nodes=2" + - "lxc:nodes=3" + - "lxc:nodes=4" congress: charm: local:trusty/congress options: diff --git a/ci/nosdn/juju-deployer/ovs-nosdn-nonha.yaml b/ci/nosdn/juju-deployer/ovs-nosdn-nonha.yaml index 90ac3291..1442ea7e 100644 --- a/ci/nosdn/juju-deployer/ovs-nosdn-nonha.yaml +++ b/ci/nosdn/juju-deployer/ovs-nosdn-nonha.yaml @@ -170,7 +170,6 @@ openstack-phase2: options: block-device: None glance-api-version: 2 - ha-mcastport: 5401 to: - "lxc:nodes=1" cinder-ceph: @@ -178,7 +177,6 @@ openstack-phase2: glance: charm: "local:trusty/glance" options: - ha-mcastport: 5402 to: - "lxc:nodes=0" opnfv-promise: @@ -190,7 +188,6 @@ openstack-phase2: options: admin-password: openstack admin-token: admin - ha-mcastport: 5403 to: - "lxc:nodes=0" mongodb: diff --git a/ci/nosdn/juju-deployer/ovs-nosdn-tip.yaml b/ci/nosdn/juju-deployer/ovs-nosdn-tip.yaml index 38d975c6..be5cc4d1 100644 --- a/ci/nosdn/juju-deployer/ovs-nosdn-tip.yaml +++ b/ci/nosdn/juju-deployer/ovs-nosdn-tip.yaml @@ -181,7 +181,6 @@ openstack-phase2: options: block-device: None glance-api-version: 2 -# ha-mcastport: 5401 # openstack-origin-git: include-file://cinder-master.yaml to: - "lxc:nodes=1" diff --git a/ci/odl/juju-deployer/ovs-odl-ha.yaml b/ci/odl/juju-deployer/ovs-odl-ha.yaml index e6b14fe4..c6b1dd23 100644 --- a/ci/odl/juju-deployer/ovs-odl-ha.yaml +++ b/ci/odl/juju-deployer/ovs-odl-ha.yaml @@ -153,46 +153,55 @@ openstack-phase2: hacluster-keystone: charm: "local:trusty/hacluster" options: + corosync_transport: unicast corosync_key: | 'QisjNpoKHLkvyc3PEdDHP5VZjgD0kOk9t0ABPWmCELlu5AgWgnW6bJd34BVXO7VhW+3ZwNQM3W+bZ3pl28ftY4ki4N/S0KLFNia5egFgiA3AH2QXLnokS7OYXuu6GMJJ1S5mDe6P5zU+tfJe/Mebq24u7CgR0gAvohSPRdDTwdY=' hacluster-cinder: charm: "local:trusty/hacluster" options: + corosync_transport: unicast corosync_key: | 'cc6n5Zv6M2mQ2mUhTx/aKoImQ7q77pKDdkSwBUG5VqoSb23SxnGUsAxH5E8lOeCZ84EURzS71FEb8F9P5YY+2deh0+tdXukoKTugdVmJfarahPpWpEEZRRCigUngdFw/479FOcFCkN1SJtQNqWi1ACYSn1/GRoQ2vP+2byrkV6E=' hacluster-heat: charm: "local:trusty/hacluster" options: + corosync_transport: unicast corosync_key: | 'tNeFXmOqzytRq7loxLMDaaMqZZXjC7BNfMbcKxSNeIPyBj4lkJwHZyuV7mo0ogzcfVJqLBHBULai+ed9uyWCZJxLXoi+WwTj5AqcXfxfSo9vLCthukJJ4zuKvzeGibZRszwINf32RW9jtXSCPosv8a+9MSg49KD1c9fS20aEuIM=' hacluster-horizon: charm: "local:trusty/hacluster" options: + corosync_transport: unicast corosync_key: | 'aCVPHw6XYne+Hxv0WPiM3+yEfeIxs0Ly0EMKB494Rdzjf5rE52GcXqqxuvIa/nXJ4GCR+UdKk9FEwcASfYkeu3HDWUld9uTE6pOc+ibWYnybNH7VBfEHW8h9YmQKs3HD2T3wlTcS2irU4CUW7/IKNok4etYdM3iFn1K2ReSGXEI=' hacluster-nova: charm: "local:trusty/hacluster" options: + corosync_transport: unicast corosync_key: | 'gel86qmEze8dYKYbfqIgRpqapJpKtdYL2hxC1y5nWYBPq7EMf6V8mF01IjeUkSRs14CUDrsPpT4PWeom7EOY2fleuLx/aIuqQUfEDkhf/gvaz7BaU4hrmTCoDBK7/HvEwY+/wu4qkEeckzSRPsm9MYzqnLRshh8yjZJ70xU/mmk=' hacluster-neutron: charm: "local:trusty/hacluster" options: + corosync_transport: unicast corosync_key: | 'KNhb4++3jlllbnscS5D3qdzOJDsQPEeZ7zOLZJHbkKrRjX9gRCijVVOiv2JCvq03HqQ7LIufQzWGl9Za8qh0f6QmQ3XhFh/Cb/3WaYFj+tEf0zArWv+8miswmM1z4eyTSrTWBq0dTgx1z96wjBxP5HV0+1LWW+3Ei4oZWyRGeR0=' hacluster-glance: charm: "local:trusty/hacluster" options: + corosync_transport: unicast corosync_key: | 'el1dd8107J5mwQDPS7tEJPZrr0XFfL95+Tku/QG90W5Q5f5SP4W8TRfKvddGmZWZl2lVd1neG5WqaHa1mq/aScJpoflzVAJCvshN7Gd2AjHhLNNugeI8S90j/7wrKUhqiCAlkKaeri2xs5bB5PZ7Z9AHuNZL7SW1al8lxrKhUFI=' hacluster-ceilometer: charm: "local:trusty/hacluster" options: + corosync_transport: unicast corosync_key: | 'cHkgKGJpdHMgPSA5NjApLgpQcmVzcyBrZXlzIG9uIHlvdXIga2V5Ym9hcmQgdG8gZ2VuZXJhdGUgZW50cm9weSAoYml0cyA9IDEwMDgpLgpXcml0aW5nIGNvcm9zeW5jIGtleSB0byAvZXRjL2Nvcm9zeW5jL2F1dGhrZXkuCg==' hacluster-mysql: charm: "local:trusty/hacluster" options: + corosync_transport: unicast corosync_key: | 'Q29yb3N5bmMgQ2x1c3RlciBFbmdpbmUgQXV0aGVudGljYXRpb24ga2V5IGdlbmVyYXRvci4KR2F0aGVyaW5nIDEwMjQgYml0cyBmb3Iga2V5IGZyb20gL2Rldi9yYW5kb20uClByZXNzIGtleXMgb24geW91ciBrZXlib2FyZCB0byBnZW5lcmF0ZSBlbnRyb3B5LgpQcmVzcyBrZXlzIG9uIHlvdXIga2V5Ym9hcmQgdG8gZ2VuZXJhdGUgZW50cm9weSAoYml0cyA9IDkyMCkuClByZXNzIGtleXMgb24geW91ciBrZXlib2FyZCB0byBnZW5lcmF0ZSBlbnRyb3B5IChiaXRzID0gMTAwMCkuCldyaXRpbmcgY29yb3N5bmMga2V5IHRvIC9ldGMvY29yb3N5bmMvYXV0aGtleS4K' # hacluster-ceph-radosgw: @@ -284,7 +293,6 @@ openstack-phase2: glance-api-version: 2 vip: 10.4.1.19 #os-public-hostname: api.public-fqdn -# ha-mcastport: 5401 to: - "lxc:nodes=4" - "lxc:nodes=0" @@ -294,6 +302,8 @@ openstack-phase2: rabbitmq-server: charm: local:trusty/rabbitmq-server num_units: 3 + options: + vip: 10.4.1.10 to: - "lxc:nodes=0" - "lxc:nodes=1" @@ -302,7 +312,6 @@ openstack-phase2: charm: local:trusty/keystone num_units: 3 options: -# ha-mcastport: 5402 admin-password: openstack admin-token: admin vip: 10.4.1.13 @@ -385,7 +394,6 @@ openstack-phase2: options: vip: 10.4.1.12 #os-public-hostname: api.public-fqdn -# ha-mcastport: 5402 to: - "lxc:nodes=0" - "lxc:nodes=1" diff --git a/ci/odl/juju-deployer/ovs-odl-nonha.yaml b/ci/odl/juju-deployer/ovs-odl-nonha.yaml index 443b5d08..96c8c04a 100644 --- a/ci/odl/juju-deployer/ovs-odl-nonha.yaml +++ b/ci/odl/juju-deployer/ovs-odl-nonha.yaml @@ -185,7 +185,6 @@ openstack-phase2: options: block-device: None glance-api-version: 2 -# ha-mcastport: 5401 to: - "lxc:nodes=1" cinder-ceph: @@ -197,7 +196,6 @@ openstack-phase2: keystone: charm: "local:trusty/keystone" options: -# ha-mcastport: 5402 admin-password: openstack admin-token: admin to: diff --git a/ci/odl/juju-deployer/ovs-odl-tip.yaml b/ci/odl/juju-deployer/ovs-odl-tip.yaml index a720dc8d..da3d54ec 100644 --- a/ci/odl/juju-deployer/ovs-odl-tip.yaml +++ b/ci/odl/juju-deployer/ovs-odl-tip.yaml @@ -187,7 +187,6 @@ openstack-phase2: options: block-device: None glance-api-version: 2 -# ha-mcastport: 5401 # openstack-origin-git: include-file://cinder-master.yaml to: - "lxc:nodes=0" diff --git a/ci/onos/juju-deployer/ovs-onos-ha.yaml b/ci/onos/juju-deployer/ovs-onos-ha.yaml index 5427a922..404ff050 100644 --- a/ci/onos/juju-deployer/ovs-onos-ha.yaml +++ b/ci/onos/juju-deployer/ovs-onos-ha.yaml @@ -147,36 +147,43 @@ openstack-phase2: hacluster-keystone: charm: "local:trusty/hacluster" options: + corosync_transport: unicast corosync_key: | 'QisjNpoKHLkvyc3PEdDHP5VZjgD0kOk9t0ABPWmCELlu5AgWgnW6bJd34BVXO7VhW+3ZwNQM3W+bZ3pl28ftY4ki4N/S0KLFNia5egFgiA3AH2QXLnokS7OYXuu6GMJJ1S5mDe6P5zU+tfJe/Mebq24u7CgR0gAvohSPRdDTwdY=' hacluster-horizon: charm: "local:trusty/hacluster" options: + corosync_transport: unicast corosync_key: | 'aCVPHw6XYne+Hxv0WPiM3+yEfeIxs0Ly0EMKB494Rdzjf5rE52GcXqqxuvIa/nXJ4GCR+UdKk9FEwcASfYkeu3HDWUld9uTE6pOc+ibWYnybNH7VBfEHW8h9YmQKs3HD2T3wlTcS2irU4CUW7/IKNok4etYdM3iFn1K2ReSGXEI=' hacluster-nova: charm: "local:trusty/hacluster" options: + corosync_transport: unicast corosync_key: | 'gel86qmEze8dYKYbfqIgRpqapJpKtdYL2hxC1y5nWYBPq7EMf6V8mF01IjeUkSRs14CUDrsPpT4PWeom7EOY2fleuLx/aIuqQUfEDkhf/gvaz7BaU4hrmTCoDBK7/HvEwY+/wu4qkEeckzSRPsm9MYzqnLRshh8yjZJ70xU/mmk=' hacluster-neutron: charm: "local:trusty/hacluster" options: + corosync_transport: unicast corosync_key: | 'KNhb4++3jlllbnscS5D3qdzOJDsQPEeZ7zOLZJHbkKrRjX9gRCijVVOiv2JCvq03HqQ7LIufQzWGl9Za8qh0f6QmQ3XhFh/Cb/3WaYFj+tEf0zArWv+8miswmM1z4eyTSrTWBq0dTgx1z96wjBxP5HV0+1LWW+3Ei4oZWyRGeR0=' hacluster-glance: charm: "local:trusty/hacluster" options: + corosync_transport: unicast corosync_key: | 'el1dd8107J5mwQDPS7tEJPZrr0XFfL95+Tku/QG90W5Q5f5SP4W8TRfKvddGmZWZl2lVd1neG5WqaHa1mq/aScJpoflzVAJCvshN7Gd2AjHhLNNugeI8S90j/7wrKUhqiCAlkKaeri2xs5bB5PZ7Z9AHuNZL7SW1al8lxrKhUFI=' hacluster-ceilometer: charm: "local:trusty/hacluster" options: + corosync_transport: unicast corosync_key: | 'cHkgKGJpdHMgPSA5NjApLgpQcmVzcyBrZXlzIG9uIHlvdXIga2V5Ym9hcmQgdG8gZ2VuZXJhdGUgZW50cm9weSAoYml0cyA9IDEwMDgpLgpXcml0aW5nIGNvcm9zeW5jIGtleSB0byAvZXRjL2Nvcm9zeW5jL2F1dGhrZXkuCg==' hacluster-mysql: charm: "local:trusty/hacluster" options: + corosync_transport: unicast corosync_key: | 'Q29yb3N5bmMgQ2x1c3RlciBFbmdpbmUgQXV0aGVudGljYXRpb24ga2V5IGdlbmVyYXRvci4KR2F0aGVyaW5nIDEwMjQgYml0cyBmb3Iga2V5IGZyb20gL2Rldi9yYW5kb20uClByZXNzIGtleXMgb24geW91ciBrZXlib2FyZCB0byBnZW5lcmF0ZSBlbnRyb3B5LgpQcmVzcyBrZXlzIG9uIHlvdXIga2V5Ym9hcmQgdG8gZ2VuZXJhdGUgZW50cm9weSAoYml0cyA9IDkyMCkuClByZXNzIGtleXMgb24geW91ciBrZXlib2FyZCB0byBnZW5lcmF0ZSBlbnRyb3B5IChiaXRzID0gMTAwMCkuCldyaXRpbmcgY29yb3N5bmMga2V5IHRvIC9ldGMvY29yb3N5bmMvYXV0aGtleS4K' mysql: @@ -250,7 +257,6 @@ openstack-phase2: options: block-device: None glance-api-version: 2 -# ha-mcastport: 5401 to: - "lxc:nodes=4" - "lxc:nodes=0" @@ -260,6 +266,8 @@ openstack-phase2: rabbitmq-server: charm: "local:trusty/rabbitmq-server" num_units: 3 + options: + vip: 10.4.1.10 to: - "lxc:nodes=0" - "lxc:nodes=1" @@ -268,7 +276,6 @@ openstack-phase2: charm: "local:trusty/keystone" num_units: 3 options: -# ha-mcastport: 5402 admin-password: openstack admin-token: admin vip: 10.4.1.13 @@ -346,7 +353,6 @@ openstack-phase2: num_units: 3 options: vip: 10.4.1.12 -# ha-mcastport: 5402 to: - "lxc:nodes=0" - "lxc:nodes=1" diff --git a/ci/onos/juju-deployer/ovs-onos-nonha.yaml b/ci/onos/juju-deployer/ovs-onos-nonha.yaml index f8f53cbb..ec1324a1 100644 --- a/ci/onos/juju-deployer/ovs-onos-nonha.yaml +++ b/ci/onos/juju-deployer/ovs-onos-nonha.yaml @@ -185,7 +185,6 @@ openstack-phase2: options: block-device: None glance-api-version: 2 -# ha-mcastport: 5401 to: - "lxc:nodes=1" cinder-ceph: @@ -197,7 +196,6 @@ openstack-phase2: keystone: charm: "local:trusty/keystone" options: -# ha-mcastport: 5402 admin-password: openstack admin-token: admin to: diff --git a/ci/onos/juju-deployer/ovs-onos-tip.yaml b/ci/onos/juju-deployer/ovs-onos-tip.yaml index f1d10687..5fe2c865 100644 --- a/ci/onos/juju-deployer/ovs-onos-tip.yaml +++ b/ci/onos/juju-deployer/ovs-onos-tip.yaml @@ -183,7 +183,6 @@ openstack-phase2: options: block-device: None glance-api-version: 2 -# ha-mcastport: 5401 # openstack-origin-git: include-file://cinder-master.yaml to: - "lxc:nodes=1" diff --git a/ci/opencontrail/juju-deployer/ovs-opencontrail-ha.yaml b/ci/opencontrail/juju-deployer/ovs-opencontrail-ha.yaml index 21676eba..225090e5 100644 --- a/ci/opencontrail/juju-deployer/ovs-opencontrail-ha.yaml +++ b/ci/opencontrail/juju-deployer/ovs-opencontrail-ha.yaml @@ -207,36 +207,43 @@ openstack-phase2: hacluster-keystone: charm: "local:trusty/hacluster" options: + corosync_transport: unicast corosync_key: | 'QisjNpoKHLkvyc3PEdDHP5VZjgD0kOk9t0ABPWmCELlu5AgWgnW6bJd34BVXO7VhW+3ZwNQM3W+bZ3pl28ftY4ki4N/S0KLFNia5egFgiA3AH2QXLnokS7OYXuu6GMJJ1S5mDe6P5zU+tfJe/Mebq24u7CgR0gAvohSPRdDTwdY=' hacluster-horizon: charm: "local:trusty/hacluster" options: + corosync_transport: unicast corosync_key: | 'aCVPHw6XYne+Hxv0WPiM3+yEfeIxs0Ly0EMKB494Rdzjf5rE52GcXqqxuvIa/nXJ4GCR+UdKk9FEwcASfYkeu3HDWUld9uTE6pOc+ibWYnybNH7VBfEHW8h9YmQKs3HD2T3wlTcS2irU4CUW7/IKNok4etYdM3iFn1K2ReSGXEI=' hacluster-nova: charm: "local:trusty/hacluster" options: + corosync_transport: unicast corosync_key: | 'gel86qmEze8dYKYbfqIgRpqapJpKtdYL2hxC1y5nWYBPq7EMf6V8mF01IjeUkSRs14CUDrsPpT4PWeom7EOY2fleuLx/aIuqQUfEDkhf/gvaz7BaU4hrmTCoDBK7/HvEwY+/wu4qkEeckzSRPsm9MYzqnLRshh8yjZJ70xU/mmk=' hacluster-neutron: charm: "local:trusty/hacluster" options: + corosync_transport: unicast corosync_key: | 'KNhb4++3jlllbnscS5D3qdzOJDsQPEeZ7zOLZJHbkKrRjX9gRCijVVOiv2JCvq03HqQ7LIufQzWGl9Za8qh0f6QmQ3XhFh/Cb/3WaYFj+tEf0zArWv+8miswmM1z4eyTSrTWBq0dTgx1z96wjBxP5HV0+1LWW+3Ei4oZWyRGeR0=' hacluster-glance: charm: "local:trusty/hacluster" options: + corosync_transport: unicast corosync_key: | 'el1dd8107J5mwQDPS7tEJPZrr0XFfL95+Tku/QG90W5Q5f5SP4W8TRfKvddGmZWZl2lVd1neG5WqaHa1mq/aScJpoflzVAJCvshN7Gd2AjHhLNNugeI8S90j/7wrKUhqiCAlkKaeri2xs5bB5PZ7Z9AHuNZL7SW1al8lxrKhUFI=' hacluster-ceilometer: charm: "local:trusty/hacluster" options: + corosync_transport: unicast corosync_key: | 'cHkgKGJpdHMgPSA5NjApLgpQcmVzcyBrZXlzIG9uIHlvdXIga2V5Ym9hcmQgdG8gZ2VuZXJhdGUgZW50cm9weSAoYml0cyA9IDEwMDgpLgpXcml0aW5nIGNvcm9zeW5jIGtleSB0byAvZXRjL2Nvcm9zeW5jL2F1dGhrZXkuCg==' hacluster-mysql: charm: "local:trusty/hacluster" options: + corosync_transport: unicast corosync_key: | 'Q29yb3N5bmMgQ2x1c3RlciBFbmdpbmUgQXV0aGVudGljYXRpb24ga2V5IGdlbmVyYXRvci4KR2F0aGVyaW5nIDEwMjQgYml0cyBmb3Iga2V5IGZyb20gL2Rldi9yYW5kb20uClByZXNzIGtleXMgb24geW91ciBrZXlib2FyZCB0byBnZW5lcmF0ZSBlbnRyb3B5LgpQcmVzcyBrZXlzIG9uIHlvdXIga2V5Ym9hcmQgdG8gZ2VuZXJhdGUgZW50cm9weSAoYml0cyA9IDkyMCkuClByZXNzIGtleXMgb24geW91ciBrZXlib2FyZCB0byBnZW5lcmF0ZSBlbnRyb3B5IChiaXRzID0gMTAwMCkuCldyaXRpbmcgY29yb3N5bmMga2V5IHRvIC9ldGMvY29yb3N5bmMvYXV0aGtleS4K' ceilometer: @@ -296,7 +303,6 @@ openstack-phase2: options: block-device: None glance-api-version: 2 -# ha-mcastport: 5401 to: - "lxc:nodes=0" - "lxc:nodes=1" @@ -306,6 +312,8 @@ openstack-phase2: rabbitmq-server: charm: local:trusty/rabbitmq-server num_units: 3 + options: + vip: 10.4.1.10 to: - "lxc:nodes=1" - "lxc:nodes=2" diff --git a/ci/opencontrail/juju-deployer/ovs-opencontrail-nonha.yaml b/ci/opencontrail/juju-deployer/ovs-opencontrail-nonha.yaml index 504e1303..2d28e548 100644 --- a/ci/opencontrail/juju-deployer/ovs-opencontrail-nonha.yaml +++ b/ci/opencontrail/juju-deployer/ovs-opencontrail-nonha.yaml @@ -201,7 +201,6 @@ openstack-phase2: options: block-device: None glance-api-version: 2 -# ha-mcastport: 5401 to: - "lxc:nodes=1" cinder-ceph: diff --git a/ci/opencontrail/juju-deployer/ovs-opencontrail-tip.yaml b/ci/opencontrail/juju-deployer/ovs-opencontrail-tip.yaml index 1a5fda41..0a24d900 100644 --- a/ci/opencontrail/juju-deployer/ovs-opencontrail-tip.yaml +++ b/ci/opencontrail/juju-deployer/ovs-opencontrail-tip.yaml @@ -202,7 +202,6 @@ openstack-phase2: options: block-device: None glance-api-version: 2 -# ha-mcastport: 5401 to: - "lxc:nodes=1" cinder-ceph: diff --git a/ci/openstack.sh b/ci/openstack.sh index 100299a3..30c52e88 100755 --- a/ci/openstack.sh +++ b/ci/openstack.sh @@ -49,30 +49,65 @@ unitMachine() { juju status | python -c "import yaml; import sys; print yaml.load(sys.stdin)[\"services\"][\"$1\"][\"units\"][\"$1/$2\"][\"machine\"]" 2> /dev/null } +keystoneIp() { + KEYSTONE=$(juju status keystone |grep public-address|sed -- 's/.*\: //') + if [ $(echo $KEYSTONE|wc -w) == 1 ];then + echo $KEYSTONE + else + juju get keystone | python -c "import yaml; import sys; print yaml.load(sys.stdin)['settings']['vip']['value']" + fi +} + # create external network and subnet in openstack create_openrc() { mkdir -m 0700 -p cloud - keystoneIp=$(juju get keystone | grep vip: -A 7 | grep value | awk '{print $2}') - if [ -z "$keystoneIp" ]; then - keystoneIp=$(unitAddress keystone 0) - fi - adminPasswd=$(juju get keystone | grep admin-password -A 5 | grep value | awk '{print $2}') + keystoneIp=$(keystoneIp) + adminPasswd=$(juju get keystone | grep admin-password -A 5 | grep value | awk '{print $2}' 2> /dev/null) configOpenrc admin $adminPasswd admin http://$keystoneIp:5000/v2.0 Canonical > cloud/admin-openrc chmod 0600 cloud/admin-openrc } configOpenrc() { - cat <<-EOF - export OS_USERNAME=$1 - export OS_PASSWORD=$2 - export OS_TENANT_NAME=$3 - export OS_AUTH_URL=$4 - export OS_REGION_NAME=$5 - EOF + cat <<-EOF + export OS_USERNAME=$1 + export OS_PASSWORD=$2 + export OS_TENANT_NAME=$3 + export OS_AUTH_URL=$4 + export OS_REGION_NAME=$5 + export OS_ENDPOINT_TYPE='internalURL' + export CINDER_ENDPOINT_TYPE='internalURL' + export GLANCE_ENDPOINT_TYPE='internalURL' + export KEYSTONE_ENDPOINT_TYPE='internalURL' + export NEUTRON_ENDPOINT_TYPE='internalURL' + export NOVA_ENDPOINT_TYPE='internalURL' +EOF } -create_openrc +# Push api fqdn local ip to all /etc/hosts +API_FQDN=$(juju get keystone | python -c "import yaml; import sys;\ + print yaml.load(sys.stdin)['settings']['os-public-hostname']['value']") + + +KEYSTONEIP=$(keystoneIp) +juju run --all "if grep $API_FQDN /etc/hosts > /dev/null; then \ + echo 'API FQDN already present'; \ + else \ + sudo sh -c 'echo $KEYSTONEIP $API_FQDN >> /etc/hosts'; \ + echo 'API FQDN injected'; \ + fi" + +#change in jumphost as well as below commands will run on jumphost + +if grep $API_FQDN /etc/hosts; then + echo 'API FQDN already present' +else + sudo sh -c "echo $KEYSTONEIP $API_FQDN >> /etc/hosts" + echo 'API FQDN injected' +fi + +# Create an load openrc +create_openrc . ./cloud/admin-openrc wget -P /tmp/images http://download.cirros-cloud.net/0.3.3/cirros-0.3.3-x86_64-disk.img @@ -110,7 +145,7 @@ elif [ "nosdn" == "$1" ]; then neutron net-create ext-net --shared --router:external --provider:physical_network external --provider:network_type flat neutron subnet-create ext-net --name ext-subnet \ --allocation-pool start=$EXTNET_FIP,end=$EXTNET_LIP \ - --disable-dhcp --gateway $EXTNET_GW $EXTNET_NET + --disable-dhcp --gateway $EXTNET_GW --dns-nameserver 8.8.8.8 $EXTNET_NET # configure security groups neutron security-group-rule-create --direction ingress --ethertype IPv4 --protocol icmp --remote-ip-prefix 0.0.0.0/0 default neutron security-group-rule-create --direction ingress --ethertype IPv4 --protocol tcp --port-range-min 22 --port-range-max 22 --remote-ip-prefix 0.0.0.0/0 default @@ -118,10 +153,7 @@ else neutron net-create ext-net --shared --router:external --provider:physical_network external --provider:network_type flat neutron subnet-create ext-net --name ext-subnet \ --allocation-pool start=$EXTNET_FIP,end=$EXTNET_LIP \ - --disable-dhcp --gateway $EXTNET_GW $EXTNET_NET - # configure security groups - #neutron security-group-rule-create --direction ingress --ethertype IPv4 --protocol icmp --remote-ip-prefix 0.0.0.0/0 default - #neutron security-group-rule-create --direction ingress --ethertype IPv4 --protocol tcp --port-range-min 22 --port-range-max 22 --remote-ip-prefix 0.0.0.0/0 default + --disable-dhcp --gateway $EXTNET_GW --dns-nameserver 8.8.8.8 $EXTNET_NET fi @@ -138,8 +170,8 @@ neutron router-gateway-set demo-router ext-net # create pool of floating ips i=0 while [ $i -ne 3 ]; do - neutron floatingip-create ext-net - i=$((i + 1)) + neutron floatingip-create ext-net + i=$((i + 1)) done #http://docs.openstack.org/juno/install-guide/install/apt/content/launch-instance-neutron.html |