Fetching of resource effective values takes a lot of time
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fuel for OpenStack |
Fix Released
|
High
|
Alexander Kislitsky |
Bug Description
Steps to reproduce:
1. generate json data sets with number of keys over than 10000 and save to files 'data0.json', 'data1.json', 'data2.json',
2. create component:
fuel2 config comp create -n comp1
3. create resource:
fuel2 config def create -n res1 -p '{}' -t json -i COMP_ID
4. create environment:
fuel2 config env create -i COMPONENT_ID -l level1,level2
5. create resource values on the root level:
cat data0.json | fuel2 config set -e ENV_ID -r RES_ID -f json
6. create resource values on the level1:
for i in {1..500}; do cat data1.json | fuel2 config set -e ENV_ID -r RES_ID -l level1=$i -f json; done
7. create resource values on the level2:
for i in {1..500}; do cat data1.json | fuel2 config set -e ENV_ID -r RES_ID -l level1=$i,level2=$i -f json; done
8. check the effective resource value:
fuel2 config get -e ENV_ID -r RES_ID
fuel2 config get -e ENV_ID -r RES_ID -l level1=1
fuel2 config get -e ENV_ID -r RES_ID -l level1=1,level2=1
Expected result:
Time of get operations are the same.
Actual result:
Time of get operations are increased when levels added.
Fix proposed to branch: master /review. openstack. org/374228
Review: https:/