There is a bug that _ is not defined, because the import of the i82n library is forgotten.
bug code locates in these paths:
* tacker/tacker/api/common/_filters.py
* tacker/tacker/api/v1/resource.py
* tacker/tacker/api/validation/__init__.py
* tacker/tacker/api/validation/validators.py
* tacker/tacker/common/csar_utils.py
* tacker/tacker/conductor/conductor_server.py
* tacker/tacker/conf/conductor.py
* tacker/tacker/conf/vnf_package.py
* tacker/tacker/db/db_sqlalchemy/api.py
* tacker/tacker/objects/vnf_deployment_flavour.py
* tacker/tacker/objects/vnf_package_vnfd.py
* tacker/tacker/objects/vnf_software_image.py
* tacker/tacker/plugins/fenix.py
* tacker/tacker/tests/etc/samples/etsi/nfv/user_data_sample_userdata_invalid_script/UserData/lcm_user_data_invalid_script.py
* tacker/tacker/tests/unit/sol_refactored/common/test_prometheus_plugin.py
* tacker/tacker/tests/unit/sol_refactored/infra_drivers/kubernetes/fakes.py
* tacker/tacker/tests/unit/sol_refactored/objects/test_base.py
* tacker/tacker/tests/unit/vnflcm/test_controller.py
* tacker/tacker/tests/unit/vnflcm/test_vnflcm_driver.py
* tacker/tacker/tests/unit/vnfm/infra_drivers/kubernetes/fakes.py
* tacker/tacker/tests/unit/vnfm/infra_drivers/kubernetes/test_kubernetes_driver.py
* tacker/tacker/tests/unit/vnfm/infra_drivers/kubernetes/test_kubernetes_driver_helm.py
* tacker/tacker/tests/unit/vnfm/mgmt_drivers/fakes.py
* tacker/tacker/tests/unit/vnfpkgm/test_controller.py
* tacker/tacker/vnflcm/vnflcm_driver.py
* tacker/tacker/vnfm/lcm_user_data/abstract_user_data.py
The following is the result of analysis with 'pylint', a static analysis tool.
---
$ pyright | ggrep "not defined"
...
tacker/tacker/tests/unit/vnfm/infra_drivers/kubernetes/test_kubernetes_driver.py:276:15 - error: "_" is not defined (reportUndefinedVariable)
tacker/tacker/tests/unit/vnfm/infra_drivers/kubernetes/test_kubernetes_driver.py:312:15 - error: "_" is not defined (reportUndefinedVariable)
tacker/tacker/tests/unit/vnfm/infra_drivers/kubernetes/test_kubernetes_driver.py:375:15 - error: "_" is not defined (reportUndefinedVariable)
tacker/tacker/tests/unit/vnfm/infra_drivers/kubernetes/test_kubernetes_driver.py:413:15 - error: "_" is not defined (reportUndefinedVariable)
tacker/tacker/tests/unit/vnfm/infra_drivers/kubernetes/test_kubernetes_driver.py:449:15 - error: "_" is not defined (reportUndefinedVariable)
tacker/tacker/tests/unit/vnfm/infra_drivers/kubernetes/test_kubernetes_driver.py:486:15 - error: "_" is not defined (reportUndefinedVariable)
tacker/tacker/tests/unit/vnfm/infra_drivers/kubernetes/test_kubernetes_driver_helm.py:291:15
- error: "_" is not defined (reportUndefinedVariable)
tacker/tacker/tests/unit/vnfm/mgmt_drivers/fakes.py:432:24
- error: "_" is not defined (reportUndefinedVariable)
tacker/tacker/tests/unit/vnfm/mgmt_drivers/fakes.py:434:24
- error: "_" is not defined (reportUndefinedVariable)
tacker/tacker/tests/unit/vnfm/mgmt_drivers/fakes.py:436:24
- error: "_" is not defined (reportUndefinedVariable)
tacker/tacker/tests/unit/vnfpkgm/test_controller.py:115:15
- error: "_" is not defined (reportUndefinedVariable)
tacker/tacker/tests/unit/vnfpkgm/test_controller.py:626:15
- error: "_" is not defined (reportUndefinedVariable)
tacker/tacker/tests/unit/vnfpkgm/test_controller.py:695:15
- error: "_" is not defined (reportUndefinedVariable)
tacker/tacker/tests/unit/vnfpkgm/test_controller.py:704:15
- error: "_" is not defined (reportUndefinedVariable)
tacker/tacker/tests/unit/vnfpkgm/test_controller.py:713:15
- error: "_" is not defined (reportUndefinedVariable)
tacker/tacker/tests/unit/vnfpkgm/test_controller.py:730:15
- error: "_" is not defined (reportUndefinedVariable)
tacker/tacker/tests/unit/vnfpkgm/test_controller.py:775:15
- error: "_" is not defined (reportUndefinedVariable)
tacker/tacker/tests/unit/vnfpkgm/test_controller.py:913:15
- error: "_" is not defined (reportUndefinedVariable)
tacker/tacker/vnflcm/vnflcm_driver.py:298:18
- error: "_" is not defined (reportUndefinedVariable)
tacker/tacker/vnflcm/vnflcm_driver.py:302:18
- error: "_" is not defined (reportUndefinedVariable)
tacker/tacker/vnfm/lcm_user_data/abstract_user_data.py:26:24
- error: "_" is not defined (reportUndefinedVariable)
This issue was fixed in the openstack/tacker 10.0.0.0rc1 release candidate.