{"action":"opened","issue":{"url":"https://api.github.com/repos/Jean-Baptiste-Lasselle/infra-kytes/issues/4","repository_url":"https://api.github.com/repos/Jean-Baptiste-Lasselle/infra-kytes","labels_url":"https://api.github.com/repos/Jean-Baptiste-Lasselle/infra-kytes/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/Jean-Baptiste-Lasselle/infra-kytes/issues/4/comments","events_url":"https://api.github.com/repos/Jean-Baptiste-Lasselle/infra-kytes/issues/4/events","html_url":"https://github.com/Jean-Baptiste-Lasselle/infra-kytes/issues/4","id":370346001,"node_id":"MDU6SXNzdWUzNzAzNDYwMDE=","number":4,"title":"HEALTHCHECK_MONGODB","user":{"login":"Jean-Baptiste-Lasselle","id":35227860,"node_id":"MDQ6VXNlcjM1MjI3ODYw","avatar_url":"https://avatars2.githubusercontent.com/u/35227860?v=4","gravatar_id":"","url":"https://api.github.com/users/Jean-Baptiste-Lasselle","html_url":"https://github.com/Jean-Baptiste-Lasselle","followers_url":"https://api.github.com/users/Jean-Baptiste-Lasselle/followers","following_url":"https://api.github.com/users/Jean-Baptiste-Lasselle/following{/other_user}","gists_url":"https://api.github.com/users/Jean-Baptiste-Lasselle/gists{/gist_id}","starred_url":"https://api.github.com/users/Jean-Baptiste-Lasselle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jean-Baptiste-Lasselle/subscriptions","organizations_url":"https://api.github.com/users/Jean-Baptiste-Lasselle/orgs","repos_url":"https://api.github.com/users/Jean-Baptiste-Lasselle/repos","events_url":"https://api.github.com/users/Jean-Baptiste-Lasselle/events{/privacy}","received_events_url":"https://api.github.com/users/Jean-Baptiste-Lasselle/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-15T21:12:45Z","updated_at":"2018-10-15T21:12:45Z","closed_at":null,"author_association":"OWNER","body":"Le test suivant montre que le healthcheck MongoDB est à corriger : \r\n\r\n```bash\r\n[jibl@pc-100 infra-kytes]$ sudo docker cp ./mongodb/construction/replicaset-health-check mongo:/usr/local/bin/replicaset-health-check.verbeux\r\n[sudo] password for jibl: \r\n[jibl@pc-100 infra-kytes]$ docker exec -it mongo bash -c \"chmod a+x /usr/local/bin/replicaset-health-check.verbeux\"\r\n[jibl@pc-100 infra-kytes]$ docker exec -it mongo bash -c \"/usr/local/bin/replicaset-health-check.verbeux\"\r\nAlors tout va bien, le serveur de BDD mongo est disponible. On peut continuer les vérifications\r\n MONGO-IINIT-REPLICA >>> HEALTHCHECK-REPLICASET ===>>>  DEBUG - [RESULTAT_JSON_REQUETE_MONGO_RS_EXISTE=MongoDB shell version v4.0.3\r\nconnecting to: mongodb://mongo:27017/rocketchat\r\nImplicit session: session { \"id\" : UUID(\"2f02d2fa-5d83-4832-a2a3-5d5582c98d06\") }\r\nMongoDB server version: 4.0.3\r\n{\r\n\t\"set\" : \"rs0\",\r\n\t\"date\" : ISODate(\"2018-10-15T21:10:27.200Z\"),\r\n\t\"myState\" : 1,\r\n\t\"term\" : NumberLong(9),\r\n\t\"syncingTo\" : \"\",\r\n\t\"syncSourceHost\" : \"\",\r\n\t\"syncSourceId\" : -1,\r\n\t\"heartbeatIntervalMillis\" : NumberLong(2000),\r\n\t\"optimes\" : {\r\n\t\t\"lastCommittedOpTime\" : {\r\n\t\t\t\"ts\" : Timestamp(1539637827, 1),\r\n\t\t\t\"t\" : NumberLong(9)\r\n\t\t},\r\n\t\t\"readConcernMajorityOpTime\" : {\r\n\t\t\t\"ts\" : Timestamp(1539637827, 1),\r\n\t\t\t\"t\" : NumberLong(9)\r\n\t\t},\r\n\t\t\"appliedOpTime\" : {\r\n\t\t\t\"ts\" : Timestamp(1539637827, 1),\r\n\t\t\t\"t\" : NumberLong(9)\r\n\t\t},\r\n\t\t\"durableOpTime\" : {\r\n\t\t\t\"ts\" : Timestamp(1539637827, 1),\r\n\t\t\t\"t\" : NumberLong(9)\r\n\t\t}\r\n\t},\r\n\t\"lastStableCheckpointTimestamp\" : Timestamp(1539637766, 1),\r\n\t\"members\" : [\r\n\t\t{\r\n\t\t\t\"_id\" : 0,\r\n\t\t\t\"name\" : \"mongo:27017\",\r\n\t\t\t\"health\" : 1,\r\n\t\t\t\"state\" : 1,\r\n\t\t\t\"stateStr\" : \"PRIMARY\",\r\n\t\t\t\"uptime\" : 20052,\r\n\t\t\t\"optime\" : {\r\n\t\t\t\t\"ts\" : Timestamp(1539637827, 1),\r\n\t\t\t\t\"t\" : NumberLong(9)\r\n\t\t\t},\r\n\t\t\t\"optimeDate\" : ISODate(\"2018-10-15T21:10:27Z\"),\r\n\t\t\t\"syncingTo\" : \"\",\r\n\t\t\t\"syncSourceHost\" : \"\",\r\n\t\t\t\"syncSourceId\" : -1,\r\n\t\t\t\"infoMessage\" : \"\",\r\n\t\t\t\"electionTime\" : Timestamp(1539617776, 1),\r\n\t\t\t\"electionDate\" : ISODate(\"2018-10-15T15:36:16Z\"),\r\n\t\t\t\"configVersion\" : 1,\r\n\t\t\t\"self\" : true,\r\n\t\t\t\"lastHeartbeatMessage\" : \"\"\r\n\t\t}\r\n\t],\r\n\t\"ok\" : 1,\r\n\t\"operationTime\" : Timestamp(1539637827, 1),\r\n\t\"$clusterTime\" : {\r\n\t\t\"clusterTime\" : Timestamp(1539637827, 1),\r\n\t\t\"signature\" : {\r\n\t\t\t\"hash\" : BinData(0,\"AAAAAAAAAAAAAAAAAAAAAAAAAAA=\"),\r\n\t\t\t\"keyId\" : NumberLong(0)\r\n\t\t}\r\n\t}\r\n}] \r\n MONGO-IINIT-REPLICA >>> HEALTHCHECK-REPLICASET ===>>>  le replicaSet [rs0] n'a même pas encore été créé dans l'hôte MongoDB [localhost:27017]: Il est temps de le créer !  \r\n[jibl@pc-100 infra-kytes]$ \r\n\r\n```"}}
{"actor":{"display_login":"Jean-Baptiste-Lasselle"}}