(Migrated) Installing from Github, failing at quickstart create

(This message has been automatically imported from the retired mailing list)

Hi,

Did the number of parameters for “quickstart create” change in 2.0pre ? Or
am I missing something obvious?

I’ve cloned the git repo, run install.sh and I am now trying to create qs
cluster using postgresql as ODB.

On zato 1.1 the below quickstart statement ran fine.

user@zatoTest:~/zato$ mkdir qs
user@zatoTest:~/zato$ zato --version
Zato 2.0.0pre0.rev-6c828ab3
user@zatoTest:~/zato$ zato quickstart create ~/zato/qs postgresql localhost
5432 zato1 zato1 localhost 6379
usage: zato [-h] [–version]

{ca,check-config,component-version,create,decrypt,delete,encrypt,enmasse,info,from-config,quickstart,service,start,stop,update}

zato: error: unrecognized arguments: zato1 zato1 localhost 6379

Yesterday I could quickstart using “sqlite” as a param - that works but I’d
rather use postgre.

Thanx
-Bad

Yes they have changed, I’ve used this to get an environment using 2pre:

zato@chunli:~/zato$ zato quickstart create ~/env1/ postgresql localhost 6379 --odb_host localhost --odb_port 5432 --odb_user zato1 --odb_db_name zato1 --odb_password 123456 --cluster_name ivaano

I’ve used the following to get the parameters needed

zato@chunli:~/env1/server1/logs$ zato quickstart create -h
usage: zato quickstart create [-h] [–store-log] [–verbose] [–store-config]
[–odb_host ODB_HOST] [–odb_port ODB_PORT]
[–odb_user ODB_USER]
[–odb_db_name ODB_DB_NAME]
[–postgresql_schema POSTGRESQL_SCHEMA]
[–odb_password ODB_PASSWORD]
[–kvdb_password KVDB_PASSWORD]
[–cluster_name CLUSTER_NAME]
[–servers SERVERS]
path odb_type kvdb_host kvdb_port

Quickly creates a working cluster

positional arguments:
path Path to an empty directory for the quickstart cluster
odb_type Operational database type, must be one of (‘oracle’,
‘postgresql’, ‘mysql’, ‘sqlite’)
kvdb_host Key/value DB host
kvdb_port Key/value DB port

optional arguments:
-h, --help show this help message and exit
–store-log Whether to store an execution log
–verbose Show verbose output
–store-config Whether to store config options in a file for a later
use
–odb_host ODB_HOST Operational database host
–odb_port ODB_PORT Operational database port
–odb_user ODB_USER Operational database user
–odb_db_name ODB_DB_NAME
Operational database name
–postgresql_schema POSTGRESQL_SCHEMA
Operational database schema (PostgreSQL only)
–odb_password ODB_PASSWORD
ODB database password
–kvdb_password KVDB_PASSWORD
Key/value database password
–cluster_name CLUSTER_NAME
Name to be given to the new cluster
–servers SERVERS Number of servers to be created

On Sep 17, 2014, at 11:13 PM, Baad Sequel badsequel@gmail.com wrote:

Hi,

Did the number of parameters for “quickstart create” change in 2.0pre ? Or am I missing something obvious?

I’ve cloned the git repo, run install.sh and I am now trying to create qs cluster using postgresql as ODB.

On zato 1.1 the below quickstart statement ran fine.

user@zatoTest:~/zato$ mkdir qs
user@zatoTest:~/zato$ zato --version
Zato 2.0.0pre0.rev-6c828ab3
user@zatoTest:~/zato$ zato quickstart create ~/zato/qs postgresql localhost 5432 zato1 zato1 localhost 6379
usage: zato [-h] [–version]
{ca,check-config,component-version,create,decrypt,delete,encrypt,enmasse,info,from-config,quickstart,service,start,stop,update}

zato: error: unrecognized arguments: zato1 zato1 localhost 6379

Yesterday I could quickstart using “sqlite” as a param - that works but I’d rather use postgre.

Thanx
-Bad