Do not prepand randomo str in key for vFW_NextGen 09/70809/1
authorAlexis de Talhouët <adetalhouet89@gmail.com>
Fri, 19 Oct 2018 12:32:17 +0000 (08:32 -0400)
committerAlexis de Talhouët <adetalhouet89@gmail.com>
Fri, 19 Oct 2018 12:36:16 +0000 (08:36 -0400)
As the assignment for the key-name is using CDS, the key-name
shouldn't be adding anything to the name that has been resolved,
as it would create a discrepancy between what is expected to be
the key-name vs what it would be.
Using CDS, resolutions happens through GR-API, and are stored within
MD-SAL. If that value is altered, deployment will fail as the process
won't know about this additional random-str.

Change-Id: Icba069a1345572debded44b4e5486b23524728ea
Issue-ID: INT-694
Signed-off-by: Alexis de Talhouët <adetalhouet89@gmail.com>
heat/vFW_NextGen/templates/base_template.yaml

index 1804fdd..9184fda 100644 (file)
@@ -74,20 +74,10 @@ parameters:
 #############
 
 resources:
-  random-str:
-    type: OS::Heat::RandomString
-    properties:
-      length: 4
-
   my_keypair:
     type: OS::Nova::KeyPair
     properties:
-      name:
-        str_replace:
-          template: base_rand
-          params:
-            base: { get_param: key_name }
-            rand: { get_resource: random-str }
+      name: { get_param: key_name }
       public_key: { get_param: pub_key }
       save_private_key: false