hashicorp / consul-guides

Example usage of HashiCorp Consul
Mozilla Public License 2.0
78 stars 34 forks source link

Product service error message(vault) #34

Open bernardogza opened 5 years ago

bernardogza commented 5 years ago

I am getting this error message when I execute the product service:

2019/04/25 17:04:56 [DEBUG] (logging) enabling syslog on LOCAL5 2019/04/25 17:04:56.277258 [INFO] consul-template v0.19.5 (57b6c71) 2019/04/25 17:04:56.277749 [INFO] (runner) creating new runner (dry: false, once: false) 2019/04/25 17:04:56.278359 [INFO] (runner) creating watcher 2019/04/25 17:04:56.279022 [INFO] (runner) starting 2019/04/25 17:04:56.279308 [INFO] creating pid file at "/tmp/product-service.pid" 2019/04/25 17:04:58.291107 [INFO] (child) spawning: /usr/bin/python3 /opt/product-service/product.py /opt/product-service/product.py:93: SyntaxWarning: name 'db_client' is used prior to global declaration global db_client DEBUG:vaultawsec2:Retrieving a vault (hvac) client... DEBUG:vaultawsec2:No pkcs7 argument provided to auth_ec2 backend. DEBUG:vaultawsec2:Attempting to retrieve information from EC2 metadata service. DEBUG:vaultawsec2:load_aws_ec2_pkcs7_string connecting to http://169.254.169.254/latest/dynamic/instance-identity/pkcs7 DEBUG:urllib3.connectionpool:Starting new HTTP connection (1): 169.254.169.254:80 DEBUG:urllib3.connectionpool:http://169.254.169.254:80 "GET /latest/dynamic/instance-identity/pkcs7 HTTP/1.1" 200 1118 DEBUG:vaultawsec2:No nonce argument provided to auth_ec2 backend. DEBUG:vaultawsec2:Attempting to retrieve information from disk. DEBUG:vaultawsec2:Attempting to load vault token meta nonce from path: /tmp/.vault-token-meta-nonce WARNING:vaultawsec2:Unable to load vault token meta nonce at path: /tmp/.vault-token-meta-nonce DEBUG:vaultawsec2:Nonce loaded: None DEBUG:urllib3.connectionpool:Starting new HTTP connection (1): ec2-54-210-238-235.compute-1.amazonaws.com:8200 DEBUG:urllib3.connectionpool:http://ec2-54-210-238-235.compute-1.amazonaws.com:8200 "POST /v1/auth/aws/login HTTP/1.1" 400 88 ERROR:main:entry for role "configuration-demo-consul_server_role" not found 2019/04/25 17:04:58.593089 [INFO] (runner) child process died 2019/04/25 17:04:58.593660 [ERR] (cli) child process died with exit code 0

v6 commented 5 years ago

Does this seem like a Vault issue, or some problem with AWS?

v6 commented 5 years ago

Do these error messages originate from the Vault Process' Standard Output?

What is "Berny-configuration-demo-vault-role" ? Is that the Vault Role in the Vault AWS Authentication Method?

What exact steps did you take to produce this error?