Solved

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

  • 4 January 2022
  • 1 reply
  • 199 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"
}
],
icon

Best answer by JoseNutanix 5 January 2022, 09:14

View original

This topic has been closed for comments

1 reply

Userlevel 4
Badge +5

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