System tests for k8s deploy have incorrect check for etcd nodes number
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
fuel-ccp |
Confirmed
|
Medium
|
Fuel CCP Bug Team |
Bug Description
Steps to reproduce:
1. Create a fuel-devops YAML template for 5 nodes (default.yaml have only 3 nodes)
2. Use it for run fuel-ccp-tests:
export CONF_PATH=
...
py.test fuel_ccp_
Expected result:
- test passed
Actual result:
- deploy passed, but check for etcd nodes failed:
def check_etcd_
node_names = underlay.
cmd = "etcdctl cluster-health | grep -c 'got healthy result'"
etcd_nodes = underlay.
cmd, node_name=
> assert int(etcd_nodes) == len(node_names),\
"Number of etcd nodes is {0}," \
" should be {1}".format(
E AssertionError: Number of etcd nodes is 3, should be 5
E assert 3 == 5
E + where 3 = int('3\n')
E + and 5 = len(['node-1', 'node-2', 'node-3', 'node-4', 'node-5'])
------------
Possible solution:
It is impossible to set necessary amount of 'etcd' nodes before deploy (see the bug https:/
$ /home/vagrant/
Changed in fuel-ccp: | |
status: | New → In Progress |
status: | In Progress → Confirmed |