weizhouapache commented on PR #13207:
URL: https://github.com/apache/cloudstack/pull/13207#issuecomment-4955341978
this fixes the issues with cloudstack installation on ubuntu 22
```
Setting up libiscsi7:amd64 (1.19.0-3build2) ...
Setting up qemu-block-extra (1:6.2+dfsg-2ubuntu6.31) ...
Created symlink /etc/systemd/system/multi-user.target.wants/run-qemu.mount
-> /lib/systemd/system/run-qemu.mount.
Setting up libc-devtools (2.35-0ubuntu3.13) ...
Setting up cloudstack-common (4.23.0.0-shapeblue19506~xenial) ...
<string>:1: DeprecationWarning: The distutils package is deprecated and
slated for removal in Python 3.12. Use setuptools or check PEP 632 for
potential alternatives
<string>:1: DeprecationWarning: The distutils.sysconfig module is
deprecated, use sysconfig instead
File
"/usr/share/cloudstack-common/scripts/vm/hypervisor/kvm/imageserver/backends/__init__.py",
line 27
def create_backend(cfg: Dict[str, Any]) -> ImageBackend:
^
SyntaxError: invalid syntax
File
"/usr/share/cloudstack-common/scripts/vm/hypervisor/kvm/imageserver/backends/base.py",
line 29
def size(self) -> int:
^
SyntaxError: invalid syntax
File
"/usr/share/cloudstack-common/scripts/vm/hypervisor/kvm/imageserver/backends/file.py",
line 32
def __init__(self, path: str):
^
SyntaxError: invalid syntax
File
"/usr/share/cloudstack-common/scripts/vm/hypervisor/kvm/imageserver/backends/nbd.py",
line 43
socket_path: str,
^
SyntaxError: invalid syntax
File
"/usr/share/cloudstack-common/scripts/vm/hypervisor/kvm/imageserver/server.py",
line 50
registry: TransferRegistry,
^
SyntaxError: invalid syntax
File
"/usr/share/cloudstack-common/scripts/vm/hypervisor/kvm/imageserver/util.py",
line 24
extents: List[Dict[str, Any]],
^
SyntaxError: invalid syntax
File
"/usr/share/cloudstack-common/scripts/vm/hypervisor/kvm/imageserver/tests/test_http11_lifecycle.py",
line 34
def _read_http_headers(sock: socket.socket, timeout: float =
HTTP_TIMEOUT) -> bytes:
^
SyntaxError: invalid syntax
File
"/usr/share/cloudstack-common/scripts/vm/hypervisor/kvm/imageserver/tests/test_stress_io.py",
line 55
def _qemu_img_virtual_size(path: str) -> int:
^
SyntaxError: invalid syntax
File
"/usr/share/cloudstack-common/scripts/vm/hypervisor/kvm/imageserver/tests/test_nbd_backend.py",
line 105
self.assertEqual(resp.getheader("Content-Range"), f"bytes
0-99/{IMAGE_SIZE}")
^
SyntaxError: invalid syntax
File
"/usr/share/cloudstack-common/scripts/vm/hypervisor/kvm/imageserver/tests/test_base.py",
line 89
_tmp_dir: Optional[str] = None
^
SyntaxError: invalid syntax
File
"/usr/share/cloudstack-common/scripts/vm/hypervisor/kvm/imageserver/tests/test_combinations.py",
line 71
_fetch, url, headers={"Range": f"bytes={start}-{end}"}
^
SyntaxError: invalid syntax
File
"/usr/share/cloudstack-common/scripts/vm/hypervisor/kvm/imageserver/tests/test_control_socket.py",
line 44
tid = f"test-{uuid.uuid4().hex[:8]}"
^
SyntaxError: invalid syntax
File
"/usr/share/cloudstack-common/scripts/vm/hypervisor/kvm/imageserver/tests/test_file_backend.py",
line 100
self.assertEqual(resp.getheader("Content-Range"), f"bytes 0-99/{size}")
^
SyntaxError: invalid syntax
File
"/usr/share/cloudstack-common/scripts/vm/hypervisor/kvm/imageserver/handler.py",
line 47
_registry: TransferRegistry
^
SyntaxError: invalid syntax
File
"/usr/share/cloudstack-common/scripts/vm/hypervisor/kvm/imageserver/config.py",
line 28
def parse_idle_timeout_seconds(obj: dict) -> int:
^
SyntaxError: invalid syntax
File "/usr/share/cloudstack-common/scripts/vm/network/security_group.py",
line 164
logging.warning(f"Could not parse one of the IP addresses in the list
{ips}: {str(e)}")
^
SyntaxError: invalid syntax
dpkg: error processing package cloudstack-common (--configure):
installed cloudstack-common package post-installation script subprocess
returned error exit status 101
Setting up g++-11 (11.4.0-1ubuntu1~22.04.3) ...
dpkg: dependency problems prevent configuration of cloudstack-management:
cloudstack-management depends on cloudstack-common (=
4.23.0.0-shapeblue19506~xenial); however:
Package cloudstack-common is not configured yet.
dpkg: error processing package cloudstack-management (--configure):
dependency problems - leaving unconfigured
Setting up libpython3.10-dev:amd64 (3.10.12-1~22.04.16) ...
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]