월간 인기 게시물

게시물 718건
   
heat - deletion_policy
글쓴이 : 최고관리자 날짜 : 2016-08-30 (화) 17:48 조회 : 3166
                                
deletion_policy: <deletion policy>
deletion_policy
Deletion policy for the resource. The allowed deletion policies are Delete, Retain, and Snapshot. Beginning with heat_template_version 2016-10-14, the lowercase equivalents delete, retain, and snapshot are also allowed. This attribute is optional; the default policy is to delete the physical resource when deleting a resource from the stack.

http://docs.openstack.org/developer/heat/template_guide/hot_spec.html

Example)

API
..............................:
"floating": {
"type": "OS::Neutron::FloatingIP" ,
"properties": {
"floating_network": "=외부 접근이 가능한 네트워크 아이디" ,
"port_id": {
"get_resource": "port"
}
} ,
"deletion_policy": "Retain"
}
..............................


template
..............
  my_vol_1:
    type: OS::Cinder::Volume
    properties:
      size: { get_param: vol_size_1 }
    deletion_policy: Retain
...............

1. the deletion policy of stack-resource is DELETE ----ok
2. the deletion policy of stack-resource is SNAPSHOT ----now will failed in resource.validate(), so to add handle_snapshot_delete(*) implementation for stack-resources, to snapshot for nested resources, and then to delete the nested stack and resources
3. the deletion policy of stack-resource is RETAIN ----now the records of nested stack and nested resources are residual in heat, may be we can implementation delete() for stack-resource


이름 패스워드
스타일
굴림
10pt
<html> <body>
 
 
 
 
비밀글 (체크하면 글쓴이만 내용을 확인할 수 있습니다.)
왼쪽의 글자를 입력하세요.
   

 



 
사이트명 : 모지리네 | 대표 : 이경현 | 개인커뮤니티 : 랭키닷컴 운영체제(OS) | 경기도 성남시 분당구 | 전자우편 : mojily골뱅이chonnom.com Copyright ⓒ www.chonnom.com www.kyunghyun.net www.mojily.net. All rights reserved.