Waiting for Controller


(Francesca Monducci) #1

Hi everyone, I’m trying to deploy a control plane to a remote host. I’m deploying through iofogctl and YAML file, which prints the following:

Deploying controlplane controller
Connecting to server
Copying install files to server
Copying service files to server
Checking prerequisites on Controller <IP>
Installing Node.js on Controller <IP>
Setting up environment variables for Controller <IP>
Installing ioFog on Controller <IP>
Waiting for Controller <IP>

And then keeps waiting forever. What can it be? Is there a way to know what’s going on?
The necessary ports are already open.

It keeps doing:
[HTTP]: ===> [GET] http://IP:51121/api/v3/status
Body:


(Serge Radinovich) #2

You can specify --debug for the most verbose output. Can you please provide that output here?


(Serge Radinovich) #3

Also can you provide output of curl http://localhost:51121/api/v3/status on the remote host where you are installing Controller?


(Francesca Monducci) #4

This is the output with --debug, it keeps trying periodically with the HTTP GET request

Deploying controlplane controller
[SSH]: Setting port to 22
[SSH]: Initialiasing connection
[SSH]: Parsing keys
[SSH]: Reading private key: key
[SSH]: Parsing key
[SSH]: Creating auth method based on key pair
[SSH]: Configuring SSH client
[SSH]: Config:
[SSH]: User: fogmaster
[SSH]: Auth method: 0x7ff100
[SSH]: TCP dialing IP
[SSH]: Copying file /tmp/check_prereqs.sh...
[SSH]: Creating session...
[SSH]: Running: /usr/bin/scp -t /tmp/
[SSH]: Copying file /tmp/controller_install_node.sh...
[SSH]: Creating session...
[SSH]: Running: /usr/bin/scp -t /tmp/
[SSH]: Copying file /tmp/controller_install_iofog.sh...
[SSH]: Creating session...
[SSH]: Running: /usr/bin/scp -t /tmp/
[SSH]: Copying file /tmp/controller_set_env.sh...
[SSH]: Creating session...
[SSH]: Running: /usr/bin/scp -t /tmp/
[SSH]: Creating session...
[SSH]: Running: mkdir -p /tmp/iofog-controller-service
[SSH]: Copying file /tmp/iofog-controller-service/iofog-controller.initctl...
[SSH]: Creating session...
[SSH]: Running: /usr/bin/scp -t /tmp/iofog-controller-service/
[SSH]: Copying file /tmp/iofog-controller-service/iofog-controller.systemd...
[SSH]: Creating session...
[SSH]: Running: /usr/bin/scp -t /tmp/iofog-controller-service/
[SSH]: Copying file /tmp/iofog-controller-service/iofog-controller.update-rc...
[SSH]: Creating session...
[SSH]: Running: /usr/bin/scp -t /tmp/iofog-controller-service/
[SSH]: Creating session...
[SSH]: Running: /tmp/check_prereqs.sh
[SSH]: Creating session...
[SSH]: Running: sudo /tmp/controller_install_node.sh
[SSH]: Creating session...
[SSH]: Running: sudo /tmp/controller_set_env.sh  "SystemImages_Proxy_1=iofog/proxy:2.0.1" "SystemImages_Proxy_2=iofog/proxy-arm:2.0.1" "SystemImages_Router_1=iofog/router:2.0.1" "SystemImages_Router_2=iofog/router-arm:2.0.1"
[SSH]: Creating session...
[SSH]: Running: sudo /tmp/controller_install_iofog.sh 2.0.1
[SSH]: Try 0
[SSH]: Creating session...
[SSH]: Running: curl --request GET --url http://localhost:51121/api/v3/status
[HTTP]: ===> [GET] http://IP:51121/api/v3/status
Body:

This is the output on the remote host with curl:

{"status":"online","timestamp":1620245964683,"uptimeSec":48.289,"versions":{"controller":"2.0.1","ecnViewer":"1.0.6"}}


(Francesca Monducci) #5

Found the problem! It actually has nothing to do with ioFog, it’s my host configuration that doesn’t allow this kind of request from outside, only SSH.