Console Output
[POL] Running shell script
+ docker build --build-arg APT_PROXY=http://172.21.1.1:3142 -t opensourcemano/pol:osm-v130-118 --build-arg CACHE_DATE=2024-01-31:12:10:11 --build-arg PYTHON3_OSMCLIENT_URL=https://artifactory-osm.etsi.org/artifactory/osm-osmclient/v13.0-staging/12/pool/osmclient/python3-osmclient_13.0.2.post1+gf9df84a-1_all.deb --build-arg OSM_DEVOPS_URL=https://artifactory-osm.etsi.org/artifactory/osm-devops/v13.0/361/pool/devops/osm-devops_13.0.2.post1-1_all.deb --build-arg PYTHON3_OSM_MON_URL=https://artifactory-osm.etsi.org/artifactory/osm-MON/v13.0/335/pool/MON/python3-osm-mon_13.0.2.post1+gd9a11dd-1_all.deb --build-arg PYTHON3_N2VC_URL=https://artifactory-osm.etsi.org/artifactory/osm-N2VC/v13.0/337/pool/N2VC/python3-n2vc_13.0.2.post1+gbd201f5-1_all.deb --build-arg PYTHON3_OSM_NBI_URL=https://artifactory-osm.etsi.org/artifactory/osm-NBI/v13.0/335/pool/NBI/python3-osm-nbi_13.0.2+g70aced4-1_all.deb --build-arg PYTHON3_OSM_COMMON_URL=https://artifactory-osm.etsi.org/artifactory/osm-common/v13.0/338/pool/common/python3-osm-common_13.0.2.post1+gc9512e2-1_all.deb --build-arg PYTHON3_OSM_LCM_URL=https://artifactory-osm.etsi.org/artifactory/osm-LCM/v13.0/338/pool/LCM/python3-osm-lcm_13.0.2.post1+g7fb1340-1_all.deb --build-arg PYTHON3_OSM_IM_URL=https://artifactory-osm.etsi.org/artifactory/osm-IM/v13.0/335/pool/IM/python3-osm-im_13.0.2+gcf2688e-1_all.deb --build-arg OSM_IMDOCS_URL=https://artifactory-osm.etsi.org/artifactory/osm-IM/v13.0/335/pool/IM/osm-imdocs_13.0.2-gcf2688e_all.deb --build-arg PYTHON3_OSM_POLICY_MODULE_URL=https://artifactory-osm.etsi.org/artifactory/osm-POL/v13.0/334/pool/POL/python3-osm-policy-module_13.0.2+ge979531-1_all.deb --build-arg OSM_NGUI_URL=https://artifactory-osm.etsi.org/artifactory/osm-NG-UI/v13.0/335/pool/NG-UI/osm-ngui_13.0.2-1_all.deb --build-arg PYTHON3_OSM_NGSA_URL=https://artifactory-osm.etsi.org/artifactory/osm-NG-SA/v13.0/326/pool/NG-SA/python3-osm-ngsa_13.0.2-1_all.deb --build-arg PYTHON3_OSM_ROSDN_ODLOF_URL=https://artifactory-osm.etsi.org/artifactory/osm-RO/v13.0/349/pool/RO/python3-osm-rosdn-odlof_13.0.2.post1+g009b72a-1_all.deb --build-arg PYTHON3_OSM_ROSDN_ONOS_VPLS_URL=https://artifactory-osm.etsi.org/artifactory/osm-RO/v13.0/349/pool/RO/python3-osm-rosdn-onos-vpls_13.0.2.post1+g009b72a-1_all.deb --build-arg PYTHON3_OSM_ROVIM_AWS_URL=https://artifactory-osm.etsi.org/artifactory/osm-RO/v13.0/349/pool/RO/python3-osm-rovim-aws_13.0.2.post1+g009b72a-1_all.deb --build-arg PYTHON3_OSM_NG_RO_URL=https://artifactory-osm.etsi.org/artifactory/osm-RO/v13.0/349/pool/RO/python3-osm-ng-ro_13.0.2.post1+g009b72a-1_all.deb --build-arg PYTHON3_OSM_ROSDN_DPB_URL=https://artifactory-osm.etsi.org/artifactory/osm-RO/v13.0/349/pool/RO/python3-osm-rosdn-dpb_13.0.2.post1+g009b72a-1_all.deb --build-arg PYTHON3_OSM_ROVIM_GCP_URL=https://artifactory-osm.etsi.org/artifactory/osm-RO/v13.0/349/pool/RO/python3-osm-rovim-gcp_13.0.2.post1+g009b72a-1_all.deb --build-arg PYTHON3_OSM_ROSDN_ARISTA_CLOUDVISION_URL=https://artifactory-osm.etsi.org/artifactory/osm-RO/v13.0/349/pool/RO/python3-osm-rosdn-arista-cloudvision_13.0.2.post1+g009b72a-1_all.deb --build-arg PYTHON3_OSM_ROVIM_VMWARE_URL=https://artifactory-osm.etsi.org/artifactory/osm-RO/v13.0/349/pool/RO/python3-osm-rovim-vmware_13.0.2.post1+g009b72a-1_all.deb --build-arg PYTHON3_OSM_ROSDN_ONOSOF_URL=https://artifactory-osm.etsi.org/artifactory/osm-RO/v13.0/349/pool/RO/python3-osm-rosdn-onosof_13.0.2.post1+g009b72a-1_all.deb --build-arg PYTHON3_OSM_ROVIM_OPENVIM_URL=https://artifactory-osm.etsi.org/artifactory/osm-RO/v13.0/349/pool/RO/python3-osm-rovim-openvim_13.0.2.post1+g009b72a-1_all.deb --build-arg PYTHON3_OSM_ROVIM_OPENSTACK_URL=https://artifactory-osm.etsi.org/artifactory/osm-RO/v13.0/349/pool/RO/python3-osm-rovim-openstack_13.0.2.post1+g009b72a-1_all.deb --build-arg PYTHON3_OSM_RO_PLUGIN_URL=https://artifactory-osm.etsi.org/artifactory/osm-RO/v13.0/349/pool/RO/python3-osm-ro-plugin_13.0.2.post1+g009b72a-1_all.deb --build-arg PYTHON3_OSM_ROSDN_FLOODLIGHTOF_URL=https://artifactory-osm.etsi.org/artifactory/osm-RO/v13.0/349/pool/RO/python3-osm-rosdn-floodlightof_13.0.2.post1+g009b72a-1_all.deb --build-arg PYTHON3_OSM_ROSDN_JUNIPER_CONTRAIL_URL=https://artifactory-osm.etsi.org/artifactory/osm-RO/v13.0/349/pool/RO/python3-osm-rosdn-juniper-contrail_13.0.2.post1+g009b72a-1_all.deb --build-arg PYTHON3_OSM_ROVIM_AZURE_URL=https://artifactory-osm.etsi.org/artifactory/osm-RO/v13.0/349/pool/RO/python3-osm-rovim-azure_13.0.2.post1+g009b72a-1_all.deb --build-arg PYTHON3_OSM_ROSDN_IETFL2VPN_URL=https://artifactory-osm.etsi.org/artifactory/osm-RO/v13.0/349/pool/RO/python3-osm-rosdn-ietfl2vpn_13.0.2.post1+g009b72a-1_all.deb --build-arg PYTHON3_OSM_ROSDN_DYNPAC_URL=https://artifactory-osm.etsi.org/artifactory/osm-RO/v13.0/349/pool/RO/python3-osm-rosdn-dynpac_13.0.2.post1+g009b72a-1_all.deb --build-arg PYTHON3_OSM_PLA_URL=https://artifactory-osm.etsi.org/artifactory/osm-PLA/v13.0/335/pool/PLA/python3-osm-pla_13.0.2+ge68492d-1_all.deb --build-arg OSM_TESTS_URL=https://artifactory-osm.etsi.org/artifactory/osm-tests/v13.0/227/pool/tests/osm-tests_13.0.2-1_all.deb .
Sending build context to Docker daemon 8.704kB
Step 1/38 : FROM ubuntu:20.04 as INSTALL
20.04: Pulling from library/ubuntu
Digest: sha256:f2034e7195f61334e6caff6ecf2e965f92d11e888309065da85ff50c617732b8
Status: Image is up to date for ubuntu:20.04
---> f78909c2b360
Step 2/38 : ARG APT_PROXY
---> Using cache
---> 54303a83bb0e
Step 3/38 : 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
---> be465fb7843e
Step 4/38 : 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
---> 9bbc9022d277
Step 5/38 : RUN DEBIAN_FRONTEND=noninteractive apt-get --yes update && DEBIAN_FRONTEND=noninteractive apt-get --yes install mysql-client-core-8.0=8.0.*
---> Using cache
---> 1907916a0f22
Step 6/38 : ARG PYTHON3_OSM_COMMON_URL
---> Using cache
---> 948b1270a0ae
Step 7/38 : ARG PYTHON3_OSM_POLICY_MODULE_URL
---> Using cache
---> 70e795e4c53d
Step 8/38 : RUN curl $PYTHON3_OSM_COMMON_URL -o osm_common.deb
---> Running in 4af67c3d113b
[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
100 37384 100 37384 0 0 480k 0 --:--:-- --:--:-- --:--:-- 480k
[0mRemoving intermediate container 4af67c3d113b
---> aabc36f4425e
Step 9/38 : RUN dpkg -i ./osm_common.deb
---> Running in 08c86acca234
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 (13.0.2.post1+gc9512e2-1) ...
Setting up python3-osm-common (13.0.2.post1+gc9512e2-1) ...
Removing intermediate container 08c86acca234
---> fbc25995ed71
Step 10/38 : RUN curl $PYTHON3_OSM_POLICY_MODULE_URL -o osm_policy_module.deb
---> Running in 4ef3c3946509
[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
100 26804 100 26804 0 0 422k 0 --:--:-- --:--:-- --:--:-- 422k
[0mRemoving intermediate container 4ef3c3946509
---> 7973a8a194c4
Step 11/38 : RUN dpkg -i ./osm_policy_module.deb
---> Running in dc97aa0bea1f
Selecting previously unselected package python3-osm-policy-module.
(Reading database ... 14579 files and directories currently installed.)
Preparing to unpack ./osm_policy_module.deb ...
Unpacking python3-osm-policy-module (13.0.2+ge979531-1) ...
Setting up python3-osm-policy-module (13.0.2+ge979531-1) ...
Removing intermediate container dc97aa0bea1f
---> d698f160a4a7
Step 12/38 : 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 0a1268065463
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==2022.6.15
Downloading certifi-2022.6.15-py3-none-any.whl (160 kB)
Collecting charset-normalizer==2.0.12
Downloading charset_normalizer-2.0.12-py3-none-any.whl (39 kB)
Collecting click==8.1.3
Downloading click-8.1.3-py3-none-any.whl (96 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.28.0
Downloading requests-2.28.0-py3-none-any.whl (62 kB)
Collecting urllib3==1.26.9
Downloading urllib3-1.26.9-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=804a03c2eeb934272798502e8bfd6093fec5bd8caab3435ed8a1ea4104458d0b
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=156169 sha256=6a7854eb9a1b1e576b6bf431485c03957aecd86448252f3c49eff0426a3e775b
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-2022.6.15 charset-normalizer-2.0.12 click-8.1.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.28.0 urllib3-1.26.9
Removing intermediate container 0a1268065463
---> 073da28f4078
Step 13/38 : FROM ubuntu:20.04 as FINAL
---> f78909c2b360
Step 14/38 : ARG APT_PROXY
---> Using cache
---> 54303a83bb0e
Step 15/38 : 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
---> be465fb7843e
Step 16/38 : 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
---> cf8610939ea3
Step 17/38 : RUN rm -f /etc/apt/apt.conf.d/proxy.conf
---> Running in 3555b5e7c8fc
Removing intermediate container 3555b5e7c8fc
---> df9524ef704b
Step 18/38 : COPY --from=INSTALL /usr/lib/python3/dist-packages /usr/lib/python3/dist-packages
---> 93c0c7c10b16
Step 19/38 : COPY --from=INSTALL /usr/local/lib/python3.8/dist-packages /usr/local/lib/python3.8/dist-packages
---> ad184456bd17
Step 20/38 : COPY --from=INSTALL /usr/bin/osm* /usr/bin/
---> 2100ae0771ca
Step 21/38 : COPY --from=INSTALL /usr/bin/mysql /usr/bin/
---> 5abb6aa83b0c
Step 22/38 : COPY --from=INSTALL /usr/bin/mysqladmin /usr/bin/
---> 144aa2b895f4
Step 23/38 : COPY --from=INSTALL /usr/bin/mysqlshow /usr/bin/
---> 8d820f5edf88
Step 24/38 : COPY --from=INSTALL /usr/lib/x86_64-linux-gnu/libedit.so.2 /usr/lib/x86_64-linux-gnu/
---> e087fe692e36
Step 25/38 : COPY --from=INSTALL /usr/lib/x86_64-linux-gnu/libbsd.so.0 /usr/lib/x86_64-linux-gnu/
---> 43e675618bc5
Step 26/38 : COPY scripts/ /app/osm_pol/scripts/
---> d4615f800304
Step 27/38 : 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 ee2bb59dc8f0
Removing intermediate container ee2bb59dc8f0
---> c6de3da072f4
Step 28/38 : WORKDIR /app/osm_pol
---> Running in db8e8d9160be
Removing intermediate container db8e8d9160be
---> b5bbfdfa1cfb
Step 29/38 : USER appuser
---> Running in fd2b3777cd0b
Removing intermediate container fd2b3777cd0b
---> 08907643ef37
Step 30/38 : ENV OSMPOL_MESSAGE_DRIVER kafka
---> Running in e0eb92d1ab5e
Removing intermediate container e0eb92d1ab5e
---> 89e4fa60cf8a
Step 31/38 : ENV OSMPOL_MESSAGE_HOST kafka
---> Running in 297d39573b4c
Removing intermediate container 297d39573b4c
---> 730b280c9a2d
Step 32/38 : ENV OSMPOL_MESSAGE_PORT 9092
---> Running in f8d91f9b4e2f
Removing intermediate container f8d91f9b4e2f
---> 87f507cd1066
Step 33/38 : ENV OSMPOL_DATABASE_DRIVER mongo
---> Running in e1f13ff490f7
Removing intermediate container e1f13ff490f7
---> 8a1e2247badf
Step 34/38 : ENV OSMPOL_DATABASE_URI mongodb://mongo:27017
---> Running in 1ccb0cb563cf
Removing intermediate container 1ccb0cb563cf
---> edb7e7ab05ad
Step 35/38 : ENV OSMPOL_SQL_DATABASE_URI sqlite:///mon_sqlite.db
---> Running in 8de403dfa54d
Removing intermediate container 8de403dfa54d
---> f7320a362045
Step 36/38 : ENV OSMPOL_GLOBAL_LOG_LEVEL INFO
---> Running in f4f48b387136
Removing intermediate container f4f48b387136
---> 5cd2b9bad192
Step 37/38 : HEALTHCHECK --start-period=120s --interval=10s --timeout=5s --retries=5 CMD osm-pol-healthcheck || exit 1
---> Running in 57a6886d19b2
Removing intermediate container 57a6886d19b2
---> 634f23bece42
Step 38/38 : CMD /bin/bash scripts/start.sh
---> Running in b176af28d3ff
Removing intermediate container b176af28d3ff
---> ba60d5da6c89
[Warning] One or more build-args [OSM_NGUI_URL PYTHON3_OSM_MON_URL PYTHON3_N2VC_URL PYTHON3_OSM_IM_URL PYTHON3_OSM_ROSDN_ARISTA_CLOUDVISION_URL PYTHON3_OSM_ROVIM_OPENSTACK_URL PYTHON3_OSM_ROVIM_AWS_URL PYTHON3_OSM_ROVIM_AZURE_URL PYTHON3_OSM_ROVIM_OPENVIM_URL OSM_IMDOCS_URL PYTHON3_OSM_ROSDN_FLOODLIGHTOF_URL PYTHON3_OSM_ROSDN_JUNIPER_CONTRAIL_URL PYTHON3_OSM_ROSDN_ODLOF_URL PYTHON3_OSM_ROSDN_DYNPAC_URL PYTHON3_OSM_ROSDN_ONOS_VPLS_URL PYTHON3_OSM_ROVIM_GCP_URL OSM_DEVOPS_URL OSM_TESTS_URL PYTHON3_OSM_NGSA_URL PYTHON3_OSM_PLA_URL PYTHON3_OSM_ROSDN_IETFL2VPN_URL PYTHON3_OSM_RO_PLUGIN_URL PYTHON3_OSM_ROSDN_ONOSOF_URL PYTHON3_OSM_ROVIM_VMWARE_URL CACHE_DATE PYTHON3_OSM_LCM_URL PYTHON3_OSM_NBI_URL PYTHON3_OSM_ROSDN_DPB_URL PYTHON3_OSMCLIENT_URL PYTHON3_OSM_NG_RO_URL] were not consumed
Successfully built ba60d5da6c89
Successfully tagged opensourcemano/pol:osm-v130-118