最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

amazon web services - Losing logs when using a tunnel in aws - Stack Overflow

programmeradmin2浏览0评论

I'm using DocumentDB with an EC2 attached, using it as a bastion, and Jenkins and Kubernetes for the cicd

I'm doing a tunnel to handle the communication between EC2 and documentdb

ssh -o StrictHostKeyChecking=no -i "/opt/app/src/mongo-key-pair.pem" 
    -L 27017:mongo-cluster.cluster-asdf.us-east-2.docdb.amazonaws:27017 
             [email protected] -N -f

The database works, but the tests (coverage) stopped working. Leaving aside the possibility of my application not being prepared, I now don't see any trace of them when I execute them on Jenkins.

However, if I enter in one of the pods where the application is being run and use

coverage run --source=src -m pytest --junit-xml=test_result.xml -m typetest src/tests

the tests are executed, and the logs are shown correctly.

What's going on here? Is the tunnel "hiding" the logs? What could I do if so to see the logs in Jenkins?

发布评论

评论列表(0)

  1. 暂无评论