[vPDF] Use local-virtual1, unify pkg requirements 45/51245/14
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Fri, 26 Jan 2018 02:04:32 +0000 (03:04 +0100)
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Mon, 5 Feb 2018 00:12:06 +0000 (01:12 +0100)
Until PDF/IDF land in Pharos for all our virtual PODs, use a common
vPDF we already provide as an example to mimic the old hardcoded
behavior while leveraging PDF/IDF parameterization.

As a consequence, python requirements previously only needed for
baremetal should now also be installed for virtual deploys too.

JIRA: FUEL-322

Change-Id: Ied1c907275285a9086450a15491ae516a0db1be2
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
ci/deploy.sh
mcp/scripts/requirements_deb.yaml
mcp/scripts/requirements_rpm.yaml

index 5026d2d..9d82b73 100755 (executable)
@@ -195,8 +195,11 @@ do
             ;;
         p)
             TARGET_POD=${OPTARG}
-            if [[ "${TARGET_POD}" =~ "virtual" ]]; then
+            if [[ "${TARGET_POD}" =~ virtual ]]; then
                 DEPLOY_TYPE='virtual'
+                # All vPODs will use 'local-virtual1' PDF/IDF for now
+                TARGET_LAB='local'
+                TARGET_POD='virtual1'
             fi
             ;;
         P)
index 9a6ec82..bb0d586 100644 (file)
@@ -1,5 +1,5 @@
 ##############################################################################
-# Copyright (c) 2017 Mirantis Inc., Enea AB and others.
+# Copyright (c) 2018 Mirantis Inc., Enea AB and others.
 # All rights reserved. This program and the accompanying materials
 # are made available under the terms of the Apache License, Version 2.0
 # which accompanies this distribution, and is available at
@@ -23,15 +23,15 @@ requirements_pkg:
     - rsync
     - uuid-runtime
     - virtinst
+    # python is indirectly required for PDF parsing
+    - python
+    - python-ipaddress
+    - python-jinja2
+    - python-yaml
+  # Optional, deploy-type-specific requirements
+  # baremetal:
   # Optional, arch-specific requirements, matched by key name = $(uname -m)
   aarch64:
     # AArch64 VMs use AAVMF (guest UEFI)
     - ipxe-qemu
     - qemu-efi
-  # Optional, deploy-type-specific requirements
-  baremetal:
-    # For baremetal, python is indirectly required for PDF parsing
-    - python
-    - python-ipaddress
-    - python-jinja2
-    - python-yaml
index ebd7e85..d510ba8 100644 (file)
@@ -1,5 +1,5 @@
 ##############################################################################
-# Copyright (c) 2017 Mirantis Inc., Enea AB and others.
+# Copyright (c) 2018 Mirantis Inc., Enea AB and others.
 # All rights reserved. This program and the accompanying materials
 # are made available under the terms of the Apache License, Version 2.0
 # which accompanies this distribution, and is available at
@@ -27,14 +27,14 @@ requirements_pkg:
     - util-linux
     - virt-install
     - wget
-  # Optional, arch-specific requirements, matched by key name = $(uname -m)
-  aarch64:
-    # AArch64 VMs use AAVMF (guest UEFI)
-    - AAVMF
-  # Optional, deploy-type-specific requirements
-  baremetal:
-    # For baremetal, python is indirectly required for PDF parsing
+    # For python is indirectly required for PDF parsing
     - python
     - python-ipaddress
     - python-jinja2
     - python-yaml
+  # Optional, deploy-type-specific requirements
+  # baremetal:
+  # Optional, arch-specific requirements, matched by key name = $(uname -m)
+  aarch64:
+    # AArch64 VMs use AAVMF (guest UEFI)
+    - AAVMF