{"action":"created","issue":{"url":"https://api.github.com/repos/Mashape/kong/issues/1890","repository_url":"https://api.github.com/repos/Mashape/kong","labels_url":"https://api.github.com/repos/Mashape/kong/issues/1890/labels{/name}","comments_url":"https://api.github.com/repos/Mashape/kong/issues/1890/comments","events_url":"https://api.github.com/repos/Mashape/kong/issues/1890/events","html_url":"https://github.com/Mashape/kong/issues/1890","id":194922487,"number":1890,"title":"pg_xxx parameters are not be refreshed after executing \"reload\" command","user":{"login":"TNTest","id":470968,"avatar_url":"https://avatars.githubusercontent.com/u/470968?v=3","gravatar_id":"","url":"https://api.github.com/users/TNTest","html_url":"https://github.com/TNTest","followers_url":"https://api.github.com/users/TNTest/followers","following_url":"https://api.github.com/users/TNTest/following{/other_user}","gists_url":"https://api.github.com/users/TNTest/gists{/gist_id}","starred_url":"https://api.github.com/users/TNTest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TNTest/subscriptions","organizations_url":"https://api.github.com/users/TNTest/orgs","repos_url":"https://api.github.com/users/TNTest/repos","events_url":"https://api.github.com/users/TNTest/events{/privacy}","received_events_url":"https://api.github.com/users/TNTest/received_events","type":"User","site_admin":false},"labels":[{"id":499487708,"url":"https://api.github.com/repos/Mashape/kong/labels/support","name":"support","color":"5319e7","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-12-12T09:09:40Z","updated_at":"2016-12-15T04:25:57Z","closed_at":"2016-12-15T04:25:57Z","body":"### Summary\r\n\r\npg_xxx( pg_host, pg_port and etc ) parameters are not be refreshed after executing \"reload\" command\r\n\r\n### Steps To Reproduce\r\n\r\n1. kong start\r\n2. export KONG_PG_HOST=something_not_exists\r\n3. kong reload -vv\r\n4. log shows pg_host is using new value:something_not_exists\r\n4. curl  -X POST --url http://localhost:8001/apis/ --data \"name=testpgparam\" --data \"upstream_url=http://test:8782\" --data \"request_path=/testpgparam\" --data \"preserve_host=true\" \r\n5. It returns 20x . But errors are expected here.\r\n### Additional Details & Logs\r\n- Kong version (`$ kong version`) 0.9.5\r\n- Kong debug-level startup logs (`$ kong reload --vv`):\r\n```log\r\n2016/12/12 09:05:17 [verbose] Kong: 0.9.5\r\n2016/12/12 09:05:17 [debug] ngx_lua: 10006\r\n2016/12/12 09:05:17 [debug] nginx: 1011002\r\n2016/12/12 09:05:17 [debug] Lua: LuaJIT 2.1.0-beta2\r\n2016/12/12 09:05:17 [debug] PRNG seed: 114912207141\r\n2016/12/12 09:05:17 [verbose] no config file found at /etc/kong.conf\r\n2016/12/12 09:05:17 [verbose] reading config file at /etc/kong/kong.conf\r\n2016/12/12 09:05:17 [debug] KONG_LOG_LEVEL ENV found with \"info\"\r\n2016/12/12 09:05:17 [debug] KONG_PROXY_LISTEN ENV found with \"0.0.0.0:80\"\r\n2016/12/12 09:05:17 [debug] KONG_MEM_CACHE_SIZE ENV found with \"24m\"\r\n2016/12/12 09:05:17 [debug] KONG_DNS_RESOLVER ENV found with \"169.254.169.250\"\r\n2016/12/12 09:05:17 [debug] KONG_DNSMASQ ENV found with \"off\"\r\n2016/12/12 09:05:17 [debug] KONG_PG_HOST ENV found with \"something_not_exists\"\r\n2016/12/12 09:05:17 [debug] KONG_DATABASE ENV found with \"postgres\"\r\n2016/12/12 09:05:17 [debug] KONG_NGINX_WORKER_PROCESSES ENV found with \"1\"\r\n2016/12/12 09:05:17 [debug] admin_listen = \"0.0.0.0:8001\"\r\n2016/12/12 09:05:17 [debug] anonymous_reports = true\r\n2016/12/12 09:05:17 [debug] cassandra_consistency = \"ONE\"\r\n2016/12/12 09:05:17 [debug] cassandra_contact_points = {\"127.0.0.1\"}\r\n2016/12/12 09:05:17 [debug] cassandra_data_centers = {\"dc1:2\",\"dc2:3\"}\r\n2016/12/12 09:05:17 [debug] cassandra_keyspace = \"kong\"\r\n2016/12/12 09:05:17 [debug] cassandra_port = 9042\r\n2016/12/12 09:05:17 [debug] cassandra_repl_factor = 1\r\n2016/12/12 09:05:17 [debug] cassandra_repl_strategy = \"SimpleStrategy\"\r\n2016/12/12 09:05:17 [debug] cassandra_ssl = false\r\n2016/12/12 09:05:17 [debug] cassandra_ssl_verify = false\r\n2016/12/12 09:05:17 [debug] cassandra_timeout = 5000\r\n2016/12/12 09:05:17 [debug] cassandra_username = \"kong\"\r\n2016/12/12 09:05:17 [debug] cluster_listen = \"0.0.0.0:7946\"\r\n2016/12/12 09:05:17 [debug] cluster_listen_rpc = \"127.0.0.1:7373\"\r\n2016/12/12 09:05:17 [debug] cluster_profile = \"wan\"\r\n2016/12/12 09:05:17 [debug] cluster_ttl_on_failure = 3600\r\n2016/12/12 09:05:17 [debug] custom_plugins = {\"authentication\"}\r\n2016/12/12 09:05:17 [debug] database = \"postgres\"\r\n2016/12/12 09:05:17 [debug] dns_resolver = \"169.254.169.250\"\r\n2016/12/12 09:05:17 [debug] dnsmasq = false\r\n2016/12/12 09:05:17 [debug] dnsmasq_port = 8053\r\n2016/12/12 09:05:17 [debug] log_level = \"info\"\r\n2016/12/12 09:05:17 [debug] lua_code_cache = \"on\"\r\n2016/12/12 09:05:17 [debug] lua_package_cpath = \"\"\r\n2016/12/12 09:05:17 [debug] lua_package_path = \"?/init.lua;./kong/?.lua\"\r\n2016/12/12 09:05:17 [debug] lua_ssl_verify_depth = 1\r\n2016/12/12 09:05:17 [debug] mem_cache_size = \"24m\"\r\n2016/12/12 09:05:17 [debug] nginx_daemon = \"on\"\r\n2016/12/12 09:05:17 [debug] nginx_optimizations = true\r\n2016/12/12 09:05:17 [debug] nginx_worker_processes = \"1\"\r\n2016/12/12 09:05:17 [debug] pg_database = \"kong\"\r\n2016/12/12 09:05:17 [debug] pg_host = \"something_not_exists\"\r\n2016/12/12 09:05:17 [debug] pg_port = 5432\r\n2016/12/12 09:05:17 [debug] pg_ssl = false\r\n2016/12/12 09:05:17 [debug] pg_ssl_verify = false\r\n2016/12/12 09:05:17 [debug] pg_user = \"kong\"\r\n2016/12/12 09:05:17 [debug] prefix = \"/usr/local/kong/\"\r\n2016/12/12 09:05:17 [debug] proxy_listen = \"0.0.0.0:80\"\r\n2016/12/12 09:05:17 [debug] proxy_listen_ssl = \"0.0.0.0:8443\"\r\n2016/12/12 09:05:17 [debug] serf_path = \"serf\"\r\n2016/12/12 09:05:17 [debug] ssl = true\r\n2016/12/12 09:05:17 [verbose] prefix in use: /usr/local/kong\r\n2016/12/12 09:05:17 [verbose] preparing nginx prefix directory at /usr/local/kong\r\n2016/12/12 09:05:17 [verbose] saving serf identifier to /usr/local/kong/serf/serf.id\r\n2016/12/12 09:05:17 [debug] searching for OpenResty 'resty' executable\r\n2016/12/12 09:05:17 [debug] /usr/local/openresty/bin/resty -V: 'nginx version: openresty/1.11.2.1'\r\n2016/12/12 09:05:17 [debug] found OpenResty 'resty' executable at /usr/local/openresty/bin/resty\r\n2016/12/12 09:05:17 [verbose] saving serf shell script handler to /usr/local/kong/serf/serf_event.sh\r\n2016/12/12 09:05:17 [verbose] SSL enabled, no custom certificate set: using default certificate\r\n2016/12/12 09:05:17 [verbose] default SSL certificate found at /usr/local/kong/ssl/kong-default.crt\r\n2016/12/12 09:05:17 [debug] sending signal to pid at: /usr/local/kong/pids/serf.pid\r\n2016/12/12 09:05:17 [debug] kill -0 `cat /usr/local/kong/pids/serf.pid` >/dev/null 2>&1\r\n2016/12/12 09:05:17 [verbose] serf agent not running, deleting /usr/local/kong/pids/serf.pid\r\n2016/12/12 09:05:17 [debug] checking 'serf' executable from 'serf_path' config setting\r\n2016/12/12 09:05:17 [debug] serf version: 'Serf v0.7.0'\r\n...\r\n```\r\n- Operating System: CentOS Linux release 7.2.1511 (Core)\r\n"},"comment":{"url":"https://api.github.com/repos/Mashape/kong/issues/comments/267235797","html_url":"https://github.com/Mashape/kong/issues/1890#issuecomment-267235797","issue_url":"https://api.github.com/repos/Mashape/kong/issues/1890","id":267235797,"user":{"login":"thefosk","id":964813,"avatar_url":"https://avatars.githubusercontent.com/u/964813?v=3","gravatar_id":"","url":"https://api.github.com/users/thefosk","html_url":"https://github.com/thefosk","followers_url":"https://api.github.com/users/thefosk/followers","following_url":"https://api.github.com/users/thefosk/following{/other_user}","gists_url":"https://api.github.com/users/thefosk/gists{/gist_id}","starred_url":"https://api.github.com/users/thefosk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thefosk/subscriptions","organizations_url":"https://api.github.com/users/thefosk/orgs","repos_url":"https://api.github.com/users/thefosk/repos","events_url":"https://api.github.com/users/thefosk/events{/privacy}","received_events_url":"https://api.github.com/users/thefosk/received_events","type":"User","site_admin":false},"created_at":"2016-12-15T04:25:57Z","updated_at":"2016-12-15T04:25:57Z","body":"Waiting on Docker to merge the PR for 0.9.6 (1-2 days). Currently available at https://github.com/Mashape/docker-kong/tree/0.9.6 "}}
{"actor":{"display_login":"thefosk"}}