Re (1), here is what I am running.
To launch the wizard:
[ec2-user@ip-10-1-10-138 odas]$ cd /home/ec2-user/odas && sudo ./gravity install --token=TjEYSuLJjs --advertise-addr=10.1.10.138 --cloud-provider=generic --config=cluster-config.yaml --pod-network-cidr="172.23.0.0/16" --service-cidr="172.34.0.0/16" --wizard
Tue Sep 24 22:33:22 UTC Starting installer
To abort the installation and clean up the system,
press Ctrl+C two times in a row.
If the you get disconnected from the terminal, you can reconnect to the installer
agent by issuing 'gravity resume' command.
If the installation fails, use 'gravity plan' to inspect the state and
'gravity resume' to continue the operation.
See https://gravitational.com/gravity/docs/cluster/#managing-an-ongoing-operation for details.
Tue Sep 24 22:33:22 UTC Connecting to installer
Tue Sep 24 22:33:28 UTC Connected to installer
Tue Sep 24 22:33:28 UTC Starting web UI install wizard
Tue Sep 24 22:33:28 UTC Open this URL in browser: https://10.1.10.138:61009/web/installer/new/gravitational.io/odas/1.0.0-latest?install_token=TjEYSuLJjs
Tue Sep 24 22:33:28 UTC Waiting for the operation to start
Running the curl:
[ec2-user@ip-10-1-10-138 ~]$ curl -s --tlsv1.2 -0 -k "https://10.1.10.138:61009/t/TjEYSuLJjs/master" | sudo bash
Tue Sep 24 22:34:16 UTC 2019 [INFO] Downloading install agent...
Tue Sep 24 22:34:16 UTC 2019 [INFO] Install agent will be using /tmp for temporary files
Tue Sep 24 22:34:16 UTC Starting agent
To abort the agent and clean up the system,
press Ctrl+C two times in a row.
If the you get disconnected from the terminal, you can reconnect to the installer
agent by issuing 'gravity resume' command.
See https://gravitational.com/gravity/docs/cluster/#managing-an-ongoing-operation for details.
Tue Sep 24 22:34:16 UTC Connecting to agent
Tue Sep 24 22:34:17 UTC Connected to agent
Tue Sep 24 22:34:17 UTC Connecting to cluster
Tue Sep 24 22:34:17 UTC Connected to installer at https://10.1.10.138:61009
Tue Sep 24 22:34:17 UTC Saving debug report to /usr/bin/crashreport.tgz
[ERROR]: listen tcp 10.1.10.138:3012: bind: address already in use
This is with Gravity 6.1.4. Happy to get the logs or crash report or whatever will be helpful. You can see the port bind:
[ec2-user@ip-10-1-10-138 ~]$ sudo netstat -pltn
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:61025 0.0.0.0:* LISTEN 13637/gravity
tcp 0 0 10.1.10.138:3012 0.0.0.0:* LISTEN 13637/gravity
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 2631/rpcbind
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 3364/sshd
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 3099/master
tcp6 0 0 :::61024 :::* LISTEN 13637/gravity
tcp6 0 0 :::111 :::* LISTEN 2631/rpcbind
tcp6 0 0 :::61009 :::* LISTEN 13637/gravity
tcp6 0 0 :::61010 :::* LISTEN 13637/gravity
tcp6 0 0 :::22 :::* LISTEN 3364/sshd
tcp6 0 0 :::61022 :::* LISTEN 13637/gravity
tcp6 0 0 :::61023 :::* LISTEN 13637/gravity
[ec2-user@ip-10-1-10-138 ~]$ ps aux | grep 13637
root 13637 10.4 0.2 1688632 79560 ? Ssl 22:33 0:20 /home/ec2-user/odas/gravity install --token TjEYSuLJjs --advertise-addr 10.1.10.138 --cloud-provider generic --config cluster-config.yaml --pod-network-cidr 172.23.0.0/16 --service-cidr 172.34.0.0/16 --wizard --from-service /home/ec2-user/odas
Regarding (2) - is there an API to access the output of gravity plan
without having to access the CLI?