Skip to main content
NetApp Knowledge Base

CONTAP-296600: Attempt to sequential modify the node auto-giveback flag via ONTAP REST API, reverts the flag for partner node again

Views:
3
Visibility:
Public
Votes:
0
Category:
ontap-9
Specialty:
core
Last Updated:

Issue

  • After the node auto-giveback flag was modified via REST for one node of an HA-Pair, the ha-partner-node sets the flag to default (true).
  • This can manifest in two different potentially undesired behavior:
    • Both nodes "false", modify either node to "true" flips the partner-node to "true" as well.
    • Both nodes "true", after flipping the first node to "false", when subsequently the second node gets flipped to "false", then the first node reverts to "true" again.
  • Example:
    1. Initial query returns auto-giveback: true for both nodes of an HA-pair:

      [user@host ~]# curl -sku admin -X GET "https://cluster1.demo.netapp.com/api/cluster/nodes?fields=ha.auto_giveback&return_records=true&return_timeout=15"
      Enter host password for user 'admin':
      {
        "records": [
          {
            "uuid": "1045db6a-a771-11ef-8df6-005056b03f60",
            "name": "cluster1-01",
            "ha": {
              "auto_giveback": true
            },
            "_links": {
              "self": {
                "href": "/api/cluster/nodes/1045db6a-a771-11ef-8df6-005056b03f60"
              }
            }
          },
          {
            "uuid": "17751c18-a771-11ef-b0f0-005056b027f6",
            "name": "cluster1-02",
            "ha": {
              "auto_giveback": true
            },
            "_links": {
              "self": {
                "href": "/api/cluster/nodes/17751c18-a771-11ef-b0f0-005056b027f6"
              }
            }
          }
        ],
        "num_records": 2,
        "_links": {
          "self": {
            "href": "/api/cluster/nodes?fields=ha.auto_giveback&return_records=true&return_timeout=15"
          }
        }
      }

    2. The flag gets modified via PATCH against the first node:
       

      [user@host ~]# curl -sku admin -X PATCH "https://cluster1.demo.netapp.com/api/cluster/nodes/1045db6a-a771-11ef-8df6-005056b03f60" -d '{"ha.auto_giveback":"false"}'

    3. The first node has updated the flag to false as expected:

      [user@host ~]# curl -sku admin -X GET "https://cluster1.demo.netapp.com/api/cluster/nodes?fields=ha.auto_giveback"'
      Enter host password for user 'admin':
      {
        "records": [
          {
            "uuid": "1045db6a-a771-11ef-8df6-005056b03f60",
            "name": "cluster1-01",
            "ha": {
              "auto_giveback": false
            },
            "_links": {
              "self": {
                "href": "/api/cluster/nodes/1045db6a-a771-11ef-8df6-005056b03f60"
              }
            }
          },
          {
            "uuid": "17751c18-a771-11ef-b0f0-005056b027f6",
            "name": "cluster1-02",
            "ha": {
              "auto_giveback": true
            },
            "_links": {
              "self": {
                "href": "/api/cluster/nodes/17751c18-a771-11ef-b0f0-005056b027f6"
              }
            }
          }
        ],
        "num_records": 2,
        "_links": {
          "self": {
            "href": "/api/cluster/nodes?fields=ha.auto_giveback"
          }
        }
      }

    4. The flag gets modified via PATCH against the second node:

      [user@host ~]# curl -sku admin -X PATCH "https://cluster1.demo.netapp.com/api/cluster/nodes/17751c18-a771-11ef-b0f0-005056b027f6" -d '{"ha.auto_giveback":"false"}'

    5. While the second node has updated the flag to false, the first one has reverted it again to true:

      [user@host ~]# curl -sku admin -X GET "https://cluster1.demo.netapp.com/api/cluster/nodes?fields=ha.auto_giveback"'
      Enter host password for user 'admin':
      {
        "records": [
          {
            "uuid": "1045db6a-a771-11ef-8df6-005056b03f60",
            "name": "cluster1-01",
            "ha": {
              "auto_giveback": true
            },
            "_links": {
              "self": {
                "href": "/api/cluster/nodes/1045db6a-a771-11ef-8df6-005056b03f60"
              }
            }
          },
          {
            "uuid": "17751c18-a771-11ef-b0f0-005056b027f6",
            "name": "cluster1-02",
            "ha": {
              "auto_giveback": false
            },
            "_links": {
              "self": {
                "href": "/api/cluster/nodes/17751c18-a771-11ef-b0f0-005056b027f6"
              }
            }
          }
        ],
        "num_records": 2,
        "_links": {
          "self": {
            "href": "/api/cluster/nodes?fields=ha.auto_giveback"
          }
        }
      }

Sign in to view the entire content of this KB article.

New to NetApp?

Learn more about our award-winning Support

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.