Skip to content

goconserver 0.1.0

Compare
Choose a tag to compare
@chenglch chenglch released this 14 Dec 08:18
· 81 commits to master since this release

Installation

Example:

wget https://github.com/chenglch/goconserver/files/1558245/goconserver-0.1.0-snap201712140224.x86_64.rpm.tar.gz
tar xvfz goconserver-0.1.0-snap201712140224.x86_64.rpm.tar.gz
yum install goconserver-0.1.0-snap201712140224.x86_64.rpm

Work with xcat

Quick start

Stop conserver at first

# service conserver stop

Register node1 into the goconserver

# makegocons node1
node1: Created
# rcons node1

Unregister node1

# makegocons -d node1

Console log

The console file is under /var/log/goconserver/nodes/ by default.

Swith back to conserver

If you hope to switch back to conserver, just run

service goconserver stop
service conserver start

Work as a standalone service

goconserver can work as a standalone service. If goconserver is started with makegocons, the default ca certificate should be used by goconserver client congo to connect to the server side. Please set the environment variable based on your environment manually, like below:

CONGO_PORT=12430
CONGO_URL=https://c910f05c01bc02k74:12429
CONGO_SERVER_HOST=c910f05c01bc02k74
CONGO_SSL_CA_CERT=/root/.xcat/ca.pem
CONGO_SSL_CERT=/root/.xcat/client-cred.pem
CONGO_CONSOLE_TIMEOUT=3
CONGO_SSL_KEY=/root/.xcat/client-key.pem

The congo command can help you check the status of the resources. For example:
List the session in the goconserver service

# congo list
c460c022 (host: c910f05c01bc02k74)
cmdnode (host: c910f05c01bc02k74)
cmdnode2 (host: c910f05c01bc02k74)
kvmguest1 (host: c910f05c01bc02k74)

Check the detail status

# congo show kvmguest1
{
       	"StorageNode": {
       		"name": "kvmguest1",
       		"driver": "cmd",
       		"params": {
       			"cmd": "/opt/xcat/share/xcat/cons/kvm kvmguest1"
       		},
       		"ondemand": true
       	},
       	"State": "avaiable"   
}

Connect to the console

# congo console kvmguest1

More detail can refer to congo help