diff --git a/config_tempest/services/image.py b/config_tempest/services/image.py index 836ef299..b8a93492 100644 --- a/config_tempest/services/image.py +++ b/config_tempest/services/image.py @@ -187,7 +187,7 @@ class ImageService(VersionedService): else: visibility = 'public' - with open(path) as data: + with open(path, 'rb') as data: image = self.client.create_image(name=name, disk_format=self.disk_format, container_format='bare', diff --git a/config_tempest/services/services.py b/config_tempest/services/services.py index cb2f25d2..42ab7298 100644 --- a/config_tempest/services/services.py +++ b/config_tempest/services/services.py @@ -228,7 +228,7 @@ class Services(object): horizon.configure_horizon(self._conf) - for service, codename in C.SERVICE_NAMES.iteritems(): + for service, codename in C.SERVICE_NAMES.items(): # ceilometer is still transitioning from metering to telemetry if service == 'telemetry' and self.is_service('metering'): service = 'metering'