triton icon indicating copy to clipboard operation
triton copied to clipboard

post-setup common-external-networks documentation or installer bug

Open jbarfield opened this issue 7 years ago • 3 comments

Goal: Install Triton Datacenter

Following this guide: https://docs.joyent.com/private-cloud/install/headnode-installation

Problem: I was able to install Triton up to the "sdcadm post-setup common-external-nics" point. At which point I continually received the following error: napi client error (ServiceUnavailableError): Initial network data not loaded

Work Around: I logged into the napi0 zone and looked at the napi config under:

/opt/smartdc/napi/config.json

I noticed that the external gateway, startIP, and EndIP's were all empty even though I did setup the external network using the initial installer and entered all of the missing data on first run.

"external": { "vlan": 12, "uuid": "", "network": "192.168.12.0", "netmask": "255.255.255.0", "gateway": "", "startIP": "", "endIP": "", "resolvers": ["8.8.8.8","8.8.4.4"] }

I populated the config file manually and restarted the napi service.

vi /opt/smartdc/napi/config.json

"external": { "vlan": 12, "uuid": "", "network": "192.168.12.0", "netmask": "255.255.255.0", "gateway": "192.168.12.252", "startIP": "192.168.12.1", "endIP": "192.168.12.251", "resolvers": ["8.8.8.8","8.8.4.4"] }

svcadm restart smartdc/application/napi)

And voila: [root@headnode (tpd) ~]# sdcadm post-setup common-external-nics Added external nic to adminui Added external nic to imgapi

I was then able to login to the operator console successfully.

jbarfield avatar Aug 25 '17 21:08 jbarfield

forgot to mention that this is on the latest usb release: 20170817T070613Z

jbarfield avatar Aug 26 '17 15:08 jbarfield

Anyone know what else might cause this? I have the same error but my configuration file is populated.

grant-roy avatar Oct 20 '17 16:10 grant-roy

Check the contents of /usbkey/config to verify that it has what you expect. This is usually a result of putting in invalid parameters (e.g., one or more of the gateway, host IP, start IP, end IP are outside of the subnet prefix).

bahamat avatar Mar 04 '18 02:03 bahamat