{"action":"closed","issue":{"url":"https://api.github.com/repos/Tencent/bk-sops/issues/930","repository_url":"https://api.github.com/repos/Tencent/bk-sops","labels_url":"https://api.github.com/repos/Tencent/bk-sops/issues/930/labels{/name}","comments_url":"https://api.github.com/repos/Tencent/bk-sops/issues/930/comments","events_url":"https://api.github.com/repos/Tencent/bk-sops/issues/930/events","html_url":"https://github.com/Tencent/bk-sops/issues/930","id":481536920,"node_id":"MDU6SXNzdWU0ODE1MzY5MjA=","number":930,"title":"首次部署除了master的服务器，其他服务器进程获取不到环境变量","user":{"login":"pagezhou","id":8849151,"node_id":"MDQ6VXNlcjg4NDkxNTE=","avatar_url":"https://avatars2.githubusercontent.com/u/8849151?v=4","gravatar_id":"","url":"https://api.github.com/users/pagezhou","html_url":"https://github.com/pagezhou","followers_url":"https://api.github.com/users/pagezhou/followers","following_url":"https://api.github.com/users/pagezhou/following{/other_user}","gists_url":"https://api.github.com/users/pagezhou/gists{/gist_id}","starred_url":"https://api.github.com/users/pagezhou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pagezhou/subscriptions","organizations_url":"https://api.github.com/users/pagezhou/orgs","repos_url":"https://api.github.com/users/pagezhou/repos","events_url":"https://api.github.com/users/pagezhou/events{/privacy}","received_events_url":"https://api.github.com/users/pagezhou/received_events","type":"User","site_admin":false},"labels":[{"id":1279834650,"node_id":"MDU6TGFiZWwxMjc5ODM0NjUw","url":"https://api.github.com/repos/Tencent/bk-sops/labels/1.inner","name":"1.inner","color":"576bcc","default":false},{"id":1322664219,"node_id":"MDU6TGFiZWwxMzIyNjY0MjE5","url":"https://api.github.com/repos/Tencent/bk-sops/labels/2.optimization","name":"2.optimization","color":"ee0701","default":false},{"id":1334723402,"node_id":"MDU6TGFiZWwxMzM0NzIzNDAy","url":"https://api.github.com/repos/Tencent/bk-sops/labels/3.high","name":"3.high","color":"db9f60","default":false},{"id":1279838447,"node_id":"MDU6TGFiZWwxMjc5ODM4NDQ3","url":"https://api.github.com/repos/Tencent/bk-sops/labels/4.resolved","name":"4.resolved","color":"93c2d8","default":false}],"state":"closed","locked":false,"assignee":{"login":"pagezhou","id":8849151,"node_id":"MDQ6VXNlcjg4NDkxNTE=","avatar_url":"https://avatars2.githubusercontent.com/u/8849151?v=4","gravatar_id":"","url":"https://api.github.com/users/pagezhou","html_url":"https://github.com/pagezhou","followers_url":"https://api.github.com/users/pagezhou/followers","following_url":"https://api.github.com/users/pagezhou/following{/other_user}","gists_url":"https://api.github.com/users/pagezhou/gists{/gist_id}","starred_url":"https://api.github.com/users/pagezhou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pagezhou/subscriptions","organizations_url":"https://api.github.com/users/pagezhou/orgs","repos_url":"https://api.github.com/users/pagezhou/repos","events_url":"https://api.github.com/users/pagezhou/events{/privacy}","received_events_url":"https://api.github.com/users/pagezhou/received_events","type":"User","site_admin":false},"assignees":[{"login":"pagezhou","id":8849151,"node_id":"MDQ6VXNlcjg4NDkxNTE=","avatar_url":"https://avatars2.githubusercontent.com/u/8849151?v=4","gravatar_id":"","url":"https://api.github.com/users/pagezhou","html_url":"https://github.com/pagezhou","followers_url":"https://api.github.com/users/pagezhou/followers","following_url":"https://api.github.com/users/pagezhou/following{/other_user}","gists_url":"https://api.github.com/users/pagezhou/gists{/gist_id}","starred_url":"https://api.github.com/users/pagezhou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pagezhou/subscriptions","organizations_url":"https://api.github.com/users/pagezhou/orgs","repos_url":"https://api.github.com/users/pagezhou/repos","events_url":"https://api.github.com/users/pagezhou/events{/privacy}","received_events_url":"https://api.github.com/users/pagezhou/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2019-08-16T10:01:40Z","updated_at":"2019-08-30T07:28:32Z","closed_at":"2019-08-30T07:28:32Z","author_association":"COLLABORATOR","body":"问题描述\r\n=======\r\n<!-- 这里写问题描述 -->\r\nPaaS再部署应用时，只有master服务器会执行migrations，其他APPO服务器可能在数据库未初始化时拉起进程，执行 django setup 中的代码，导致标准运维首次部署除了master的服务器，其他服务器进程获取不到环境变量\r\n\r\n重现方法\r\n=======\r\n<!-- 列出如何重现的方法或操作步骤 -->\r\n\r\n\r\n<!-- **重要提醒**: 请优先尝试部署使用最新发布的版本 (发布清单： https://github.com/Tencent/bk-sops/releases), 如果问题不能在最新发布的版本里重现，说明此问题已经被修复。 -->\r\n\r\n\r\n关键信息\r\n=======\r\n\r\n<!--  **重要提醒**: 这些关键信息会辅助我们快速定位问题。 -->\r\n\r\n请提供以下信息:\r\n\r\n - [x] bk-sops   版本 (发布版本号 或 git tag)： V3.3.20\r\n - [ ] 蓝鲸PaaS   版本：<!-- `<示例：PaaS 3.0.58、PaaSAgent 3.0.9`  -->\r\n - [ ] bk_sops 异常日志：\r\n"}}
{"actor":{"display_login":"pagezhou"}}