From 9ca53b609edcc8431a9d469a26a67a77e4fbf903 Mon Sep 17 00:00:00 2001 From: sousaedu Date: Mon, 29 Nov 2021 09:28:15 +0000 Subject: [PATCH] Fix bug 1807 - Disabling RO OpenNebula plugin Change-Id: I52a7947450d83b91fac92170348f7d474a878d97 Signed-off-by: sousaedu --- devops-stages/stage-build.sh | 7 +- .../notes/fix_bug_1807-b2bc23440751b829.yaml | 22 +++ requirements-dist.txt | 2 +- requirements-test.txt | 4 +- requirements.in | 5 +- requirements.txt | 150 +++++++----------- tox.ini | 14 +- 7 files changed, 100 insertions(+), 104 deletions(-) create mode 100644 releasenotes/notes/fix_bug_1807-b2bc23440751b829.yaml diff --git a/devops-stages/stage-build.sh b/devops-stages/stage-build.sh index d174a823..ae587850 100755 --- a/devops-stages/stage-build.sh +++ b/devops-stages/stage-build.sh @@ -32,7 +32,7 @@ tox -e dist_ro_sdn_onos_vpls & tox -e dist_ro_vim_aws & tox -e dist_ro_vim_azure & tox -e dist_ro_vim_fos & -tox -e dist_ro_vim_opennebula & +#tox -e dist_ro_vim_opennebula & tox -e dist_ro_vim_openstack & tox -e dist_ro_vim_openvim & tox -e dist_ro_vim_vmware & @@ -55,7 +55,9 @@ cp NG-RO/deb_dist/python3-osm-ng-ro_*.deb deb_dist/ # VIM plugins: vmware, openstack, AWS, fos, azure, Opennebula, GCP for vim_plugin in RO-VIM-* do - cp ${vim_plugin}/deb_dist/python3-osm-rovim*.deb deb_dist/ + if [ "$vim_plugin" != "RO-VIM-opennebula" ]; then + cp ${vim_plugin}/deb_dist/python3-osm-rovim*.deb deb_dist/ + fi done # SDN plugins: DynPac, Ietfl2vpn, Onosof Floodlightof @@ -63,4 +65,3 @@ for sdn_plugin in RO-SDN-* do cp ${sdn_plugin}/deb_dist/python3-osm-rosdn*.deb deb_dist/ done - diff --git a/releasenotes/notes/fix_bug_1807-b2bc23440751b829.yaml b/releasenotes/notes/fix_bug_1807-b2bc23440751b829.yaml new file mode 100644 index 00000000..ecac232a --- /dev/null +++ b/releasenotes/notes/fix_bug_1807-b2bc23440751b829.yaml @@ -0,0 +1,22 @@ +####################################################################################### +# Copyright ETSI Contributors and Others. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or +# implied. +# See the License for the specific language governing permissions and +# limitations under the License. +####################################################################################### +--- +fixes: + - | + Disabling the Open Nebula plugin because it has a dependency to a GPLv2 licensed + library. Due to licensing restrictions and has mentioned in bug 1807, this cannot be + happen, therefore the plugin will remain disabled until further notice. diff --git a/requirements-dist.txt b/requirements-dist.txt index b32a04ab..77debcf8 100644 --- a/requirements-dist.txt +++ b/requirements-dist.txt @@ -14,7 +14,7 @@ # See the License for the specific language governing permissions and # limitations under the License. ####################################################################################### -setuptools-version-command==2.2 +setuptools-version-command==99.9 # via -r requirements-dist.in stdeb==0.10.0 # via -r requirements-dist.in diff --git a/requirements-test.txt b/requirements-test.txt index cdf4a6a9..88df89c9 100644 --- a/requirements-test.txt +++ b/requirements-test.txt @@ -14,9 +14,9 @@ # See the License for the specific language governing permissions and # limitations under the License. ####################################################################################### --e RO-plugin +-e file:///home/ed1000/git/RO/RO-plugin # via -r requirements-test.in -coverage==6.0 +coverage==6.2 # via # -r requirements-test.in # nose2 diff --git a/requirements.in b/requirements.in index df2710f2..d3b71f99 100644 --- a/requirements.in +++ b/requirements.in @@ -28,8 +28,11 @@ -r RO-VIM-aws/requirements.in -r RO-VIM-azure/requirements.in -r RO-VIM-fos/requirements.in --r RO-VIM-opennebula/requirements.in +#-r RO-VIM-opennebula/requirements.in -r RO-VIM-openstack/requirements.in -r RO-VIM-openvim/requirements.in -r RO-VIM-vmware/requirements.in -r RO-VIM-gcp/requirements.in +# Needed to pin due to failure in finding package version +portend<3.1.0 +pyyaml==5.4.1 diff --git a/requirements.txt b/requirements.txt index 6c22e694..b35b300a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -16,8 +16,6 @@ ####################################################################################### adal==1.2.7 # via msrestazure -aenum==3.1.0 - # via pyone alabaster==0.7.12 # via sphinx appdirs==1.4.4 @@ -34,20 +32,20 @@ azure-common==1.1.27 # azure-mgmt-compute # azure-mgmt-network # azure-mgmt-resource -azure-core==1.19.0 +azure-core==1.20.1 # via # azure-identity # azure-mgmt-core -azure-identity==1.6.1 +azure-identity==1.7.1 # via -r RO-VIM-azure/requirements.in -azure-mgmt-compute==23.0.0 +azure-mgmt-compute==23.1.0 # via -r RO-VIM-azure/requirements.in azure-mgmt-core==1.3.0 # via # azure-mgmt-compute # azure-mgmt-network # azure-mgmt-resource -azure-mgmt-network==19.0.0 +azure-mgmt-network==19.3.0 # via -r RO-VIM-azure/requirements.in azure-mgmt-resource==20.0.0 # via -r RO-VIM-azure/requirements.in @@ -61,31 +59,29 @@ boto==2.49.0 # via -r RO-VIM-aws/requirements.in cachetools==4.2.4 # via google-auth -certifi==2021.5.30 +certifi==2021.10.8 # via # msrest # requests -cffi==1.14.6 +cffi==1.15.0 # via # bcrypt # cryptography # pynacl -charset-normalizer==2.0.6 +charset-normalizer==2.0.8 # via requests cheroot==8.5.2 # via cherrypy cherrypy==18.1.2 # via -r NG-RO/requirements.in -cliff==3.9.0 +cliff==3.10.0 # via # osc-lib # python-neutronclient # python-openstackclient -cmd2==2.2.0 +cmd2==2.3.2 # via cliff -colorama==0.4.4 - # via cmd2 -cryptography==3.4.8 +cryptography==36.0.0 # via # -r NG-RO/requirements.in # adal @@ -109,8 +105,6 @@ decorator==5.1.0 # via # dogpile.cache # openstacksdk -dicttoxml==1.7.4 - # via pyone docutils==0.17.1 # via sphinx dogpile.cache==1.1.4 @@ -125,45 +119,37 @@ fog05-sdk==0.2.0 # fog05 fog05==0.2.0 # via -r RO-VIM-fos/requirements.in -google-api-core==2.0.1 +google-api-core==2.2.2 # via google-api-python-client -google-api-python-client==2.23.0 +google-api-python-client==2.31.0 # via -r RO-VIM-gcp/requirements.in google-auth-httplib2==0.1.0 # via google-api-python-client -google-auth==2.2.1 +google-auth==2.3.3 # via # -r RO-VIM-gcp/requirements.in # google-api-core # google-api-python-client # google-auth-httplib2 +google-cloud==0.34.0 + # via -r RO-VIM-gcp/requirements.in googleapis-common-protos==1.53.0 # via google-api-core hexdump==3.3 # via yaks -httplib2==0.19.1 +httplib2==0.20.2 # via # google-api-python-client # google-auth-httplib2 humanfriendly==10.0 # via pyvcloud -idna==3.2 +idna==3.3 # via requests -imagesize==1.2.0 +imagesize==1.3.0 # via sphinx -importlib-metadata==4.8.1 - # via - # -r NG-RO/requirements.in - # cmd2 - # debtcollector - # jsonschema - # openstacksdk - # oslo.config - # prettytable - # stevedore -importlib-resources==5.2.2 - # via netaddr -iso8601==0.1.16 +importlib-metadata==4.8.2 + # via -r NG-RO/requirements.in +iso8601==1.0.2 # via # keystoneauth1 # openstacksdk @@ -173,11 +159,11 @@ iso8601==0.1.16 # python-openstackclient isodate==0.6.0 # via msrest -jaraco.functools==3.3.0 +jaraco.functools==3.4.0 # via # cheroot # tempora -jinja2==3.0.2 +jinja2==3.0.3 # via sphinx jmespath==0.10.0 # via openstacksdk @@ -185,7 +171,7 @@ jsonpatch==1.32 # via # openstacksdk # warlock -jsonpointer==2.1 +jsonpointer==2.2 # via jsonpatch jsonschema==3.2.0 # via @@ -203,26 +189,25 @@ keystoneauth1==4.4.0 # python-novaclient logutils==0.3.5 # via -r NG-RO/requirements.in -lxml==4.6.3 +lxml==4.6.4 # via # pyang # pyangbind - # pyone # pyvcloud markupsafe==2.0.1 # via jinja2 -more-itertools==8.10.0 +more-itertools==8.12.0 # via # cheroot # cherrypy # jaraco.functools msal-extensions==0.3.0 # via azure-identity -msal==1.15.0 +msal==1.16.0 # via # azure-identity # msal-extensions -msgpack==1.0.2 +msgpack==1.0.3 # via oslo.serialization msrest==0.6.21 # via @@ -246,7 +231,6 @@ netaddr==0.8.0 # -r RO-VIM-azure/requirements.in # -r RO-VIM-fos/requirements.in # -r RO-VIM-gcp/requirements.in - # -r RO-VIM-opennebula/requirements.in # -r RO-VIM-openstack/requirements.in # -r RO-VIM-openvim/requirements.in # -r RO-VIM-vmware/requirements.in @@ -259,9 +243,7 @@ netifaces==0.11.0 # oslo.utils oauthlib==3.1.1 # via requests-oauthlib -oca==4.10.0 - # via -r RO-VIM-opennebula/requirements.in -openstacksdk==0.59.0 +openstacksdk==0.60.0 # via # os-client-config # osc-lib @@ -280,7 +262,7 @@ oslo.config==8.7.1 # via # oslo.log # python-keystoneclient -oslo.context==3.3.1 +oslo.context==3.4.0 # via oslo.log oslo.i18n==5.1.0 # via @@ -294,7 +276,7 @@ oslo.i18n==5.1.0 # python-neutronclient # python-novaclient # python-openstackclient -oslo.log==4.6.0 +oslo.log==4.6.1 # via python-neutronclient oslo.serialization==4.2.0 # via @@ -302,7 +284,7 @@ oslo.serialization==4.2.0 # python-keystoneclient # python-neutronclient # python-novaclient -oslo.utils==4.10.0 +oslo.utils==4.12.0 # via # osc-lib # oslo.log @@ -313,17 +295,18 @@ oslo.utils==4.10.0 # python-neutronclient # python-novaclient # python-openstackclient -packaging==21.0 +packaging==21.3 # via # oslo.utils # sphinx papero==0.2.7 # via yaks -paramiko==2.7.2 +paramiko==2.8.1 # via # -r RO-SDN-dpb/requirements.in + # -r RO-VIM-gcp/requirements.in # -r RO-plugin/requirements.in -pbr==5.6.0 +pbr==5.8.0 # via # cliff # debtcollector @@ -345,9 +328,11 @@ pbr==5.6.0 # stevedore portalocker==1.7.1 # via msal-extensions -portend==2.7.1 - # via cherrypy -prettytable==2.2.1 +portend==3.0.0 + # via + # -r requirements.in + # cherrypy +prettytable==2.4.0 # via # -r RO-VIM-vmware/requirements.in # cliff @@ -356,7 +341,7 @@ prettytable==2.2.1 # python-novaclient progressbar==2.5 # via -r RO-VIM-vmware/requirements.in -protobuf==3.18.0 +protobuf==3.19.1 # via # google-api-core # googleapis-common-protos @@ -372,7 +357,7 @@ pyasn1==0.4.8 # via # pyasn1-modules # rsa -pycparser==2.20 +pycparser==2.21 # via cffi pygments==2.10.0 # via @@ -380,17 +365,15 @@ pygments==2.10.0 # sphinx pyinotify==0.9.6 # via oslo.log -pyjwt[crypto]==2.1.0 +pyjwt[crypto]==2.3.0 # via # adal # msal pynacl==1.4.0 # via paramiko -pyone==6.0.3 - # via -r RO-VIM-opennebula/requirements.in pyopenssl==21.0.0 # via python-glanceclient -pyparsing==2.4.7 +pyparsing==3.0.6 # via # cliff # httplib2 @@ -415,13 +398,13 @@ python-keystoneclient==4.3.0 # -r RO-VIM-openstack/requirements.in # python-neutronclient # python-openstackclient -python-neutronclient==7.6.0 +python-neutronclient==7.7.0 # via -r RO-VIM-openstack/requirements.in python-novaclient==17.6.0 # via # -r RO-VIM-openstack/requirements.in # python-openstackclient -python-openstackclient==5.6.0 +python-openstackclient==5.7.0 # via -r RO-VIM-openstack/requirements.in pytz==2021.3 # via @@ -431,7 +414,7 @@ pytz==2021.3 # tempora pyvcloud==19.1.1 # via -r RO-VIM-vmware/requirements.in -pyvmomi==7.0.2 +pyvmomi==7.0.3 # via -r RO-VIM-vmware/requirements.in pyyaml==5.4.1 # via @@ -439,16 +422,16 @@ pyyaml==5.4.1 # -r RO-VIM-aws/requirements.in # -r RO-VIM-azure/requirements.in # -r RO-VIM-fos/requirements.in - # -r RO-VIM-opennebula/requirements.in # -r RO-VIM-openstack/requirements.in # -r RO-VIM-openvim/requirements.in # -r RO-VIM-vmware/requirements.in # -r RO-plugin/requirements.in + # -r requirements.in # cliff # openstacksdk # oslo.config # pyvcloud -regex==2021.9.30 +regex==2021.11.10 # via pyangbind requests-oauthlib==1.3.0 # via msrest @@ -467,8 +450,6 @@ requests==2.26.0 # -r RO-VIM-aws/requirements.in # -r RO-VIM-azure/requirements.in # -r RO-VIM-fos/requirements.in - # -r RO-VIM-gcp/requirements.in - # -r RO-VIM-opennebula/requirements.in # -r RO-VIM-openstack/requirements.in # -r RO-VIM-openvim/requirements.in # -r RO-VIM-vmware/requirements.in @@ -481,7 +462,6 @@ requests==2.26.0 # msal # msrest # oslo.config - # pyone # python-cinderclient # python-glanceclient # python-keystoneclient @@ -494,9 +474,9 @@ requestsexceptions==1.4.0 # via openstacksdk rfc3986==1.5.0 # via oslo.config -rsa==4.7.2 +rsa==4.8 # via google-auth -simplejson==3.17.5 +simplejson==3.17.6 # via # osc-lib # python-cinderclient @@ -508,6 +488,7 @@ six==1.16.0 # bcrypt # cheroot # debtcollector + # google-auth # google-auth-httplib2 # isodate # jsonschema @@ -516,15 +497,14 @@ six==1.16.0 # munch # pyangbind # pynacl - # pyone # pyopenssl # python-dateutil # python-keystoneclient # pyvmomi # warlock -snowballstemmer==2.1.0 +snowballstemmer==2.2.0 # via sphinx -sphinx==4.2.0 +sphinx==4.3.1 # via -r RO-VIM-fos/requirements.in sphinxcontrib-applehelp==1.0.2 # via sphinx @@ -538,7 +518,7 @@ sphinxcontrib-qthelp==1.0.3 # via sphinx sphinxcontrib-serializinghtml==1.1.5 # via sphinx -stevedore==3.4.0 +stevedore==3.5.0 # via # cliff # dogpile.cache @@ -549,15 +529,9 @@ stevedore==3.4.0 # python-keystoneclient # python-novaclient # python-openstackclient -tblib==1.7.0 - # via pyone -tempora==4.1.1 +tempora==4.1.2 # via portend -typing-extensions==3.10.0.2 - # via - # cmd2 - # importlib-metadata -uritemplate==3.0.1 +uritemplate==4.1.1 # via google-api-python-client urllib3==1.26.7 # via requests @@ -569,12 +543,10 @@ wcwidth==0.2.5 # via # cmd2 # prettytable -wrapt==1.13.1 +wrapt==1.13.3 # via # debtcollector # python-glanceclient -xmltodict==0.12.0 - # via pyone yaks==0.3.0.post1 # via # -r RO-VIM-fos/requirements.in @@ -585,9 +557,7 @@ zc.lockfile==2.0 zenoh==0.3.0 # via -r RO-VIM-fos/requirements.in zipp==3.6.0 - # via - # importlib-metadata - # importlib-resources + # via importlib-metadata # The following packages are considered to be unsafe in a requirements file: # setuptools diff --git a/tox.ini b/tox.ini index 35c212bb..5fd2a10b 100644 --- a/tox.ini +++ b/tox.ini @@ -16,7 +16,7 @@ ####################################################################################### [tox] -envlist = black, flake8, pylint, safety +envlist = black, flake8, safety [tox:jenkins] toxworkdir = /tmp/.tox @@ -57,7 +57,7 @@ commands = black --check --diff RO-VIM-aws black --check --diff RO-VIM-azure black --check --diff RO-VIM-fos - black --check --diff RO-VIM-opennebula + # black --check --diff RO-VIM-opennebula black --check --diff RO-VIM-openstack black --check --diff RO-VIM-openvim black --check --diff RO-VIM-vmware @@ -118,8 +118,8 @@ commands = nose2 -C --coverage RO-VIM-fos/osm_rovim_fos -s RO-VIM-fos/osm_rovim_fos sh -c 'mv .coverage .coverage_rovim_fos' # RO-VIM-opennebula - nose2 -C --coverage RO-VIM-opennebula/osm_rovim_opennebula -s RO-VIM-opennebula/osm_rovim_opennebula - sh -c 'mv .coverage .coverage_rovim_opennebula' + # nose2 -C --coverage RO-VIM-opennebula/osm_rovim_opennebula -s RO-VIM-opennebula/osm_rovim_opennebula + # sh -c 'mv .coverage .coverage_rovim_opennebula' # RO-VIM-openstack # nose2 -C --coverage RO-VIM-openstack/osm_rovim_openstack -s RO-VIM-openstack/osm_rovim_openstack # sh -c 'mv .coverage .coverage_rovim_openstack' @@ -133,7 +133,7 @@ commands = nose2 -C --coverage RO-VIM-gcp/osm_rovim_gcp -s RO-VIM-gcp/osm_rovim_gcp sh -c 'mv .coverage .coverage_rovim_gcp' # Combine results and generate reports - coverage combine .coverage_ng_ro .coverage_ro_plugin .coverage_rosdn_arista_cloudvision .coverage_rosdn_dpb .coverage_rosdn_dynpac .coverage_rosdn_floodlightof .coverage_rosdn_ietfl2vpn .coverage_rosdn_juniper_contrail .coverage_rosdn_odlof .coverage_rosdn_onos_vpls .coverage_rosdn_onosof .coverage_rovim_aws .coverage_rovim_azure .coverage_rovim_fos .coverage_rovim_opennebula .coverage_rovim_openvim .coverage_rovim_gcp # .coverage_rovim_openstack .coverage_rovim_vmware + coverage combine .coverage_ng_ro .coverage_ro_plugin .coverage_rosdn_arista_cloudvision .coverage_rosdn_dpb .coverage_rosdn_dynpac .coverage_rosdn_floodlightof .coverage_rosdn_ietfl2vpn .coverage_rosdn_juniper_contrail .coverage_rosdn_odlof .coverage_rosdn_onos_vpls .coverage_rosdn_onosof .coverage_rovim_aws .coverage_rovim_azure .coverage_rovim_fos .coverage_rovim_openvim .coverage_rovim_gcp # .coverage_rovim_openstack .coverage_rovim_vmware .coverage_rovim_opennebula coverage report --omit='*tests*' coverage html -d ./cover --omit='*tests*' coverage xml -o coverage.xml --omit='*tests*' @@ -158,7 +158,7 @@ commands = - flake8 RO-VIM-aws/osm_rovim_aws/ RO-VIM-aws/setup.py - flake8 RO-VIM-azure/osm_rovim_azure/ RO-VIM-azure/setup.py - flake8 RO-VIM-fos/osm_rovim_fos/ RO-VIM-fos/setup.py - - flake8 RO-VIM-opennebula/osm_rovim_opennebula/ RO-VIM-opennebula/setup.py + # - flake8 RO-VIM-opennebula/osm_rovim_opennebula/ RO-VIM-opennebula/setup.py - flake8 RO-VIM-openstack/osm_rovim_openstack/ RO-VIM-openstack/setup.py - flake8 RO-VIM-openvim/osm_rovim_openvim/ RO-VIM-openvim/setup.py - flake8 RO-VIM-vmware/osm_rovim_vmware/vimconn_vmware.py RO-VIM-vmware/osm_rovim_vmware/tests/test_vimconn_vmware.py RO-VIM-vmware/setup.py @@ -188,7 +188,7 @@ commands = - pylint -E RO-VIM-aws/osm_rovim_aws - pylint -E RO-VIM-azure/osm_rovim_azure - pylint -E RO-VIM-fos/osm_rovim_fos - - pylint -E RO-VIM-opennebula/osm_rovim_opennebula + # - pylint -E RO-VIM-opennebula/osm_rovim_opennebula - pylint -E RO-VIM-openstack/osm_rovim_openstack - pylint -E RO-VIM-openvim/osm_rovim_openvim - pylint -E RO-VIM-vmware/osm_rovim_vmware -- 2.17.1