Merge "Do not allow testcase skipping in refstack"
[functest.git] / docker / vnf / clearwater-heat-singlenet-deps.patch
index 2c5c273..15ff3e2 100644 (file)
@@ -1,5 +1,5 @@
 diff --git a/bono.yaml b/bono.yaml
-index f0189cd..9418be1 100644
+index f0189cd..0a39057 100644
 --- a/bono.yaml
 +++ b/bono.yaml
 @@ -23,26 +23,6 @@ parameters:
@@ -84,7 +84,7 @@ index f0189cd..9418be1 100644
        user_data_format: RAW
        user_data:
          str_replace:
-@@ -143,15 +112,11 @@ resources:
+@@ -143,48 +112,18 @@ resources:
              __zone__: { get_param: zone }
              __public_mgmt_ip__: { get_attr: [ mgmt_floating_ip, floating_ip_address ] }
              __private_mgmt_ip__: { get_attr: [ mgmt_port, fixed_ips, 0, ip_address ] }
@@ -101,10 +101,10 @@ index f0189cd..9418be1 100644
            template: |
              #!/bin/bash
  
-@@ -159,33 +124,6 @@ resources:
+             # Log all output to file.
              exec > >(tee -a /var/log/clearwater-heat-bono.log) 2>&1
              set -x
+-
 -            # Set up the signaling network namespace on each boot by creating an init file and
 -            # linking to it from runlevel 2 and 3
 -            cat >/etc/init.d/signaling_namespace <<EOF
@@ -131,11 +131,11 @@ index f0189cd..9418be1 100644
 -
 -            # Also set up the signaling namespace now.
 -            /etc/init.d/signaling_namespace
--
++            sleep 180
              # Configure the APT software source.
              echo 'deb __repo_url__ binary/' > /etc/apt/sources.list.d/clearwater.list
-             curl -L http://repo.cw-ngv.com/repo_key | apt-key add -
-@@ -196,11 +134,8 @@ resources:
+@@ -196,11 +135,8 @@ resources:
              etcd_ip=__etcd_ip__
              [ -n "$etcd_ip" ] || etcd_ip=__private_mgmt_ip__
              cat > /etc/clearwater/local_config << EOF
@@ -149,7 +149,7 @@ index f0189cd..9418be1 100644
              public_hostname=__index__.bono.__zone__
              etcd_cluster=$etcd_ip
              EOF
-@@ -223,8 +158,8 @@ resources:
+@@ -223,8 +159,8 @@ resources:
              while ! { nsupdate -y "__zone__:__dnssec_key__" -v << EOF
              server __dns_mgmt_ip__
              update add bono-__index__.__zone__. 30 $(ip2rr __public_mgmt_ip__)
@@ -160,18 +160,30 @@ index f0189cd..9418be1 100644
              update add __zone__. 30 NAPTR 0 0 "s" "SIP+D2T" "" _sip._tcp.__zone__.
              update add __zone__. 30 NAPTR 0 0 "s" "SIP+D2U" "" _sip._udp.__zone__.
              update add _sip._tcp.__zone__. 30 SRV 0 0 5060 __index__.bono.__zone__.
-@@ -241,9 +176,8 @@ resources:
+@@ -238,13 +174,20 @@ resources:
+               sleep 5
+             done
++            wc_notify --data-binary '{"status": "SUCCESS"}'
++
              # Use the DNS server.
              echo 'nameserver __dns_mgmt_ip__' > /etc/dnsmasq.resolv.conf
              echo 'RESOLV_CONF=/etc/dnsmasq.resolv.conf' >> /etc/default/dnsmasq
 -            mkdir -p /etc/netns/signaling
 -            echo 'nameserver __dns_sig_ip__' > /etc/netns/signaling/resolv.conf
              service dnsmasq force-reload
-+            wc_notify --data-binary '{"status": "SUCCESS"}'
  
++            sleep 60
++            monit summary
++            clearwater-etcdctl cluster-health
++            clearwater-etcdctl member list
++            cw-check_cluster_state
++            cw-check_config_sync
++
  outputs:
    public_mgmt_ip:
-@@ -252,9 +186,3 @@ outputs:
+     description: IP address in public management network
+@@ -252,9 +195,3 @@ outputs:
    private_mgmt_ip:
      description: IP address in private management network
      value: { get_attr: [ mgmt_port, fixed_ips, 0, ip_address ] }
@@ -182,7 +194,7 @@ index f0189cd..9418be1 100644
 -    description: IP address in private signaling network
 -    value: { get_attr: [ sig_port, fixed_ips, 0, ip_address ] }
 diff --git a/clearwater.yaml b/clearwater.yaml
-index a155c60..c48fe3a 100644
+index a155c60..1bfe257 100644
 --- a/clearwater.yaml
 +++ b/clearwater.yaml
 @@ -37,41 +37,6 @@ parameters:
@@ -279,7 +291,7 @@ index a155c60..c48fe3a 100644
  
    bono:
      type: OS::Heat::ResourceGroup
-+    depends_on: ellis
++    depends_on: sprout
      properties:
        count: { get_param: bono_cluster_size }
        index_var: "__index__"
@@ -306,7 +318,7 @@ index a155c60..c48fe3a 100644
  
    sprout:
      type: OS::Heat::ResourceGroup
-+    depends_on: ellis
++    depends_on: vellum
      properties:
        count: { get_param: sprout_cluster_size }
        index_var: __index__
@@ -334,7 +346,7 @@ index a155c60..c48fe3a 100644
  
    homer:
      type: OS::Heat::ResourceGroup
-+    depends_on: ellis
++    depends_on: sprout
      properties:
        count: { get_param: homer_cluster_size }
        index_var: __index__
@@ -362,7 +374,7 @@ index a155c60..c48fe3a 100644
  
    dime:
      type: OS::Heat::ResourceGroup
-+    depends_on: ellis
++    depends_on: sprout
      properties:
        count: { get_param: dime_cluster_size }
        index_var: __index__
@@ -416,7 +428,7 @@ index a155c60..c48fe3a 100644
            etcd_ip: { get_attr: [ ellis, private_mgmt_ip ] }
            index: __index__
 diff --git a/dime.yaml b/dime.yaml
-index 642f19d..4fdbf10 100644
+index 642f19d..214a985 100644
 --- a/dime.yaml
 +++ b/dime.yaml
 @@ -23,26 +23,6 @@ parameters:
@@ -507,7 +519,7 @@ index 642f19d..4fdbf10 100644
        user_data_format: RAW
        user_data:
          str_replace:
-@@ -141,14 +112,11 @@ resources:
+@@ -141,47 +112,18 @@ resources:
              __zone__: { get_param: zone }
              __public_mgmt_ip__: { get_attr: [ mgmt_floating_ip, floating_ip_address ] }
              __private_mgmt_ip__: { get_attr: [ mgmt_port, fixed_ips, 0, ip_address ] }
@@ -523,10 +535,10 @@ index 642f19d..4fdbf10 100644
            template: |
              #!/bin/bash
  
-@@ -156,33 +124,6 @@ resources:
+             # Log all output to file.
              exec > >(tee -a /var/log/clearwater-heat-dime.log) 2>&1
              set -x
+-
 -            # Set up the signaling network namespace on each boot by creating an init file and
 -            # linking to it from runlevel 2 and 3
 -            cat >/etc/init.d/signaling_namespace <<EOF
@@ -553,11 +565,11 @@ index 642f19d..4fdbf10 100644
 -
 -            # Also set up the signaling namespace now.
 -            /etc/init.d/signaling_namespace
--
++            sleep 180
              # Configure the APT software source.
              echo 'deb __repo_url__ binary/' > /etc/apt/sources.list.d/clearwater.list
-             curl -L http://repo.cw-ngv.com/repo_key | apt-key add -
-@@ -193,11 +134,8 @@ resources:
+@@ -193,11 +135,8 @@ resources:
              etcd_ip=__etcd_ip__
              [ -n "$etcd_ip" ] || etcd_ip=__private_mgmt_ip__
              cat > /etc/clearwater/local_config << EOF
@@ -571,7 +583,7 @@ index 642f19d..4fdbf10 100644
              public_hostname=dime-__index__.__zone__
              etcd_cluster=$etcd_ip
              EOF
-@@ -220,9 +158,9 @@ resources:
+@@ -220,9 +159,9 @@ resources:
              while ! { nsupdate -y "__zone__:__dnssec_key__" -v << EOF
              server __dns_mgmt_ip__
              update add dime-__index__.__zone__. 30 $(ip2rr __public_mgmt_ip__)
@@ -584,15 +596,25 @@ index 642f19d..4fdbf10 100644
              send
              EOF
              } && [ $retries -lt 10 ]
-@@ -235,17 +173,13 @@ resources:
+@@ -232,20 +171,23 @@ resources:
+               sleep 5
+             done
++            wc_notify --data-binary '{"status": "SUCCESS"}'
++
              # Use the DNS server.
              echo 'nameserver __dns_mgmt_ip__' > /etc/dnsmasq.resolv.conf
              echo 'RESOLV_CONF=/etc/dnsmasq.resolv.conf' >> /etc/default/dnsmasq
 -            mkdir -p /etc/netns/signaling
 -            echo 'nameserver __dns_sig_ip__' > /etc/netns/signaling/resolv.conf
              service dnsmasq force-reload
-+            wc_notify --data-binary '{"status": "SUCCESS"}'
  
++            sleep 180
++            monit summary
++            clearwater-etcdctl cluster-health
++            clearwater-etcdctl member list
++            cw-check_config_sync
++
  outputs:
    public_mgmt_ip:
      description: IP address in public (management) network
@@ -605,7 +627,7 @@ index 642f19d..4fdbf10 100644
 -    description: IP address in private signaling network
 -    value: { get_attr: [ sig_port, fixed_ips, 0, ip_address ] }
 diff --git a/dns.yaml b/dns.yaml
-index 825ede1..0412c4f 100644
+index 825ede1..11a833b 100644
 --- a/dns.yaml
 +++ b/dns.yaml
 @@ -23,22 +23,6 @@ parameters:
@@ -700,15 +722,16 @@ index 825ede1..0412c4f 100644
              # Install BIND.
              apt-get update
              DEBIAN_FRONTEND=noninteractive apt-get install bind9 --yes
-@@ -162,6 +142,7 @@ resources:
+@@ -163,6 +143,8 @@ resources:
              # Now that BIND configuration is correct, kick it to reload.
              service bind9 reload
-+            wc_notify --data-binary '{"status": "SUCCESS"}'
  
++            wc_notify --data-binary '{"status": "SUCCESS"}'
++
  outputs:
    public_mgmt_ip:
-@@ -170,9 +151,6 @@ outputs:
+     description: IP address in public management network
+@@ -170,9 +152,6 @@ outputs:
    private_mgmt_ip:
      description: IP address in private signaling network
      value: { get_attr: [ mgmt_port, fixed_ips, 0, ip_address ] }
@@ -719,7 +742,7 @@ index 825ede1..0412c4f 100644
      description: DNS zone
      value: { get_param: zone }
 diff --git a/ellis.yaml b/ellis.yaml
-index 963352d..1dc62f0 100644
+index 963352d..c9fbb46 100644
 --- a/ellis.yaml
 +++ b/ellis.yaml
 @@ -44,9 +44,6 @@ parameters:
@@ -783,16 +806,38 @@ index 963352d..1dc62f0 100644
              EOF
              /usr/share/clearwater/clearwater-config-manager/scripts/cw-config upload shared_config --autoconfirm --dir /tmp
  
-@@ -227,6 +236,7 @@ resources:
+@@ -197,7 +206,6 @@ resources:
+             # local_settings.py runs to pick up the configuration changes.
+             service clearwater-infrastructure restart
+             service ellis stop
+-            /usr/share/clearwater/ellis/env/bin/python /usr/share/clearwater/ellis/src/metaswitch/ellis/tools/create_numbers.py --start __dn_range_start__ --count __dn_range_length__ --realm __zone__
+             # Function to give DNS record type and IP address for specified IP address
+             ip2rr() {
+@@ -223,11 +231,21 @@ resources:
+               sleep 5
+             done
++            wc_notify --data-binary '{"status": "SUCCESS"}'
++
+             # Use the DNS server.
              echo 'nameserver __dns_mgmt_ip__' > /etc/dnsmasq.resolv.conf
              echo 'RESOLV_CONF=/etc/dnsmasq.resolv.conf' >> /etc/default/dnsmasq
              service dnsmasq force-reload
-+            wc_notify --data-binary '{"status": "SUCCESS"}'
  
++            sleep 180
++            monit summary
++            clearwater-etcdctl cluster-health
++            clearwater-etcdctl member list
++            cw-check_config_sync
++
++            /usr/share/clearwater/ellis/env/bin/python /usr/share/clearwater/ellis/src/metaswitch/ellis/tools/create_numbers.py --start __dn_range_start__ --count __dn_range_length__ --realm __zone__
++
  outputs:
    public_mgmt_ip:
+     description: IP address in public management network
 diff --git a/homer.yaml b/homer.yaml
-index 4337984..f87d3e8 100644
+index 4337984..0640d4b 100644
 --- a/homer.yaml
 +++ b/homer.yaml
 @@ -23,26 +23,6 @@ parameters:
@@ -888,7 +933,7 @@ index 4337984..f87d3e8 100644
        user_data_format: RAW
        user_data:
          str_replace:
-@@ -147,15 +112,11 @@ resources:
+@@ -147,48 +112,18 @@ resources:
              __zone__: { get_param: zone }
              __public_mgmt_ip__: { get_attr: [ mgmt_floating_ip, floating_ip_address ] }
              __private_mgmt_ip__: { get_attr: [ mgmt_port, fixed_ips, 0, ip_address ] }
@@ -905,10 +950,10 @@ index 4337984..f87d3e8 100644
            template: |
              #!/bin/bash
  
-@@ -163,33 +124,6 @@ resources:
+             # Log all output to file.
              exec > >(tee -a /var/log/clearwater-heat-homer.log) 2>&1
              set -x
+-
 -            # Set up the signaling network namespace on each boot by creating an init file and
 -            # linking to it from runlevel 2 and 3
 -            cat >/etc/init.d/signaling_namespace <<EOF
@@ -935,11 +980,11 @@ index 4337984..f87d3e8 100644
 -
 -            # Also set up the signaling namespace now.
 -            /etc/init.d/signaling_namespace
--
++            sleep 180
              # Configure the APT software source.
              echo 'deb __repo_url__ binary/' > /etc/apt/sources.list.d/clearwater.list
-             curl -L http://repo.cw-ngv.com/repo_key | apt-key add -
-@@ -200,11 +134,8 @@ resources:
+@@ -200,11 +135,8 @@ resources:
              etcd_ip=__etcd_ip__
              [ -n "$etcd_ip" ] || etcd_ip=__private_mgmt_ip__
              cat > /etc/clearwater/local_config << EOF
@@ -953,7 +998,7 @@ index 4337984..f87d3e8 100644
              public_hostname=homer-__index__.__zone__
              etcd_cluster=$etcd_ip
              EOF
-@@ -227,7 +158,7 @@ resources:
+@@ -227,7 +159,7 @@ resources:
              while ! { nsupdate -y "__zone__:__dnssec_key__" -v << EOF
              server __dns_mgmt_ip__
              update add homer-__index__.__zone__. 30 $(ip2rr __public_mgmt_ip__)
@@ -962,18 +1007,31 @@ index 4337984..f87d3e8 100644
              send
              EOF
              } && [ $retries -lt 10 ]
-@@ -241,9 +172,8 @@ resources:
+@@ -237,14 +169,20 @@ resources:
+               sleep 5
+             done
+-            # Use the DNS server.
++            wc_notify --data-binary '{"status": "SUCCESS"}'
++
              # Use the DNS server.
              echo 'nameserver __dns_mgmt_ip__' > /etc/dnsmasq.resolv.conf
              echo 'RESOLV_CONF=/etc/dnsmasq.resolv.conf' >> /etc/default/dnsmasq
 -            mkdir -p /etc/netns/signaling
 -            echo 'nameserver __dns_sig_ip__' > /etc/netns/signaling/resolv.conf
              service dnsmasq force-reload
-+            wc_notify --data-binary '{"status": "SUCCESS"}'
  
++            sleep 180
++            monit summary
++            clearwater-etcdctl cluster-health
++            clearwater-etcdctl member list
++            cw-check_cluster_state
++            cw-check_config_sync
++
  outputs:
    public_mgmt_ip:
-@@ -252,9 +182,3 @@ outputs:
+     description: IP address in public management network
+@@ -252,9 +190,3 @@ outputs:
    private_mgmt_ip:
      description: IP address in private management network
      value: { get_attr: [ mgmt_port, fixed_ips, 0, ip_address ] }
@@ -1333,7 +1391,7 @@ index 5921d32..c73fe2b 100644
 -    value: { get_resource: vellum_sig_inbound }
 +    value: { get_resource: base_mgmt }
 diff --git a/sprout.yaml b/sprout.yaml
-index 9c533b7..3702ef9 100644
+index 9c533b7..4a5d4b6 100644
 --- a/sprout.yaml
 +++ b/sprout.yaml
 @@ -23,26 +23,6 @@ parameters:
@@ -1417,7 +1475,7 @@ index 9c533b7..3702ef9 100644
        user_data_format: RAW
        user_data:
          str_replace:
-@@ -141,14 +112,11 @@ resources:
+@@ -141,47 +112,18 @@ resources:
              __zone__: { get_param: zone }
              __public_mgmt_ip__: { get_attr: [ mgmt_floating_ip, floating_ip_address ] }
              __private_mgmt_ip__: { get_attr: [ mgmt_port, fixed_ips, 0, ip_address ] }
@@ -1433,10 +1491,10 @@ index 9c533b7..3702ef9 100644
            template: |
              #!/bin/bash
  
-@@ -156,33 +124,6 @@ resources:
+             # Log all output to file.
              exec > >(tee -a /var/log/clearwater-heat-sprout.log) 2>&1
              set -x
+-
 -            # Set up the signaling network namespace on each boot by creating an init file and
 -            # linking to it from runlevel 2 and 3
 -            cat >/etc/init.d/signaling_namespace <<EOF
@@ -1463,11 +1521,11 @@ index 9c533b7..3702ef9 100644
 -
 -            # Also set up the signaling namespace now.
 -            /etc/init.d/signaling_namespace
--
++            sleep 300
              # Configure the APT software source.
              echo 'deb __repo_url__ binary/' > /etc/apt/sources.list.d/clearwater.list
-             curl -L http://repo.cw-ngv.com/repo_key | apt-key add -
-@@ -193,11 +134,8 @@ resources:
+@@ -193,11 +135,8 @@ resources:
              etcd_ip=__etcd_ip__
              [ -n "$etcd_ip" ] || etcd_ip=__private_mgmt_ip__
              cat > /etc/clearwater/local_config << EOF
@@ -1481,7 +1539,7 @@ index 9c533b7..3702ef9 100644
              public_hostname=__index__.sprout.__zone__
              etcd_cluster=$etcd_ip
              EOF
-@@ -220,10 +158,10 @@ resources:
+@@ -220,10 +159,10 @@ resources:
              while ! { nsupdate -y "__zone__:__dnssec_key__" -v << EOF
              server __dns_mgmt_ip__
              update add sprout-__index__.__zone__. 30 $(ip2rr __public_mgmt_ip__)
@@ -1496,15 +1554,26 @@ index 9c533b7..3702ef9 100644
              update add sprout.__zone__. 30 NAPTR 0 0 "s" "SIP+D2T" "" _sip._tcp.sprout.__zone__.
              update add _sip._tcp.sprout.__zone__. 30 SRV 0 0 5054 __index__.sprout.__zone__.
              update add icscf.sprout.__zone__. 30 NAPTR 0 0 "s" "SIP+D2T" "" _sip._tcp.icscf.sprout.__zone__.
-@@ -242,17 +180,13 @@ resources:
+@@ -239,20 +178,24 @@ resources:
+               sleep 5
+             done
++            wc_notify --data-binary '{"status": "SUCCESS"}'
++
              # Use the DNS server.
              echo 'nameserver __dns_mgmt_ip__' > /etc/dnsmasq.resolv.conf
              echo 'RESOLV_CONF=/etc/dnsmasq.resolv.conf' >> /etc/default/dnsmasq
 -            mkdir -p /etc/netns/signaling
 -            echo 'nameserver __dns_sig_ip__' > /etc/netns/signaling/resolv.conf
              service dnsmasq force-reload
-+            wc_notify --data-binary '{"status": "SUCCESS"}'
  
++            sleep 180
++            monit summary
++            clearwater-etcdctl cluster-health
++            clearwater-etcdctl member list
++            cw-check_cluster_state
++            cw-check_config_sync
++
  outputs:
    public_mgmt_ip:
      description: IP address in public (management) network
@@ -1517,7 +1586,7 @@ index 9c533b7..3702ef9 100644
 -    description: IP address in private signaling network
 -    value: { get_attr: [ sig_port, fixed_ips, 0, ip_address ] }
 diff --git a/vellum.yaml b/vellum.yaml
-index aab71f9..563edf7 100644
+index aab71f9..c2ca279 100644
 --- a/vellum.yaml
 +++ b/vellum.yaml
 @@ -23,26 +23,6 @@ parameters:
@@ -1601,7 +1670,7 @@ index aab71f9..563edf7 100644
        user_data_format: RAW
        user_data:
          str_replace:
-@@ -141,47 +112,18 @@ resources:
+@@ -141,47 +112,19 @@ resources:
              __zone__: { get_param: zone }
              __public_mgmt_ip__: { get_attr: [ mgmt_floating_ip, floating_ip_address ] }
              __private_mgmt_ip__: { get_attr: [ mgmt_port, fixed_ips, 0, ip_address ] }
@@ -1647,11 +1716,12 @@ index aab71f9..563edf7 100644
 -
 -            # Also set up the signaling namespace now.
 -            /etc/init.d/signaling_namespace
++            sleep 180
 +            sysctl -w net.ipv6.conf.lo.disable_ipv6=0
  
              # Configure the APT software source.
              echo 'deb __repo_url__ binary/' > /etc/apt/sources.list.d/clearwater.list
-@@ -193,11 +135,8 @@ resources:
+@@ -193,11 +136,8 @@ resources:
              etcd_ip=__etcd_ip__
              [ -n "$etcd_ip" ] || etcd_ip=__private_mgmt_ip__
              cat > /etc/clearwater/local_config << EOF
@@ -1665,7 +1735,7 @@ index aab71f9..563edf7 100644
              public_hostname=__index__.vellum.__zone__
              etcd_cluster=$etcd_ip
              EOF
-@@ -206,7 +145,7 @@ resources:
+@@ -206,7 +146,7 @@ resources:
              mkdir -p /etc/chronos
              cat > /etc/chronos/chronos.conf << EOF
              [http]
@@ -1674,7 +1744,7 @@ index aab71f9..563edf7 100644
              bind-port = 7253
              threads = 50
  
-@@ -218,7 +157,7 @@ resources:
+@@ -218,7 +158,7 @@ resources:
              enabled = true
  
              [dns]
@@ -1683,7 +1753,7 @@ index aab71f9..563edf7 100644
              EOF
  
              # Now install the software.
-@@ -239,7 +178,7 @@ resources:
+@@ -239,7 +179,7 @@ resources:
              while ! { nsupdate -y "__zone__:__dnssec_key__" -v << EOF
              server __dns_mgmt_ip__
              update add vellum-__index__.__zone__. 30 $(ip2rr __public_mgmt_ip__)
@@ -1692,18 +1762,30 @@ index aab71f9..563edf7 100644
              send
              EOF
              } && [ $retries -lt 10 ]
-@@ -252,9 +191,8 @@ resources:
+@@ -249,13 +189,20 @@ resources:
+               sleep 5
+             done
++            wc_notify --data-binary '{"status": "SUCCESS"}'
++
              # Use the DNS server.
              echo 'nameserver __dns_mgmt_ip__' > /etc/dnsmasq.resolv.conf
              echo 'RESOLV_CONF=/etc/dnsmasq.resolv.conf' >> /etc/default/dnsmasq
 -            mkdir -p /etc/netns/signaling
 -            echo 'nameserver __dns_sig_ip__' > /etc/netns/signaling/resolv.conf
              service dnsmasq force-reload
-+            wc_notify --data-binary '{"status": "SUCCESS"}'
  
++            sleep 300
++            monit summary
++            clearwater-etcdctl cluster-health
++            clearwater-etcdctl member list
++            cw-check_cluster_state
++            cw-check_config_sync
++
  outputs:
    public_mgmt_ip:
-@@ -263,6 +201,3 @@ outputs:
+     description: IP address in public management network
+@@ -263,6 +210,3 @@ outputs:
    private_mgmt_ip:
      description: IP address in private management network
      value: { get_attr: [ mgmt_port, fixed_ips, 0, ip_address ] }