Accessing the VAMI returns an error "Unable to get deployment status"
search cancel

Accessing the VAMI returns an error "Unable to get deployment status"

book

Article ID: 397256

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

Symptoms:

  • Below error is observed after logging into the VAMI UI:

  •  /var/log/vmware/applmgmt/applmgmt.log  reports the status as "INSTALL_IN_PROGRESS " 
    YYYY-MM-DDTHH:MM:SS PM CDT [3444754]INFO:vmware.vherd.transport.vapi:Provider config states ['INSTALL_IN_PROGRESS']
    YYYY-MM-DDTHH:MM:SS PM CDT [3444754]INFO:deploy_state:flow is: [State(string='FIRSTBOOT')]
    YYYY-MM-DDTHH:MM:SS PM CDT [3444754]INFO:deploy_state:FIRSTBOOT: , ,
    YYYY-MM-DDTHH:MM:SS CDT [3444754]INFO:deploy_state:flow is: [State(string='RPMINSTALL')]
    YYYY-MM-DDTHH:MM:SS PM CDT [3444754]INFO:deploy_state:RPMINSTALL: , ,
    YYYY-MM-DDTHH:MM:SS PM CDT [3444754]ERROR:vmware.vapi.provider.local:Error in invoking com.vmware.vcenter.deployment in get_state_details - invalid literal for int() with base 10: ''
    Traceback (most recent call last):
      File "/usr/lib/applmgmt/vapi/lib/vapi_runtime-2.100.0-py2.py3-none-any.whl/vmware/vapi/provider/local.py", line 277, in invoke
        method_result = self._invoke_int(
      File "/usr/lib/applmgmt/vapi/lib/vapi_runtime-2.100.0-py2.py3-none-any.whl/vmware/vapi/provider/local.py", line 249, in _invoke_int
        method_result = iface.invoke(ctx, method_id, input_value)
      File "/usr/lib/applmgmt/vapi/lib/vapi_runtime-2.100.0-py2.py3-none-any.whl/vmware/vapi/bindings/skeleton.py", line 371, in invoke
        meth_output = method(**meth_args)
      File "/usr/lib/applmgmt/vcenter/py/vmware/vcenter_impl.py", line 48, in get_state_details
        progress = int(progress)
    ValueError: invalid literal for int() with base 10:   
     YYYY-MM-DDTHH:MM:SS PM CDT [3446313]ERROR:detwist:Method failure = <twisted.python.failure.Failure vmware.vherd.base.pint.Error: pint.Error('com.vmware.applmgmt.err_status_does_not_ex
    ist', "Status for '%(0)s' does not exist.", **{'args': 'RESTORE'})>
     YYYY-MM-DDTHH:MM:SS PM CDT [3446313]ERROR:detwist:Traceback (most recent call last):
      File "/usr/lib/applmgmt/base/py/vmware/vherd/base/detwist.py", line 158, in pintFunction
        reactor.callWhenRunning(invoke_method)
      File "/usr/lib/python3.10/site-packages/twisted/internet/base.py", line 821, in callWhenRunning
        callable(*args, **kwargs)
      File "/usr/lib/applmgmt/base/py/vmware/vherd/base/detwist.py", line 151, in invoke_method
        dObj = _method(*realargs)
      File "/usr/lib/applmgmt/base/py/vmware/vherd/base/pint.py", line 982, in run
        ret = defer.maybeDeferred(method, self, *realArgs)
    --- <exception caught here> ---
      File "/usr/lib/python3.10/site-packages/twisted/internet/defer.py", line 206, in maybeDeferred
        result = f(*args, **kwargs)
      File "/usr/lib/applmgmt/backup_restore/py/vmware/appliance/backup_restore/impl.py", line 139, in wrapper
        return func(*args, **kwargs)
      File "/usr/lib/applmgmt/backup_restore/py/vmware/appliance/backup_restore/impl.py", line 1227, in get
        raise pint.Error(
    vmware.vherd.base.pint.Error: pint.Error('com.vmware.applmgmt.err_status_does_not_exist', "Status for '%(0)s' does not exist.", **{'args': 'RESTORE'})
    
     YYYY-MM-DDTHH:MM:SS PM CDT [3446313]DEBUG:detwist:Method result = {'code': 'com.vmware.applmgmt.err_status_does_not_exist', 'message': "Status for '%(0)s' does not exist.", 'attribute
    s': {'args': 'RESTORE'}, '__error__': True}
    

Environment

  • VMware vCenter Server 8.x

Cause

  • fbInstall.json under /var/log/firstboot/ is missing or the status is incorrect in the file.

Resolution

  • Stop the VAMI service by running the command: 
    service-control --stop applmgmt
  • Check if fbInstall file exists in firstboot folder with permission 644: 
     ls -ltrh /var/log/firstboot/fbInstall.json
  • If it does, ensure the below content exists.
    {
    
    "progress" : 100,
    
    "status" : "success"
    
    }
  • If the files does not exist, create the file using vi editor, update the contents as per step 4 and set permission as 644.
  • Start the VAMI service using the following command: 
    service-control --start applmgmt