0

我一直在尝试对 VM 进行一些重新配置,例如 poweron/shutdown/etc 我正在使用插件中定义的接口所有其他操作都工作正常,但它无法创建 VM 的快照并且它没有在日志中显示任何错误

Blueprint :-
tosca_definitions_version: cloudify_dsl_1_3
imports:
- 'http://www.getcloudify.org/spec/cloudify/5.2.1/types.yaml'
- 'http://repository.cloudifysource.org/cloudify/wagons/cloudify-vsphere-plugin/2.19.3/plugin.yaml'
inputs:
VM name:
description: ''
default: ''
Template:
description: ''
default:
Snapshot Name:
description: snapshot name
default:
node_templates:
day2:
type: cloudify.vsphere.nodes.Server
capabilities:
scalable:
properties:
default_instances: 1
properties:
use_existing_resource: true
server:
template:
get_input: Template
name:
get_input: VM name
connection_config:
username:
get_secret: vc_username
password:
get_secret: vc_password
host:
get_secret: vc_host
port: 443
allow_insecure: true
install_agent: false
interfaces:
cloudify.interfaces.snapshot:
snap_create:
implementation: vsphere.vsphere_server_plugin.server.snapshot_create
inputs:
max_wait_time: 300
snapshot_name:
get_input: Snapshot Name 

Logs:-
6-05-2021 23:30:19.703 day2 day2_448nlh execute_operation Finished operation snap_create
16-05-2021 23:30:19.224 day2 day2_448nlh execute_operation snap_create Used existing resource.
16-05-2021 23:30:19.139 day2 day2_448nlh execute_operation snap_create SSL verification disabled for all legacy code. Please note that this may result in other code from the same blueprint running with reduced security.
 16-05-2021 23:30:19.699 day2 day2_448nlh execute_operation snap_create Task succeeded 'vsphere_server_plugin.server.snapshot_create
4

0 回答 0