CONTAP-296600: Attempt to sequential modify the node auto-giveback flag via ONTAP REST API, reverts the flag for partner node again
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:
- 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"
}
}
} - 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"}' - 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"
}
}
} - 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"}' - 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"
}
}
}
- Initial query returns auto-giveback: true for both nodes of an HA-pair:
