HCX - General Network settings update failure "Target object must not be null"
search cancel

HCX - General Network settings update failure "Target object must not be null"

book

Article ID: 314200

calendar_today

Updated On:

Products

VMware HCX

Issue/Introduction

  • When updating HCX manager General network attributes(Administration > Network Settings) via 9443 UI a failure occurs with following error message: "Target object must not be null"
  • The following error is displayed in /common/logs/appliance-management/appliance-management.log:

    WARN  c.g.jsonrpc4j.JsonRpcBasicServer- Error in JSON-RPC Service
    java.lang.IllegalArgumentException: Target object must not be null at org.springframework.util.Assert.notNull(Assert.java:201)

Environment

HCX

Resolution

This issue is resolved in VMware HCX 4.10 available at Broadcom Downloads.
If you are having difficulty finding and downloading software, please review the Download Broadcom products and software KB.

Workaround for HCX 4.9 or earlier:

  • Take a snapshot and backup HCX Manager using the appliance management interface at <https://hcx-ip-or-fqdn:9443>
  • Login to HCX manager via SSH as admin user.
  • Change user to root: su root.
  • Edit the file /etc/systemd/network/10-cloud-init-eth0.network using VI editor


SAMPLE OUTPUT (10-cloud-init-eth0.network)
 

[Match]
Name=eth0

[Network]
LinkLocalAddressing=no
IPv6AcceptRA=no
Address=#.#.#.#/24
Gateway=#.#.#.#

[Address]
Address=#.#.#.#/24
Broadcast=#.#.#.#

 

  • Restart the systemd-networkd service
systemctl restart systemd-networkd