生成openstack配置文件

简介: 生成openstack配置文件

切换到 稳定的 victoria 版本

git clone https://opendev.org/openstack/cinder.git
git checkout remotes/origin/stable/victoria
sed  "s/^flake8-logging-format/# flake8-logging-format /"    ./test-requirements.txt
sed -i  "s/^flake8-logging-format/# flake8-logging-format /"    ./test-requirements.txt
/root/cinder/.tox/pep8/bin/python -m pip install \
                        nose \
                        -r requirements.txt \
                        -r  test-requirements.txt \
                        --trusted-host mirrors.cloud.aliyuncs.com  \
                        --trusted-host pypi.org
Ignoring importlib-metadata: markers 'python_version < "3.8"' don't match your environment
ERROR: Could not find a version that satisfies the requirement test-requirements.txt (from versions: none)
ERROR: No matching distribution found for test-requirements.txt

python 必须 小于 3.8

/root/app/python3710/bin/python3
rm -rf ~/env_py3
/root/app/python3710/bin/python3 -m venv ~/env_py3
source ~/env_py3/bin/activate

psycopg2 报错

sed "s/psycopg2>/psycopg2-binary>/" test-requirements.txt
sed -i "s/psycopg2>/psycopg2-binary>/" test-requirements.txt

生成 配置

# 漫长等待
/root/env_py3/bin/tox -egenconfig
相关文章
|
4月前
|
JSON Shell 数据格式
openstack查看亲和组的命令
在OpenStack中,你可以使用命令行工具(例如,OpenStack CLI)或者通过OpenStack的Dashboard(Horizon)来查看和管理亲和性组。以下是使用命令行工具的一些示例命令: 1. **查看亲和性组列表:** ```bash openstack server group list ``` 2. **查看特定亲和性组的详细信息:** ```bash openstack server group show <group_id> ``` 确保将 `<group_id>` 替换为你要查看的亲和性组的实际ID。 3. **查看属于特定亲和性组的虚拟机实例列表:**
|
4月前
|
云计算 对象存储 Swift
openstack 常用的命令
OpenStack 是一个用于构建和管理公共云和私有云的开源云计算平台。以下是一些常用的 OpenStack 命令: 1. **Keystone(身份认证服务):** - 登录:`openstack token issue` - 用户列表:`openstack user list` - 项目列表:`openstack project list` 2. **Glance(镜像服务):** - 镜像列表:`openstack image list` - 创建镜像:`openstack image create` 3. **Nova(计算服务):** - 实
107 2
|
Ubuntu 开发工具 数据安全/隐私保护