Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jbarfield opened this issue Aug 25, 2017 · 3 comments
Open

Comments

@jbarfield
Copy link

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
Copy link
Author

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

@grant-roy
Copy link

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

@bahamat
Copy link
Member

bahamat commented Mar 4, 2018

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants