fails to add static route via Appliance shell
search cancel

fails to add static route via Appliance shell

book

Article ID: 411111

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

  • You fails to add static route via Appliance shell.
  • When this issue happens, the following error occurs.

    Command> com.vmware.appliance.version1.networking.routes.add --destination ###.###.###.### --prefix 16 --gateway ###.###.###.### --interface nic0

       Error in method: Operation Failed. (code
       com.vmware.applmgmt.err_operation_failed)

  • The following logs is recorded in /var/log/applmgmt.log
    YYYY-MM-DD HH:MM:SS AM UTC [517678]DEBUG:vmware.appliance.networking.impl:com.vmware.appliance.version1.networking.routes.add(Structure('Route', dict(destination='###.###.###.###', prefix=16, gateway='###.###.###.###', interface='nic0')))
    YYYY-MM-DD HH:MM:SS AM UTC [517678]DEBUG:vmware.appliance.networking.impl:com.vmware.appliance.version1.networking.routes. result = 2
    YYYY-MM-DD HH:MM:SS AM UTC [517678]ERROR:vmware.appliance.networking.impl:Add route operation failed.
    YYYY-MM-DD HH:MM:SS AM UTC [517678]DEBUG:vmware.vherd.transport.xmlrpc:Trapped an exception: pint.Error('com.vmware.applmgmt.err_operation_failed', 'Operation Failed.', **{})
    YYYY-MM-DD HH:MM:SS AM UTC [517678]DEBUG:vmware.vherd.transport.xmlrpc:Dictionary returned: {'code': 'com.vmware.applmgmt.err_operation_failed', 'message': 'Operation Failed.', 'attributes': {}, '__error__': True}

Environment

vCenter Server

Cause

IP address assigned in vCenter Server belongs to different network from designated gateway IP address.

Resolution

Verify that the IP address of the vCenter Server and the IP address of the gateway belong to the same network.