Skip to content

Conversation

@pareshpp
Copy link

I have tried to add a unit test script which will very the cluster and system status post installation.

neadm_services(){

echo -e "\e[1;32mChecking nedge services...\e[0m"
for PROCESS in docker ccowgw auditserv ccowserv logger networkWorker restWorker
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ccowgws3 not ccowgw

for PROCESS in docker ccowgw auditserv ccowserv logger networkWorker restWorker
do
CHECK=$0
OUTPUT=$(ps aux | grep -v grep | grep -v $CHECK | grep $PROCESS)
Copy link

@kschoche kschoche Dec 2, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ideally you parse output of source /opt/nedge/env.sh && /opt/nedge/nmf/nefadm status | grep online for (rest network ccowserv docker ccowgws3)
This obviously must run from inside each container.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

source is not working inside container. I am not sure if it is a bug.

root@data01-ab:# docker exec -it nedge-data-s3 ls /opt/nedge/env.sh -lrt
-rw-r--r-- 1 root root 1598 Nov 26 01:05 /opt/nedge/env.sh
root@data01-ab:
# docker exec -it nedge-data-s3 source /opt/nedge/env.sh
rpc error: code = 13 desc = invalid header field value "oci runtime error: exec failed: container_linux.go:247: starting container process caused "exec: \"source\": executable file not found in $PATH"\n"
root@data01-ab:~#

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

Successfully merging this pull request may close these issues.

2 participants