Delete commands for fuel config cli don't work if resource name is used
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fuel for OpenStack |
Fix Released
|
High
|
Alexander Kislitsky |
Bug Description
Detailed bug description:
Delete commands for fuel config cli 'fuel2 config del' and 'fuel2 config rm override' don't work if resource name is used instead resource id. No error messages present but value is still in the list.
Steps to reproduce:
1. set config with key a and value 1
2. delete config with key a
3. set config with key b and value 2
4. override config with key b to value 3
5 delete override config with key b
Expected results:
2. config with key a is removed from the list
5. override config with key b is removed, value is 2
Actual result:
2. config with key a is still in the list
5. for key b - value is still 3
# fuel2 config get --env 3 --resource re_1
+-------+-------+
| Field | Value |
+-------+-------+
| a | 1 |
| b | 3 |
+-------+-------+
[root@nailgun tuning-box]# fuel2 config del -e 3 -r re_1 -k a
ResourceValue for key a was deleted
[root@nailgun tuning-box]# fuel2 config get --env 3 --resource re_1
+-------+-------+
| Field | Value |
+-------+-------+
| a | 1 |
| b | 3 |
+-------+-------+
Workaround:
Use resource id instead of resource name
9.1 snapshot #280 with latest tuning-box
[root@nailgun tuning-box]# shotgun2 short-report
cat /etc/fuel_build_id:
495
cat /etc/fuel_
495
cat /etc/fuel_release:
9.1
cat /etc/fuel_
mitaka-9.0
rpm -qa | egrep 'fuel|astute|
fuel-release-
fuel-library9.
fuel-openstack
rubygem-
python-
fuel-migrate-
fuel_plugin_
shotgun-
fuel-utils-
fuel-mirror-
fuel-notify-
network-
python-
fuel-agent-
fuel-misc-
fuel-9.
fuel-bootstrap
fuel-ui-
fuel-nailgun-
fuelmenu-
fuel-setup-
fuel-provision
fuel-ostf-
nailgun-
Changed in fuel: | |
importance: | Undecided → High |
assignee: | nobody → Alexander Kislitsky (akislitsky) |
milestone: | none → 9.2 |
status: | New → Confirmed |
importance: | High → Medium |
Changed in fuel: | |
importance: | Medium → High |
tags: | added: on-verification |
Fix proposed to branch: master /review. openstack. org/372589
Review: https:/