Stage 1: RPM Installation | Error in method invocation while logging into VAMI page
search cancel

Stage 1: RPM Installation | Error in method invocation while logging into VAMI page

book

Article ID: 319988

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

Symptoms:

  • While logging into VAMI page, the page redirects to configurev2 and after entering root password we will get the below error


               Stage 1: RPM Installation 
               Error in method invocation


               

  • All vCenter services will be up and running. 
  • applmgmt.log will have the below error
yyyy-mm-ddTHH:MM:SS PM UTC [22939]INFO:vcenter.deploy_status:deploy phases: ['rpminstall', 'validate', 'firstboot']
yyyy-mm-ddTHH:MM:SS PM UTC [22939]INFO:vcenter.fileutil:read_json_file: [Errno 2] No such file or directory: '/var/log/firstboot/rpmInstall.json'
yyyy-mm-ddTHH:MM:SS PM UTC [22939]INFO:vcenter.deploy_status:rpminstall: task status is: {progress : None, result : None, description : {id : com.vmware.vcenter.deploy.task.description.rpminstall, default_message : Install required RPMs for the appliance., args : [], params : None, localized : None}, service : , operation : , parent : None, target : None, status : PENDING, cancelable : False, error : None, start_time : None, end_time : None, user : None}
yyyy-mm-ddTHH:MM:SS PM UTC [22939]INFO:vcenter.deploy_status:adding phase rpminstall to pending list
yyyy-mm-ddTHH:MM:SSPM UTC [22939]INFO:vcenter.fileutil:read_json_file: [Errno 2] No such file or directory: '/var/log/vmware/deploy/validate-status.json'
yyyy-mm-ddTHH:MM:SSPM UTC [22939]INFO:vcenter.deploy_status:validate: task status is: {progress : None, result : None, description : {id : com.vmware.vcenter.deploy.task.description.validate, default_message : Validate input parameters., args : [], params : None, localized : None}, service : , operation : , parent : None, target : None, status : PENDING, cancelable : False, error : None, start_time : None, end_time : None, user : None}
yyyy-mm-ddTHH:MM:SS PM UTC [22939]INFO:vcenter.deploy_status:adding phase validate to pending list
yyyy-mm-ddTHH:MM:SS PM UTC [22939]INFO:vcenter.fileutil:read_json_file: [Errno 2] No such file or directory: '/var/log/firstboot/fbInstall.json'
yyyy-mm-ddTHH:MM:SSPM UTC [22939]INFO:vcenter.deploy_status:firstboot: task status is: {progress : None, result : None, description : {id : com.vmware.vcenter.deploy.task.description.firstboot, default_message : Run firstboot scripts., args : [], params : None, localized : None}, service : , operation : , parent : None, target : None, status : PENDING, cancelable : False, error : None, start_time : None, end_time : None, user : None}
yyyy-mm-ddTHH:MM:SS PM UTC [22939]INFO:vcenter.deploy_status:adding phase firstboot to pending list
yyyy-mm-ddTHH:MM:SS PM UTC [22939]ERROR:vcenter.deploy_status:DeploymentStatus.get_status: no current or last task found!!
yyyy-mm-ddTHH:MM:SS PM UTC [22939]ERROR:vmware.vapi.provider.local:Error in invoking com.vmware.vcenter.deployment in get -
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
    service_id, operation_id, input_value, ctx)
  File "/usr/lib/applmgmt/vapi/lib/vapi_runtime-2.100.0-py2.py3-none-any.whl/vmware/vapi/provider/local.py", line 248, 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 24, in get
    return ds.get_status()
  File "/usr/lib/applmgmt/vcenter/py/vmware/vcenter/deploy_status.py", line 1159, in get_status
    assert False
AssertionError
(END)



Cause

This issue is caused when some of the files are missing from /var/log/firstboot and /var/log/vmware/deploy folders. 

Resolution

  • Take snapshot of the vCenter. 
  • Download the recreate.sh or create a file under /var/tmp with the contents
  • Make the file executable : chmod +x recreate.sh
  • Run the script : ./recreate.sh


Workaround:

If  you get this error -bash: ./recreate.sh: /bin/bash^M: bad interpreter: No such file or directory

To fix : sed -i -e 's/\r$//' recreate.sh


Attachments

recreate get_app