sdc-backend-init docker container exits unsuccessfully with 404 error in importNormat... 98/84998/2
authorsarada prasad sahoo <sarada.prasad.sahoo@huawei.com>
Thu, 11 Apr 2019 04:01:34 +0000 (09:31 +0530)
committerOfir Sonsino <ofir.sonsino@intl.att.com>
Thu, 11 Apr 2019 09:38:59 +0000 (09:38 +0000)
import of osca.policies.nfv.AffinityRule and tosca.policies.nfv.AntiAffinityRule getting failed at first attempt, comment execute , then un-comment execute it is working, strange issue

Change-Id: Ia8799b4221b771ed34d61d09f87e2d9973861ebe
Issue-ID: SDC-2231
Signed-off-by: sarada prasad sahoo <sarada.prasad.sahoo@huawei.com>
catalog-be/src/main/resources/import/tosca/policy-types/policyTypes.json
catalog-be/src/main/resources/import/tosca/policy-types/policyTypes.yml

index 1809bba..c6315fc 100644 (file)
     "displayName": "NFV VirtualLinkBitrate InitialDelta",
     "icon": "policy-nfv-vlbitrate-initialdelta"
   },
-  "tosca.policies.nfv.AffinityRule": {
-    "displayName": "NFV AffinityRule",
-    "icon": "policy-nfv-affinityrule"
-  },
-  "tosca.policies.nfv.AntiAffinityRule": {
-    "displayName": "NFV AntiAffinityRule",
-    "icon": "policy-nfv-anti-affinityrule"
-  },
   "tosca.policies.nfv.SecurityGroupRule": {
     "displayName": "NFV SecurityGroupRule",
     "icon": "policy-nfv-securitygrouprule"
index 53fa593..993c2a1 100644 (file)
@@ -229,29 +229,29 @@ tosca.policies.nfv.VirtualLinkBitrateInitialDelta:
       required: true
   targets: [ tosca.nodes.nfv.VnfVirtualLink ]
 
-tosca.policies.nfv.AffinityRule:
-  derived_from: tosca.policies.Placement
-  description: The AffinityRule describes the affinity rules applicable for the defined targets
-  properties:
-    scope:
-      type: string
-      description: scope of the rule is an NFVI_node, an NFVI_PoP, etc.
-      required: true
-      constraints:
-        - valid_values: [ nfvi_node, zone, zone_group, nfvi_pop ]
-  targets: [ tosca.nodes.nfv.Vdu.Compute, tosca.nodes.nfv.VnfVirtualLink, tosca.groups.nfv.PlacementGroup ]
-
-tosca.policies.nfv.AntiAffinityRule:
-  derived_from: tosca.policies.Placement
-  description: The AntiAffinityRule describes the anti-affinity rules applicable for the defined targets
-  properties:
-    scope:
-      type: string
-      description: scope of the rule is an NFVI_node, an NFVI_PoP, etc.
-      required: true
-      constraints:
-        - valid_values: [ nfvi_node, zone, zone_group, nfvi_pop ]
-  targets: [ tosca.nodes.nfv.Vdu.Compute, tosca.nodes.nfv.VnfVirtualLink, tosca.groups.nfv.PlacementGroup ]
+tosca.policies.nfv.AffinityRule:
+  derived_from: tosca.policies.Placement
+  description: The AffinityRule describes the affinity rules applicable for the defined targets
+  properties:
+    scope:
+      type: string
+      description: scope of the rule is an NFVI_node, an NFVI_PoP, etc.
+      required: true
+      constraints:
+        - valid_values: [ nfvi_node, zone, zone_group, nfvi_pop ]
+  targets: [ tosca.nodes.nfv.Vdu.Compute, tosca.nodes.nfv.VnfVirtualLink, tosca.groups.nfv.PlacementGroup ]
+#
+tosca.policies.nfv.AntiAffinityRule:
+  derived_from: tosca.policies.Placement
+  description: The AntiAffinityRule describes the anti-affinity rules applicable for the defined targets
+  properties:
+    scope:
+      type: string
+      description: scope of the rule is an NFVI_node, an NFVI_PoP, etc.
+      required: true
+      constraints:
+        - valid_values: [ nfvi_node, zone, zone_group, nfvi_pop ]
+  targets: [ tosca.nodes.nfv.Vdu.Compute, tosca.nodes.nfv.VnfVirtualLink, tosca.groups.nfv.PlacementGroup ]
 
 tosca.policies.nfv.SecurityGroupRule:
   derived_from: tosca.policies.Root