[Murano] Please help with murano image creation

Abdul Salam, Humaira humaira.abdul.salam at desy.de
Mon Apr 19 12:32:18 UTC 2021



Hello,

I tried to create Murano image for an openstack Victoria deployment following the document available at, 

https://docs.openstack.org/murano/victoria/reference/appendix/articles/image_builders/linux.html

But unfortunately was not able to successfully create an image.

At first the following error occured:
"murano-agent requires Python '>=3.6' but the running Python is 2.7.17"

Then after changing the release to focal, receive another error:

"Unable to locate package python-pip"

We(me and my colleague) are kind of block for the deployment of Murano application service, is anybody so kind to help us with this problem? I am attaching the commands ran and terminal output below for reference. 

Looking forward for your quick response, many thanks in advance.

Humaira Abdul Salam,
IT-Systems
DESY, Hamburg

----------------------------------------------------------------------------------------------
root at kolla-2:~# cat /etc/issue
Ubuntu 20.04.2 LTS \n \l

root at kolla-2:~# export GITDIR=~/git
root at kolla-2:~# mkdir -p $GITDIR
root at kolla-2:~# cd $GITDIR
root at kolla-2:~/git# git clone https://opendev.org/openstack/murano
Cloning into 'murano'...
remote: Enumerating objects: 34335, done.
remote: Counting objects: 100% (34335/34335), done.
remote: Compressing objects: 100% (14856/14856), done.
remote: Total 34335 (delta 22813), reused 29217 (delta 18268)
Receiving objects: 100% (34335/34335), 16.73 MiB | 7.42 MiB/s, done.
Resolving deltas: 100% (22813/22813), done.
root at kolla-2:~/git# git clone https://opendev.org/openstack/murano-agent
Cloning into 'murano-agent'...
remote: Enumerating objects: 6696, done.
remote: Counting objects: 100% (6696/6696), done.
remote: Compressing objects: 100% (2792/2792), done.
remote: Total 6696 (delta 3766), reused 6475 (delta 3586)
Receiving objects: 100% (6696/6696), 4.98 MiB | 5.46 MiB/s, done.
Resolving deltas: 100% (3766/3766), done.
root at kolla-2:~/git# pip3 install diskimage-builder
Collecting diskimage-builder
  Downloading diskimage_builder-3.7.0-py3-none-any.whl (608 kB)
     |████████████████████████████████| 608 kB 4.8 MB/s
Requirement already satisfied: stevedore>=1.20.0 in /usr/lib/python3/dist-packages (from diskimage-builder) (1.32.0)
Collecting flake8<4.0.0,>=3.6.0
  Downloading flake8-3.8.4-py2.py3-none-any.whl (72 kB)
     |████████████████████████████████| 72 kB 1.6 MB/s
Requirement already satisfied: pbr!=2.1.0,>=2.0.0 in /usr/lib/python3/dist-packages (from diskimage-builder) (5.4.5)
Collecting networkx>=1.10
  Downloading networkx-2.5-py3-none-any.whl (1.6 MB)
     |████████████████████████████████| 1.6 MB 7.6 MB/s
Requirement already satisfied: PyYAML>=3.12 in /usr/lib/python3/dist-packages (from diskimage-builder) (5.3.1)
Collecting pycodestyle<2.7.0,>=2.6.0a1
  Downloading pycodestyle-2.6.0-py2.py3-none-any.whl (41 kB)
     |████████████████████████████████| 41 kB 331 kB/s
Collecting pyflakes<2.3.0,>=2.2.0
  Downloading pyflakes-2.2.0-py2.py3-none-any.whl (66 kB)
     |████████████████████████████████| 66 kB 5.8 MB/s
Collecting mccabe<0.7.0,>=0.6.0
  Downloading mccabe-0.6.1-py2.py3-none-any.whl (8.6 kB)
Requirement already satisfied: decorator>=4.3.0 in /usr/lib/python3/dist-packages (from networkx>=1.10->diskimage-builder) (4.4.2)
Installing collected packages: pycodestyle, pyflakes, mccabe, flake8, networkx, diskimage-builder
Successfully installed diskimage-builder-3.7.0 flake8-3.8.4 mccabe-0.6.1 networkx-2.5 pycodestyle-2.6.0 pyflakes-2.2.0
root at kolla-2:~/git# apt install qemu-utils curl tox
Reading package lists... Done
Building dependency tree
Reading state information... Done
curl is already the newest version (7.68.0-1ubuntu2.4).
curl set to manually installed.
The following additional packages will be installed:
  ibverbs-providers javascript-common libboost-iostreams1.71.0 libboost-thread1.71.0 libibverbs1 libiscsi7 libjs-jquery libjs-sphinxdoc libjs-underscore libnl-route-3-200 librados2 librbd1 librdmacm1 python3-distlib python3-filelock python3-pluggy python3-py python3-toml python3-virtualenv qemu-block-extra
  sharutils virtualenv
Suggested packages:
  apache2 | lighttpd | httpd subversion python3-pytest debootstrap sharutils-doc bsd-mailx | mailx
The following NEW packages will be installed:
  ibverbs-providers javascript-common libboost-iostreams1.71.0 libboost-thread1.71.0 libibverbs1 libiscsi7 libjs-jquery libjs-sphinxdoc libjs-underscore libnl-route-3-200 librados2 librbd1 librdmacm1 python3-distlib python3-filelock python3-pluggy python3-py python3-toml python3-virtualenv qemu-block-extra
  qemu-utils sharutils tox virtualenv
0 upgraded, 24 newly installed, 0 to remove and 14 not upgraded.
Need to get 8108 kB of archives.
After this operation, 37.8 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://de.archive.ubuntu.com/ubuntu focal/main amd64 libnl-route-3-200 amd64 3.4.0-1 [149 kB]
Get:2 http://de.archive.ubuntu.com/ubuntu focal/main amd64 libibverbs1 amd64 28.0-1ubuntu1 [53.6 kB]
Get:3 http://de.archive.ubuntu.com/ubuntu focal/main amd64 ibverbs-providers amd64 28.0-1ubuntu1 [232 kB]
Get:4 http://de.archive.ubuntu.com/ubuntu focal/main amd64 javascript-common all 11 [6066 B]
Get:5 http://de.archive.ubuntu.com/ubuntu focal/main amd64 libboost-iostreams1.71.0 amd64 1.71.0-6ubuntu6 [237 kB]
Get:6 http://de.archive.ubuntu.com/ubuntu focal/main amd64 libboost-thread1.71.0 amd64 1.71.0-6ubuntu6 [249 kB]
Get:7 http://de.archive.ubuntu.com/ubuntu focal/main amd64 librdmacm1 amd64 28.0-1ubuntu1 [64.9 kB]
Get:8 http://de.archive.ubuntu.com/ubuntu focal/main amd64 libiscsi7 amd64 1.18.0-2 [63.9 kB]
Get:9 http://de.archive.ubuntu.com/ubuntu focal/main amd64 libjs-jquery all 3.3.1~dfsg-3 [329 kB]
Get:10 http://de.archive.ubuntu.com/ubuntu focal/main amd64 libjs-underscore all 1.9.1~dfsg-1 [98.6 kB]
Get:11 http://de.archive.ubuntu.com/ubuntu focal/main amd64 libjs-sphinxdoc all 1.8.5-7ubuntu3 [97.1 kB]
Get:12 http://de.archive.ubuntu.com/ubuntu focal-updates/main amd64 librados2 amd64 15.2.7-0ubuntu0.20.04.2 [3204 kB]
Get:13 http://de.archive.ubuntu.com/ubuntu focal-updates/main amd64 librbd1 amd64 15.2.7-0ubuntu0.20.04.2 [1609 kB]
Get:14 http://de.archive.ubuntu.com/ubuntu focal/universe amd64 python3-distlib all 0.3.0-1 [116 kB]
Get:15 http://de.archive.ubuntu.com/ubuntu focal/universe amd64 python3-filelock all 3.0.12-2 [7948 B]
Get:16 http://de.archive.ubuntu.com/ubuntu focal/universe amd64 python3-pluggy all 0.13.0-2 [18.4 kB]
Get:17 http://de.archive.ubuntu.com/ubuntu focal/universe amd64 python3-py all 1.8.1-1 [65.4 kB]
Get:18 http://de.archive.ubuntu.com/ubuntu focal/universe amd64 python3-toml all 0.10.0-3 [14.6 kB]
Get:19 http://de.archive.ubuntu.com/ubuntu focal/universe amd64 python3-virtualenv all 20.0.17-1 [63.4 kB]
Get:20 http://de.archive.ubuntu.com/ubuntu focal-updates/main amd64 qemu-block-extra amd64 1:4.2-3ubuntu6.12 [53.8 kB]
Get:21 http://de.archive.ubuntu.com/ubuntu focal-updates/main amd64 qemu-utils amd64 1:4.2-3ubuntu6.12 [974 kB]
Get:22 http://de.archive.ubuntu.com/ubuntu focal/main amd64 sharutils amd64 1:4.15.2-4build1 [155 kB]
Get:23 http://de.archive.ubuntu.com/ubuntu focal/universe amd64 virtualenv all 20.0.17-1 [2132 B]
Get:24 http://de.archive.ubuntu.com/ubuntu focal/universe amd64 tox all 3.13.2-2 [244 kB]
Fetched 8108 kB in 0s (31.9 MB/s)
Selecting previously unselected package libnl-route-3-200:amd64.
(Reading database ... 118797 files and directories currently installed.)
Preparing to unpack .../00-libnl-route-3-200_3.4.0-1_amd64.deb ...
Unpacking libnl-route-3-200:amd64 (3.4.0-1) ...
Selecting previously unselected package libibverbs1:amd64.
Preparing to unpack .../01-libibverbs1_28.0-1ubuntu1_amd64.deb ...
Unpacking libibverbs1:amd64 (28.0-1ubuntu1) ...
Selecting previously unselected package ibverbs-providers:amd64.
Preparing to unpack .../02-ibverbs-providers_28.0-1ubuntu1_amd64.deb ...
Unpacking ibverbs-providers:amd64 (28.0-1ubuntu1) ...
Selecting previously unselected package javascript-common.
Preparing to unpack .../03-javascript-common_11_all.deb ...
Unpacking javascript-common (11) ...
Selecting previously unselected package libboost-iostreams1.71.0:amd64.
Preparing to unpack .../04-libboost-iostreams1.71.0_1.71.0-6ubuntu6_amd64.deb ...
Unpacking libboost-iostreams1.71.0:amd64 (1.71.0-6ubuntu6) ...
Selecting previously unselected package libboost-thread1.71.0:amd64.
Preparing to unpack .../05-libboost-thread1.71.0_1.71.0-6ubuntu6_amd64.deb ...
Unpacking libboost-thread1.71.0:amd64 (1.71.0-6ubuntu6) ...
Selecting previously unselected package librdmacm1:amd64.
Preparing to unpack .../06-librdmacm1_28.0-1ubuntu1_amd64.deb ...
Unpacking librdmacm1:amd64 (28.0-1ubuntu1) ...
Selecting previously unselected package libiscsi7:amd64.
Preparing to unpack .../07-libiscsi7_1.18.0-2_amd64.deb ...
Unpacking libiscsi7:amd64 (1.18.0-2) ...
Selecting previously unselected package libjs-jquery.
Preparing to unpack .../08-libjs-jquery_3.3.1~dfsg-3_all.deb ...
Unpacking libjs-jquery (3.3.1~dfsg-3) ...
Selecting previously unselected package libjs-underscore.
Preparing to unpack .../09-libjs-underscore_1.9.1~dfsg-1_all.deb ...
Unpacking libjs-underscore (1.9.1~dfsg-1) ...
Selecting previously unselected package libjs-sphinxdoc.
Preparing to unpack .../10-libjs-sphinxdoc_1.8.5-7ubuntu3_all.deb ...
Unpacking libjs-sphinxdoc (1.8.5-7ubuntu3) ...
Selecting previously unselected package librados2.
Preparing to unpack .../11-librados2_15.2.7-0ubuntu0.20.04.2_amd64.deb ...
Unpacking librados2 (15.2.7-0ubuntu0.20.04.2) ...
Selecting previously unselected package librbd1.
Preparing to unpack .../12-librbd1_15.2.7-0ubuntu0.20.04.2_amd64.deb ...
Unpacking librbd1 (15.2.7-0ubuntu0.20.04.2) ...
Selecting previously unselected package python3-distlib.
Preparing to unpack .../13-python3-distlib_0.3.0-1_all.deb ...
Unpacking python3-distlib (0.3.0-1) ...
Selecting previously unselected package python3-filelock.
Preparing to unpack .../14-python3-filelock_3.0.12-2_all.deb ...
Unpacking python3-filelock (3.0.12-2) ...
Selecting previously unselected package python3-pluggy.
Preparing to unpack .../15-python3-pluggy_0.13.0-2_all.deb ...
Unpacking python3-pluggy (0.13.0-2) ...
Selecting previously unselected package python3-py.
Preparing to unpack .../16-python3-py_1.8.1-1_all.deb ...
Unpacking python3-py (1.8.1-1) ...
Selecting previously unselected package python3-toml.
Preparing to unpack .../17-python3-toml_0.10.0-3_all.deb ...
Unpacking python3-toml (0.10.0-3) ...
Selecting previously unselected package python3-virtualenv.
Preparing to unpack .../18-python3-virtualenv_20.0.17-1_all.deb ...
Unpacking python3-virtualenv (20.0.17-1) ...
Selecting previously unselected package qemu-block-extra:amd64.
Preparing to unpack .../19-qemu-block-extra_1%3a4.2-3ubuntu6.12_amd64.deb ...
Unpacking qemu-block-extra:amd64 (1:4.2-3ubuntu6.12) ...
Selecting previously unselected package qemu-utils.
Preparing to unpack .../20-qemu-utils_1%3a4.2-3ubuntu6.12_amd64.deb ...
Unpacking qemu-utils (1:4.2-3ubuntu6.12) ...
Selecting previously unselected package sharutils.
Preparing to unpack .../21-sharutils_1%3a4.15.2-4build1_amd64.deb ...
Unpacking sharutils (1:4.15.2-4build1) ...
Selecting previously unselected package virtualenv.
Preparing to unpack .../22-virtualenv_20.0.17-1_all.deb ...
Unpacking virtualenv (20.0.17-1) ...
Selecting previously unselected package tox.
Preparing to unpack .../23-tox_3.13.2-2_all.deb ...
Unpacking tox (3.13.2-2) ...
Setting up javascript-common (11) ...
Setting up python3-filelock (3.0.12-2) ...
Setting up python3-py (1.8.1-1) ...
Setting up python3-distlib (0.3.0-1) ...
Setting up libboost-iostreams1.71.0:amd64 (1.71.0-6ubuntu6) ...
Setting up libnl-route-3-200:amd64 (3.4.0-1) ...
Setting up python3-toml (0.10.0-3) ...
Setting up python3-pluggy (0.13.0-2) ...
Setting up libboost-thread1.71.0:amd64 (1.71.0-6ubuntu6) ...
Setting up libjs-jquery (3.3.1~dfsg-3) ...
Setting up sharutils (1:4.15.2-4build1) ...
Setting up libjs-underscore (1.9.1~dfsg-1) ...
Setting up libibverbs1:amd64 (28.0-1ubuntu1) ...
Setting up ibverbs-providers:amd64 (28.0-1ubuntu1) ...
Setting up python3-virtualenv (20.0.17-1) ...
Setting up virtualenv (20.0.17-1) ...
Setting up libjs-sphinxdoc (1.8.5-7ubuntu3) ...
Setting up librdmacm1:amd64 (28.0-1ubuntu1) ...
Setting up librados2 (15.2.7-0ubuntu0.20.04.2) ...
Setting up tox (3.13.2-2) ...
Setting up librbd1 (15.2.7-0ubuntu0.20.04.2) ...
Setting up libiscsi7:amd64 (1.18.0-2) ...
Setting up qemu-block-extra:amd64 (1:4.2-3ubuntu6.12) ...
Setting up qemu-utils (1:4.2-3ubuntu6.12) ...
Processing triggers for libc-bin (2.31-0ubuntu9.2) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for install-info (6.7.0.dfsg.2-5) ...
root at kolla-2:~/git# export ELEMENTS_PATH=$GITDIR/murano/contrib/elements:$GITDIR/murano-agent/contrib/elements
root at kolla-2:~/git# disk-image-create vm ubuntu murano-agent -o murano-agent.qcow2
2021-02-18 12:52:34.387 | murano-agent requires Python '>=3.6' but the running Python is 2.7.17
root at kolla-2:~/git# export DIB_RELEASE=focal
root at kolla-2:~/git# disk-image-create vm ubuntu murano-agent -o murano-agent.qcow2
2021-02-18 12:55:41.222 | E: Unable to locate package python-pip



More information about the openstack-discuss mailing list