Suman Deb
Suman Deb
we are running this on the master it self. There is no minion on which we are running this. salt master db.db_create_user user="suman" password="set4now" ci_id="sub-1504158985538" dbname="GGG" -l debug db.py takes...
i already did that...here is the latest run command and the log root@cri-dev-postgres:/etc/salt/pki/minion# salt master db.db_create_user user="suman" password="set4now" ci_id="sub-1504158985538" dbname="GGG" -l debug [DEBUG ] Reading configuration from /etc/salt/master [DEBUG ]...
https://gist.github.com/Set4now/0c3ad101aede9804be22447c90dde7aa
update...salt master with custom modules (db.py) now returning error. (same error) but salt-call works... where as if i do salt master cmd.run ifconfig it works..
see the date time diff (50 secs) for salt-call root@cri-dev-postgres:~# date;salt-call db.run_query template="oracle_show_client_version" ci_id="sub-1504158985538";date Fri Sep 8 11:27:04 PDT 2017 [DEBUG ] Configuration file path: /etc/salt/minion [WARNING ] Insecure logging...
ignore the fatal error..
``` def __connection(ci_id, query = None, template = None, dbname = None, pillar = None): #ci_details = salt.utils.cridbconnect.get_ci(ci_id) if template != None: query = salt.utils.cridbconnect.read_template(template, pillar) if query == False:...
this module use one more modules inside /salt/utils directory.. i have increased gather_job_timeout: 20 timeout: 100 as well... it above my head that if the same module works with salt-call,...
root@cri-dev-postgres:~# salt master db.run_query template="oracle_show_client_version" ci_id="sub-1504158985538" -l debug [DEBUG ] Reading configuration from /etc/salt/master [DEBUG ] Including configuration from '/etc/salt/master.d/integration.conf' [DEBUG ] Reading configuration from /etc/salt/master.d/integration.conf [DEBUG ] Using cached...
You can always run the salt master command with --async, that will give you the job id, then you can use the job id to look in the job cache...