Commit f4b636b9 authored by MVernon's avatar MVernon
Browse files

add test suite

parent 9f0a13c5
sda3 in account weight 1.84 port 6002
sda3 in account weight 92 port 6002
sda3 in container weight 1.84 port 6001
sda3 in container weight 92 port 6001
sda4 in object-1 weight 311 port 6022
sda4 in object-1 weight 6.22 port 6022
sdb3 in account weight 1.84 port 6002
sdb3 in account weight 92 port 6002
sdb3 in container weight 1.84 port 6001
sdb3 in container weight 92 port 6001
sdb4 in object-1 weight 311 port 6023
sdb4 in object-1 weight 6.22 port 6023
sdc1 in object weight 4000 port 6010
sdc1 in object weight 80.0 port 6010
sdd1 in object weight 4000 port 6011
sdd1 in object weight 80.0 port 6011
sde1 in object weight 4000 port 6012
sde1 in object weight 80.0 port 6012
sdf1 in object weight 4000 port 6013
sdf1 in object weight 80.0 port 6013
sdg1 in object weight 4000 port 6014
sdg1 in object weight 80.0 port 6014
sdh1 in object weight 4000 port 6015
sdh1 in object weight 80.0 port 6015
sdi1 in object weight 4000 port 6016
sdi1 in object weight 80.0 port 6016
sdj1 in object weight 4000 port 6017
sdj1 in object weight 80.0 port 6017
sdk1 in object weight 4000 port 6018
sdk1 in object weight 80.0 port 6018
sdl1 in object weight 4000 port 6019
sdl1 in object weight 80.0 port 6019
sdm1 in object weight 4000 port 6020
sdm1 in object weight 80.0 port 6020
sdn1 in object weight 4000 port 6021
sdn1 in object weight 80.0 port 6021
Would add 2 host(s), remove 1, change 59 weights
Would add host ms-be9998(10.192.0.91) in zone 1 (region 1) as follows:
Would add host ms-be9999(10.192.0.93) in zone 1 (region 1) as follows:
Would remove ms-be2057/10.192.16.27 from rings: object, account, container, object-1
Would set weight ms-be2028/sda3 in account to 90.16
Would set weight ms-be2028/sda3 in container to 90.16
Would set weight ms-be2028/sda4 in object-1 to 304.78
Would set weight ms-be2028/sdb3 in account to 90.16
Would set weight ms-be2028/sdb3 in container to 90.16
Would set weight ms-be2028/sdb4 in object-1 to 304.78
Would set weight ms-be2028/sdc1 in object to 3920.0
Would set weight ms-be2028/sdd1 in object to 3920.0
Would set weight ms-be2028/sde1 in object to 3920.0
Would set weight ms-be2028/sdf1 in object to 3920.0
Would set weight ms-be2028/sdg1 in object to 3920.0
Would set weight ms-be2028/sdh1 in object to 3920.0
Would set weight ms-be2028/sdi1 in object to 3920.0
Would set weight ms-be2028/sdj1 in object to 0
Would set weight ms-be2028/sdk1 in object to 3920.0
Would set weight ms-be2028/sdl1 in object to 3920.0
Would set weight ms-be2028/sdm1 in object to 3920.0
Would set weight ms-be2028/sdn1 in object to 3920.0
Would set weight ms-be2029/sda3 in account to 0
Would set weight ms-be2029/sda3 in container to 0
Would set weight ms-be2029/sda4 in object-1 to 0
Would set weight ms-be2029/sdb3 in account to 0
Would set weight ms-be2029/sdb3 in container to 0
Would set weight ms-be2029/sdb4 in object-1 to 0
Would set weight ms-be2029/sdc1 in object to 0
Would set weight ms-be2029/sdd1 in object to 0
Would set weight ms-be2029/sde1 in object to 0
Would set weight ms-be2029/sdf1 in object to 0
Would set weight ms-be2029/sdg1 in object to 0
Would set weight ms-be2029/sdh1 in object to 0
Would set weight ms-be2029/sdi1 in object to 0
Would set weight ms-be2029/sdj1 in object to 0
Would set weight ms-be2029/sdk1 in object to 0
Would set weight ms-be2029/sdl1 in object to 0
Would set weight ms-be2029/sdm1 in object to 0
Would set weight ms-be2029/sdn1 in object to 0
Would set weight ms-be2030/sdc1 in object to 3920.0
Would set weight ms-be2031/sdd1 in object to 100
Would set weight ms-be2032/sdf1 in object to 3920.0
Would set weight ms-be2033/sda3 in account to 90.16
Would set weight ms-be2033/sda3 in container to 90.16
Would set weight ms-be2033/sda4 in object-1 to 304.78
Would set weight ms-be2033/sdb3 in account to 90.16
Would set weight ms-be2033/sdb3 in container to 90.16
Would set weight ms-be2033/sdb4 in object-1 to 304.78
Would set weight ms-be2033/sdc1 in object to 3920.0
Would set weight ms-be2033/sdd1 in object to 3920.0
Would set weight ms-be2033/sde1 in object to 3920.0
Would set weight ms-be2033/sdf1 in object to 3920.0
Would set weight ms-be2033/sdg1 in object to 3920.0
Would set weight ms-be2033/sdh1 in object to 3920.0
Would set weight ms-be2033/sdi1 in object to 3920.0
Would set weight ms-be2033/sdj1 in object to 0
Would set weight ms-be2033/sdk1 in object to 3920.0
Would set weight ms-be2033/sdl1 in object to 3920.0
Would set weight ms-be2033/sdm1 in object to 3920.0
Would set weight ms-be2033/sdn1 in object to 3920.0
Would set weight ms-be2034/sdd1 in object to 0
Would set weight ms-be2035/sdd1 in object to 0
---
# yamllint disable rule:line-length
schemes:
prod:
objects: [sdc1, sdd1, sde1, sdf1, sdg1, sdh1, sdi1, sdj1, sdk1, sdl1, sdm1, sdn1]
accounts: &ap [sda3, sdb3]
containers: *ap
ssds: &sp [sda4, sdb4]
weight:
objects: 4000
accounts: &acw 92
containers: *acw
ssds: 311
prod24:
objects: [sdc1, sdd1, sde1, sdf1, sdg1, sdh1, sdi1, sdj1, sdk1, sdl1, sdm1, sdn1, sdo1, sdp1, sdq1, sdr1, sds1, sdt1, sdu1, sdv1, sdw1, sdx1, sdy1, sdz1]
accounts: *ap
containers: *ap
ssds: *sp
weight:
objects: 8000
accounts: *acw
containers: *acw
ssds: 311
hosts:
prod:
- ms-be9998: #fake test host
- immediate
- ms-be9999 #fake test host
- ms-be2028:
- drain
- sdj1: immediate
- ms-be2029:
- failed
- ms-be2030:
- sdc1: 0
- ms-be2031:
- sdd1: [100, immediate]
- ms-be2032:
- sdf1: drain
- ms-be2033:
- drain
- sdj1: [immediate]
- ms-be2034:
- immediate
- sdd1: 0
- ms-be2035:
- sdd1: failed
- ms-be2036
- ms-be2037
- ms-be2038
- ms-be2039
- ms-be2040
- ms-be2041
- ms-be2042
- ms-be2043
- ms-be2044
- ms-be2045
- ms-be2046
- ms-be2047
- ms-be2048
- ms-be2049
- ms-be2050
- ms-be2051
- ms-be2052
- ms-be2053
- ms-be2054
- ms-be2055
- ms-be2056
prod24:
# - ms-be2057
- ms-be2058
- ms-be2059
- ms-be2060
- ms-be2061
- ms-be2062
- ms-be2063
- ms-be2064
- ms-be2065
sda3 in account weight 92 port 6002
sda3 in container weight 92 port 6001
sda4 in object-1 weight 311 port 6022
sdb3 in account weight 92 port 6002
sdb3 in container weight 92 port 6001
sdb4 in object-1 weight 311 port 6023
sdc1 in object weight 4000 port 6010
sdd1 in object weight 4000 port 6011
sde1 in object weight 4000 port 6012
sdf1 in object weight 4000 port 6013
sdg1 in object weight 4000 port 6014
sdh1 in object weight 4000 port 6015
sdi1 in object weight 4000 port 6016
sdj1 in object weight 4000 port 6017
sdk1 in object weight 4000 port 6018
sdl1 in object weight 4000 port 6019
sdm1 in object weight 4000 port 6020
sdn1 in object weight 4000 port 6021
skipping addition of ms-be9999 as not immediate
Would add 1 host(s), remove 0, change 23 weights
Would add host ms-be9998(10.192.0.91) in zone 1 (region 1) as follows:
Would set weight ms-be2028/sdj1 in object to 0
Would set weight ms-be2029/sda3 in account to 0
Would set weight ms-be2029/sda3 in container to 0
Would set weight ms-be2029/sda4 in object-1 to 0
Would set weight ms-be2029/sdb3 in account to 0
Would set weight ms-be2029/sdb3 in container to 0
Would set weight ms-be2029/sdb4 in object-1 to 0
Would set weight ms-be2029/sdc1 in object to 0
Would set weight ms-be2029/sdd1 in object to 0
Would set weight ms-be2029/sde1 in object to 0
Would set weight ms-be2029/sdf1 in object to 0
Would set weight ms-be2029/sdg1 in object to 0
Would set weight ms-be2029/sdh1 in object to 0
Would set weight ms-be2029/sdi1 in object to 0
Would set weight ms-be2029/sdj1 in object to 0
Would set weight ms-be2029/sdk1 in object to 0
Would set weight ms-be2029/sdl1 in object to 0
Would set weight ms-be2029/sdm1 in object to 0
Would set weight ms-be2029/sdn1 in object to 0
Would set weight ms-be2031/sdd1 in object to 100
Would set weight ms-be2033/sdj1 in object to 0
Would set weight ms-be2034/sdd1 in object to 0
Would set weight ms-be2035/sdd1 in object to 0
# Fake hosts file for testing swift_ring_manager
#This is a fake host! IP is in fact kafamon2002.codfw.wmnet
ms-be9998 10.192.0.91
#This is a fake host! IP is in fact ganeti-test2003.codfw.wmnet
ms-be9999 10.192.0.93
ms-be2051 10.192.0.149
ms-be2062 10.192.0.123
ms-be2030 10.192.0.90
ms-be2031 10.192.16.13
ms-be2032 10.192.16.14
ms-be2033 10.192.16.15
ms-be2034 10.192.32.164
ms-be2035 10.192.32.165
ms-be2036 10.192.32.166
ms-be2037 10.192.48.81
ms-be2038 10.192.48.82
ms-be2039 10.192.48.83
ms-be2050 10.192.48.117
ms-be2058 10.192.32.12
ms-be2059 10.192.48.7
ms-be2064 10.192.32.56
ms-be2056 10.192.48.137
ms-be2053 10.192.16.73
ms-be2054 10.192.32.184
ms-be2055 10.192.32.185
ms-be2063 10.192.16.52
ms-be2052 10.192.0.150
ms-be2061 10.192.48.8
ms-be2060 10.192.0.13
ms-be2065 10.192.48.167
ms-be2040 10.192.0.15
ms-be2045 10.192.0.106
ms-be2044 10.192.0.105
ms-be2047 10.192.16.78
ms-be2046 10.192.16.77
ms-be2041 10.192.16.72
ms-be2043 10.192.48.113
ms-be2029 10.192.0.89
ms-be2028 10.192.0.88
ms-be2042 10.192.32.14
ms-be2049 10.192.32.13
ms-be2048 10.192.32.11
ms-be2057 10.192.16.27
../ms-codfw-changes/account.builder
\ No newline at end of file
../ms-codfw-changes/container.builder
\ No newline at end of file
Would add 0 host(s), remove 0, change 0 weights
---
# yamllint disable rule:line-length
schemes:
prod:
objects: [sdc1, sdd1, sde1, sdf1, sdg1, sdh1, sdi1, sdj1, sdk1, sdl1, sdm1, sdn1]
accounts: &ap [sda3, sdb3]
containers: *ap
ssds: &sp [sda4, sdb4]
weight:
objects: 4000
accounts: &acw 92
containers: *acw
ssds: 311
prod24:
objects: [sdc1, sdd1, sde1, sdf1, sdg1, sdh1, sdi1, sdj1, sdk1, sdl1, sdm1, sdn1, sdo1, sdp1, sdq1, sdr1, sds1, sdt1, sdu1, sdv1, sdw1, sdx1, sdy1, sdz1]
accounts: *ap
containers: *ap
ssds: *sp
weight:
objects: 8000
accounts: *acw
containers: *acw
ssds: 311
hosts:
prod:
- ms-be2028
- ms-be2029:
- ms-be2030
- ms-be2031
- ms-be2032
- ms-be2033
- ms-be2034
- ms-be2035
- ms-be2036
- ms-be2037
- ms-be2038
- ms-be2039
- ms-be2040
- ms-be2041
- ms-be2042
- ms-be2043
- ms-be2044
- ms-be2045
- ms-be2046
- ms-be2047
- ms-be2048
- ms-be2049
- ms-be2050
- ms-be2051
- ms-be2052
- ms-be2053
- ms-be2054
- ms-be2055
- ms-be2056
prod24:
- ms-be2057
- ms-be2058
- ms-be2059
- ms-be2060
- ms-be2061
- ms-be2062
- ms-be2063
- ms-be2064
- ms-be2065
full_output.txt
\ No newline at end of file
../ms-codfw-changes/object-1.builder
\ No newline at end of file
../ms-codfw-changes/object.builder
\ No newline at end of file
# Fake hosts file for testing swift_ring_manager
ms-be2051 10.192.0.149
ms-be2062 10.192.0.123
ms-be2030 10.192.0.90
ms-be2031 10.192.16.13
ms-be2032 10.192.16.14
ms-be2033 10.192.16.15
ms-be2034 10.192.32.164
ms-be2035 10.192.32.165
ms-be2036 10.192.32.166
ms-be2037 10.192.48.81
ms-be2038 10.192.48.82
ms-be2039 10.192.48.83
ms-be2050 10.192.48.117
ms-be2058 10.192.32.12
ms-be2059 10.192.48.7
ms-be2064 10.192.32.56
ms-be2056 10.192.48.137
ms-be2053 10.192.16.73
ms-be2054 10.192.32.184
ms-be2055 10.192.32.185
ms-be2063 10.192.16.52
ms-be2052 10.192.0.150
ms-be2061 10.192.48.8
ms-be2060 10.192.0.13
ms-be2065 10.192.48.167
ms-be2040 10.192.0.15
ms-be2045 10.192.0.106
ms-be2044 10.192.0.105
ms-be2047 10.192.16.78
ms-be2046 10.192.16.77
ms-be2041 10.192.16.72
ms-be2043 10.192.48.113
ms-be2029 10.192.0.89
ms-be2028 10.192.0.88
ms-be2042 10.192.32.14
ms-be2049 10.192.32.13
ms-be2048 10.192.32.11
ms-be2057 10.192.16.27
../ms-codfw-nochange/full_output.txt
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment