[goal] Migrate python-cinderclient jobs to focal
As per victoria cycle testing runtime and community goal[1] we need to migrate upstream CI/CD to Ubuntu Focal(20.04). Fixing: - bug#1886298 Bump the lower constraints for required deps which added python3.8 support in their later version. - pep8 error - Set bionic nodeset for py36 and py37 job. [1] https://governance.openstack.org/tc/goals/selected/victoria/migrate-ci-cd-jobs-to-ubuntu-fo$ Story: #2007865 Task: #40179 Change-Id: Ibab96807a7747738282732fe0069b9bc197da0ee
This commit is contained in:
parent
92f700f508
commit
f85896af2b
@ -16,6 +16,7 @@
|
|||||||
- job:
|
- job:
|
||||||
name: python-cinderclient-functional-py36
|
name: python-cinderclient-functional-py36
|
||||||
parent: python-cinderclient-functional-base
|
parent: python-cinderclient-functional-base
|
||||||
|
nodeset: openstack-single-node-bionic
|
||||||
vars:
|
vars:
|
||||||
python_version: 3.6
|
python_version: 3.6
|
||||||
tox_envlist: functional-py36
|
tox_envlist: functional-py36
|
||||||
|
@ -33,10 +33,6 @@ from keystoneauth1.identity import base
|
|||||||
from oslo_utils import encodeutils
|
from oslo_utils import encodeutils
|
||||||
from oslo_utils import importutils
|
from oslo_utils import importutils
|
||||||
from oslo_utils import strutils
|
from oslo_utils import strutils
|
||||||
try:
|
|
||||||
osprofiler_web = importutils.try_import("osprofiler.web")
|
|
||||||
except Exception:
|
|
||||||
pass
|
|
||||||
import requests
|
import requests
|
||||||
from six.moves import urllib
|
from six.moves import urllib
|
||||||
import six.moves.urllib.parse as urlparse
|
import six.moves.urllib.parse as urlparse
|
||||||
@ -56,6 +52,12 @@ try:
|
|||||||
except ImportError:
|
except ImportError:
|
||||||
import simplejson as json
|
import simplejson as json
|
||||||
|
|
||||||
|
try:
|
||||||
|
osprofiler_web = importutils.try_import("osprofiler.web")
|
||||||
|
except Exception:
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
_VALID_VERSIONS = ['v2', 'v3']
|
_VALID_VERSIONS = ['v2', 'v3']
|
||||||
V3_SERVICE_TYPE = 'volumev3'
|
V3_SERVICE_TYPE = 'volumev3'
|
||||||
V2_SERVICE_TYPE = 'volumev2'
|
V2_SERVICE_TYPE = 'volumev2'
|
||||||
|
@ -31,10 +31,6 @@ from keystoneauth1 import loading
|
|||||||
from keystoneauth1 import session
|
from keystoneauth1 import session
|
||||||
from oslo_utils import encodeutils
|
from oslo_utils import encodeutils
|
||||||
from oslo_utils import importutils
|
from oslo_utils import importutils
|
||||||
try:
|
|
||||||
osprofiler_profiler = importutils.try_import("osprofiler.profiler")
|
|
||||||
except Exception:
|
|
||||||
pass
|
|
||||||
import requests
|
import requests
|
||||||
import six
|
import six
|
||||||
import six.moves.urllib.parse as urlparse
|
import six.moves.urllib.parse as urlparse
|
||||||
@ -46,6 +42,11 @@ from cinderclient import client
|
|||||||
from cinderclient import exceptions as exc
|
from cinderclient import exceptions as exc
|
||||||
from cinderclient import utils
|
from cinderclient import utils
|
||||||
|
|
||||||
|
try:
|
||||||
|
osprofiler_profiler = importutils.try_import("osprofiler.profiler")
|
||||||
|
except Exception:
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
DEFAULT_MAJOR_OS_VOLUME_API_VERSION = "3"
|
DEFAULT_MAJOR_OS_VOLUME_API_VERSION = "3"
|
||||||
DEFAULT_CINDER_ENDPOINT_TYPE = 'publicURL'
|
DEFAULT_CINDER_ENDPOINT_TYPE = 'publicURL'
|
||||||
|
@ -27,7 +27,7 @@ def do_fake_action():
|
|||||||
|
|
||||||
|
|
||||||
@api_versions.wraps("3.2", "3.3") # noqa: F811
|
@api_versions.wraps("3.2", "3.3") # noqa: F811
|
||||||
def do_fake_action():
|
def do_fake_action(): # noqa
|
||||||
return "fake_action 3.2 to 3.3"
|
return "fake_action 3.2 to 3.3"
|
||||||
|
|
||||||
|
|
||||||
|
@ -72,7 +72,7 @@ class FakeManagerWithApi(base.Manager):
|
|||||||
return '3.1'
|
return '3.1'
|
||||||
|
|
||||||
@api_versions.wraps('3.2') # noqa: F811
|
@api_versions.wraps('3.2') # noqa: F811
|
||||||
def return_api_version(self):
|
def return_api_version(self): # noqa
|
||||||
return '3.2'
|
return '3.2'
|
||||||
|
|
||||||
|
|
||||||
|
@ -52,7 +52,7 @@ class MessageManager(base.ManagerWithFind):
|
|||||||
return self._list(url, resource_type)
|
return self._list(url, resource_type)
|
||||||
|
|
||||||
@api_versions.wraps('3.5') # noqa: F811
|
@api_versions.wraps('3.5') # noqa: F811
|
||||||
def list(self, search_opts=None, marker=None, limit=None, sort=None):
|
def list(self, search_opts=None, marker=None, limit=None, sort=None): # noqa
|
||||||
"""Lists all messages.
|
"""Lists all messages.
|
||||||
|
|
||||||
:param search_opts: Search options to filter out volumes.
|
:param search_opts: Search options to filter out volumes.
|
||||||
|
@ -61,7 +61,7 @@ class VolumeBackupManager(volume_backups.VolumeBackupManager):
|
|||||||
incremental, force, snapshot_id)
|
incremental, force, snapshot_id)
|
||||||
|
|
||||||
@api_versions.wraps("3.43") # noqa: F811
|
@api_versions.wraps("3.43") # noqa: F811
|
||||||
def create(self, volume_id, container=None,
|
def create(self, volume_id, container=None, # noqa
|
||||||
name=None, description=None,
|
name=None, description=None,
|
||||||
incremental=False, force=False,
|
incremental=False, force=False,
|
||||||
snapshot_id=None,
|
snapshot_id=None,
|
||||||
@ -85,7 +85,7 @@ class VolumeBackupManager(volume_backups.VolumeBackupManager):
|
|||||||
incremental, force, snapshot_id, metadata)
|
incremental, force, snapshot_id, metadata)
|
||||||
|
|
||||||
@api_versions.wraps("3.51") # noqa: F811
|
@api_versions.wraps("3.51") # noqa: F811
|
||||||
def create(self, volume_id, container=None, name=None, description=None,
|
def create(self, volume_id, container=None, name=None, description=None, # noqa
|
||||||
incremental=False, force=False, snapshot_id=None, metadata=None,
|
incremental=False, force=False, snapshot_id=None, metadata=None,
|
||||||
availability_zone=None):
|
availability_zone=None):
|
||||||
return self._create_backup(volume_id, container, name, description,
|
return self._create_backup(volume_id, container, name, description,
|
||||||
|
@ -160,7 +160,7 @@ class VolumeManager(volumes.VolumeManager):
|
|||||||
return common_base.ListWithMeta([], response_list)
|
return common_base.ListWithMeta([], response_list)
|
||||||
|
|
||||||
@api_versions.wraps("3.15") # noqa: F811
|
@api_versions.wraps("3.15") # noqa: F811
|
||||||
def delete_metadata(self, volume, keys):
|
def delete_metadata(self, volume, keys): # noqa
|
||||||
"""Delete specified keys from volumes metadata.
|
"""Delete specified keys from volumes metadata.
|
||||||
|
|
||||||
:param volume: The :class:`Volume`.
|
:param volume: The :class:`Volume`.
|
||||||
@ -191,7 +191,7 @@ class VolumeManager(volumes.VolumeManager):
|
|||||||
'disk_format': disk_format})
|
'disk_format': disk_format})
|
||||||
|
|
||||||
@api_versions.wraps("3.1") # noqa: F811
|
@api_versions.wraps("3.1") # noqa: F811
|
||||||
def upload_to_image(self, volume, force, image_name, container_format,
|
def upload_to_image(self, volume, force, image_name, container_format, # noqa
|
||||||
disk_format, visibility, protected):
|
disk_format, visibility, protected):
|
||||||
"""Upload volume to image service as image.
|
"""Upload volume to image service as image.
|
||||||
:param volume: The :class:`Volume` to upload.
|
:param volume: The :class:`Volume` to upload.
|
||||||
@ -265,7 +265,7 @@ class VolumeManager(volumes.VolumeManager):
|
|||||||
return self._get('/scheduler-stats/get_pools%s' % query_string, None)
|
return self._get('/scheduler-stats/get_pools%s' % query_string, None)
|
||||||
|
|
||||||
@api_versions.wraps("3.33") # noqa: F811
|
@api_versions.wraps("3.33") # noqa: F811
|
||||||
def get_pools(self, detail, search_opts):
|
def get_pools(self, detail, search_opts): # noqa
|
||||||
"""Show pool information for backends."""
|
"""Show pool information for backends."""
|
||||||
# pylint: disable=function-redefined
|
# pylint: disable=function-redefined
|
||||||
options = {'detail': detail}
|
options = {'detail': detail}
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
asn1crypto==0.23.0
|
asn1crypto==0.23.0
|
||||||
cffi==1.7.0
|
cffi==1.14.0
|
||||||
cliff==2.8.0
|
cliff==2.8.0
|
||||||
cmd2==0.8.0
|
cmd2==0.8.0
|
||||||
coverage==4.0
|
coverage==4.0
|
||||||
cryptography==2.1
|
cryptography==2.7
|
||||||
ddt==1.0.1
|
ddt==1.0.1
|
||||||
debtcollector==1.2.0
|
debtcollector==1.2.0
|
||||||
extras==1.0.0
|
extras==1.0.0
|
||||||
@ -39,7 +39,7 @@ python-dateutil==2.5.3
|
|||||||
python-mimeparse==1.6.0
|
python-mimeparse==1.6.0
|
||||||
python-subunit==1.0.0
|
python-subunit==1.0.0
|
||||||
pytz==2013.6
|
pytz==2013.6
|
||||||
PyYAML==3.12
|
PyYAML==3.13
|
||||||
reno==3.1.0
|
reno==3.1.0
|
||||||
requests-mock==1.2.0
|
requests-mock==1.2.0
|
||||||
requests==2.14.2
|
requests==2.14.2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user