nfvbenchvm: fix broken build after dib update 31/73231/1
authorGwenael Lambrouin <gwenael.lambrouin@orange.com>
Mon, 13 Dec 2021 12:17:53 +0000 (13:17 +0100)
committerGwenael Lambrouin <gwenael.lambrouin@orange.com>
Mon, 28 Feb 2022 14:44:58 +0000 (15:44 +0100)
commit1a9c875d35daf4e742cd980e824c862ad793a658
tree3fabbc360d61759f168e250c41aed5f6a309a064
parentb8186aa57c5026c556f5ac41f49126b14d720cf4
nfvbenchvm: fix broken build after dib update

Attempting to build nfvbench VM images with diskimage_builder (dib)
3.16.0 leads to the following error:

diskimage_builder.element_dependencies.MissingElementException: Element
'block-device' not found

Something changed at some point of diskimage_builder history, and the
updated doc states: "When using the vm element, an element that provides
block-device should be included".

To fix this and prevent future similar issues, this patch:
- adds the "block-device-mbr" element to the dependency list
- sets diskimage_builder version

By the way:
- replace the deprecated "centos7" element with the more generic
  "centos" element.
- add missing dependencies in the pre-requisites section of nfvbenchvm
  doc
- install pip with package manager (the current latest version of
  get-pip.py is not compatible with python 3.6, so let's use the
  occasion to stop getting pip directly from the Internet)
- use Python 3 in build-image.sh

Change-Id: I3198a1042eca04224b2a62db443c39a76903cf22
Signed-off-by: Gwenael Lambrouin <gwenael.lambrouin@orange.com>
nfvbenchvm/README.rst
nfvbenchvm/dib/build-image.sh
nfvbenchvm/dib/elements/nfvbenchvm/element-deps
nfvbenchvm/dib/elements/nfvbenchvm/package-installs.yaml
nfvbenchvm/dib/elements/nfvbenchvm/post-install.d/02-pip-package
nfvbenchvm/dib/elements/nfvbenchvm/post-install.d/52-nfvbench-script