Bug 987773
Summary: | HAProxy instance could be scaled up to more than max number defined in manifest.yml | ||
---|---|---|---|
Product: | OpenShift Online | Reporter: | Jianwei Hou <jhou> |
Component: | Pod | Assignee: | Rajat Chopra <rchopra> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | libra bugs <libra-bugs> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 2.x | CC: | rchopra |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2013-08-07 22:56:16 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Jianwei Hou
2013-07-24 07:02:51 UTC
Fixed in pull request : https://github.com/openshift/origin-server/pull/3154 Tested on devenv_3562, still reproduced this issue, still got one more haproxy gear Here is the manifest.yml of haproxy Scaling: Min: 1 Max: 2 Multiplier: 2 Here is the app info in mongo "group_instances" : [ { "_id" : ObjectId("51f1d77d6d0846283e00000c"), "gears" : [ { "_id" : ObjectId("51f1d77c6d0846283e000001"), "app_dns" : true, "host_singletons" : true, "name" : "php1s", "quarantined" : false, "server_identity" : "ip-10-236-151-86", "sparse_carts" : [ ObjectId("51f1d78c6d0846283e00001c") ], "uid" : null, "uuid" : "51f1d77c6d084615ad000001" }, { "_id" : ObjectId("51f1d7f56d0846283e000065"), "app_dns" : false, "host_singletons" : false, "name" : "fac8d82af59611e29f4522000aec9756", "quarantined" : false, "server_identity" : "ip-10-236-151-86", "sparse_carts" : [ ], "uid" : null, "uuid" : "fac8d82af59611e29f4522000aec9756" }, { "_id" : ObjectId("51f1d7f56d0846283e000066"), "app_dns" : false, "host_singletons" : false, "name" : "fae30df8f59611e29f4522000aec9756", "quarantined" : false, "server_identity" : "ip-10-236-151-86", "sparse_carts" : [ ObjectId("51f1d78c6d0846283e00001c") ], "uid" : null, "uuid" : "fae30df8f59611e29f4522000aec9756" }, { "_id" : ObjectId("51f1d7f56d0846283e000067"), "app_dns" : false, "host_singletons" : false, "name" : "fae6128cf59611e29f4522000aec9756", "quarantined" : false, "server_identity" : "ip-10-236-151-86", "sparse_carts" : [ ], "uid" : null, "uuid" : "fae6128cf59611e29f4522000aec9756" }, { "_id" : ObjectId("51f1d7f56d0846283e000068"), "app_dns" : false, "host_singletons" : false, "name" : "51f1d7f56d084615ad000004", "quarantined" : false, "server_identity" : "ip-10-236-151-86", "sparse_carts" : [ ObjectId("51f1d78c6d0846283e00001c") ], "uid" : null, "uuid" : "51f1d7f56d084615ad000004" }, { "_id" : ObjectId("51f1d7f56d0846283e000069"), "app_dns" : false, "host_singletons" : false, "name" : "972113199135732225015808", "quarantined" : false, "server_identity" : "ip-10-236-151-86", "sparse_carts" : [ ], "uid" : null, "uuid" : "972113199135732225015808" }, { "_id" : ObjectId("51f1d7f56d0846283e00006a"), "app_dns" : false, "host_singletons" : false, "name" : "407885918745554298339328", "quarantined" : false, "server_identity" : "ip-10-236-151-86", "sparse_carts" : [ ], "uid" : null, "uuid" : "407885918745554298339328" } ] } ], Here is the gear details [root@ip-10-236-151-86 openshift]# ls 51f1d77c6d084615ad000001 app-root git haproxy php [root@ip-10-236-151-86 openshift]# ls fac8d82af59611e29f4522000aec9756 app-root git php [root@ip-10-236-151-86 openshift]# ls fae30df8f59611e29f4522000aec9756 app-root git haproxy php [root@ip-10-236-151-86 openshift]# ls fae6128cf59611e29f4522000aec9756 app-root git php [root@ip-10-236-151-86 openshift]# ls 51f1d7f56d084615ad000004 app-root git haproxy php [root@ip-10-236-151-86 openshift]# ls 972113199135732225015808 app-root git php [root@ip-10-236-151-86 openshift]# ls 407885918745554298339328 app-root git php Teseted on devenv_3574, this bug should be fixed now, following comment 2, now the haproxy is created every 2nd gear and in total 2 gears. This bug can be verified once it's on_qa "group_instances" : [ { "_id" : ObjectId("51f63d904fa22cd16e00000c"), "gears" : [ { "_id" : ObjectId("51f63d904fa22cd16e000001"), "app_dns" : true, "host_singletons" : true, "name" : "php1s", "quarantined" : false, "server_identity" : "ip-10-139-36-104", "sparse_carts" : [ ObjectId("51f63d9f4fa22cd16e00001c") ], "uid" : null, "uuid" : "51f63d904fa22c42fb000001" }, { "_id" : ObjectId("51f63eb74fa22cd16e000063"), "app_dns" : false, "host_singletons" : false, "name" : "94738596f83611e28cc722000a8b2468", "quarantined" : false, "server_identity" : "ip-10-139-36-104", "sparse_carts" : [ ], "uid" : null, "uuid" : "94738596f83611e28cc722000a8b2468" }, { "_id" : ObjectId("51f63eb74fa22cd16e000064"), "app_dns" : false, "host_singletons" : false, "name" : "94936fdcf83611e28cc722000a8b2468", "quarantined" : false, "server_identity" : "ip-10-139-36-104", "sparse_carts" : [ ], "uid" : null, "uuid" : "94936fdcf83611e28cc722000a8b2468" }, { "_id" : ObjectId("51f63eb74fa22cd16e000065"), "app_dns" : false, "host_singletons" : false, "name" : "525633959247542856187904", "quarantined" : false, "server_identity" : "ip-10-139-36-104", "sparse_carts" : [ ObjectId("51f63d9f4fa22cd16e00001c") ], "uid" : null, "uuid" : "525633959247542856187904" }, { "_id" : ObjectId("51f63eb74fa22cd16e000066"), "app_dns" : false, "host_singletons" : false, "name" : "51f63eb74fa22c42fb000004", "quarantined" : false, "server_identity" : "ip-10-139-36-104", "sparse_carts" : [ ], "uid" : null, "uuid" : "51f63eb74fa22c42fb000004" }, { "_id" : ObjectId("51f63eb74fa22cd16e000067"), "app_dns" : false, "host_singletons" : false, "name" : "51f63eb74fa22c42fb000005", "quarantined" : false, "server_identity" : "ip-10-139-36-104", "sparse_carts" : [ ], "uid" : null, "uuid" : "51f63eb74fa22c42fb000005" }, { "_id" : ObjectId("51f63eb74fa22cd16e000068"), "app_dns" : false, "host_singletons" : false, "name" : "51f63eb74fa22c42fb000006", "quarantined" : false, "server_identity" : "ip-10-139-36-104", "sparse_carts" : [ ], "uid" : null, "uuid" : "51f63eb74fa22c42fb000006" } ] } ], [root@ip-10-139-36-104 openshift]# ls 51f63d904fa22c42fb000001 app-root git haproxy php [root@ip-10-139-36-104 openshift]# ls 94738596f83611e28cc722000a8b2468 app-root git php [root@ip-10-139-36-104 openshift]# ls 94936fdcf83611e28cc722000a8b2468 app-root git php [root@ip-10-139-36-104 openshift]# ls 525633959247542856187904 app-root git haproxy php [root@ip-10-139-36-104 openshift]# ls 51f63eb74fa22c42fb000004 app-root git php [root@ip-10-139-36-104 openshift]# ls 51f63eb74fa22c42fb000005 app-root git php [root@ip-10-139-36-104 openshift]# ls 51f63eb74fa22c42fb000006 app-root git php Fixed with rev#0bc92a9d4b75514bf667eacdf356581b055d6b6c |