Console Output
[POL] Running shell script
+ docker build -t opensourcemano/pol:osm-v100-merge-1048 --build-arg PYTHON3_OSMCLIENT_URL=https://artifactory-osm.etsi.org/artifactory/osm-osmclient/v10.0/366/pool/osmclient/python3-osmclient_10.1.5+g1ad0860-1_all.deb --build-arg OSM_DEVOPS_URL=https://artifactory-osm.etsi.org/artifactory/osm-devops/v10.0/448/pool/devops/osm-devops_10.1.5.post5-1_all.deb --build-arg PYTHON3_OSM_MON_URL=https://artifactory-osm.etsi.org/artifactory/osm-MON/v10.0/365/pool/MON/python3-osm-mon_10.1.5+g918706d-1_all.deb --build-arg PYTHON3_N2VC_URL=https://artifactory-osm.etsi.org/artifactory/osm-N2VC/v10.0/400/pool/N2VC/python3-n2vc_10.1.5.post3+g383d95a-1_all.deb --build-arg PYTHON3_OSM_NBI_URL=https://artifactory-osm.etsi.org/artifactory/osm-NBI/v10.0/376/pool/NBI/python3-osm-nbi_10.1.5.post2+g948fc85-1_all.deb --build-arg PYTHON3_OSM_COMMON_URL=https://artifactory-osm.etsi.org/artifactory/osm-common/v10.0/355/pool/common/python3-osm-common_10.1.5.post3+g7ddcf69-1_all.deb --build-arg PYTHON3_OSM_LCM_URL=https://artifactory-osm.etsi.org/artifactory/osm-LCM/v10.0/382/pool/LCM/python3-osm-lcm_10.1.5.post1+g46a01a6-1_all.deb --build-arg PYTHON3_OSM_POLICY_MODULE_URL=https://artifactory-osm.etsi.org/artifactory/osm-POL/v10.0/359/pool/POL/python3-osm-policy-module_10.1.5+g0da53f1-1_all.deb --build-arg OSM_IMDOCS_URL=https://artifactory-osm.etsi.org/artifactory/osm-IM/v10.0/360/pool/IM/osm-imdocs_10.1.5.post1-g8aef22e_all.deb --build-arg PYTHON3_OSM_IM_URL=https://artifactory-osm.etsi.org/artifactory/osm-IM/v10.0/360/pool/IM/python3-osm-im_10.1.5.post1+g8aef22e-1_all.deb --build-arg OSM_NGUI_URL=https://artifactory-osm.etsi.org/artifactory/osm-NG-UI/v10.0/357/pool/NG-UI/osm-ngui_10.1.5.post1+ga055cd9-1_all.deb --build-arg PYTHON3_OSM_PLA_URL=https://artifactory-osm.etsi.org/artifactory/osm-PLA/v10.0/354/pool/PLA/python3-osm-pla_10.1.5+g203b36b-1_all.deb --build-arg PYTHON3_OSM_ROSDN_ODLOF_URL=https://artifactory-osm.etsi.org/artifactory/osm-RO/v10.0/417/pool/RO/python3-osm-rosdn-odlof_10.1.5.post7+g81ecbbf-1_all.deb --build-arg PYTHON3_OSM_ROSDN_ONOSOF_URL=https://artifactory-osm.etsi.org/artifactory/osm-RO/v10.0/417/pool/RO/python3-osm-rosdn-onosof_10.1.5.post7+g81ecbbf-1_all.deb --build-arg PYTHON3_OSM_ROVIM_AWS_URL=https://artifactory-osm.etsi.org/artifactory/osm-RO/v10.0/417/pool/RO/python3-osm-rovim-aws_10.1.5.post7+g81ecbbf-1_all.deb --build-arg PYTHON3_OSM_ROSDN_DPB_URL=https://artifactory-osm.etsi.org/artifactory/osm-RO/v10.0/417/pool/RO/python3-osm-rosdn-dpb_10.1.5.post7+g81ecbbf-1_all.deb --build-arg PYTHON3_OSM_ROSDN_IETFL2VPN_URL=https://artifactory-osm.etsi.org/artifactory/osm-RO/v10.0/417/pool/RO/python3-osm-rosdn-ietfl2vpn_10.1.5.post7+g81ecbbf-1_all.deb --build-arg PYTHON3_OSM_ROSDN_JUNIPER_CONTRAIL_URL=https://artifactory-osm.etsi.org/artifactory/osm-RO/v10.0/417/pool/RO/python3-osm-rosdn-juniper-contrail_10.1.5.post7+g81ecbbf-1_all.deb --build-arg PYTHON3_OSM_NG_RO_URL=https://artifactory-osm.etsi.org/artifactory/osm-RO/v10.0/417/pool/RO/python3-osm-ng-ro_10.1.5.post7+g81ecbbf-1_all.deb --build-arg PYTHON3_OSM_ROVIM_AZURE_URL=https://artifactory-osm.etsi.org/artifactory/osm-RO/v10.0/417/pool/RO/python3-osm-rovim-azure_10.1.5.post7+g81ecbbf-1_all.deb --build-arg PYTHON3_OSM_ROSDN_DYNPAC_URL=https://artifactory-osm.etsi.org/artifactory/osm-RO/v10.0/417/pool/RO/python3-osm-rosdn-dynpac_10.1.5.post7+g81ecbbf-1_all.deb --build-arg PYTHON3_OSM_RO_PLUGIN_URL=https://artifactory-osm.etsi.org/artifactory/osm-RO/v10.0/417/pool/RO/python3-osm-ro-plugin_10.1.5.post7+g81ecbbf-1_all.deb --build-arg PYTHON3_OSM_ROSDN_ARISTA_CLOUDVISION_URL=https://artifactory-osm.etsi.org/artifactory/osm-RO/v10.0/417/pool/RO/python3-osm-rosdn-arista-cloudvision_10.1.5.post7+g81ecbbf-1_all.deb --build-arg PYTHON3_OSM_ROVIM_VMWARE_URL=https://artifactory-osm.etsi.org/artifactory/osm-RO/v10.0/417/pool/RO/python3-osm-rovim-vmware_10.1.5.post7+g81ecbbf-1_all.deb --build-arg PYTHON3_OSM_ROSDN_FLOODLIGHTOF_URL=https://artifactory-osm.etsi.org/artifactory/osm-RO/v10.0/417/pool/RO/python3-osm-rosdn-floodlightof_10.1.5.post7+g81ecbbf-1_all.deb --build-arg PYTHON3_OSM_ROVIM_OPENVIM_URL=https://artifactory-osm.etsi.org/artifactory/osm-RO/v10.0/417/pool/RO/python3-osm-rovim-openvim_10.1.5.post7+g81ecbbf-1_all.deb --build-arg PYTHON3_OSM_ROVIM_OPENSTACK_URL=https://artifactory-osm.etsi.org/artifactory/osm-RO/v10.0/417/pool/RO/python3-osm-rovim-openstack_10.1.5.post7+g81ecbbf-1_all.deb --build-arg PYTHON3_OSM_ROSDN_ONOS_VPLS_URL=https://artifactory-osm.etsi.org/artifactory/osm-RO/v10.0/417/pool/RO/python3-osm-rosdn-onos-vpls_10.1.5.post7+g81ecbbf-1_all.deb --build-arg OSM_TESTS_URL=https://artifactory-osm.etsi.org/artifactory/osm-tests/v10.0/39/pool/tests/osm-tests_10.1.3.post1+g6089efe-1_all.deb .
Sending build context to Docker daemon 8.704kB
Step 1/35 : FROM ubuntu:20.04 as INSTALL
---> f78909c2b360
Step 2/35 : RUN DEBIAN_FRONTEND=noninteractive apt-get --yes update && DEBIAN_FRONTEND=noninteractive apt-get --yes install gcc=4:9.3.* python3=3.8.* python3-dev=3.8.* python3-pip=20.0.2* python3-setuptools=45.2.* curl=7.68.*
---> Using cache
---> 51b73b91ed99
Step 3/35 : RUN DEBIAN_FRONTEND=noninteractive apt-get --yes update && DEBIAN_FRONTEND=noninteractive apt-get --yes install mysql-client-core-8.0=8.0.*
---> Running in 764d9a6c49b6
Hit:1 http://archive.ubuntu.com/ubuntu focal InRelease
Get:2 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
Get:3 http://archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Hit:4 http://archive.ubuntu.com/ubuntu focal-backports InRelease
Get:5 http://security.ubuntu.com/ubuntu focal-security/restricted amd64 Packages [3196 kB]
Get:6 http://archive.ubuntu.com/ubuntu focal-updates/restricted amd64 Packages [3345 kB]
Get:7 http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages [1170 kB]
Get:8 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages [3329 kB]
Get:9 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [1466 kB]
Get:10 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [3806 kB]
Fetched 16.5 MB in 4s (4632 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
libbsd0 libedit2
The following NEW packages will be installed:
libbsd0 libedit2 mysql-client-core-8.0
0 upgraded, 3 newly installed, 0 to remove and 8 not upgraded.
Need to get 5211 kB of archives.
After this operation, 75.0 MB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu focal/main amd64 libbsd0 amd64 0.10.0-1 [45.4 kB]
Get:2 http://archive.ubuntu.com/ubuntu focal/main amd64 libedit2 amd64 3.1-20191231-1 [87.0 kB]
Get:3 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 mysql-client-core-8.0 amd64 8.0.35-0ubuntu0.20.04.1 [5079 kB]
[91mdebconf: delaying package configuration, since apt-utils is not installed
[0mFetched 5211 kB in 0s (11.1 MB/s)
Selecting previously unselected package libbsd0:amd64.
(Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 14479 files and directories currently installed.)
Preparing to unpack .../libbsd0_0.10.0-1_amd64.deb ...
Unpacking libbsd0:amd64 (0.10.0-1) ...
Selecting previously unselected package libedit2:amd64.
Preparing to unpack .../libedit2_3.1-20191231-1_amd64.deb ...
Unpacking libedit2:amd64 (3.1-20191231-1) ...
Selecting previously unselected package mysql-client-core-8.0.
Preparing to unpack .../mysql-client-core-8.0_8.0.35-0ubuntu0.20.04.1_amd64.deb ...
Unpacking mysql-client-core-8.0 (8.0.35-0ubuntu0.20.04.1) ...
Setting up libbsd0:amd64 (0.10.0-1) ...
Setting up libedit2:amd64 (3.1-20191231-1) ...
Setting up mysql-client-core-8.0 (8.0.35-0ubuntu0.20.04.1) ...
Processing triggers for libc-bin (2.31-0ubuntu9.14) ...
Removing intermediate container 764d9a6c49b6
---> db3a32a26f58
Step 4/35 : ARG PYTHON3_OSM_COMMON_URL
---> Running in 7b6768a15ca3
Removing intermediate container 7b6768a15ca3
---> 7ae5cf3a073c
Step 5/35 : ARG PYTHON3_OSM_POLICY_MODULE_URL
---> Running in 0bf496512b9b
Removing intermediate container 0bf496512b9b
---> 5312a31510e1
Step 6/35 : RUN curl $PYTHON3_OSM_COMMON_URL -o osm_common.deb
---> Running in ca9d968c0eb8
[91m % Total % Received % Xferd Average Spe[0m[91med Time Time Time Current
Dload Upload Total Spent Left Speed
[0m[91m 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0[0m[91m
100 34932 100[0m[91m 34932 0 0 643k 0 --:--:-- --:--:-- -[0m[91m-:--:-- 643k
[0mRemoving intermediate container ca9d968c0eb8
---> 5b231f72e296
Step 7/35 : RUN dpkg -i ./osm_common.deb
---> Running in 50561f6c9f9b
Selecting previously unselected package python3-osm-common.
(Reading database ... 14518 files and directories currently installed.)
Preparing to unpack ./osm_common.deb ...
Unpacking python3-osm-common (10.1.5.post3+g7ddcf69-1) ...
Setting up python3-osm-common (10.1.5.post3+g7ddcf69-1) ...
Removing intermediate container 50561f6c9f9b
---> 8dba1d26e938
Step 8/35 : RUN curl $PYTHON3_OSM_POLICY_MODULE_URL -o osm_policy_module.deb
---> Running in c87482bd7cb5
[91m % Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0[0m[91m
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0[0m[91m
100 23524 100 23524 0 0 33[0m[91m2k 0 --:--:-- --:--:-- --:--:-- 328k
[0mRemoving intermediate container c87482bd7cb5
---> c318dfb31012
Step 9/35 : RUN dpkg -i ./osm_policy_module.deb
---> Running in 157c96e59f78
Selecting previously unselected package python3-osm-policy-module.
(Reading database ... 14577 files and directories currently installed.)
Preparing to unpack ./osm_policy_module.deb ...
Unpacking python3-osm-policy-module (10.1.5+g0da53f1-1) ...
Setting up python3-osm-policy-module (10.1.5+g0da53f1-1) ...
Removing intermediate container 157c96e59f78
---> 98a8ac3d752a
Step 10/35 : RUN pip3 install -r /usr/lib/python3/dist-packages/osm_common/requirements.txt -r /usr/lib/python3/dist-packages/osm_policy_module/requirements.txt
---> Running in b8ab731ba40c
Collecting aiokafka==0.7.2
Downloading aiokafka-0.7.2-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (1.2 MB)
Collecting dataclasses==0.6
Downloading dataclasses-0.6-py3-none-any.whl (14 kB)
Collecting kafka-python==2.0.2
Downloading kafka_python-2.0.2-py2.py3-none-any.whl (246 kB)
Collecting pycrypto==2.6.1
Downloading pycrypto-2.6.1.tar.gz (446 kB)
Collecting pymongo==3.12.3
Downloading pymongo-3.12.3-cp38-cp38-manylinux2014_x86_64.whl (546 kB)
Collecting pyyaml==5.4.1
Downloading PyYAML-5.4.1-cp38-cp38-manylinux1_x86_64.whl (662 kB)
Collecting cached-property==1.5.2
Downloading cached_property-1.5.2-py2.py3-none-any.whl (7.6 kB)
Collecting certifi==2021.10.8
Downloading certifi-2021.10.8-py2.py3-none-any.whl (149 kB)
Collecting charset-normalizer==2.0.10
Downloading charset_normalizer-2.0.10-py3-none-any.whl (39 kB)
Collecting click==8.0.3
Downloading click-8.0.3-py3-none-any.whl (97 kB)
Collecting idna==3.3
Downloading idna-3.3-py3-none-any.whl (61 kB)
Collecting jsonschema==2.6.0
Downloading jsonschema-2.6.0-py2.py3-none-any.whl (39 kB)
Collecting mock==4.0.3
Downloading mock-4.0.3-py3-none-any.whl (28 kB)
Collecting peewee==3.8.2
Downloading peewee-3.8.2.tar.gz (816 kB)
Collecting peewee-migrate==1.1.6
Downloading peewee_migrate-1.1.6-py2.py3-none-any.whl (16 kB)
Collecting pymysql==0.9.3
Downloading PyMySQL-0.9.3-py2.py3-none-any.whl (47 kB)
Collecting requests==2.27.1
Downloading requests-2.27.1-py2.py3-none-any.whl (63 kB)
Collecting urllib3==1.26.8
Downloading urllib3-1.26.8-py2.py3-none-any.whl (138 kB)
Building wheels for collected packages: pycrypto, peewee
Building wheel for pycrypto (setup.py): started
Building wheel for pycrypto (setup.py): finished with status 'done'
Created wheel for pycrypto: filename=pycrypto-2.6.1-cp38-cp38-linux_x86_64.whl size=498474 sha256=f6b0adad536410faf7af9b7543b0d2b57ae644b95dd017ef3bc15c3a1fb8e6b2
Stored in directory: /root/.cache/pip/wheels/d0/99/d0/0298ea019d63f1d63a0965b9944b719e875f9bd6ffc6dcf293
Building wheel for peewee (setup.py): started
Building wheel for peewee (setup.py): finished with status 'done'
Created wheel for peewee: filename=peewee-3.8.2-cp38-cp38-linux_x86_64.whl size=156167 sha256=ec1cbcb4b0d0f61034de9aa4eb12d20385977e47c3ba084c90165072e8911962
Stored in directory: /root/.cache/pip/wheels/f0/11/74/d5c4df68a1514aeeae7914a7c2aecba0d3fe36df8c1d272bc5
Successfully built pycrypto peewee
Installing collected packages: kafka-python, aiokafka, dataclasses, pycrypto, pymongo, pyyaml, cached-property, certifi, charset-normalizer, click, idna, jsonschema, mock, peewee, peewee-migrate, pymysql, urllib3, requests
Successfully installed aiokafka-0.7.2 cached-property-1.5.2 certifi-2021.10.8 charset-normalizer-2.0.10 click-8.0.3 dataclasses-0.6 idna-3.3 jsonschema-2.6.0 kafka-python-2.0.2 mock-4.0.3 peewee-3.8.2 peewee-migrate-1.1.6 pycrypto-2.6.1 pymongo-3.12.3 pymysql-0.9.3 pyyaml-5.4.1 requests-2.27.1 urllib3-1.26.8
Removing intermediate container b8ab731ba40c
---> 14ec66ca6220
Step 11/35 : FROM ubuntu:20.04 as FINAL
---> f78909c2b360
Step 12/35 : ARG APT_PROXY
---> Using cache
---> 6738b525f552
Step 13/35 : RUN if [ ! -z $APT_PROXY ] ; then echo "Acquire::http::Proxy \"$APT_PROXY\";" > /etc/apt/apt.conf.d/proxy.conf ; echo "Acquire::https::Proxy \"$APT_PROXY\";" >> /etc/apt/apt.conf.d/proxy.conf ; fi
---> Using cache
---> 7feab336bbb1
Step 14/35 : RUN DEBIAN_FRONTEND=noninteractive apt-get --yes update && DEBIAN_FRONTEND=noninteractive apt-get --yes install python3-minimal=3.8.* && rm -rf /var/lib/apt/lists/*
---> Using cache
---> 1bc50aafefee
Step 15/35 : COPY --from=INSTALL /usr/lib/python3/dist-packages /usr/lib/python3/dist-packages
---> baedfd8eced1
Step 16/35 : COPY --from=INSTALL /usr/local/lib/python3.8/dist-packages /usr/local/lib/python3.8/dist-packages
---> a434aaceeaad
Step 17/35 : COPY --from=INSTALL /usr/bin/osm* /usr/bin/
---> 8a4bdf9ef11f
Step 18/35 : COPY --from=INSTALL /usr/bin/mysql /usr/bin/
---> 8548a974e933
Step 19/35 : COPY --from=INSTALL /usr/bin/mysqladmin /usr/bin/
---> 7e91fcc24e30
Step 20/35 : COPY --from=INSTALL /usr/bin/mysqlshow /usr/bin/
---> f0b5fcb16474
Step 21/35 : COPY --from=INSTALL /usr/lib/x86_64-linux-gnu/libedit.so.2 /usr/lib/x86_64-linux-gnu/
---> 7abec255fae6
Step 22/35 : COPY --from=INSTALL /usr/lib/x86_64-linux-gnu/libbsd.so.0 /usr/lib/x86_64-linux-gnu/
---> 305f1a32acd1
Step 23/35 : COPY scripts/ /app/osm_pol/scripts/
---> feacbdeab9b6
Step 24/35 : RUN groupadd -g 1000 appuser && useradd -u 1000 -g 1000 -d /app appuser && mkdir -p /app/osm_pol && mkdir -p /app/storage/kafka && mkdir /app/log && chown -R appuser:appuser /app
---> Running in f6670c0d70ab
Removing intermediate container f6670c0d70ab
---> 7f64854894c9
Step 25/35 : WORKDIR /app/osm_pol
---> Running in fbb37a303377
Removing intermediate container fbb37a303377
---> daece53d9919
Step 26/35 : USER appuser
---> Running in a1caedf9f2a5
Removing intermediate container a1caedf9f2a5
---> 291fb0766e78
Step 27/35 : ENV OSMPOL_MESSAGE_DRIVER kafka
---> Running in c7b16d8a6b67
Removing intermediate container c7b16d8a6b67
---> be23492f183d
Step 28/35 : ENV OSMPOL_MESSAGE_HOST kafka
---> Running in c271b06463d3
Removing intermediate container c271b06463d3
---> 86c027eeb3b8
Step 29/35 : ENV OSMPOL_MESSAGE_PORT 9092
---> Running in 68e7a765e157
Removing intermediate container 68e7a765e157
---> 683f090173ed
Step 30/35 : ENV OSMPOL_DATABASE_DRIVER mongo
---> Running in 43df03688cd9
Removing intermediate container 43df03688cd9
---> 7fd9532a006a
Step 31/35 : ENV OSMPOL_DATABASE_URI mongodb://mongo:27017
---> Running in 4f57a26fede0
Removing intermediate container 4f57a26fede0
---> 414a511f8ee1
Step 32/35 : ENV OSMPOL_SQL_DATABASE_URI sqlite:///mon_sqlite.db
---> Running in e260375a4275
Removing intermediate container e260375a4275
---> 4cfe0dd57d37
Step 33/35 : ENV OSMPOL_GLOBAL_LOG_LEVEL INFO
---> Running in 61ea29370d69
Removing intermediate container 61ea29370d69
---> 4d2fce41fc4e
Step 34/35 : HEALTHCHECK --start-period=120s --interval=10s --timeout=5s --retries=5 CMD osm-pol-healthcheck || exit 1
---> Running in 1887330dd63d
Removing intermediate container 1887330dd63d
---> c6ebcd9cfcd5
Step 35/35 : CMD /bin/bash scripts/start.sh
---> Running in aac42bc2041f
Removing intermediate container aac42bc2041f
---> 01be7cb2346a
[Warning] One or more build-args [PYTHON3_OSM_ROSDN_DYNPAC_URL PYTHON3_OSM_ROVIM_OPENSTACK_URL PYTHON3_OSMCLIENT_URL PYTHON3_OSM_ROSDN_FLOODLIGHTOF_URL PYTHON3_OSM_ROSDN_IETFL2VPN_URL PYTHON3_OSM_ROSDN_ARISTA_CLOUDVISION_URL PYTHON3_N2VC_URL PYTHON3_OSM_MON_URL PYTHON3_OSM_NG_RO_URL PYTHON3_OSM_ROSDN_ONOSOF_URL PYTHON3_OSM_ROVIM_AWS_URL PYTHON3_OSM_ROVIM_OPENVIM_URL PYTHON3_OSM_ROVIM_VMWARE_URL OSM_NGUI_URL PYTHON3_OSM_NBI_URL PYTHON3_OSM_ROSDN_DPB_URL PYTHON3_OSM_ROSDN_ODLOF_URL OSM_DEVOPS_URL PYTHON3_OSM_ROVIM_AZURE_URL OSM_TESTS_URL PYTHON3_OSM_IM_URL PYTHON3_OSM_LCM_URL PYTHON3_OSM_PLA_URL PYTHON3_OSM_ROSDN_JUNIPER_CONTRAIL_URL PYTHON3_OSM_ROSDN_ONOS_VPLS_URL PYTHON3_OSM_RO_PLUGIN_URL OSM_IMDOCS_URL] were not consumed
Successfully built 01be7cb2346a
Successfully tagged opensourcemano/pol:osm-v100-merge-1048