在 Cloudify 上扩展部署的网络问题
Network issuse on scaling out deployment on Cloudify
我正在使用 Cloudify 3.3 和 OpenStack Kilo。
在成功安装蓝图后,我尝试使用默认缩放工作流扩展主机 VM(与浮动 IP W.X.Y.Z 相关联)。我的预期结果是,将创建一个新的虚拟机,并关联一个新的浮动 IP,比如 A.B.C.D。
然而,在缩放工作流程完成后,我发现浮动 IP W.X.Y.Z 已与原始主机 VM 解除关联,而此浮动 IP 已关联到新创建的 VM。
我的测试"blueprint.yaml":
tosca_definitions_version: cloudify_dsl_1_2
imports:
- http://www.getcloudify.org/spec/cloudify/3.3/types.yaml
- http://www.getcloudify.org/spec/openstack-plugin/1.3/plugin.yaml
inputs:
image:
description: Openstack image ID
flavor:
description: Openstack flavor ID
agent_user:
description: agent username for connecting to the OS
default: centos
node_templates:
web_server_floating_ip:
type: cloudify.openstack.nodes.FloatingIP
web_server_security_group:
type: cloudify.openstack.nodes.SecurityGroup
properties:
rules:
- remote_ip_prefix: 0.0.0.0/0
port: 8080
web_server:
type: cloudify.openstack.nodes.Server
properties:
cloudify_agent:
user: { get_input: agent_user }
image: { get_input: image }
flavor: { get_input: flavor }
relationships:
- type: cloudify.openstack.server_connected_to_floating_ip
target: web_server_floating_ip
- type: cloudify.openstack.server_connected_to_security_group
target: web_server_security_group
我尝试创建一个类型为 cloudify.nodes.Tier 的 node_template 并将所有内容放入此容器中。但是这种情况下无法正常执行秤工作流
我想知道我应该怎么做才能让新创建的虚拟机关联到一个新的浮动IP?
谢谢,山姆
您描述的是节点和与其相关的资源之间的"one to one"关系。
目前 Cloudify 不支持这种关系,您的蓝图运行正常。
此功能将在几个月后发布的 Cloudify 3.4 中提供
我正在使用 Cloudify 3.3 和 OpenStack Kilo。
在成功安装蓝图后,我尝试使用默认缩放工作流扩展主机 VM(与浮动 IP W.X.Y.Z 相关联)。我的预期结果是,将创建一个新的虚拟机,并关联一个新的浮动 IP,比如 A.B.C.D。
然而,在缩放工作流程完成后,我发现浮动 IP W.X.Y.Z 已与原始主机 VM 解除关联,而此浮动 IP 已关联到新创建的 VM。
我的测试"blueprint.yaml":
tosca_definitions_version: cloudify_dsl_1_2
imports:
- http://www.getcloudify.org/spec/cloudify/3.3/types.yaml
- http://www.getcloudify.org/spec/openstack-plugin/1.3/plugin.yaml
inputs:
image:
description: Openstack image ID
flavor:
description: Openstack flavor ID
agent_user:
description: agent username for connecting to the OS
default: centos
node_templates:
web_server_floating_ip:
type: cloudify.openstack.nodes.FloatingIP
web_server_security_group:
type: cloudify.openstack.nodes.SecurityGroup
properties:
rules:
- remote_ip_prefix: 0.0.0.0/0
port: 8080
web_server:
type: cloudify.openstack.nodes.Server
properties:
cloudify_agent:
user: { get_input: agent_user }
image: { get_input: image }
flavor: { get_input: flavor }
relationships:
- type: cloudify.openstack.server_connected_to_floating_ip
target: web_server_floating_ip
- type: cloudify.openstack.server_connected_to_security_group
target: web_server_security_group
我尝试创建一个类型为 cloudify.nodes.Tier 的 node_template 并将所有内容放入此容器中。但是这种情况下无法正常执行秤工作流
我想知道我应该怎么做才能让新创建的虚拟机关联到一个新的浮动IP?
谢谢,山姆
您描述的是节点和与其相关的资源之间的"one to one"关系。
目前 Cloudify 不支持这种关系,您的蓝图运行正常。
此功能将在几个月后发布的 Cloudify 3.4 中提供