While updating VM Categories, Asking for clear status on VM grid | Nutanix Community
Skip to main content
Solved

While updating VM Categories, Asking for clear status on VM grid

  • January 4, 2022
  • 1 reply
  • 339 views

I am upading VM through restAPI, VM  is getting updated but after showing warning on VM grid as below.

 

Request: 

Method: Put

{
    "spec": {
        "name": "Mahesh-Win7-Flow-0002",
        "resources": {
            "power_state": "ON",
            "hardware_clock_timezone": "Asia/Calcutta"
        }
    },
    "metadata": {
        "kind": "vm",
        "categories_mapping": {
            "Environment": [
                "Production",
                "Testing"
            ],
            "Team": [
                "Dev-Junior"
            ],
            "Department": [
                "Dev"
            ]
        },
        "categories": {
            "Environment": "Production",
            "Team": "Dev-Junior",
            "Department": "Dev"
        },
        "use_categories_mapping": true,
        "entity_version": "",
        "spec_version": 20,
        "spec_hash": ""
    }
}

Response :

  "status": {
    "name": "Mahesh-Win7-Flow-0002",
    "state": "ERROR",
    "execution_context": {
      "task_uuid": [
        "7c606f29-646e-4f68-ab8e-b80e3854935a"
      ]
    },
    "message_list": [
      {
        "message": "Logical timestamp mismatch: 8\n  :Logicial timestamp mismatch: (0 vs 2)",
        "reason": "CONCURRENT_REQUESTS_NOT_ALLOWED"
      }
    ],

Best answer by JoseNutanix

You have to keep the whole spec dictionary as well as for metadata and not strip it down.

View original
Did this topic help you find an answer to your question?
This topic has been closed for comments

1 reply

JoseNutanix
Nutanix Employee
Forum|alt.badge.img+5
  • Nutanix Employee
  • 150 replies
  • Answer
  • January 5, 2022

You have to keep the whole spec dictionary as well as for metadata and not strip it down.