-- admin의 owner 속성 추가
UPDATE cloud_user SET is_tenant_owner = true WHERE user_id = 'admin';

-- owner에 대한 종속성을 admin으로 이관기능(필요하면 사용)
UPDATE auth_resource3 SET name = replace(name, 'owner', 'admin') WHERE name like '%|owner|%';

-- CLOUD-2305 node_memory_used metric_meta node_memory_SReclaimable_bytes 제거 패치문 반영
UPDATE metric_meta2 SET expr = '((node_memory_MemTotal_bytes{xm_entity_type="Node", {filter}} - (node_memory_MemFree_bytes{xm_entity_type="Node", {filter}} + node_memory_Cached_bytes{xm_entity_type="Node", {filter}} + node_memory_Buffers_bytes{xm_entity_type="Node", {filter}})) >= 0 or node_memory_MemTotal_bytes{xm_entity_type="Node", {filter}} - node_memory_MemFree_bytes{xm_entity_type="Node", {filter}}) / 1024 / 1024 / 1024' WHERE id = 'node_memory_used';
