- job-template:
    ### The reason why this upgrade job is "disruptive" is the default cinder backend
    name: 'cloud-mkcloud{version}-job-upgrade-disruptive-ha-{arch}'
    node: cloud-trigger

    triggers:
      - timed: '32 22 * * *'

    logrotate:
      numToKeep: -1
      daysToKeep: 7

    builders:
      - trigger-builds:
        - project: openstack-mkcloud
          condition: SUCCESS
          block: true
          current-parameters: true
          predefined-parameters: |
            TESTHEAD=1
            cloudsource=develcloud{previous_version}
            upgrade_cloudsource=develcloud{version}
            nodenumber={nodenumber}
            want_nodesupgrade=1
            want_database_sql_engine={database_engine}
            want_trove_proposal=0
            want_barbican_proposal=0
            want_sahara_proposal=0
            hacloud=1
            clusterconfig=data+services+network={nodenumber_controller}
            storage_method=swift
            label={label}
            mkcloudtarget=instonly setuplonelynodes lonelynode_nfs_server proposal testpreupgrade addupdaterepo runupdate cloudupgrade testpostupgrade testsetup
            job_name=cloud-mkcloud{version}-job-upgrade-disruptive-ha-{arch}

- job-template:
    ### The reason why this upgrade job is "disruptive" is the default cinder backend
    name: 'cloud-mkcloud{version}-job-upgrade-disruptive-ha-{arch}'
    node: cloud-trigger

    triggers:
      - timed: '32 22 * * *'

    logrotate:
      numToKeep: -1
      daysToKeep: 7

    builders:
      - trigger-builds:
        - project: openstack-mkcloud
          condition: SUCCESS
          block: true
          current-parameters: true
          predefined-parameters: |
            TESTHEAD=1
            cloudsource=develcloud{previous_version}
            upgrade_cloudsource=develcloud{version}
            nodenumber={nodenumber}
            nodenumberlonelynode=1
            want_nodesupgrade=1
            want_database_sql_engine={database_engine}
            want_trove_proposal=0
            want_barbican_proposal=0
            want_sahara_proposal=0
            hacloud=1
            clusterconfig=data+services+network={nodenumber_controller}
            storage_method=swift
            label={label}
            mkcloudtarget=instonly setuplonelynodes lonelynode_nfs_server proposal testpreupgrade addupdaterepo runupdate cloudupgrade testpostupgrade testsetup
            job_name=cloud-mkcloud{version}-job-upgrade-disruptive-ha-{arch}

Add a lonely node to upgrade-disruptive-ha
Add a lonely node to upgrade-disruptive-ha

We attempt to build and use a lonely node during the disruptive HA job,
but we don't set a number of lonely nodes we require.
