tacker/tacker
Koichiro Den 3798c9f925 Fix and avoid an erroneous heat API call
When the vnf maintenance plugin's implementation of
project_instance_pre() is called, vnf instance id is likely to be empty
because, for instance, the stack creation itself has not been done for
some reason.

This resolves a FT failue: vnfm.test_vnf_placement_policy.VnfTestCreate
.test_vnf_with_placement_policy_invalid. _get_instances_with_openstack()
is called on the cleanup path (delete_vnfd), though the vnf instance id
is not present because create_vnf must have failed due to the invalid
placement policy. And you must have seen the following error message in
the tacker-server log: "heatclient.exc.HTTPNotFound: ERROR:
The Stack (None) could not be found.", which masked the expected
tacker.extensions.vnfm.HeatClientException: "["invalid"] is not an
allowed value ["anti-affinity", "affinity", "soft-anti-affinity",
"soft-affinity"].

Related-Bug: #1886213
Change-Id: I8bd2f7e021476470df6131a7ac8abd402e6e1bd1
2020-11-05 12:35:55 +00:00
..
agent from i18n import _ when quoting them 2019-08-09 09:59:48 +08:00
api Drop most of six importings 2020-10-19 12:10:05 +00:00
cmd Cleanup Python 2.7 support 2020-03-29 20:23:26 +00:00
common Drop most of six importings 2020-10-19 12:10:05 +00:00
conductor Fix for the failure in Package Upload 2020-10-07 14:38:53 +09:00
conf Support flow of Getting VNF package 2020-10-05 07:19:32 +00:00
db Drop most of six importings 2020-10-19 12:10:05 +00:00
extensions Drop most of six importings 2020-10-19 12:10:05 +00:00
glance_store Drop most of six importings 2020-10-19 12:10:05 +00:00
hacking Update hacking for Python3 2020-04-24 13:48:53 +02:00
keymgr Drop most of six importings 2020-10-19 12:10:05 +00:00
locale Imported Translations from Zanata 2020-10-24 08:58:53 +00:00
mistral Replaces uuid.uuid4 with uuidutils.generate_uuid() 2017-07-18 14:00:58 +00:00
nfvo Drop most of six importings 2020-10-19 12:10:05 +00:00
objects Merge "[Trivial]Fix the unnecessary "import xx as xx" renaming" 2020-11-04 06:59:57 +00:00
plugins Fix and avoid an erroneous heat API call 2020-11-05 12:35:55 +00:00
policies Support Rollback of LCM Resource 2020-10-07 05:13:33 +00:00
releasenotes/notes Remove infra and mgmt parsing logic from API 2017-01-06 08:39:56 +00:00
services Drop most of six importings 2020-10-19 12:10:05 +00:00
tests Merge "Introduce FT keystone client initialization retry" 2020-11-04 07:00:52 +00:00
tosca Minor fixes and clean-ups 2020-10-29 12:47:34 +09:00
vnflcm Drop most of six importings 2020-10-19 12:10:05 +00:00
vnfm Drop most of six importings 2020-10-19 12:10:05 +00:00
__init__.py Drop most of six importings 2020-10-19 12:10:05 +00:00
_i18n.py Remove i18n.enable_lazy() call from tacker.cmd 2018-11-14 14:56:52 +05:30
alarm_receiver.py Drop most of six importings 2020-10-19 12:10:05 +00:00
auth.py Support of Server/Basic certification in OAuth2.0 2020-10-05 07:18:14 +00:00
context.py Remove deprecation warning messages 2019-09-20 12:27:06 +05:30
manager.py Sychronize vnf action tasks 2020-04-22 07:43:50 +00:00
policy.py Drop most of six importings 2020-10-19 12:10:05 +00:00
service.py Sychronize vnf action tasks 2020-04-22 07:43:50 +00:00
version.py Cleanup vim settings 2016-03-28 13:03:56 +02:00
wsgi.py Drop most of six importings 2020-10-19 12:10:05 +00:00