a31bd1a8fd
The version of python-cinderclient needs to be constrained to before the point at which it dropped volume API v2 support (which happened in 8.0.0). If this is pinned back, latest openstackclient can be installed and used for Rackspace volume operations without issue. Make sure we install new enough OpenStackSDK so it doesn't try to pass unsupported networking options in server create calls to Rackspace too. The script itself had a couple of issues once rehomed, the first being it was looking for Ansible playbooks relative to its former path in the repository rather than its installed location in the venv, so make that path configurable but have it default to the absolute path to those on the bridge now. Also, the script really wanted to clear the ansible cache, but when that path doesn't exist (as is currently the case on the bridge), it aborts rather than continuing, so wrap that call in a try/except. While we're here, update our default server image from focal to jammy. Change-Id: I103c7799ebe319d2d8b3fb626d7804387d3e8a60
33 lines
823 B
TOML
33 lines
823 B
TOML
[build-system]
|
|
requires = ["setuptools>=61.0"]
|
|
build-backend = "setuptools.build_meta"
|
|
|
|
[project]
|
|
name = "opendev_launch"
|
|
version = "1.0.0"
|
|
description = "launch nodes"
|
|
requires-python = ">=3.6"
|
|
classifiers = [
|
|
"Programming Language :: Python :: 3",
|
|
"License :: OSI Approved :: Apache2 License",
|
|
"Operating System :: OS Independent",
|
|
]
|
|
dependencies = [
|
|
"paramiko>=2.9.1",
|
|
"python-openstackclient",
|
|
# Minimum to work with clouds like RAX that don't take network:auto
|
|
"openstacksdk>=0.103",
|
|
# Pin to a version of cinderclient known to work with RAX storage...
|
|
"python-cinderclient<8",
|
|
]
|
|
|
|
[project.urls]
|
|
"Homepage" = "https://opendev.org/"
|
|
|
|
[project.scripts]
|
|
launch-node = "opendev_launch:launch_node.main"
|
|
show-dns = "opendev_launch:dns.main"
|
|
|
|
[tool.setuptools.package-data]
|
|
opendev_launch = ["*.sh"]
|