Skip to main content
Solved

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

  • Jan 4, 2022 1:47 PM UTC
  • 1 reply
  • 486 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
This topic has been closed for replies.

1 reply

JoseNutanix
Nutanix Employee
Forum|alt.badge.img+5
  • Nutanix Employee
  • Answer
  • Jan 5, 2022 8:14 AM UTC

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