if [ "$opnfvsdn" = "ocl" ]
then
- TAG="ubuntu16.04-4.0.1.0-32.tar.gz"
+ TAG="ubuntu16.04-4.0.2.0-34.tar.gz"
for ROLE in contrail-controller contrail-analytics contrail-analyticsdb
do
#below tag would be used to enable huge pages for DPDK and SRIOV enablement in Ubuntu kernel via MAAS
maas $PROFILE tags create name='opnfv-dpdk' comment='OPNFV DPDK enablement' \
- kernel_opts='hugepagesz=2M hugepages=1024 hugepagesz=1G hugepages=20 default_hugepagesz=1G intel_iommu=on'
+ kernel_opts='hugepagesz=2M hugepages=1024 hugepagesz=1G hugepages=20 default_hugepagesz=1G intel_iommu=on' || true
#create the required spaces.
maas $PROFILE space update 0 name=default || true
NET_VLAN_ID=$(maas $PROFILE vlans read $NET_FABRIC_ID | jq -r ".[] | select(.vid==\"$SPACE_VLAN\")".id)
NET_VLAN_VID=$(maas $PROFILE vlans read $NET_FABRIC_ID | jq -r ".[] | select(.vid==\"$SPACE_VLAN\")".vid)
if ([ $SPACE_GWAY ] && [ "$SPACE_GWAY" != "null" ]); then
- maas $PROFILE subnet update $SPACE_CIDR gateway_ip=$SPACE_GWAY
+ maas $PROFILE subnet update $SPACE_CIDR gateway_ip=$SPACE_GWAY || true
fi
if ([ $NET_VLAN_VID ] && [ $NET_VLAN_VID == "0" ]); then
config_done=1
else
NET_VLAN_ID=$(maas $PROFILE vlans create $NET_FABRIC_ID vid=$SPACE_VLAN | jq --raw-output ".id")
if ([ $NET_VLAN_ID ] && [ $NET_VLAN_ID != "null" ]); then
- maas $PROFILE subnet update $SPACE_CIDR vlan=$NET_VLAN_ID
+ maas $PROFILE subnet update $SPACE_CIDR vlan=$NET_VLAN_ID || true
NET_FABRIC_VID=$SPACE_VLAN
fi
fi
if ([ $SPACE_VLAN ] && [ "$SPACE_VLAN" != "null" ]); then
NET_VLAN_ID=$(maas $PROFILE vlans create $FABRIC_ID vid=$SPACE_VLAN | jq --raw-output ".id")
if ([ $SPACE_GWAY ] && [ "$SPACE_GWAY" != "null" ]); then
- maas $PROFILE subnets create fabric=$FABRIC_ID cidr=$SPACE_CIDR vid=$VID_ID gateway_ip=$SPACE_GWAY
+ maas $PROFILE subnets create fabric=$FABRIC_ID cidr=$SPACE_CIDR vid=$VID_ID gateway_ip=$SPACE_GWAY || true
else
- maas $PROFILE subnets create fabric=$FABRIC_ID cidr=$SPACE_CIDR vid=$VID_ID
+ maas $PROFILE subnets create fabric=$FABRIC_ID cidr=$SPACE_CIDR vid=$VID_ID || true
fi
NET_FABRIC_VID=$VLAN_ID
else
if ([ $SPACE_GWAY ] && [ "$SPACE_GWAY" != "null" ]); then
- maas $PROFILE subnets create fabric=$FABRIC_ID cidr=$SPACE_CIDR vid="0" gateway_ip=$SPACE_GWAY
+ maas $PROFILE subnets create fabric=$FABRIC_ID cidr=$SPACE_CIDR vid="0" gateway_ip=$SPACE_GWAY || true
else
- maas $PROFILE subnets create fabric=$FABRIC_ID cidr=$SPACE_CIDR vid="0"
+ maas $PROFILE subnets create fabric=$FABRIC_ID cidr=$SPACE_CIDR vid="0" || true
fi
fi
NET_FABRIC_NAME=$(maas $PROFILE subnets read | jq -r ".[] | select(.cidr==\"$SPACE_CIDR\")".vlan.fabric)
NET_FABRIC_ID=$(maas $PROFILE fabric read $NET_FABRIC_NAME | jq -r ".id")
if ([ $NET_FABRIC_ID ] && [ $NET_FABRIC_ID != "null" ]); then
if ([ $JUJU_VLAN_VID ] && [ $JUJU_VLAN_VID != "null" ]); then
- maas $PROFILE vlan update $NET_FABRIC_ID $JUJU_VLAN_VID space=$JUJU_SPACE_ID
+ maas $PROFILE vlan update $NET_FABRIC_ID $JUJU_VLAN_VID space=$JUJU_SPACE_ID || true
fi
fi
if ([ $type == "admin" ]); then
region: *openstack-region
admin-role: {{ os.admin.role }}
keystone-admin-role: {{ os.admin.role }}
-{% if os.network.controller != 'ocl' %}
preferred-api-version: 3
-{% endif %}
{% if os.network.ipv6 %}
prefer-ipv6: {{ os.network.ipv6 }}
{% endif %}
{% elif os.network.controller == 'onos' %}
flat-network-providers: physnet1
manage-neutron-plugin-legacy-mode: False
+{% elif os.network.controller == 'ocl' %}
+ flat-network-providers: physnet1
+ manage-neutron-plugin-legacy-mode: False
{% endif %}
{% if os.network.dvr %}
enable-dvr: true
# Configuring deployment
if ([ $opnfvmodel == "openstack" ]); then
+ if ([ $opnfvsdn == "ocl" ]); then
+ echo_info "Patching OpenContrail controller container"
+ juju ssh contrail-controller/0 sudo docker cp contrail-controller:/etc/contrail/vnc_api_lib.ini /tmp
+ juju ssh contrail-controller/0 cp /tmp/vnc_api_lib.ini /tmp/vnc_api_lib.ini2
+ juju ssh contrail-controller/0 'echo "AUTHN_DOMAIN = admin_domain" >> /tmp/vnc_api_lib.ini2'
+ juju ssh contrail-controller/0 sudo docker cp /tmp/vnc_api_lib.ini2 contrail-controller:/etc/contrail/vnc_api_lib.ini
+ juju ssh contrail-controller/0 sudo docker exec -it contrail-controller service contrail-api restart
+
+ juju ssh contrail-controller/0 sudo docker cp /tmp/vnc_api_lib.ini2 contrail-analytics:/etc/contrail/vnc_api_lib.ini
+ fi
+
echo_info "Configuring OpenStack deployment"
./openstack.sh "$opnfvsdn" "$opnfvlab" "$opnfvdistro" "$openstack" || true
# creating heat domain after pushing the public API into /etc/hosts
status=`juju run-action heat/0 domain-setup`
echo $status
+ if ([ $opnftype == "ha" ]); then
+ status=`juju run-action heat/1 domain-setup`
+ echo $status
+ status=`juju run-action heat/2 domain-setup`
+ echo $status
+ fi
sudo ../juju/get-cloud-images || true
../juju/joid-configure-openstack || true
- ifname: intf3
spaces: [floating]
mac: ["a4:bf:01:4b:55:f4"]
- - ifname: intf2.4000
- spaces: [public]
- mac: ["3c:fd:fe:aa:b8:f5"]
+# - ifname: intf2.1193
+# spaces: [public]
+# mac: ["3c:fd:fe:aa:b8:f5"]
- ifname: intf2
spaces: [storage]
mac: ["3c:fd:fe:aa:b8:f5"]
- ifname: intf3
spaces: [floating]
mac: ["a4:bf:01:4b:4f:9c"]
- - ifname: intf2.4000
- spaces: [public]
- mac: ["3c:fd:fe:aa:b7:fd"]
+# - ifname: intf2.1193
+# spaces: [public]
+# mac: ["3c:fd:fe:aa:b7:fd"]
- ifname: intf2
spaces: [storage]
mac: ["3c:fd:fe:aa:b7:fd"]
- ifname: intf3
spaces: [floating]
mac: ["a4:bf:01:4b:4f:5d"]
- - ifname: intf2.4000
- spaces: [public]
- mac: ["3c:fd:fe:aa:bd:d5"]
+# - ifname: intf2.1193
+# spaces: [public]
+# mac: ["3c:fd:fe:aa:bd:d5"]
- ifname: intf2
spaces: [storage]
mac: ["3c:fd:fe:aa:bd:d5"]
- ifname: intf3
spaces: [floating]
mac: ["a4:bf:01:4b:4d:2d"]
- - ifname: intf2.4000
- spaces: [public]
- mac: ["3c:fd:fe:aa:b9:c9"]
+# - ifname: intf2.1193
+# spaces: [public]
+# mac: ["3c:fd:fe:aa:b9:c9"]
- ifname: intf2
spaces: [storage]
mac: ["3c:fd:fe:aa:b9:c9"]
- ifname: intf3
spaces: [floating]
mac: ["a4:bf:01:4b:56:10"]
- - ifname: intf2.4000
- spaces: [public]
- mac: ["3c:fd:fe:aa:ba:39"]
+# - ifname: intf2.1193
+# spaces: [public]
+# mac: ["3c:fd:fe:aa:ba:39"]
- ifname: intf2
spaces: [storage]
mac: ["3c:fd:fe:aa:ba:39"]
- type: nosdn
storage:
- type: ceph
- disk: /dev/sdb
+ disk: /srv
feature: odl_l2
spaces:
- type: admin
bridge: brAdm
cidr: 10.10.191.0/24
- gateway: 10.10.191.1
+ gateway: 10.10.191.2
+ vlan:
+ - type: data
+ cidr: 10.10.192.0/24
+ gateway:
+ vlan:
+ - type: storage
+ cidr: 10.10.193.0/24
+ gateway:
vlan:
-# - type: data
-# bridge: brData
-# cidr: 10.10.192.0/24
-## gateway:
-# vlan:
-# - type: storage
-# bridge: brStor
-# cidr: 10.10.193.0/24
-# gateway:
-# vlan:
- type: floating
- bridge: brExt
cidr: 10.10.190.0/24
gateway:
vlan:
-# - type: storage
-# bridge: brMgmt
-# cidr: 10.10.194.0/24
-# gateway:
-# vlan: 214
# - type: public
-# bridge: brPublic
# cidr: 10.10.195.0/24
# gateway:
-# vlan: 4000
+# vlan: 1193