From b4235b4edfddea4f8ad4e6ee856ab86633e0a826 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?T=C3=A2n=20L=C3=AA?= <16718453+moly7x@users.noreply.github.com> Date: Fri, 19 Nov 2021 13:37:47 +0700 Subject: [PATCH] Fixed TypeError Fix `TypeError: Argument must be bytes or unicode, got 'int'` in nova-compute. --- patches/cinder-vitastor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/patches/cinder-vitastor.py b/patches/cinder-vitastor.py index d0879265..03215d04 100644 --- a/patches/cinder-vitastor.py +++ b/patches/cinder-vitastor.py @@ -658,8 +658,8 @@ class VitastorDriver(driver.CloneableImageVD, 'etcd_address': self.configuration.vitastor_etcd_address, 'etcd_prefix': self.configuration.vitastor_etcd_prefix, 'name': volume.name, - 'logical_block_size': 512, - 'physical_block_size': 4096, + 'logical_block_size': '512', + 'physical_block_size': '4096', } } LOG.debug('connection data: %s', data)