efactl

Starts, stops, restarts, and displays the status services for EFA.

Syntax

efactl start
efactl stop
efactl restart
efactl start-service name of the service
efactl restart-service name of the service
efactl clean
efactl status

Examples

The following example starts all services.

# efactl start
Are you sure you want to start all services? [Y/n]
Y
gosystem-service has been started
goauth-service has been started
gorbac-service has been started
godb-service has been started
gonotification-service has been started
goinventory-service has been started
gofabric-service has been started
gotenant-service has been started
goopenstack-service has been started
gohyperv-service has been started
govcenter-service has been started
goswitch-service has been started
goraslog-service has been started
efa-api-docs has been started
rabbitmq has been started
Services have been started

The following example stops all services.

# efactl stop
Are you sure you want to stop all services? [Y/n]
Y
gosystem-service has been stopped
goauth-service has been stopped
gorbac-service has been stopped
godb-service has been stopped
gonotification-service has been stopped
goinventory-service has been stopped
gofabric-service has been stopped
gotenant-service has been stopped
goopenstack-service has been stopped
gohyperv-service has been stopped
govcenter-service has been stopped
goswitch-service has been stopped
goraslog-service has been stopped
efa-api-docs has been stopped
rabbitmq has been stopped
Services have been stopped
root@administrator-08:~#

The following example restarts all services.

efactl restart
Are you sure you want to restart all services? [Y/n]
Y
gosystem-service has been stopped
goauth-service has been stopped
gorbac-service has been stopped
godb-service has been stopped
gonotification-service has been stopped
goinventory-service has been stopped
gofabric-service has been stopped
gotenant-service has been stopped
goopenstack-service has been stopped
gohyperv-service has been stopped
govcenter-service has been stopped
goswitch-service has been stopped
goraslog-service has been stopped
efa-api-docs has been stopped
rabbitmq has been stopped
Services have been stopped
gosystem-service has been started
goauth-service has been started
gorbac-service has been started
godb-service has been started
gonotification-service has been started
goinventory-service has been started
gofabric-service has been started
gotenant-service has been started
goopenstack-service has been started
gohyperv-service has been started
govcenter-service has been started
goswitch-service has been started
goraslog-service has been started
efa-api-docs has been started
rabbitmq has been started
Services have been started
All services have been restarted

The following example starts one service.

# efactl start-service gofabric-service
Are you sure you want to start gofabric-service? [Y/n]
y
gofabric-service has been started

The following example stops one service.

# efactl stop-service gorbac-service
Are you sure you want to stop gorbac-service? [Y/n]
y
gorbac-service has been stopped

The following example restarts one service.

# efactl restart-service rabbitmq
Are you sure you want to restart rabbitmq? [Y/n]
Y
rabbitmq has been stopped
rabbitmq has been started
rabbitmq has been restarted

The following example deletes all logs.

# efactl clean
This will delete all logs.  Are you sure [Y/n]?
Y
Cleaning efa Logs...
Cleaned logs

The following example shows EFA status.

# efactl status
NAME               STATUS   ROLES    AGE   VERSION        LABELS
administrator-08   Ready    master   14h   v1.18.2+k3s1   beta.kubernetes.io/arch=amd64,beta.kubernetes.io/os=linux,keepalived=active,kubernetes.io/arch=amd64,kubernetes.io/hostname=administrator-08,kubernetes.io/os=linux,node-role.kubernetes.io/master=true
NAME                                          READY   STATUS    RESTARTS   AGE     IP             NODE               NOMINATED NODE   READINESS GATES
pod/gosystem-service-6d7b88bcf8-4vvdw         1/1     Running   0          3m19s   10.21.88.128   administrator-08   <none>           <none>
pod/goswitch-service-5646dd59b4-n6dtj         1/1     Running   0          3m15s   10.42.0.28     administrator-08   <none>           <none>
pod/godb-service-0                            1/1     Running   0          3m18s   10.42.0.23     administrator-08   <none>           <none>
pod/efa-api-docs-f5d4c9f6-c7nrk               1/1     Running   0          3m14s   10.42.0.32     administrator-08   <none>           <none>
pod/goopenstack-service-85bc8bb6f6-d2shq      1/1     Running   0          3m16s   10.42.0.27     administrator-08   <none>           <none>
pod/rabbitmq-0                                1/1     Running   0          3m14s   10.42.0.30     administrator-08   <none>           <none>
pod/gonotification-service-658f99657b-87bwx   1/1     Running   1          3m17s   10.21.88.128   administrator-08   <none>           <none>
pod/gorbac-service-5f5f58f474-5fr72           1/1     Running   4          3m18s   10.42.0.22     administrator-08   <none>           <none>
pod/govcenter-service-cd5755577-xq4wg         1/1     Running   4          3m15s   10.42.0.25     administrator-08   <none>           <none>
pod/gofabric-service-58d57686fb-kb8lt         1/1     Running   4          3m17s   10.42.0.31     administrator-08   <none>           <none>
pod/goauth-service-7d677d6b9f-gvqzp           1/1     Running   4          3m18s   10.42.0.21     administrator-08   <none>           <none>
pod/gohyperv-service-57cf444776-nvw4v         1/1     Running   4          3m16s   10.42.0.24     administrator-08   <none>           <none>
pod/gotenant-service-77cccb9cd9-sfblm         1/1     Running   4          3m16s   10.42.0.29     administrator-08   <none>           <none>
pod/goinventory-service-696596b65f-wtf4q      1/1     Running   4          3m17s   10.42.0.26     administrator-08   <none>           <none>
pod/goraslog-service-5b455774b-d6sp5          1/1     Running   0          3m14s   10.21.88.128   administrator-08   <none>           <none>

NAME                             TYPE        CLUSTER-IP      EXTERNAL-IP   PORT(S)                          AGE   SELECTOR
service/db-service               NodePort    10.43.69.174    <none>        5432:30432/TCP                   14h   app=godb-service
service/gofabric-service         ClusterIP   10.43.90.92     <none>        8081/TCP                         14h   app=gofabric-service
service/goinventory-service      ClusterIP   10.43.233.180   <none>        8082/TCP                         14h   app=goinventory-service
service/gotenant-service         ClusterIP   10.43.39.65     <none>        8083/TCP                         14h   app=gotenant-service
service/efa-api-docs             ClusterIP   10.43.114.116   <none>        80/TCP                           14h   app=efa-api-docs
service/gonotification-service   ClusterIP   10.43.206.168   <none>        8088/TCP                         14h   app=gonotification-service
service/goauth-service           ClusterIP   10.43.61.186    <none>        8080/TCP                         14h   app=goauth-service
service/gorbac-service           ClusterIP   10.43.56.156    <none>        8089/TCP                         14h   app=gorbac-service
service/rabbitmq                 NodePort    10.43.232.144   <none>        15672:31672/TCP,5672:30672/TCP   14h   app=rabbitmq
service/goopenstack-service      NodePort    10.43.205.212   <none>        8085:30085/TCP                   14h   app=goopenstack-service
service/govcenter-service        ClusterIP   10.43.49.249    <none>        8086/TCP                         14h   app=govcenter-service
service/gohyperv-service         ClusterIP   10.43.38.199    <none>        8087/TCP                         14h   app=gohyperv-service
service/gosystem-service         ClusterIP   10.43.114.115   <none>        8090/TCP                         14h   app=gosystem-service
service/goswitch-service         ClusterIP   10.43.145.26    <none>        8084/TCP                         14h   app=goswitch-service

NAME                                     READY   UP-TO-DATE   AVAILABLE   AGE   CONTAINERS               IMAGES                 SELECTOR
deployment.apps/gosystem-service         1/1     1            1           14h   gosystem                 gosystem:2.2.0         app=gosystem-service
deployment.apps/goswitch-service         1/1     1            1           14h   goswitch                 goswitch:2.2.0         app=goswitch-service
deployment.apps/efa-api-docs             1/1     1            1           14h   efa-api-docs             efa-api-docs:2.2.0     app=efa-api-docs
deployment.apps/goopenstack-service      1/1     1            1           14h   openstack                goopenstack:2.2.0      app=goopenstack-service
deployment.apps/gonotification-service   1/1     1            1           14h   gonotification-service   gonotification:2.2.0   app=gonotification-service
deployment.apps/gorbac-service           1/1     1            1           14h   go-rbac                  gorbac:2.2.0           app=gorbac-service
deployment.apps/govcenter-service        1/1     1            1           14h   vcenter                  govcenter:2.2.0        app=govcenter-service
deployment.apps/gofabric-service         1/1     1            1           14h   gofabric-service         gofabric:2.2.0         app=gofabric-service
deployment.apps/goauth-service           1/1     1            1           14h   go-auth                  goauth:2.2.0           app=goauth-service
deployment.apps/gohyperv-service         1/1     1            1           14h   hyperv                   gohyperv:2.2.0         app=gohyperv-service
deployment.apps/gotenant-service         1/1     1            1           14h   gotenant-service         gotenant:2.2.0         app=gotenant-service
deployment.apps/goinventory-service      1/1     1            1           14h   goinventory-service      goinventory:2.2.0      app=goinventory-service
deployment.apps/goraslog-service         1/1     1            1           14h   goraslog-service         goraslog:2.2.0         app=goraslog-service

NAME                                                DESIRED   CURRENT   READY   AGE   CONTAINERS               IMAGES                 SELECTOR
replicaset.apps/gosystem-service-6d7b88bcf8         1         1         1       14h   gosystem                 gosystem:2.2.0         app=gosystem-service,pod-template-hash=6d7b88bcf8
replicaset.apps/goswitch-service-5646dd59b4         1         1         1       14h   goswitch                 goswitch:2.2.0         app=goswitch-service,pod-template-hash=5646dd59b4
replicaset.apps/efa-api-docs-f5d4c9f6               1         1         1       14h   efa-api-docs             efa-api-docs:2.2.0     app=efa-api-docs,pod-template-hash=f5d4c9f6
replicaset.apps/goopenstack-service-85bc8bb6f6      1         1         1       14h   openstack                goopenstack:2.2.0      app=goopenstack-service,pod-template-hash=85bc8bb6f6
replicaset.apps/gonotification-service-658f99657b   1         1         1       14h   gonotification-service   gonotification:2.2.0   app=gonotification-service,pod-template-hash=658f99657b
replicaset.apps/gorbac-service-5f5f58f474           1         1         1       14h   go-rbac                  gorbac:2.2.0           app=gorbac-service,pod-template-hash=5f5f58f474
replicaset.apps/govcenter-service-cd5755577         1         1         1       14h   vcenter                  govcenter:2.2.0        app=govcenter-service,pod-template-hash=cd5755577
replicaset.apps/gofabric-service-58d57686fb         1         1         1       14h   gofabric-service         gofabric:2.2.0         app=gofabric-service,pod-template-hash=58d57686fb
replicaset.apps/goauth-service-7d677d6b9f           1         1         1       14h   go-auth                  goauth:2.2.0           app=goauth-service,pod-template-hash=7d677d6b9f
replicaset.apps/gohyperv-service-57cf444776         1         1         1       14h   hyperv                   gohyperv:2.2.0         app=gohyperv-service,pod-template-hash=57cf444776
replicaset.apps/gotenant-service-77cccb9cd9         1         1         1       14h   gotenant-service         gotenant:2.2.0         app=gotenant-service,pod-template-hash=77cccb9cd9
replicaset.apps/goinventory-service-696596b65f      1         1         1       14h   goinventory-service      goinventory:2.2.0      app=goinventory-service,pod-template-hash=696596b65f
replicaset.apps/goraslog-service-5b455774b          1         1         1       14h   goraslog-service         goraslog:2.2.0         app=goraslog-service,pod-template-hash=5b455774b

NAME                            READY   AGE   CONTAINERS     IMAGES
statefulset.apps/godb-service   1/1     14h   godb           postgres-db:2.2.0
statefulset.apps/rabbitmq       1/1     14h   rabbitmq-efa   rabbitmq:2.2.0