---
- fail:
      msg: "Upgrade is supported only for version 7, 8, 9 and 10"
  when:
    - install.upgrade|default(false)
    - undercloud_version|openstack_release not in [7, 8, 9, 10]

- fail:
      msg: "Infrared support update for RHOSP from version 7."
  when:
    - install.get('update', {}).undercloud|default(false)
    - undercloud_version|openstack_release < 7

---
- fail:
      msg: "Upgrade is supported starting with RHOSP version 7"
  when:
    - install.upgrade|default(false)
    - undercloud_version|openstack_release < 7

- fail:
      msg: "Infrared support update for RHOSP from version 7."
  when:
    - install.get('update', {}).undercloud|default(false)
    - undercloud_version|openstack_release < 7

Allow undercloud upgrade for version > 11
Allow undercloud upgrade for version > 11

This change allows running the undercloud upgrade command for OSP
versions > 11 which is not possible at this moment.

Change-Id: Ia49b1b539a3c84dd88f6a77cfa3e42d228f7cc6c
