Initial project source
这个提交包含在:
@@ -0,0 +1,72 @@
|
||||
# 远程测试发布
|
||||
|
||||
目标仅维护在 `test-v.json`:43.249.195.133、linux/amd64、`/opt/aixun-datagov`,Compose 项目 `aixun-datagov-local`。本机 `deploy.sh` 保持原用途;远程入口是 `script/datagov/deploy-remote.sh`,服务器不编译源码。
|
||||
|
||||
## 日常更新
|
||||
|
||||
先按改动范围使用 `script/quality/check.sh --backend-build MODULES` 或 `--frontend-build`,再用现有 Dockerfile 和 `docker build --platform linux/amd64` 构建指定服务镜像。版本名每次唯一,不使用 latest。不变的已验证镜像可以复用;不要将其他窗口未完成的制品传入发布。
|
||||
|
||||
```bash
|
||||
./script/datagov/deploy-remote.sh inspect
|
||||
./script/datagov/deploy-remote.sh prepare remote-YYYYMMDD-NN --services governance \
|
||||
--image governance=aixun-datagov/governance:remote-YYYYMMDD-NN
|
||||
./script/datagov/deploy-remote.sh transfer remote-YYYYMMDD-NN
|
||||
./script/datagov/deploy-remote.sh apply remote-YYYYMMDD-NN
|
||||
./script/datagov/deploy-remote.sh verify remote-YYYYMMDD-NN
|
||||
```
|
||||
|
||||
省略 `--image` 时,仅选取指定服务当前本地已发布容器的镜像,检查平台、归属和制品没有被容器写层修改,并记录制品 SHA-256;不会把工作目录的新源码混入发布。使用 `--image` 时检查不可变镜像内制品。prepare 只操作本地镜像标签和记录,不改变本地运行容器。
|
||||
|
||||
SSH 使用已有密钥/agent 或交互密码;密码不进入目标文件。可在项目目录启动临时复用连接,避免传输时重复输入:
|
||||
|
||||
```bash
|
||||
ssh -M -S "$PWD/.remote-test-ssh.sock" -o ControlPersist=1800 -fnNT root@43.249.195.133
|
||||
```
|
||||
|
||||
首次连接须按组织要求核对主机指纹。远程凭据在服务器 `/opt/aixun-datagov/.env` 和 `secrets/`、`m2/local/secrets/`,不得复制进证据或输出。初始管理员密码位置为 `secrets/admin-password`,通过受信任 SSH 终端访问。
|
||||
|
||||
## 更新和恢复边界
|
||||
|
||||
apply 只对清单中的应用使用 `up --no-deps --no-build --pull never`,不启动依赖、不执行迁移。短进程锁位于服务器 `release.lock`。更新前记录旧镜像、配置摘要和网络/IP/挂载/端口;环境变量、挂载、端口或网络成员漂移时拒绝普通镜像更新。前一配置仅保存在服务器,权限 0600。
|
||||
|
||||
失败时仅在存在上一版本、未变更数据库/配置且配置未漂移的情况下自动恢复应用镜像;否则保留现场。apply 会读回并记录迁移历史摘要,恢复前再次核对;历史变化或没有原摘要时拒绝自动及普通人工回退。人工恢复使用:
|
||||
|
||||
```bash
|
||||
./script/datagov/deploy-remote.sh rollback remote-YYYYMMDD-NN
|
||||
```
|
||||
|
||||
首次安装没有上一版本,不能假称镜像回滚。需止损时只停止本次列出的应用,保留基础服务和所有数据卷;恢复访问入口必须使用该次记录中的 Nginx 原文件。任何未知执行结果先核对 `releases/VERSION/attempt.json`、`result.json` 和实际容器,不重试同一 apply。
|
||||
|
||||
数据库迁移必须通过对应发布的迁移入口显式执行,按 `dg_schema_history` 校验版本与 SHA-256;新版本迁移需准备对应 SQL、目录和与变更相称的恢复材料。首装入口不用于更新已有数据的目标。日常镜像更新不重复备份数据库。涉及不兼容数据库或配置变更时,不能使用普通镜像回滚命令代替恢复方案。
|
||||
|
||||
有增量迁移时,可使用 `migrate-release.py preflight|apply /opt/aixun-datagov/releases/VERSION`:先准备经审查的 `migration-plan.json` 与对应 SQL,设置 release.json 的 `database_change=true`,传输并核实所需镜像。preflight 只读检查远程历史、SQL 校验值、容器身份和表状态;apply 在短锁内保存停机前 IP、配置及受影响表的一份恢复材料,仅停止发布清单内应用,逐项登记迁移并核对原有行值,再由普通 apply 更新这些应用。该入口不会推导迁移范围或重放未知结果;已有 attempt 必须先对账。新增权限菜单通过计划中的精确 ID 排除条件验证旧菜单/授权原值不变。不得把仅改镜像的日常发布变成全库备份。
|
||||
|
||||
`remote-20261012-01` 已将本目标切换到内置元数据后端,迁移 211–217 已登记,旧 OpenMetadata、Airflow、配套数据库和 Elasticsearch 共五个组件已停用,其卷保留用于恢复。后续普通发布继续使用上面的五步入口,不重放迁移,不启动 `legacy-metadata-recovery` profile。涉及停应用后发布的维护流程必须在停机前记录同一容器的网络/IP;缺失时发布器拒绝继续。
|
||||
|
||||
本次切换工具 `native-metadata-release.py` 仅用于从经核验的旧基线迁移:`transition` 在短锁内备份四张受影响表和配置,按远程自己的元数据导入并保持写入关闭;应用发布、只读对比通过后,`finalize` 停旧组件并开启写入。它不是日常部署命令。`recover-before-writes` 仅支持尚未开启新写入的部署窗口;本目标已开启写入,因此普通镜像回退及该恢复命令均会拒绝,须保全新数据后前向修复或制定数据对账恢复。准确止损和恢复材料位置见本次发布记录。
|
||||
|
||||
## 首次安装与记录
|
||||
|
||||
`prepare-bootstrap.py VERSION` 仅从受审模板生成所需配置、系统种子和登记迁移,不读取本地 `.env` 或数据库。首装在独立远程目录显式执行 `bootstrap/bootstrap.py init`、`infra`、`config`、`migrate`;外部组件需另行核实专属秘密与初始化。它们不是日常更新命令。
|
||||
|
||||
2026-10-10 历史首装曾另显式执行 `resources`、`external-base`、`external-stores`、`external`,再执行 `native openmetadata|doris|hive|dolphinscheduler`。这些旧模板包含已退役的 OpenMetadata 依赖,不是当前原生元数据架构的新装说明,不得对当前目标重放。每项只执行一次,失败或结果未知先对账 attempt/result,禁止删除标记盲目重试。DolphinScheduler 使用专属持久卷上的 H2 文件数据库;初始化标记不完整时拒绝重放建表 SQL。若经数据对账恢复旧 OpenMetadata,还须核验其服务 JWT 有效期并通过组件官方接口续期,更新服务器 secretRef。
|
||||
|
||||
HTTPS 切换使用 `edge.py apply VERSION`,仅在服务器具备覆盖 `v.aixunkeji.cn` 的证书和匹配私钥后执行。文件分别是 `/opt/aixun-datagov/secrets/tls/fullchain.pem`、`privatekey.pem`。它只从既有官网配置移出 v,保留 t,并备份原配置一次、检查 Nginx 后 reload。恢复用 `edge.py restore VERSION`,配置出现后续漂移时会拒绝覆盖。首次证书申请属于新的外部凭据步骤,须具备对应授权;不能把 apex/www 证书当作通配符证书。
|
||||
|
||||
本次已获得 ACME 授权并申请 Let's Encrypt 证书。首装先由 `edge.py stage VERSION` 隔离 HTTP-01 路由,再执行 `certificate.sh issue` 和 edge apply。证书客户端固定为 Certbot 5.8.0 的镜像 digest;账户、私钥及续期状态仅在服务器 `acme-state/`,challenge 位于 `acme/`。官方方法参考 [Certbot Docker 安装](https://eff-certbot.readthedocs.io/en/stable/install.html#running-with-docker) 与 [webroot/续期说明](https://eff-certbot.readthedocs.io/en/stable/using.html)。
|
||||
|
||||
服务器 `aixun-datagov-cert-renew.timer` 每日检查两次并随机错峰。`/opt/aixun-datagov/certificate.sh renew` 只管理 v,证书变化后检查并 reload Nginx;与发布共用短进程锁。检查状态用 `systemctl status aixun-datagov-cert-renew.timer`,续期演练用 `bash /opt/aixun-datagov/certificate.sh dry-run`。入口恢复到官网时先 `systemctl disable --now aixun-datagov-cert-renew.timer`,再执行本次 edge restore。域名另作他用后不可盲目重启此定时器。
|
||||
|
||||
每次小型记录在 `releases/VERSION/`。镜像传输包校验后删除;不在 evidence 复制镜像、JAR 或 dist。不自动删除镜像或数据卷;保留当前和必要上一可用镜像,移除更旧版本前按精确 ID 核对引用。禁止全局 prune。
|
||||
|
||||
容器健康、网关可达、登录/业务只读冒烟与人工业务验收分别报告。服务 healthy 不代表所有业务功能通过。2026-10-10 用户另行授权迁入本地测试数据,结果与限制见 `releases/remote-data-20261010-01/REPORT.md`;日常发布不自动重放数据迁移。
|
||||
|
||||
## 首次测试数据补充
|
||||
|
||||
`data-transfer.py export 私有目录` 导出本项目业务库的一致性快照、业务缓存和受管凭据;`native-data-transfer.py export 私有目录` 导出同版本 OpenMetadata/Airflow 原生逻辑数据和 DAG 文件。私有目录应位于项目 `.cache/`,权限 0700。只经 SSH 传送清单明确列出的 SQL.gz、tar、cache、schema、manifest 和一次性原生认证材料;它们含秘密,不得加入发布记录。服务器目录固定为 `/opt/aixun-datagov/data-transfers/唯一版本`,权限 0700,同目录放置这两个工具。
|
||||
|
||||
服务器分别执行 `python3 data-transfer.py apply /opt/aixun-datagov/data-transfers/唯一版本` 和 `python3 native-data-transfer.py apply /opt/aixun-datagov/data-transfers/唯一版本`。两者只适用于经核验的首次空目标,保存一次变更前恢复材料,自动持短发布锁;存在数据、结构/镜像不匹配或已有 attempt 时拒绝重放。失败先核对私有标记和实际数据库,不能删除 attempt 后盲目重试。原生恢复采用[厂商逻辑备份方法](https://docs.open-metadata.org/v1.12.x-SNAPSHOT/deployment/backup-restore-metadata),保持原生 ID,之后通过官方接口适配服务器凭据并重建搜索。
|
||||
|
||||
保持远程迁移历史、基础设施秘密与网络配置。缓存仅迁业务配置/字典等允许项,排除登录态、锁和服务注册状态;按剩余 TTL 恢复。原生 DAG 先暂停,启用前核对数据源与远程引擎数据。源文件卷为空也须记录,不伪造文件迁移。Nacos 语义相同则不覆盖;不复制本地 `.env`。有业务数据的目标需制定合并方案,不使用首次导入入口覆盖。
|
||||
|
||||
完整恢复按本次记录先 native `restore`、再 core `restore`。这会恢复迁入前的数据,后续业务写入需另行保全,不能用镜像回退代替。完成核验后删除本地和远程本次源传输包、一次性认证材料;只保留服务器一份变更前恢复材料、小型结果及工具。普通应用更新不再次复制或备份整个业务库。
|
||||
@@ -0,0 +1,296 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Explicit first installation actions on the dedicated remote project only."""
|
||||
import base64
|
||||
import fcntl
|
||||
import hashlib
|
||||
import json
|
||||
import os
|
||||
from pathlib import Path
|
||||
import secrets
|
||||
import subprocess
|
||||
import sys
|
||||
import time
|
||||
import urllib.parse
|
||||
import urllib.request
|
||||
import warnings
|
||||
|
||||
BASE=Path('/opt/aixun-datagov')
|
||||
PROJECT='aixun-datagov-local'
|
||||
|
||||
def need(test,message):
|
||||
if not test: raise RuntimeError(message)
|
||||
|
||||
def run(args,data=None,timeout=180,env=None):
|
||||
p=subprocess.run(args,input=data,capture_output=True,timeout=timeout,cwd=BASE,env=env)
|
||||
need(p.returncode==0,'command failed: '+args[0]+'; output withheld; reconcile before retry')
|
||||
return p.stdout
|
||||
|
||||
def save(path,value):
|
||||
path.write_text(json.dumps(value,indent=2)+'\n'); path.chmod(0o600)
|
||||
|
||||
def environment():
|
||||
return dict(line.split('=',1) for line in (BASE/'.env').read_text().splitlines() if '=' in line)
|
||||
|
||||
def compose(*args,timeout=600):
|
||||
return run(['docker','compose','--project-directory',str(BASE),'--env-file',str(BASE/'.env'),'-p',PROJECT,'-f',str(BASE/'compose.json'),*args],timeout=timeout)
|
||||
|
||||
def own(name):
|
||||
c=json.loads(run(['docker','inspect','aixun-datagov-'+name]))[0]
|
||||
labels=c['Config'].get('Labels',{})
|
||||
need(labels.get('com.aixun.project')=='aixun-datagov' and labels.get('com.docker.compose.project')==PROJECT,'foreign object')
|
||||
return c
|
||||
|
||||
def mysql(sql):
|
||||
own('mysql')
|
||||
# Password comes from the container's own environment, never CLI or output.
|
||||
return run(['docker','exec','-i','aixun-datagov-mysql','sh','-c','MYSQL_PWD="$MYSQL_ROOT_PASSWORD" exec mysql --default-character-set=utf8mb4 -uroot -N -B aixun_datagov_system'],sql.encode()).decode().strip()
|
||||
|
||||
def http(url,form=None,token=None,method=None):
|
||||
headers={'Authorization':'Bearer '+token} if token else {}
|
||||
data=urllib.parse.urlencode(form).encode() if form is not None else None
|
||||
req=urllib.request.Request(url,data=data,headers=headers,method=method)
|
||||
with urllib.request.urlopen(req,timeout=20) as response: return json.load(response)
|
||||
|
||||
def init():
|
||||
need(not (BASE/'.env').exists(),'environment exists; initialisation will not overwrite credentials')
|
||||
need(not run(['docker','ps','-aq','--filter','label=com.docker.compose.project='+PROJECT]).strip(),'DataGov project already exists')
|
||||
values={k:secrets.token_hex(24) for k in ('MYSQL_ROOT_PASSWORD','DB_PASSWORD','REDIS_PASSWORD','NACOS_PASSWORD','NACOS_IDENTITY_VALUE','JWT_SECRET')}
|
||||
values.update(DB_USERNAME='aixun_datagov',DB_SCHEMA='aixun_datagov_system',NACOS_USERNAME='nacos',NACOS_AUTH_TOKEN=base64.b64encode(secrets.token_bytes(48)).decode(),NACOS_IDENTITY_KEY='datagov-identity',NACOS_NAMESPACE=PROJECT,NACOS_GROUP='AIXUN_DATAGOV_GROUP')
|
||||
text=''.join('AIXUN_DATAGOV_'+key+'='+value+'\n' for key,value in values.items())
|
||||
fd=os.open(BASE/'.env',os.O_WRONLY|os.O_CREAT|os.O_EXCL,0o600)
|
||||
with os.fdopen(fd,'w') as f: f.write(text)
|
||||
(BASE/'secrets').mkdir(mode=0o700)
|
||||
password='Dg1!'+secrets.token_hex(12)
|
||||
secret=BASE/'secrets/admin-password'; secret.write_text(password); secret.chmod(0o600)
|
||||
run(['bash',str(BASE/'m2/generate-local-secrets.sh')])
|
||||
for path in (BASE/'m2/local/secrets').iterdir():
|
||||
if path.is_file(): os.chown(path,0,19888); path.chmod(0o440)
|
||||
print('PASS: dedicated server credentials generated; no local secrets/data imported')
|
||||
|
||||
def infra():
|
||||
need(not (BASE/'bootstrap/infra-attempt.json').exists(),'infra attempt exists; reconcile before retry')
|
||||
# Check every reserved name/port and subnet before creating project objects.
|
||||
model=json.loads(compose('config','--format','json'))
|
||||
import socket,ipaddress
|
||||
for service in model['services'].values():
|
||||
p=subprocess.run(['docker','inspect',service['container_name']],capture_output=True)
|
||||
need(p.returncode!=0,'container name already exists: '+service['container_name'])
|
||||
for port in service.get('ports',[]):
|
||||
with socket.socket() as s: s.bind((port.get('host_ip') or '127.0.0.1',int(port['published'])))
|
||||
ids=run(['docker','network','ls','-q']).decode().split()
|
||||
networks=json.loads(run(['docker','network','inspect',*ids]))
|
||||
planned=ipaddress.ip_network('10.243.41.0/24')
|
||||
for n in networks:
|
||||
need(not n['Name'].startswith('aixun-datagov-'),'DataGov network already exists')
|
||||
for conf in n['IPAM'].get('Config') or []:
|
||||
if conf.get('Subnet'):
|
||||
existing=ipaddress.ip_network(conf['Subnet'])
|
||||
if existing.version==planned.version: need(not planned.overlaps(existing),'Doris subnet conflict')
|
||||
volumes=run(['docker','volume','ls','--format','{{.Name}}']).decode().splitlines()
|
||||
need(not any(name.startswith('aixun-datagov-') for name in volumes),'DataGov volume already exists')
|
||||
save(BASE/'bootstrap/infra-attempt.json',{'time':time.time(),'services':['mysql','redis','nacos']})
|
||||
compose('up','-d','--no-build','--wait','--wait-timeout','240','mysql','redis','nacos')
|
||||
print('PASS: isolated mysql redis nacos healthy')
|
||||
|
||||
def config():
|
||||
marker=BASE/'bootstrap/config-result.json'
|
||||
need(not marker.exists(),'configuration already installed; use a reviewed configuration change')
|
||||
e=environment(); password=e['AIXUN_DATAGOV_NACOS_PASSWORD']
|
||||
need(mysql("SELECT COUNT(*) FROM information_schema.tables WHERE table_schema=DATABASE() AND table_name='sys_user';")=='1','system seed is missing; initialise it explicitly before configuration')
|
||||
api='http://127.0.0.1:28848/nacos'; console='http://127.0.0.1:28081'
|
||||
state=BASE/'bootstrap/nacos-admin-attempt.json'
|
||||
if not state.exists():
|
||||
save(state,{'time':time.time()})
|
||||
http(api+'/v3/auth/user/admin',{'password':password})
|
||||
token=http(api+'/v3/auth/user/login',{'username':'nacos','password':password})['accessToken']
|
||||
exists=http(console+'/v3/console/core/namespace/exist?customNamespaceId='+PROJECT,token=token)
|
||||
need(exists.get('code')==0,'namespace check failed')
|
||||
if not exists.get('data'):
|
||||
response=http(console+'/v3/console/core/namespace',{'customNamespaceId':PROJECT,'namespaceName':PROJECT,'namespaceDesc':'DataGov remote test'},token)
|
||||
need(response.get('code')==0,'namespace create failed')
|
||||
results={}
|
||||
for path in sorted((BASE/'nacos').glob('*.yml')):
|
||||
response=http(api+'/v3/admin/cs/config',{'dataId':path.name,'groupName':'AIXUN_DATAGOV_GROUP','namespaceId':PROJECT,'type':'yaml','content':path.read_text()},token)
|
||||
need(response.get('code')==0,'config publish failed '+path.name)
|
||||
results[path.name]=hashlib.sha256(path.read_bytes()).hexdigest()
|
||||
with warnings.catch_warnings():
|
||||
warnings.simplefilter('ignore'); import crypt
|
||||
hashed=crypt.crypt((BASE/'secrets/admin-password').read_text(),crypt.mksalt(crypt.METHOD_BLOWFISH))
|
||||
# Only the explicitly selected initial administrator remains active.
|
||||
mysql("UPDATE sys_user SET status='1' WHERE user_name <> 'admin'; UPDATE sys_user SET password='"+hashed+"',nick_name='艾讯管理员',status='0' WHERE user_name='admin';")
|
||||
save(marker,{'configs':results,'admin':'password stored in server secretRef'})
|
||||
print('PASS: 10 dedicated Nacos configurations and initial admin credential')
|
||||
|
||||
def migrate():
|
||||
need(mysql("SELECT COUNT(*) FROM information_schema.tables WHERE table_schema=DATABASE() AND table_name='sys_menu';")=='1','system seed is missing; migration not started')
|
||||
catalog=json.loads((BASE/'bootstrap/catalog.json').read_text())
|
||||
result=[]
|
||||
exists=mysql("SELECT COUNT(*) FROM information_schema.tables WHERE table_schema=DATABASE() AND table_name='dg_schema_history';")=='1'
|
||||
rows=mysql("SELECT version,checksum_sha256 FROM dg_schema_history WHERE success='1';") if exists else ''
|
||||
installed_versions=dict(row.split('\t') for row in rows.splitlines() if row)
|
||||
for migration in catalog['migrations']:
|
||||
version=migration['version']; path=BASE/migration['path']
|
||||
need(hashlib.sha256(path.read_bytes()).hexdigest()==migration['sha256'],'migration checksum drift '+version)
|
||||
installed=installed_versions.get(version,'')
|
||||
if installed:
|
||||
need(installed==migration['sha256'],'installed checksum mismatch '+version); result.append({'version':version,'status':'ALREADY_APPLIED'}); continue
|
||||
attempt=BASE/'bootstrap'/('migration-'+version+'.attempt.json')
|
||||
need(not attempt.exists(),'unknown previous migration result '+version+'; reconcile first')
|
||||
save(attempt,{'version':version,'sha256':migration['sha256'],'started':time.time()})
|
||||
mysql(path.read_text())
|
||||
mysql("INSERT INTO dg_schema_history(version,description,owner_unit,checksum_sha256,success) VALUES ('"+version+"','"+path.stem+"','"+migration['ownerUnit']+"','"+migration['sha256']+"','1');")
|
||||
attempt.unlink()
|
||||
result.append({'version':version,'status':'APPLIED'})
|
||||
save(BASE/'bootstrap/migration-result.json',result)
|
||||
print('APPLIED',version,flush=True)
|
||||
save(BASE/'bootstrap/migration-result.json',result)
|
||||
model=json.loads((BASE/'compose.json').read_text())
|
||||
if model.get('x-datagov-metadata-backend')=='NATIVE' and mysql("SELECT backend FROM md_native_cutover WHERE domain_key='metadata'")!='NATIVE':
|
||||
count=mysql("SELECT (SELECT COUNT(*) FROM md_ingestion_connector)+(SELECT COUNT(*) FROM md_entity_projection)+(SELECT COUNT(*) FROM asset_detail_asset)+(SELECT COUNT(*) FROM md_native_entity WHERE entity_kind<>'TYPE')")
|
||||
need(count=='0','existing metadata requires the additive import and cutover procedure; fresh initialization refused')
|
||||
mysql("UPDATE md_native_cutover SET backend='NATIVE',epoch=epoch+1,write_enabled=TRUE WHERE domain_key='metadata' AND backend='OPENMETADATA'")
|
||||
save(BASE/'bootstrap/metadata-native-init.json',{'status':'PASS','mode':'FRESH_EMPTY_NATIVE','historical_data_changed':False})
|
||||
print('PASS: migration history checked',len(result))
|
||||
|
||||
def external():
|
||||
marker=BASE/'bootstrap/external-attempt.json'
|
||||
need(not marker.exists(),'external initialisation already attempted; reconcile first')
|
||||
model=json.loads((BASE/'compose.json').read_text())
|
||||
services=[n for n in model['services'] if n.startswith('m2-') and n!='m2-om-migrate']
|
||||
save(marker,{'services':services,'started':time.time()})
|
||||
need((BASE/'bootstrap/external-base-result.json').exists(),'initialise and verify external-base first')
|
||||
need((BASE/'bootstrap/external-stores-result.json').exists(),'explicit native migration and stores must finish first')
|
||||
compose('up','-d','--no-build','--pull','never',*services,timeout=900)
|
||||
deadline=time.monotonic()+300
|
||||
while True:
|
||||
scheduler=own('m2-dolphinscheduler')
|
||||
if scheduler['State'].get('Health',{}).get('Status')=='healthy': break
|
||||
need(time.monotonic()<deadline,'scheduler initialisation not confirmed; reconcile persistent DB')
|
||||
time.sleep(5)
|
||||
run(['docker','exec',scheduler['Id'],'sh','-c','test -s /var/lib/aixun-datagov/dolphinscheduler/database.mv.db && touch /var/lib/aixun-datagov/dolphinscheduler/initialized-3.4.2'])
|
||||
print('External components submitted; health and explicit bootstrap require readback')
|
||||
|
||||
def external_base():
|
||||
marker=BASE/'bootstrap/external-base-attempt.json'
|
||||
need(not marker.exists(),'external base already attempted; reconcile before retry')
|
||||
names=['m2-doris-fe','m2-om-mysql','m2-om-airflow-mysql','m2-om-elasticsearch']
|
||||
model=json.loads((BASE/'compose.json').read_text())
|
||||
if model.get('x-datagov-metadata-backend')=='NATIVE':names=['m2-doris-fe']
|
||||
for name in names: run(['docker','image','inspect',model['services'][name]['image']])
|
||||
save(marker,{'services':names,'started':time.time()})
|
||||
compose('up','-d','--no-deps','--no-build','--pull','never','--wait','--wait-timeout','240',*names)
|
||||
own('m2-doris-fe')
|
||||
root_password=(BASE/'m2/local/secrets/doris-root-password').read_text()
|
||||
run(['docker','exec','-i','aixun-datagov-m2-doris-fe','mysql','--protocol=TCP','-h127.0.0.1','-P9030','-uroot'],("ALTER USER 'root'@'%' IDENTIFIED BY '"+root_password+"';").encode())
|
||||
save(BASE/'bootstrap/doris-root-result.json',{'status':'rotated before BE initialisation'})
|
||||
doris_admin()
|
||||
save(BASE/'bootstrap/external-base-result.json',{'status':'PASS','services':names})
|
||||
print('PASS: external component databases and FE healthy; dedicated root rotated')
|
||||
|
||||
def doris_admin():
|
||||
own('m2-doris-fe')
|
||||
marker=BASE/'bootstrap/doris-admin-attempt.json'
|
||||
need(not marker.exists(),'Doris admin rotation already attempted; reconcile first')
|
||||
env=os.environ.copy(); env['MYSQL_PWD']=(BASE/'m2/local/secrets/doris-root-password').read_text().strip()
|
||||
args=['docker','exec','-i','-e','MYSQL_PWD','aixun-datagov-m2-doris-fe','mysql','--protocol=TCP','-h127.0.0.1','-P9030','-uroot','-B']
|
||||
def grants():
|
||||
rows=run(args,b'SHOW ALL GRANTS;',env=env).decode().splitlines()
|
||||
return [dict(zip(rows[0].split('\t'),row.split('\t'))) for row in rows[1:]]
|
||||
admin=[row for row in grants() if row['UserIdentity']=="'admin'@'%'"]
|
||||
need(len(admin)==1 and admin[0]['Password']=='No','unexpected Doris default admin state')
|
||||
secret=BASE/'m2/local/secrets/doris-admin-password'
|
||||
need(not secret.exists(),'Doris admin secret already exists; reconcile first')
|
||||
password=secrets.token_hex(24)
|
||||
with secret.open('x') as out: out.write(password)
|
||||
os.chown(secret,0,19888); secret.chmod(0o440)
|
||||
save(marker,{'started':time.time(),'user':'admin'})
|
||||
run(args,("ALTER USER 'admin'@'%' IDENTIFIED BY '"+password+"';").encode(),env=env)
|
||||
rows=grants()
|
||||
need(all(row['Password']=='Yes' for row in rows),'Doris account without password remains')
|
||||
save(BASE/'bootstrap/doris-admin-result.json',{'status':'PASS','users':[{'identity':r['UserIdentity'],'password_configured':r['Password']=='Yes'} for r in rows]})
|
||||
print('PASS: remaining Doris default administrator secured; every native account has a password')
|
||||
|
||||
def external_stores():
|
||||
marker=BASE/'bootstrap/external-stores-attempt.json'
|
||||
need(not marker.exists(),'external stores already attempted; reconcile before retry')
|
||||
names=['m2-doris-be','m2-hive-mysql','m2-hive-minio','m2-hive-minio-bootstrap']
|
||||
model=json.loads((BASE/'compose.json').read_text())
|
||||
if model.get('x-datagov-metadata-backend')=='NATIVE':
|
||||
for name in names:run(['docker','image','inspect',model['services'][name]['image']])
|
||||
save(marker,{'services':names,'started':time.time(),'metadata_backend':'NATIVE'})
|
||||
compose('up','-d','--no-build','--pull','never','--wait','--wait-timeout','240',*names)
|
||||
save(BASE/'bootstrap/external-stores-result.json',{'status':'PASS','services':names,'metadata_backend':'NATIVE'})
|
||||
print('PASS: external stores healthy; metadata is hosted by governance')
|
||||
return
|
||||
for name in names+['m2-om-migrate','m2-openmetadata']: run(['docker','image','inspect',model['services'][name]['image']])
|
||||
save(marker,{'services':names,'started':time.time(),'native_schema_image':model['services']['m2-om-migrate']['image']})
|
||||
compose('up','-d','--no-build','--pull','never','--wait','--wait-timeout','240',*names)
|
||||
compose('up','-d','--no-deps','--no-build','--pull','never','m2-om-migrate')
|
||||
deadline=time.monotonic()+600
|
||||
while True:
|
||||
c=own('m2-om-migrate')
|
||||
if not c['State']['Running']:
|
||||
need(c['State']['ExitCode']==0,'native migration failed; reconcile without retry')
|
||||
break
|
||||
need(time.monotonic()<deadline,'native migration result still pending; reconcile')
|
||||
time.sleep(5)
|
||||
save(BASE/'bootstrap/openmetadata-migration-result.json',{'version':'1.13.4','image':c['Image'],'container':c['Id'],'exit_code':0})
|
||||
compose('up','-d','--no-deps','--no-build','--pull','never','--wait','--wait-timeout','240','m2-openmetadata')
|
||||
save(BASE/'bootstrap/external-stores-result.json',{'status':'PASS','services':names+['m2-openmetadata']})
|
||||
print('PASS: stores healthy and native OpenMetadata schema explicitly migrated')
|
||||
|
||||
def resources():
|
||||
model=json.loads((BASE/'compose.json').read_text())
|
||||
for kind in ('networks','volumes'):
|
||||
singular=kind[:-1]
|
||||
for key,item in model[kind].items():
|
||||
name=item['name']; need(name.startswith('aixun-datagov-local-'),'foreign resource name')
|
||||
exists=subprocess.run(['docker',singular,'inspect',name],capture_output=True)
|
||||
if exists.returncode==0:
|
||||
labels=json.loads(exists.stdout)[0].get('Labels') or {}
|
||||
need(labels.get('com.aixun.project')=='aixun-datagov' and labels.get('com.docker.compose.project')==PROJECT,'foreign resource collision')
|
||||
continue
|
||||
args=['docker',singular,'create','--label','com.aixun.project=aixun-datagov','--label','com.aixun.environment=test','--label','com.docker.compose.project='+PROJECT,'--label','com.docker.compose.'+singular+'='+key]
|
||||
if singular=='network':
|
||||
for conf in item.get('ipam',{}).get('config',[]): args+=['--subnet',conf['subnet']]
|
||||
run(args+[name])
|
||||
print('PASS: explicit project resources exist with checked ownership')
|
||||
|
||||
def native(name):
|
||||
model=json.loads((BASE/'compose.json').read_text())
|
||||
need(not(name=='openmetadata' and model.get('x-datagov-metadata-backend')=='NATIVE'),'metadata is hosted by governance; legacy component bootstrap is retired')
|
||||
need(name in ('openmetadata','doris','hive','dolphinscheduler'),'unsupported native component')
|
||||
container='m2-doris-fe' if name=='doris' else 'm2-'+name
|
||||
c=own(container)
|
||||
need(c['State'].get('Health',{}).get('Status')=='healthy','native component not healthy')
|
||||
folder=BASE/'bootstrap'/('native-'+name)
|
||||
need(not folder.exists(),'native bootstrap already attempted; reconcile before retry')
|
||||
folder.mkdir(mode=0o700)
|
||||
save(folder/'attempt.json',{'image':c['Image'],'started':time.time()})
|
||||
try:
|
||||
run(['bash',str(BASE/'m2'/('bootstrap-'+name+'.sh')),str(folder)],timeout=600)
|
||||
finally:
|
||||
for path in (BASE/'m2/local/secrets').iterdir():
|
||||
if path.is_file(): os.chown(path,0,19888); path.chmod(0o440)
|
||||
secret_values=[p.read_bytes().strip() for p in (BASE/'m2/local/secrets').iterdir() if p.is_file()]
|
||||
for path in folder.iterdir():
|
||||
if path.is_file():
|
||||
data=path.read_bytes()
|
||||
for value in secret_values:
|
||||
if len(value)>=8: data=data.replace(value,b'[REDACTED]')
|
||||
path.write_bytes(data); path.chmod(0o600)
|
||||
need((folder/'result.txt').exists(),'native result missing')
|
||||
print('PASS: '+name+' native identities and permission readback')
|
||||
|
||||
def main():
|
||||
action=sys.argv[1]
|
||||
need(Path.cwd().resolve()==BASE,'must execute in dedicated remote directory')
|
||||
with (BASE/'release.lock').open('a') as lock:
|
||||
fcntl.flock(lock,fcntl.LOCK_EX|fcntl.LOCK_NB)
|
||||
if action=='native': native(sys.argv[2])
|
||||
else: {'init':init,'infra':infra,'config':config,'migrate':migrate,'resources':resources,'external-base':external_base,'external-stores':external_stores,'external':external,'doris-admin':doris_admin}[action]()
|
||||
|
||||
if __name__=='__main__':
|
||||
try: main()
|
||||
except Exception as exc:
|
||||
print(type(exc).__name__+': '+str(exc),file=sys.stderr); sys.exit(1)
|
||||
@@ -0,0 +1,10 @@
|
||||
[Unit]
|
||||
Description=AiXun DataGov certificate renewal
|
||||
Wants=network-online.target
|
||||
After=network-online.target docker.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/bin/bash /opt/aixun-datagov/certificate.sh renew
|
||||
TimeoutStartSec=600
|
||||
UMask=0077
|
||||
@@ -0,0 +1,11 @@
|
||||
[Unit]
|
||||
Description=Check AiXun DataGov certificate renewal twice daily
|
||||
|
||||
[Timer]
|
||||
OnCalendar=*-*-* 00,12:00:00
|
||||
RandomizedDelaySec=3600
|
||||
Persistent=true
|
||||
Unit=aixun-datagov-cert-renew.service
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
@@ -0,0 +1,35 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
umask 077
|
||||
base=/opt/aixun-datagov
|
||||
image=certbot/certbot@sha256:f70ad0adbb7e117f0fe42a63c553f28ea451edabc0148757b6efcd9735acaa20
|
||||
action=${1:?use issue, renew or dry-run}
|
||||
case "$action" in issue|renew|dry-run) ;; *) exit 2;; esac
|
||||
exec 9>"$base/release.lock"
|
||||
flock -n 9
|
||||
mkdir -p "$base/acme-state/config" "$base/acme-state/work" "$base/acme-state/logs" "$base/secrets/tls"
|
||||
args=(renew --non-interactive --cert-name v.aixunkeji.cn)
|
||||
if [[ "$action" == issue ]]; then
|
||||
[[ ! -e "$base/acme-state/issue-attempt" ]] || { echo 'Existing issuance attempt: reconcile certificate state first'; exit 1; }
|
||||
date -u +%FT%TZ >"$base/acme-state/issue-attempt"
|
||||
args=(certonly --webroot -w /webroot --cert-name v.aixunkeji.cn -d v.aixunkeji.cn --non-interactive --agree-tos --register-unsafely-without-email)
|
||||
elif [[ "$action" == dry-run ]]; then
|
||||
args+=(--dry-run)
|
||||
fi
|
||||
before=$(sha256sum "$base/secrets/tls/fullchain.pem" 2>/dev/null | cut -d' ' -f1 || true)
|
||||
docker run --rm --pull never --name aixun-datagov-certbot --label com.aixun.project=aixun-datagov \
|
||||
--network aixun-datagov-local-frontend \
|
||||
-v "$base/acme-state/config:/etc/letsencrypt" -v "$base/acme-state/work:/var/lib/letsencrypt" \
|
||||
-v "$base/acme-state/logs:/var/log/letsencrypt" -v "$base/acme:/webroot" \
|
||||
"$image" "${args[@]}"
|
||||
if [[ "$action" == issue ]]; then
|
||||
ln -s "$base/acme-state/config/live/v.aixunkeji.cn/fullchain.pem" "$base/secrets/tls/fullchain.pem"
|
||||
ln -s "$base/acme-state/config/live/v.aixunkeji.cn/privkey.pem" "$base/secrets/tls/privatekey.pem"
|
||||
fi
|
||||
if [[ "$action" == renew ]]; then
|
||||
after=$(sha256sum "$base/secrets/tls/fullchain.pem" | cut -d' ' -f1)
|
||||
if [[ "$after" != "$before" ]]; then
|
||||
/www/server/nginx/sbin/nginx -t
|
||||
/www/server/nginx/sbin/nginx -s reload
|
||||
fi
|
||||
fi
|
||||
@@ -0,0 +1,289 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Explicit DataGov application-data transfer. Secret payloads stay in private staging.
|
||||
|
||||
Export is read-only on local applications. Apply/restore run only on the remote
|
||||
target, with an application stop, transactional SQL and a bounded project lock.
|
||||
This does not copy native product databases or alter migration history.
|
||||
"""
|
||||
import base64
|
||||
import collections
|
||||
import fcntl
|
||||
import gzip
|
||||
import hashlib
|
||||
import io
|
||||
import json
|
||||
import os
|
||||
from pathlib import Path, PurePosixPath
|
||||
import re
|
||||
import subprocess
|
||||
import sys
|
||||
import tarfile
|
||||
import time
|
||||
|
||||
SCHEMA='aixun_datagov_system'
|
||||
PROJECT='aixun-datagov-local'
|
||||
BASE=Path('/opt/aixun-datagov')
|
||||
APPS=['gateway','auth','system','resource','integration','dataops','governance','dataproduct','frontend']
|
||||
KEEP={'dg_schema_history','dg_maintenance_lease'}
|
||||
HELPER='certbot/certbot@sha256:f70ad0adbb7e117f0fe42a63c553f28ea451edabc0148757b6efcd9735acaa20'
|
||||
|
||||
def need(value,message):
|
||||
if not value: raise RuntimeError(message)
|
||||
|
||||
def run(args,data=None,timeout=300):
|
||||
p=subprocess.run(args,input=data,capture_output=True,timeout=timeout)
|
||||
need(p.returncode==0,'command failed: '+args[0]+'; sensitive output withheld; reconcile before retry')
|
||||
return p.stdout
|
||||
|
||||
def save(path,value):
|
||||
path.write_text(json.dumps(value,indent=2)+'\n');path.chmod(0o600)
|
||||
|
||||
def sha(path):
|
||||
h=hashlib.sha256()
|
||||
with path.open('rb') as stream:
|
||||
for block in iter(lambda:stream.read(1024*1024),b''): h.update(block)
|
||||
return h.hexdigest()
|
||||
|
||||
def own(name):
|
||||
c=json.loads(run(['docker','inspect','aixun-datagov-'+name]))[0]
|
||||
labels=c['Config'].get('Labels') or {}
|
||||
need(labels.get('com.aixun.project')=='aixun-datagov' and labels.get('com.docker.compose.project')==PROJECT,'foreign container')
|
||||
return c
|
||||
|
||||
def sql(statement):
|
||||
own('mysql')
|
||||
return run(['docker','exec','-i','aixun-datagov-mysql','sh','-c',
|
||||
'MYSQL_PWD="$MYSQL_ROOT_PASSWORD" exec mysql --default-character-set=utf8mb4 -uroot -N -B '+SCHEMA],
|
||||
statement.encode() if isinstance(statement,str) else statement,timeout=1200).decode().strip()
|
||||
|
||||
def schema():
|
||||
return sql("SELECT table_name,column_name,column_type,is_nullable,IFNULL(column_default,'<NULL>'),extra,collation_name FROM information_schema.columns WHERE table_schema=DATABASE() ORDER BY table_name,ordinal_position;")
|
||||
|
||||
def tables():
|
||||
return sql('SHOW TABLES;').splitlines()
|
||||
|
||||
def counts(names):
|
||||
return {r.split('\t')[0]:int(r.split('\t')[1]) for r in sql(' UNION ALL '.join("SELECT '"+n+"',COUNT(*) FROM `"+n+'`' for n in names)+';').splitlines()}
|
||||
|
||||
def dump(path,names):
|
||||
need(all(re.fullmatch('[a-zA-Z0-9_]+',n) for n in names),'invalid table name')
|
||||
args=['docker','exec','aixun-datagov-mysql','sh','-c',
|
||||
'MYSQL_PWD="$MYSQL_ROOT_PASSWORD" exec mysqldump -uroot --default-character-set=utf8mb4 --single-transaction --quick --no-create-info --skip-triggers --skip-add-locks --skip-disable-keys --no-autocommit=0 --skip-extended-insert --complete-insert --hex-blob --set-gtid-purged=OFF --column-statistics=0 --skip-comments '+SCHEMA+' '+ ' '.join(names)]
|
||||
result={n:0 for n in names}
|
||||
with path.open('xb') as raw:
|
||||
path.chmod(0o600)
|
||||
with gzip.GzipFile(fileobj=raw,mode='wb',compresslevel=5,mtime=0) as stream:
|
||||
p=subprocess.Popen(args,stdout=subprocess.PIPE,stderr=subprocess.PIPE)
|
||||
for line in p.stdout:
|
||||
need(not re.match(rb'\s*(COMMIT|START TRANSACTION|CREATE |DROP |ALTER |LOCK |UNLOCK )',line,re.I),'unexpected non-data statement')
|
||||
match=re.match(rb'INSERT INTO `([a-zA-Z0-9_]+)` ',line)
|
||||
if match: result[match[1].decode()]+=1
|
||||
stream.write(line)
|
||||
p.stdout.close(); p.stderr.read(); p.wait()
|
||||
need(p.returncode==0,'database export failed; partial export retained for reconciliation')
|
||||
return result
|
||||
|
||||
def redis(*args,data=None):
|
||||
own('redis')
|
||||
return run(['docker','exec','-i','aixun-datagov-redis','sh','-c',
|
||||
'REDISCLI_AUTH="$AIXUN_DATAGOV_REDIS_PASSWORD" exec redis-cli -n 11 --raw "$@"','redis',*args],data)
|
||||
|
||||
def cache_key(key):
|
||||
k=key.lower()
|
||||
if any(x in k for x in ('eyj','login','token','session','lock','provider','consumer','dubbo','metadata')): return False
|
||||
return any(x in k for x in ('dict','config','sys_dept','sys_client'))
|
||||
|
||||
def redis_export():
|
||||
keys=redis('--scan').decode().splitlines(); rows=[]
|
||||
for key in keys:
|
||||
if not cache_key(key): continue
|
||||
payload=redis('EVAL',"local d=redis.call('DUMP',KEYS[1]); if not d then return nil end; return {redis.call('PTTL',KEYS[1]),d}",'1',key)
|
||||
if payload==b'\n': continue
|
||||
ttl,dumped=payload.split(b'\n',1); ttl=int(ttl)
|
||||
rows.append({'key':key,'expires_at_ms':int(time.time()*1000)+ttl if ttl>=0 else 0,'dump':base64.b64encode(dumped[:-1]).decode()})
|
||||
return rows,{'total_keys':len(keys),'business_cache_keys':len(rows),'excluded_runtime_or_auth_keys':len(keys)-len(rows)}
|
||||
|
||||
def resp(args):
|
||||
parts=[b'*'+str(len(args)).encode()+b'\r\n']
|
||||
for value in args:
|
||||
if not isinstance(value,bytes): value=str(value).encode()
|
||||
parts.extend([b'$'+str(len(value)).encode()+b'\r\n',value,b'\r\n'])
|
||||
return b''.join(parts)
|
||||
|
||||
def redis_apply(rows):
|
||||
commands=[]; removed=0; restored=0
|
||||
for key in redis('--scan').decode().splitlines():
|
||||
if cache_key(key) or any(x in key.lower() for x in ('login','token-session','online_tokens',':token:')):
|
||||
commands.append(resp(['DEL',key])); removed+=1
|
||||
for row in rows:
|
||||
ttl=max(0,row['expires_at_ms']-int(time.time()*1000)) if row['expires_at_ms'] else 0
|
||||
if row['expires_at_ms'] and ttl<=0: continue
|
||||
commands.append(resp(['RESTORE',row['key'],ttl,base64.b64decode(row['dump']),'REPLACE']));restored+=1
|
||||
if commands:
|
||||
result=redis('--pipe',data=b''.join(commands))
|
||||
need(b'errors: 0' in result,'Redis import result unknown; reconcile before retry')
|
||||
return {'removed_cache_or_auth_keys':removed,'restored_business_cache_keys':restored}
|
||||
|
||||
def credential_tar():
|
||||
own('integration')
|
||||
return run(['docker','cp','aixun-datagov-integration:/run/secrets/aixun-datagov/managed','-'])
|
||||
|
||||
def credential_members(payload):
|
||||
result={}
|
||||
with tarfile.open(fileobj=io.BytesIO(payload)) as archive:
|
||||
for item in archive:
|
||||
path=PurePosixPath(item.name)
|
||||
need(not path.is_absolute() and '..' not in path.parts and path.parts[0]=='managed','unsafe credential archive')
|
||||
need(item.isdir() or item.isfile(),'credential archive must contain only regular files and directories')
|
||||
if item.isfile(): result[str(PurePosixPath(*path.parts[1:]))]=hashlib.sha256(archive.extractfile(item).read()).hexdigest()
|
||||
return result
|
||||
|
||||
def credential_apply(payload):
|
||||
credential_members(payload)
|
||||
volume='aixun-datagov-local-managed-credential-data'
|
||||
info=json.loads(run(['docker','volume','inspect',volume]))[0]
|
||||
need(info['Labels'].get('com.aixun.project')=='aixun-datagov' and info['Labels'].get('com.docker.compose.project')==PROJECT,'foreign credential volume')
|
||||
program='''import io,sys,tarfile,os
|
||||
from pathlib import Path,PurePosixPath
|
||||
base=Path('/data')
|
||||
with tarfile.open(fileobj=io.BytesIO(sys.stdin.buffer.read())) as archive:
|
||||
for item in archive:
|
||||
parts=PurePosixPath(item.name).parts
|
||||
if not parts or parts[0]!='managed' or '..' in parts or not (item.isfile() or item.isdir()): raise RuntimeError('unsafe archive')
|
||||
path=base.joinpath(*parts[1:])
|
||||
if item.isdir(): path.mkdir(parents=True,exist_ok=True)
|
||||
else:
|
||||
path.parent.mkdir(parents=True,exist_ok=True)
|
||||
with path.open('wb') as out: out.write(archive.extractfile(item).read())
|
||||
os.chown(path,0,19888);path.chmod(0o750 if item.isdir() else 0o440)
|
||||
'''
|
||||
run(['docker','run','--rm','--pull','never','--network','none','--label','com.aixun.project=aixun-datagov',
|
||||
'--mount','type=volume,source='+volume+',target=/data','-i','--entrypoint','python',HELPER,'-c',program],payload)
|
||||
|
||||
def export(record):
|
||||
need(not (record/'manifest.json').exists(),'export exists; choose a new transfer version')
|
||||
record.mkdir(parents=True,exist_ok=True);record.chmod(0o700)
|
||||
names=sorted(set(tables())-KEEP)
|
||||
(record/'schema.tsv').write_text(schema())
|
||||
data_counts=dump(record/'application.sql.gz',names)
|
||||
payload=credential_tar();(record/'managed.tar').write_bytes(payload);(record/'managed.tar').chmod(0o600)
|
||||
cache,cache_summary=redis_export();save(record/'cache.json',cache)
|
||||
manifest={'version':record.name,'source':'local DataGov only','schema':SCHEMA,'tables':names,'row_counts':data_counts,
|
||||
'preserved_remote_tables':sorted(KEEP),'credential_files':credential_members(payload),'cache':cache_summary,
|
||||
'migration_history':'remote history is preserved; no historical migration replay',
|
||||
'files':{n:sha(record/n) for n in ('application.sql.gz','managed.tar','cache.json','schema.tsv')}}
|
||||
save(record/'manifest.json',manifest)
|
||||
print(json.dumps({'status':'EXPORTED','tables':len(names),'rows':sum(data_counts.values()),'credentials':len(manifest['credential_files']),'cache':cache_summary}))
|
||||
|
||||
def target(record):
|
||||
need(BASE.is_dir() and record.parent==BASE/'data-transfers','not the remote transfer directory')
|
||||
manifest=json.loads((record/'manifest.json').read_text())
|
||||
for name,digest in manifest['files'].items(): need(sha(record/name)==digest,'transfer checksum mismatch '+name)
|
||||
need(set((record/'schema.tsv').read_text().splitlines())<=set(schema().splitlines()),'incompatible target schema')
|
||||
for name in APPS: own(name)
|
||||
return manifest
|
||||
|
||||
def stop():
|
||||
run(['docker','stop','-t','30',*['aixun-datagov-'+n for n in APPS]],timeout=180)
|
||||
|
||||
def start():
|
||||
run(['docker','start',*['aixun-datagov-'+n for n in APPS]],timeout=120)
|
||||
|
||||
def load_data(path,names,admin_hash=None):
|
||||
prefix='SET FOREIGN_KEY_CHECKS=0; START TRANSACTION;\n'+''.join('DELETE FROM `'+n+'`;\n' for n in names)
|
||||
suffix=''
|
||||
if admin_hash:
|
||||
suffix="UPDATE sys_user SET password=CONVERT(0x"+admin_hash.encode().hex()+" USING utf8mb4) WHERE user_name='admin';\n"
|
||||
# Only InnoDB DML. A MySQL client error exits and rolls back this transaction.
|
||||
content=gzip.decompress(path.read_bytes())
|
||||
need(not re.search(rb'(?im)^\s*(COMMIT|START TRANSACTION|CREATE |DROP |ALTER |LOCK |UNLOCK )',content),'non-data SQL refused')
|
||||
sql(prefix.encode()+content+b'\n'+suffix.encode()+b'COMMIT; SET FOREIGN_KEY_CHECKS=1;\n')
|
||||
|
||||
def apply(record):
|
||||
manifest=target(record);attempt=record/'attempt.json'
|
||||
need(not attempt.exists(),'prior attempt exists; reconcile before retry')
|
||||
names=manifest['tables'];need(not (set(names)&KEEP),'protected runtime/history table selected')
|
||||
# First-transfer precondition: remote business sources are still empty.
|
||||
need(sql('SELECT COUNT(*) FROM dg_data_source;')=='0','remote business data already exists; merge review required')
|
||||
need(not credential_members(credential_tar()),'existing remote managed credentials require explicit reconciliation')
|
||||
before={name:{'id':own(name)['Id'],'image':own(name)['Image']} for name in APPS}
|
||||
history=sql('SELECT version,checksum_sha256,success FROM dg_schema_history ORDER BY version;')
|
||||
save(attempt,{'started_at':time.time(),'containers':before,'history_sha256':hashlib.sha256(history.encode()).hexdigest()})
|
||||
stop()
|
||||
backup=record/'recovery';backup.mkdir(mode=0o700)
|
||||
backup_counts=dump(backup/'application.sql.gz',names)
|
||||
payload=credential_tar();(backup/'managed.tar').write_bytes(payload);(backup/'managed.tar').chmod(0o600)
|
||||
# The first deployment has no managed business secrets. Refuse silent overwrites.
|
||||
need(not credential_members(payload),'existing remote managed credentials require explicit reconciliation')
|
||||
cache,_=redis_export();save(backup/'cache.json',cache)
|
||||
admin_hash=sql("SELECT password FROM sys_user WHERE user_name='admin';")
|
||||
save(backup/'manifest.json',{'tables':names,'row_counts':backup_counts,'files':{n:sha(backup/n) for n in ('application.sql.gz','managed.tar','cache.json')}})
|
||||
try:
|
||||
load_data(record/'application.sql.gz',names,admin_hash)
|
||||
observed=counts(names)
|
||||
need(observed==manifest['row_counts'],'imported table counts differ; keep services stopped and reconcile')
|
||||
need(sql('SELECT version,checksum_sha256,success FROM dg_schema_history ORDER BY version;')==history,'migration history changed')
|
||||
credential_apply((record/'managed.tar').read_bytes())
|
||||
need(credential_members(credential_tar())==manifest['credential_files'],'credential readback differs')
|
||||
cache_result=redis_apply(json.loads((record/'cache.json').read_text()))
|
||||
save(record/'result.json',{'status':'IMPORTED','tables':len(names),'rows':sum(observed.values()),'row_counts_match':True,
|
||||
'history_preserved':True,'credential_files':len(manifest['credential_files']),'cache':cache_result,
|
||||
'administrator':'remote password preserved; local business identity and permissions imported','completed_at':time.time()})
|
||||
except Exception:
|
||||
# Unknown results are retained. No blind re-import or destructive retries.
|
||||
save(record/'failure.json',{'status':'RECONCILE_REQUIRED','services':'stopped','recovery':str(backup),'at':time.time()})
|
||||
raise
|
||||
start()
|
||||
need(all(own(n)['Id']==before[n]['id'] and own(n)['Image']==before[n]['image'] for n in APPS),'application identity changed')
|
||||
print('PASS: application data, managed credentials and business caches imported; runtime verification required')
|
||||
|
||||
def restore(record):
|
||||
need(BASE.is_dir() and record.parent==BASE/'data-transfers','not the remote transfer directory')
|
||||
manifest=json.loads((record/'manifest.json').read_text())
|
||||
backup=record/'recovery';before=json.loads((backup/'manifest.json').read_text())
|
||||
for name,digest in before['files'].items(): need(sha(backup/name)==digest,'recovery checksum mismatch')
|
||||
need(not (set(before['tables'])&KEEP),'protected table in recovery')
|
||||
attempt=json.loads((record/'attempt.json').read_text())
|
||||
history=sql('SELECT version,checksum_sha256,success FROM dg_schema_history ORDER BY version;')
|
||||
need(hashlib.sha256(history.encode()).hexdigest()==attempt['history_sha256'],'migration history changed; recovery refused')
|
||||
current=credential_members(credential_tar())
|
||||
need(all(manifest['credential_files'].get(k)==v for k,v in current.items()),'managed credential drift; recovery refused')
|
||||
need(not credential_members((backup/'managed.tar').read_bytes()),'this restoration expects the verified empty initial credential volume')
|
||||
for n in APPS:
|
||||
need(own(n)['Id']==attempt['containers'][n]['id'] and own(n)['Image']==attempt['containers'][n]['image'],'application drift; recovery refused')
|
||||
stop()
|
||||
load_data(backup/'application.sql.gz',before['tables'])
|
||||
need(counts(before['tables'])==before['row_counts'],'recovery counts differ; reconcile')
|
||||
volume='aixun-datagov-local-managed-credential-data'
|
||||
info=json.loads(run(['docker','volume','inspect',volume]))[0]
|
||||
need(info['Labels'].get('com.aixun.project')=='aixun-datagov' and info['Labels'].get('com.docker.compose.project')==PROJECT,'foreign volume')
|
||||
program='''import sys,json,hashlib
|
||||
from pathlib import Path,PurePosixPath
|
||||
for name,digest in json.load(sys.stdin).items():
|
||||
relative=PurePosixPath(name)
|
||||
assert not relative.is_absolute() and '..' not in relative.parts
|
||||
path=Path('/data').joinpath(*relative.parts)
|
||||
if path.exists():
|
||||
assert path.is_file() and not path.is_symlink() and hashlib.sha256(path.read_bytes()).hexdigest()==digest
|
||||
path.unlink()
|
||||
'''
|
||||
run(['docker','run','--rm','--pull','never','--network','none','--label','com.aixun.project=aixun-datagov',
|
||||
'--mount','type=volume,source='+volume+',target=/data','-i','--entrypoint','python',HELPER,'-c',program],json.dumps(current).encode())
|
||||
redis_apply(json.loads((backup/'cache.json').read_text()))
|
||||
start()
|
||||
save(record/'restored.json',{'status':'RESTORED','at':time.time(),'tables':len(before['tables'])})
|
||||
print('PASS: pre-transfer application data restored; verify runtime health')
|
||||
|
||||
def main():
|
||||
action,path=sys.argv[1:];record=Path(path).resolve()
|
||||
if action=='export': export(record);return
|
||||
need(action in ('apply','restore'),'use export, apply or restore')
|
||||
with (BASE/'release.lock').open('a') as lock:
|
||||
fcntl.flock(lock,fcntl.LOCK_EX|fcntl.LOCK_NB)
|
||||
(apply if action=='apply' else restore)(record)
|
||||
|
||||
if __name__=='__main__':
|
||||
try: main()
|
||||
except Exception as exc:
|
||||
print(type(exc).__name__+': '+str(exc) if isinstance(exc,RuntimeError) else 'Data transfer failed; inspect private state without exposing credentials',file=sys.stderr)
|
||||
sys.exit(1)
|
||||
@@ -0,0 +1,31 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
umask 077
|
||||
store=/var/lib/aixun-datagov/dolphinscheduler
|
||||
mkdir -p "$store"
|
||||
chmod 0700 "$store"
|
||||
export SPRING_DATASOURCE_URL='jdbc:h2:file:/var/lib/aixun-datagov/dolphinscheduler/database;MODE=MySQL;DB_CLOSE_DELAY=-1;DATABASE_TO_LOWER=true'
|
||||
if [[ -f "$store/initialized-3.4.2" ]]; then
|
||||
[[ -f "$store/database.mv.db" ]] || { echo 'Persistent scheduler DB is missing; refusing reinitialisation' >&2; exit 78; }
|
||||
export SPRING_SQL_INIT_MODE=never
|
||||
else
|
||||
[[ ! -e "$store/database.mv.db" && ! -e "$store/init-started" ]] || {
|
||||
echo 'Scheduler initialisation outcome needs reconciliation; refusing destructive schema replay' >&2
|
||||
exit 78
|
||||
}
|
||||
(set -o noclobber; : > "$store/init-started")
|
||||
export SPRING_SQL_INIT_MODE=always
|
||||
fi
|
||||
# The existing worker tenant executes only the server-generated task scripts.
|
||||
# Keep the persistent DB and source secret private while allowing that tenant to
|
||||
# traverse the workspace and read its dedicated, ephemeral callback config.
|
||||
if ! id -u aixun_m2 >/dev/null 2>&1; then
|
||||
useradd --create-home --shell /bin/sh aixun_m2
|
||||
fi
|
||||
for directory in /tmp/dolphinscheduler /run/aixun-datagov /run/aixun-datagov/dolphinscheduler; do
|
||||
[[ ! -L "$directory" ]] || { echo 'Scheduler runtime directory must not be a symlink' >&2; exit 78; }
|
||||
install -d -o root -g root -m 0711 "$directory"
|
||||
done
|
||||
install -o aixun_m2 -m 0400 /run/secrets/aixun-datagov/m2/ds-callback-curl.conf \
|
||||
/run/aixun-datagov/dolphinscheduler/ds-callback-curl.conf
|
||||
exec /bin/bash /opt/dolphinscheduler/standalone-server/bin/start.sh
|
||||
@@ -0,0 +1,140 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Target-only HTTPS cutover after a matching certificate has been provisioned."""
|
||||
import fcntl
|
||||
import hashlib
|
||||
import json
|
||||
from pathlib import Path
|
||||
import re
|
||||
import subprocess
|
||||
import sys
|
||||
|
||||
BASE=Path('/opt/aixun-datagov')
|
||||
OLD=Path('/www/server/panel/vhost/nginx/aixun-corporate-site.conf')
|
||||
NEW=OLD.with_name('aixun-datagov.conf')
|
||||
NGINX='/www/server/nginx/sbin/nginx'
|
||||
CERT=BASE/'secrets/tls/fullchain.pem'
|
||||
KEY=BASE/'secrets/tls/privatekey.pem'
|
||||
|
||||
def run(args,data=None):
|
||||
result=subprocess.run(args,input=data,capture_output=True)
|
||||
if result.returncode: raise RuntimeError('command failed: '+args[0]+'; details withheld')
|
||||
return result.stdout
|
||||
|
||||
def digest(path): return hashlib.sha256(path.read_bytes()).hexdigest()
|
||||
|
||||
def atomic(path,data):
|
||||
temporary=path.with_suffix(path.suffix+'.datagov-tmp')
|
||||
with temporary.open('xb') as stream: stream.write(data)
|
||||
temporary.chmod(0o600); temporary.replace(path)
|
||||
|
||||
def main():
|
||||
action,version=sys.argv[1:]
|
||||
if not re.fullmatch(r'[a-z0-9][a-z0-9_.-]{0,79}',version): raise ValueError('invalid version')
|
||||
record=BASE/'releases'/version
|
||||
if not (record/'release.json').is_file(): raise RuntimeError('release does not exist')
|
||||
receipt=record/'edge.json'; backup=record/'corporate-nginx.before.conf'
|
||||
with (BASE/'release.lock').open('a') as lock:
|
||||
fcntl.flock(lock,fcntl.LOCK_EX|fcntl.LOCK_NB)
|
||||
if action=='restore':
|
||||
data=json.loads(receipt.read_text())
|
||||
if digest(OLD)!=data['corporate_after'] or digest(NEW)!=data['datagov_after']:
|
||||
raise RuntimeError('Nginx configuration drift; restore requires reconciliation')
|
||||
current=OLD.read_bytes(); new=NEW.read_bytes()
|
||||
atomic(OLD,backup.read_bytes()); NEW.unlink()
|
||||
try: run([NGINX,'-t']); run([NGINX,'-s','reload'])
|
||||
except Exception:
|
||||
atomic(OLD,current); atomic(NEW,new); raise
|
||||
data['restored']=True; atomic(receipt,(json.dumps(data,indent=2)+'\n').encode())
|
||||
print('PASS: original domain routing restored; DataGov data untouched'); return
|
||||
if action not in ('stage','apply'): raise ValueError('use stage, apply or restore')
|
||||
staged=None
|
||||
if receipt.exists():
|
||||
staged=json.loads(receipt.read_text())
|
||||
if action!='apply' or staged.get('phase')!='http-challenge': raise RuntimeError('prior edge state exists; reconcile first')
|
||||
if digest(OLD)!=staged['corporate_after'] or digest(NEW)!=staged['datagov_after']:
|
||||
raise RuntimeError('Nginx configuration drift; reconcile first')
|
||||
elif backup.exists() or NEW.exists(): raise RuntimeError('prior edge state exists; reconcile first')
|
||||
if action=='stage':
|
||||
original=OLD.read_text()
|
||||
expected='server_name v.aixunkeji.cn t.aixunkeji.cn;'
|
||||
if original.count(expected)!=1: raise RuntimeError('corporate domain configuration changed')
|
||||
expanded=run([NGINX,'-T']).decode()
|
||||
domains=[name.strip('\"\'') for group in re.findall(r'\bserver_name\s+([^;]+);',expanded) for name in group.split()]
|
||||
if domains.count('v.aixunkeji.cn')!=1: raise RuntimeError('unexpected domain ownership')
|
||||
challenge=BASE/'acme'/'.well-known'/'acme-challenge'
|
||||
challenge.mkdir(parents=True,exist_ok=True)
|
||||
# Permit Nginx traversal without allowing directory listing; secret
|
||||
# directories retain 0700 and credentials retain 0600.
|
||||
BASE.chmod(BASE.stat().st_mode & 0o777 | 0o111)
|
||||
config='server { listen 80; listen [::]:80; server_name v.aixunkeji.cn; location ^~ /.well-known/acme-challenge/ { root /opt/aixun-datagov/acme; } location / { return 503; } }\n'
|
||||
atomic(backup,original.encode())
|
||||
atomic(OLD,original.replace(expected,'server_name t.aixunkeji.cn;').encode()); atomic(NEW,config.encode())
|
||||
try: run([NGINX,'-t']); run([NGINX,'-s','reload'])
|
||||
except Exception:
|
||||
atomic(OLD,original.encode()); NEW.unlink(); raise
|
||||
data={'version':version,'phase':'http-challenge','corporate_before':digest(backup),'corporate_after':digest(OLD),'datagov_after':digest(NEW),'changed_domains':['v.aixunkeji.cn'],'preserved_domains':['t.aixunkeji.cn']}
|
||||
atomic(receipt,(json.dumps(data,indent=2)+'\n').encode())
|
||||
print('PASS: isolated HTTP challenge route ready'); return
|
||||
if not CERT.is_file() or not KEY.is_file(): raise RuntimeError('matching certificate and key are required')
|
||||
match=run(['openssl','x509','-in',str(CERT),'-noout','-checkhost','v.aixunkeji.cn'])
|
||||
if b' does match certificate' not in match: raise RuntimeError('certificate does not cover v.aixunkeji.cn')
|
||||
run(['openssl','x509','-in',str(CERT),'-noout','-checkend','0'])
|
||||
cert_key=run(['openssl','x509','-in',str(CERT),'-pubkey','-noout'])
|
||||
private_key=run(['openssl','pkey','-in',str(KEY),'-pubout'])
|
||||
if cert_key!=private_key: raise RuntimeError('certificate/key mismatch')
|
||||
KEY.chmod(0o600)
|
||||
expanded=run([NGINX,'-T']).decode()
|
||||
domains=[name.strip('\"\'') for group in re.findall(r'\bserver_name\s+([^;]+);',expanded) for name in group.split()]
|
||||
if domains.count('v.aixunkeji.cn')!=1: raise RuntimeError('unexpected domain ownership in active Nginx configuration')
|
||||
original=backup.read_text() if staged else OLD.read_text()
|
||||
expected='server_name v.aixunkeji.cn t.aixunkeji.cn;'
|
||||
if original.count(expected)!=1: raise RuntimeError('corporate domain configuration changed')
|
||||
replacement=original.replace(expected,'server_name t.aixunkeji.cn;')
|
||||
config='''server {
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
server_name v.aixunkeji.cn;
|
||||
location ^~ /.well-known/acme-challenge/ { root /opt/aixun-datagov/acme; }
|
||||
location / { return 301 https://v.aixunkeji.cn$request_uri; }
|
||||
}
|
||||
server {
|
||||
listen 443 ssl;
|
||||
listen [::]:443 ssl;
|
||||
server_name v.aixunkeji.cn;
|
||||
ssl_certificate /opt/aixun-datagov/secrets/tls/fullchain.pem;
|
||||
ssl_certificate_key /opt/aixun-datagov/secrets/tls/privatekey.pem;
|
||||
ssl_protocols TLSv1.2 TLSv1.3;
|
||||
client_max_body_size 100m;
|
||||
access_log /www/wwwlogs/aixun-datagov.access.log;
|
||||
error_log /www/wwwlogs/aixun-datagov.error.log;
|
||||
location / {
|
||||
proxy_pass http://127.0.0.1:28000;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto https;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
proxy_buffering off;
|
||||
proxy_read_timeout 3600s;
|
||||
}
|
||||
}
|
||||
'''
|
||||
previous_new=NEW.read_bytes() if staged else None
|
||||
previous_old=OLD.read_bytes()
|
||||
if not staged: atomic(backup,original.encode())
|
||||
atomic(OLD,replacement.encode()); atomic(NEW,config.encode())
|
||||
try: run([NGINX,'-t']); run([NGINX,'-s','reload'])
|
||||
except Exception:
|
||||
atomic(OLD,previous_old)
|
||||
if staged: atomic(NEW,previous_new)
|
||||
else: NEW.unlink()
|
||||
raise
|
||||
data={'version':version,'phase':'https','corporate_before':digest(backup),'corporate_after':digest(OLD),'datagov_after':digest(NEW),'certificate_sha256':digest(CERT),'changed_domains':['v.aixunkeji.cn'],'preserved_domains':['t.aixunkeji.cn']}
|
||||
atomic(receipt,(json.dumps(data,indent=2)+'\n').encode())
|
||||
print('PASS: v.aixunkeji.cn routed to DataGov; verify public TLS before declaring completion')
|
||||
|
||||
if __name__=='__main__':
|
||||
try: main()
|
||||
except Exception as exc: print(str(exc),file=sys.stderr); sys.exit(1)
|
||||
@@ -0,0 +1,183 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Stage a bounded DataGov snapshot and detect cross-ID unique conflicts.
|
||||
|
||||
The preflight only writes connection-local MySQL temporary tables. It never
|
||||
imports business records, caches or credentials and must not be used as apply.
|
||||
"""
|
||||
import gzip
|
||||
import hashlib
|
||||
import importlib.util
|
||||
import json
|
||||
from pathlib import Path
|
||||
import re
|
||||
import subprocess
|
||||
import sys
|
||||
|
||||
BASE = Path('/opt/aixun-datagov')
|
||||
IDENT = re.compile(r'^[A-Za-z0-9_]+$')
|
||||
INSERT = re.compile(rb'^INSERT INTO `([A-Za-z0-9_]+)` (\(.*)$')
|
||||
PROTECTED = {'dg_schema_history', 'dg_maintenance_lease', 'undo_log'}
|
||||
|
||||
|
||||
def load_helper(path):
|
||||
spec = importlib.util.spec_from_file_location('data_transfer', path)
|
||||
module = importlib.util.module_from_spec(spec)
|
||||
spec.loader.exec_module(module)
|
||||
return module
|
||||
|
||||
|
||||
def ident(value):
|
||||
if not IDENT.fullmatch(value):
|
||||
raise ValueError('invalid SQL identifier')
|
||||
return '`' + value + '`'
|
||||
|
||||
|
||||
def digest_file(path):
|
||||
h = hashlib.sha256()
|
||||
with path.open('rb') as stream:
|
||||
for data in iter(lambda: stream.read(1024 * 1024), b''):
|
||||
h.update(data)
|
||||
return h.hexdigest()
|
||||
|
||||
|
||||
def schema_map(data):
|
||||
result = {}
|
||||
for row in data.splitlines():
|
||||
fields = row.split('\t')
|
||||
result.setdefault(fields[0], []).append(fields[1:])
|
||||
return result
|
||||
|
||||
|
||||
class Session:
|
||||
def __init__(self):
|
||||
self.proc = subprocess.Popen(
|
||||
['docker', 'exec', '-i', 'aixun-datagov-mysql', 'sh', '-c',
|
||||
'MYSQL_PWD="$MYSQL_ROOT_PASSWORD" exec mysql --unbuffered --default-character-set=utf8mb4 -uroot -N -B aixun_datagov_system'],
|
||||
stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.DEVNULL)
|
||||
self.counter = 0
|
||||
|
||||
def send(self, sql):
|
||||
self.proc.stdin.write(sql if isinstance(sql, bytes) else sql.encode())
|
||||
|
||||
def query(self, sql):
|
||||
self.counter += 1
|
||||
marker = '__DATAGOV_MARKER_' + str(self.counter) + '__'
|
||||
self.send(sql + "; SELECT '" + marker + "';\n")
|
||||
self.proc.stdin.flush()
|
||||
rows = []
|
||||
while True:
|
||||
line = self.proc.stdout.readline()
|
||||
if not line:
|
||||
raise RuntimeError('MySQL staging failed; no business data was applied')
|
||||
value = line.decode().rstrip('\n')
|
||||
if value == marker:
|
||||
return rows
|
||||
rows.append(value)
|
||||
|
||||
def close(self):
|
||||
self.proc.stdin.close()
|
||||
self.proc.stdout.close()
|
||||
if self.proc.wait() != 0:
|
||||
raise RuntimeError('MySQL staging failed; no business data was applied')
|
||||
|
||||
|
||||
def metadata(d, names):
|
||||
rows = d.sql("SELECT table_name,index_name,non_unique,seq_in_index,"
|
||||
"COALESCE(column_name,''),COALESCE(sub_part,0),COALESCE(expression,'<NONE>') "
|
||||
"FROM information_schema.statistics WHERE table_schema=DATABASE() "
|
||||
"ORDER BY table_name,index_name,seq_in_index;")
|
||||
indexes = {}
|
||||
for line in rows.splitlines():
|
||||
table, index, nonunique, seq, col, prefix, expr = line.split('\t')
|
||||
if table in names and nonunique == '0':
|
||||
if not col or expr != '<NONE>':
|
||||
raise RuntimeError('unsupported unique expression index: ' + table + '.' + index)
|
||||
indexes.setdefault((table, index), []).append((col, int(prefix)))
|
||||
if any((name, 'PRIMARY') not in indexes for name in names):
|
||||
raise RuntimeError('source table lacks a primary key; review required')
|
||||
return indexes
|
||||
|
||||
|
||||
def stage(session, record, names):
|
||||
mapping = {name: '_dg_merge_' + str(i) for i, name in enumerate(sorted(names))}
|
||||
session.send('SET SESSION sql_mode=\'NO_AUTO_VALUE_ON_ZERO\'; SET NAMES utf8mb4;\n')
|
||||
for name, temp in mapping.items():
|
||||
session.send('CREATE TEMPORARY TABLE ' + ident(temp) + ' LIKE ' + ident(name) + ';\n')
|
||||
counts = {name: 0 for name in names}
|
||||
with gzip.open(record / 'application.sql.gz', 'rb') as source:
|
||||
for line in source:
|
||||
match = INSERT.match(line)
|
||||
if not match:
|
||||
if line.strip() and not line.startswith((b'--', b'/*', b'SET ', b'\n')):
|
||||
raise RuntimeError('unexpected SQL in snapshot')
|
||||
continue
|
||||
name = match.group(1).decode()
|
||||
if name in PROTECTED:
|
||||
continue
|
||||
if name not in mapping or not line.rstrip().endswith(b';'):
|
||||
raise RuntimeError('invalid snapshot insert')
|
||||
session.send(b'INSERT INTO `' + mapping[name].encode() + b'` ' + match.group(2))
|
||||
counts[name] += 1
|
||||
session.query('SELECT 1')
|
||||
return mapping, counts
|
||||
|
||||
|
||||
def conflicts(session, mapping, indexes):
|
||||
result = {}
|
||||
for (table, index), columns in indexes.items():
|
||||
if index == 'PRIMARY':
|
||||
continue
|
||||
keys = indexes[(table, 'PRIMARY')]
|
||||
def indexed(alias, column):
|
||||
name, prefix = column
|
||||
value = alias + '.' + ident(name)
|
||||
return 'LEFT(' + value + ',' + str(prefix) + ')' if prefix else value
|
||||
join = ' AND '.join(indexed('t', c) + '=' + indexed('s', c) for c in columns)
|
||||
same = ' AND '.join(indexed('t', c) + '<=>' + indexed('s', c) for c in keys)
|
||||
sql = ('SELECT COUNT(*) FROM ' + ident(table) + ' t JOIN ' + ident(mapping[table]) +
|
||||
' s ON ' + join + ' WHERE NOT(' + same + ')')
|
||||
count = int(session.query(sql)[0])
|
||||
if count:
|
||||
result[table + '.' + index] = count
|
||||
return result
|
||||
|
||||
|
||||
def main():
|
||||
if len(sys.argv) != 3 or sys.argv[1] != 'preflight':
|
||||
raise RuntimeError('only preflight is implemented; it cannot change business data')
|
||||
record = Path(sys.argv[2]).resolve()
|
||||
if record.parent != BASE / 'data-transfers' or not record.name.startswith('remote-data-'):
|
||||
raise RuntimeError('invalid target directory')
|
||||
d = load_helper(record / 'data-transfer.py')
|
||||
d.own('mysql')
|
||||
manifest = json.loads((record / 'manifest.json').read_text())
|
||||
for name, expected in manifest['files'].items():
|
||||
if Path(name).name != name or digest_file(record / name) != expected:
|
||||
raise RuntimeError('snapshot file checksum mismatch')
|
||||
source = schema_map((record / 'schema.tsv').read_text())
|
||||
target = schema_map(d.schema())
|
||||
names = set(manifest['tables']) - PROTECTED
|
||||
if not names <= target.keys() or any(source.get(name) != target.get(name) for name in names):
|
||||
raise RuntimeError('source and target schemas differ; review migrations first')
|
||||
indexes = metadata(d, names)
|
||||
session = Session()
|
||||
try:
|
||||
mapping, counts = stage(session, record, names)
|
||||
expected = manifest['row_counts']
|
||||
if any(counts[name] != expected[name] for name in names):
|
||||
raise RuntimeError('snapshot row count mismatch')
|
||||
found = conflicts(session, mapping, indexes)
|
||||
print(json.dumps({'status': 'PREFLIGHT_ONLY', 'tables': len(names),
|
||||
'rows': sum(counts.values()), 'unique_conflicts': found,
|
||||
'protected_tables': sorted(PROTECTED),
|
||||
'business_data_applied': False}, sort_keys=True))
|
||||
finally:
|
||||
session.close()
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
try:
|
||||
main()
|
||||
except Exception as exc:
|
||||
print(type(exc).__name__ + ': preflight incomplete; inspect without exposing data', file=sys.stderr)
|
||||
sys.exit(1)
|
||||
@@ -0,0 +1,139 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Apply one reviewed migration plan on the remote target, separately from images."""
|
||||
import fcntl
|
||||
import hashlib
|
||||
import importlib.util
|
||||
import json
|
||||
from pathlib import Path
|
||||
import re
|
||||
import sys
|
||||
import time
|
||||
|
||||
BASE = Path('/opt/aixun-datagov')
|
||||
|
||||
|
||||
def load(name, path):
|
||||
spec = importlib.util.spec_from_file_location(name, path)
|
||||
module = importlib.util.module_from_spec(spec)
|
||||
spec.loader.exec_module(module)
|
||||
return module
|
||||
|
||||
|
||||
def digest(value):
|
||||
return hashlib.sha256(value.encode()).hexdigest()
|
||||
|
||||
|
||||
def history(d):
|
||||
return d.sql('SELECT version,checksum_sha256,success FROM dg_schema_history ORDER BY version;')
|
||||
|
||||
|
||||
def projection(d, table, columns, predicate='1=1'):
|
||||
# Hex-encoded values and sorted rows preserve original column values while
|
||||
# allowing additive columns. No business values are printed or retained here.
|
||||
fields = ','.join("IFNULL(HEX(`" + column + "`),'<NULL>')" for column in columns)
|
||||
rows = d.sql('SELECT ' + fields + ' FROM `' + table + '` WHERE ' + predicate + ';').splitlines()
|
||||
return {'rows': len(rows), 'sha256': digest('\n'.join(sorted(rows)))}
|
||||
|
||||
|
||||
def preflight(record, d, runner):
|
||||
manifest = json.loads((record / 'release.json').read_text())
|
||||
plan = json.loads((record / 'migration-plan.json').read_text())
|
||||
d.need(manifest.get('database_change') is True, 'database change must be explicit')
|
||||
d.need(not (record / 'migration-attempt.json').exists(), 'existing attempt; reconcile instead of retrying')
|
||||
d.need(digest(history(d)) == plan['before_history_sha256'], 'migration history drift')
|
||||
d.need(set(manifest['services']) <= set(runner.APPS), 'invalid application scope')
|
||||
snapshots = {}
|
||||
for name, expected in manifest['expected_remote'].items():
|
||||
c = d.own(name)
|
||||
d.need(c['State']['Running'], 'application unexpectedly stopped')
|
||||
d.need({'container': c['Id'], 'image': c['Image']} == expected, 'application identity drift')
|
||||
runner.resources(c)
|
||||
snapshots[name] = runner.identity(c)
|
||||
d.need(all(n['ip'] for n in snapshots[name]['networks'].values()), 'empty pre-stop IP')
|
||||
versions = [item['version'] for item in plan['migrations']]
|
||||
d.need(versions and versions == sorted(set(versions)), 'invalid ordered migration list')
|
||||
for item in plan['migrations']:
|
||||
d.need(re.fullmatch(r'[0-9]{8}\.[0-9]{3}', item['version']), 'invalid version')
|
||||
d.need(re.fullmatch(r'[A-Za-z0-9_-]+', item['ownerUnit']), 'invalid owner')
|
||||
path = record / 'sql' / Path(item['path']).name
|
||||
d.need(path.name.startswith('V' + item['version'] + '__'), 'migration filename mismatch')
|
||||
d.need(re.fullmatch(r'[A-Za-z0-9_.-]+', path.stem), 'invalid description')
|
||||
d.need(d.sha(path) == item['sha256'], 'migration checksum mismatch')
|
||||
tables = set(d.tables())
|
||||
d.need(not tables.intersection(plan['new_tables']), 'new table already exists; reconcile')
|
||||
d.need(set(plan['backup_tables']) <= tables, 'expected existing table missing')
|
||||
for table in plan['new_tables'] + plan['backup_tables']:
|
||||
d.need(re.fullmatch(r'[a-z][a-z0-9_]+', table), 'invalid table name')
|
||||
for check in plan.get('checks', []):
|
||||
d.need(check['sql'].lstrip().upper().startswith('SELECT '), 'preflight must be read-only')
|
||||
d.need(d.sql(check['sql']) == check['expected'], 'preflight failed: ' + check['name'])
|
||||
return manifest, plan, snapshots
|
||||
|
||||
|
||||
def apply(record, d, runner):
|
||||
manifest, plan, snapshots = preflight(record, d, runner)
|
||||
recovery = record / 'migration-recovery'
|
||||
recovery.mkdir(mode=0o700)
|
||||
(recovery / 'compose.json').write_bytes((BASE / 'compose.json').read_bytes())
|
||||
(recovery / 'compose.json').chmod(0o600)
|
||||
d.save(recovery / 'before.json', {'history': history(d), 'applications': snapshots})
|
||||
manifest['pre_stop_runtime'] = snapshots
|
||||
d.save(record / 'release.json', manifest)
|
||||
d.save(record / 'migration-attempt.json', {'at': time.time(), 'stage': 'FREEZE', 'versions': [m['version'] for m in plan['migrations']]})
|
||||
d.run(['docker', 'stop', '-t', '30', *['aixun-datagov-' + n for n in manifest['services']]], timeout=240)
|
||||
columns = {table: d.sql("SELECT column_name FROM information_schema.columns WHERE table_schema=DATABASE() AND table_name='" + table + "' ORDER BY ordinal_position;").splitlines() for table in plan['backup_tables']}
|
||||
before = {table: projection(d, table, cols) for table, cols in columns.items()}
|
||||
preserved_before = {table: projection(d, table, cols, plan.get('before_preserve_predicates', {}).get(table, '1=1'))
|
||||
for table, cols in columns.items()}
|
||||
counts = d.dump(recovery / 'affected-tables.sql.gz', plan['backup_tables'])
|
||||
d.need(counts == {table: v['rows'] for table, v in before.items()}, 'backup row counts changed')
|
||||
ddl = {table: d.sql('SHOW CREATE TABLE `' + table + '`;') for table in plan['backup_tables']}
|
||||
d.save(recovery / 'tables.json', {'columns': columns, 'before': before, 'ddl': ddl, 'backup_sha256': d.sha(recovery / 'affected-tables.sql.gz')})
|
||||
for item in plan['migrations']:
|
||||
marker = record / ('migration-' + item['version'] + '.json')
|
||||
d.save(marker, {'status': 'STARTED', 'sha256': item['sha256']})
|
||||
path = record / 'sql' / Path(item['path']).name
|
||||
d.sql(path.read_text())
|
||||
# Filenames are validated as SQL-safe identifiers before interpolation.
|
||||
d.need(re.fullmatch(r'[A-Za-z0-9_.-]+', path.stem), 'invalid description')
|
||||
d.sql("INSERT INTO dg_schema_history(version,description,owner_unit,checksum_sha256,success) VALUES ('" + item['version'] + "','" + path.stem + "','" + item['ownerUnit'] + "','" + item['sha256'] + "','1');")
|
||||
actual = d.sql("SELECT checksum_sha256,success FROM dg_schema_history WHERE version='" + item['version'] + "';")
|
||||
d.need(actual == item['sha256'] + '\t1', 'migration receipt mismatch; reconcile')
|
||||
d.save(marker, {'status': 'APPLIED', 'sha256': item['sha256']})
|
||||
print('APPLIED ' + item['version'], flush=True)
|
||||
preserved = {}
|
||||
for table, cols in columns.items():
|
||||
preserved[table] = projection(d, table, cols, plan.get('preserve_predicates', {}).get(table, '1=1')) == preserved_before[table]
|
||||
d.need(all(preserved.values()), 'existing row projection changed')
|
||||
d.need(set(plan['new_tables']) <= set(d.tables()), 'new tables missing')
|
||||
for check in plan.get('after_checks', []):
|
||||
d.need(check['sql'].lstrip().upper().startswith('SELECT '), 'verification must be read-only')
|
||||
d.need(d.sql(check['sql']) == check['expected'], 'verification failed: ' + check['name'])
|
||||
d.save(record / 'migration-result.json', {'status': 'PASS', 'versions': [m['version'] for m in plan['migrations']],
|
||||
'history_sha256': digest(history(d)), 'existing_rows_preserved': preserved,
|
||||
'new_tables': len(plan['new_tables']), 'backup_tables': counts, 'applications': 'STOPPED_FOR_IMAGE_APPLY'})
|
||||
print('PASS: selected migrations recorded; applications await image apply', flush=True)
|
||||
|
||||
|
||||
def main():
|
||||
action, directory = sys.argv[1:]
|
||||
record = Path(directory).resolve()
|
||||
if record.parent != BASE / 'releases' or action not in ('preflight', 'apply'):
|
||||
raise RuntimeError('invalid target or action')
|
||||
d = load('transfer', record / 'data-transfer.py')
|
||||
runner = load('runner', record / 'runner.py')
|
||||
if action == 'preflight':
|
||||
preflight(record, d, runner)
|
||||
print('PASS: read-only migration preflight')
|
||||
return
|
||||
with (BASE / 'release.lock').open('a') as lock:
|
||||
fcntl.flock(lock, fcntl.LOCK_EX | fcntl.LOCK_NB)
|
||||
apply(record, d, runner)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
try:
|
||||
main()
|
||||
except Exception as exc:
|
||||
print(type(exc).__name__ + ': migration incomplete; inspect private attempt/result; do not retry blindly', file=sys.stderr)
|
||||
sys.exit(1)
|
||||
@@ -0,0 +1,335 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Same-version native logical backup/restore for this project's OM and Airflow.
|
||||
|
||||
Uses the vendors' documented MySQL logical backup method, preserving native IDs.
|
||||
Does not copy MySQL system accounts, local networking, JWT signing keys or env.
|
||||
"""
|
||||
import base64
|
||||
import fcntl
|
||||
import gzip
|
||||
import hashlib
|
||||
import importlib.util
|
||||
import io
|
||||
import json
|
||||
import os
|
||||
from pathlib import Path,PurePosixPath
|
||||
import re
|
||||
import subprocess
|
||||
import sys
|
||||
import tarfile
|
||||
import time
|
||||
import urllib.request
|
||||
|
||||
spec=importlib.util.spec_from_file_location('data_transfer',Path(__file__).with_name('data-transfer.py'))
|
||||
d=importlib.util.module_from_spec(spec);spec.loader.exec_module(d)
|
||||
TARGETS={'openmetadata':('m2-om-mysql','aixun_m2_openmetadata','om_mysql_root_password'),
|
||||
'airflow':('m2-om-airflow-mysql','aixun_m2_airflow','om_airflow_db_password')}
|
||||
BASE=Path('/opt/aixun-datagov')
|
||||
|
||||
def command(kind,program):
|
||||
name,database,secret=TARGETS[kind];d.own(name)
|
||||
return ['docker','exec','-i','aixun-datagov-'+name,'sh','-c',
|
||||
'MYSQL_PWD="$(cat /run/secrets/'+secret+')" exec '+program+' '+database]
|
||||
|
||||
def query(kind,text):return d.run(command(kind,'mysql -uroot -N -B --default-character-set=utf8mb4'),text.encode(),timeout=600).decode().strip()
|
||||
|
||||
def schema(kind):return query(kind,"SELECT table_name,column_name,column_type,is_nullable,IFNULL(column_default,'<NULL>'),extra,collation_name FROM information_schema.columns WHERE table_schema=DATABASE() ORDER BY table_name,ordinal_position;")
|
||||
|
||||
def dump(kind,path):
|
||||
names=query(kind,'SHOW TABLES;').splitlines();counts={n:0 for n in names}
|
||||
args=command(kind,'mysqldump -uroot --no-tablespaces --single-transaction --quick --no-create-info --skip-triggers --skip-add-locks --skip-disable-keys --no-autocommit=0 --skip-extended-insert --complete-insert --hex-blob --set-gtid-purged=OFF --column-statistics=0 --skip-comments')
|
||||
with path.open('xb') as raw:
|
||||
path.chmod(0o600)
|
||||
with gzip.GzipFile(fileobj=raw,mode='wb',mtime=0) as output:
|
||||
p=subprocess.Popen(args,stdout=subprocess.PIPE,stderr=subprocess.PIPE)
|
||||
for line in p.stdout:
|
||||
d.need(not re.match(rb'\s*(COMMIT|START TRANSACTION|CREATE |DROP |ALTER |LOCK |UNLOCK )',line,re.I),'non-data SQL refused')
|
||||
match=re.match(rb'INSERT INTO `([a-zA-Z0-9_]+)` ',line)
|
||||
if match:counts[match[1].decode()]+=1
|
||||
output.write(line)
|
||||
p.stdout.close();p.stderr.read();p.wait();d.need(p.returncode==0,'native backup failed')
|
||||
return counts
|
||||
|
||||
def tar_members(payload,root):
|
||||
files={}
|
||||
with tarfile.open(fileobj=io.BytesIO(payload)) as archive:
|
||||
for item in archive:
|
||||
p=PurePosixPath(item.name)
|
||||
d.need(not p.is_absolute() and '..' not in p.parts and p.parts[0]==root and (item.isdir() or item.isfile()),'unsafe native archive')
|
||||
if item.isfile() and '__pycache__' not in p.parts and not item.name.endswith('.pyc'):
|
||||
files[str(p)]=archive.extractfile(item).read()
|
||||
return files
|
||||
|
||||
def export(record):
|
||||
d.need(not (record/'native-manifest.json').exists(),'native export exists')
|
||||
result={}
|
||||
for kind in TARGETS:
|
||||
(record/(kind+'-schema.tsv')).write_text(schema(kind))
|
||||
rows=dump(kind,record/(kind+'.sql.gz'))
|
||||
result[kind]={'counts':rows,'rows':sum(rows.values()),'sha256':d.sha(record/(kind+'.sql.gz')),
|
||||
'schema_sha256':d.sha(record/(kind+'-schema.tsv'))}
|
||||
d.own('m2-om-ingestion');files={}
|
||||
for name in ('dags','dag_generated_configs'):
|
||||
payload=d.run(['docker','cp','aixun-datagov-m2-om-ingestion:/opt/airflow/'+name,'-'])
|
||||
members=tar_members(payload,name)
|
||||
(record/(name+'.tar')).write_bytes(payload);(record/(name+'.tar')).chmod(0o600)
|
||||
files[name]={'sha256':d.sha(record/(name+'.tar')),'files':len(members)}
|
||||
source=Path(__file__).resolve().parents[1]/'m2/local/secrets'
|
||||
# Used once to authenticate after restoration, then rotate back to remote values.
|
||||
d.save(record/'om-source-access.json',{'admin_password':(source/'om-admin-password').read_text()})
|
||||
d.save(record/'native-manifest.json',{'databases':result,'airflow_files':files,
|
||||
'images':{n:d.own(n)['Image'] for n in ('m2-openmetadata','m2-om-mysql','m2-om-airflow-mysql','m2-om-ingestion')},
|
||||
'source_access_sha256':d.sha(record/'om-source-access.json'),'method':'vendor documented logical backup, same immutable product version'})
|
||||
print(json.dumps({'native_database_rows':{k:v['rows'] for k,v in result.items()},'airflow_files':{k:v['files'] for k,v in files.items()}}))
|
||||
|
||||
def normalize_generated_columns(content,definition):
|
||||
columns={}
|
||||
for row in definition.splitlines():
|
||||
fields=row.split('\t');columns.setdefault(fields[0],[]).append(fields)
|
||||
fixed=[];changed=0
|
||||
for line in content.splitlines(keepends=True):
|
||||
match=re.match(rb'(INSERT INTO `([A-Za-z0-9_]+)` \(([^\n]*?)\) VALUES \()(,+)',line)
|
||||
if match:
|
||||
schema_columns=columns[match[2].decode()]
|
||||
expected=[c[1] for c in schema_columns if 'GENERATED' not in c[5]]
|
||||
actual=[v.decode() for v in re.findall(rb'`([^`]+)`',match[3])]
|
||||
prefix=0
|
||||
for column in schema_columns:
|
||||
if 'GENERATED' not in column[5]:break
|
||||
prefix+=1
|
||||
d.need(prefix>=len(match[4]) and actual==expected,'unexpected native dump generated-column structure')
|
||||
# The bundled old mysqldump omits generated columns from the column
|
||||
# list but leaves a leading empty value. Remove only that invalid
|
||||
# delimiter after checking the exact live schema; never alter values.
|
||||
line=match[1]+line[match.end():];changed+=1
|
||||
fixed.append(line)
|
||||
return b''.join(fixed),changed
|
||||
|
||||
def restore_sql(kind,path,counts):
|
||||
names=sorted(counts);d.need(all(re.fullmatch('[A-Za-z0-9_]+',n) for n in names),'invalid native table')
|
||||
content=gzip.decompress(path.read_bytes())
|
||||
content,_=normalize_generated_columns(content,schema(kind))
|
||||
d.need(not re.search(rb'(?im)^\s*(COMMIT|START TRANSACTION|CREATE |DROP |ALTER |LOCK |UNLOCK )',content),'non-data SQL refused')
|
||||
data=('SET FOREIGN_KEY_CHECKS=0; START TRANSACTION;\n'+''.join('DELETE FROM `'+n+'`;\n' for n in names)).encode()+content+b'\nCOMMIT; SET FOREIGN_KEY_CHECKS=1;\n'
|
||||
d.run(command(kind,'mysql -uroot -N -B --default-character-set=utf8mb4'),data,timeout=1200)
|
||||
rows=query(kind,' UNION ALL '.join("SELECT '"+n+"',COUNT(*) FROM `"+n+'`' for n in names)+';')
|
||||
d.need({r.split('\t')[0]:int(r.split('\t')[1]) for r in rows.splitlines()}==counts,'native row counts differ; reconcile')
|
||||
|
||||
def api(path,token=None,body=None,method=None):
|
||||
headers={'Content-Type':'application/json-patch+json' if method=='PATCH' else 'application/json'}
|
||||
if token:headers['Authorization']='Bearer '+token
|
||||
request=urllib.request.Request('http://127.0.0.1:33185/api/v1'+path,
|
||||
data=json.dumps(body).encode() if body is not None else None,headers=headers,method=method)
|
||||
with urllib.request.urlopen(request,timeout=30) as response:
|
||||
raw=response.read()
|
||||
if not raw or path=='/users/changePassword':return {'http_status':response.status}
|
||||
return json.loads(raw)
|
||||
|
||||
def login(email,password):return api('/users/login',body={'email':email,'password':base64.b64encode(password.encode()).decode()})['accessToken']
|
||||
|
||||
def issue_service_token(admin_token):
|
||||
service=api('/users/name/aixun_m2_ingestion_svc?fields=roles,teams,profile,personas,domains',admin_token)
|
||||
d.need(service.get('isAdmin') is False and service.get('isBot') is False,'unexpected service identity')
|
||||
desired=(BASE/'m2/local/secrets/om-service-password').read_text()
|
||||
# Native non-bot JWT auth cannot be passed to changePassword's BASIC parser.
|
||||
# Official PUT clears that mechanism while retaining the same identity and
|
||||
# grants; official password API then installs the remote password.
|
||||
body={k:service[k] for k in ('name','email','displayName','description','isAdmin','isBot','isEmailVerified','profile') if k in service}
|
||||
for field in ('roles','teams','personas','domains'):
|
||||
if field in service:body[field]=[x['id'] for x in service[field]]
|
||||
updated=api('/users',admin_token,body,'PUT')
|
||||
d.need(updated['id']==service['id'],'service ID changed')
|
||||
api('/users/changePassword',admin_token,{'username':service['name'],'newPassword':desired,'confirmPassword':desired,'requestType':'USER'},'PUT')
|
||||
token=login(service['email'],desired)
|
||||
issued=api('/users/generateToken',token,{'id':service['id'],'JWTTokenExpiry':'30'},'POST')
|
||||
after=api('/users/name/'+service['name']+'?fields=roles,teams',admin_token)
|
||||
for field in ('id','isAdmin','isBot'):d.need(after[field]==service[field],'service identity changed')
|
||||
for field in ('roles','teams'):d.need({x['id'] for x in after[field]}=={x['id'] for x in service[field]},'service permissions changed')
|
||||
path=BASE/'m2/local/secrets/openmetadata-token'
|
||||
path.write_text(issued['JWTToken']);os.chown(path,0,19888);path.chmod(0o440)
|
||||
return issued
|
||||
|
||||
def rebuild_search(record):
|
||||
token=login('admin@open-metadata.org',(BASE/'m2/local/secrets/om-admin-password').read_text())
|
||||
started=int(time.time()*1000)
|
||||
d.save(record/'search-attempt.json',{'started':started,'recreateIndex':True})
|
||||
api('/apps/trigger/SearchIndexingApplication',token,{'entities':['all'],'recreateIndex':True},'POST')
|
||||
deadline=time.monotonic()+300
|
||||
while time.monotonic()<deadline:
|
||||
rows=api('/apps/name/SearchIndexingApplication/status?limit=5',token)['data']
|
||||
for row in rows:
|
||||
if row.get('startTime',0)>=started and row.get('status') in ('success','failed','stopped'):
|
||||
d.save(record/'search-result.json',row)
|
||||
d.need(row['status']=='success','search rebuild did not succeed')
|
||||
return
|
||||
time.sleep(3)
|
||||
raise RuntimeError('search outcome unknown; reconcile before retry')
|
||||
|
||||
def health(name):
|
||||
deadline=time.monotonic()+300
|
||||
while d.own(name)['State'].get('Health',{}).get('Status')!='healthy':
|
||||
d.need(time.monotonic()<deadline,'native health not confirmed; reconcile')
|
||||
time.sleep(5)
|
||||
|
||||
def ops(*args):
|
||||
d.own('m2-openmetadata')
|
||||
return d.run(['docker','exec','aixun-datagov-m2-openmetadata','/opt/aixun-m2/openmetadata-wrapper.sh',
|
||||
'/opt/openmetadata/bootstrap/openmetadata-ops.sh',*args],timeout=600)
|
||||
|
||||
def worker_files(record,token):
|
||||
payload={}
|
||||
for root in ('dags','dag_generated_configs'):
|
||||
for name,content in tar_members((record/(root+'.tar')).read_bytes(),root).items():
|
||||
if name.endswith('.json'):
|
||||
obj=json.loads(content)
|
||||
def adapt(value):
|
||||
if isinstance(value,list):return [adapt(v) for v in value]
|
||||
if isinstance(value,dict):return {k:token if k=='jwtToken' else adapt(v) for k,v in value.items()}
|
||||
return value
|
||||
content=(json.dumps(adapt(obj),indent=2)+'\n').encode()
|
||||
payload[name]=base64.b64encode(content).decode()
|
||||
volumes={'dags':'aixun-datagov-local-m2-om-ingestion-dags','dag_generated_configs':'aixun-datagov-local-m2-om-ingestion-dag-configs'}
|
||||
args=['docker','run','--rm','--pull','never','--network','none','--label','com.aixun.project=aixun-datagov','-i']
|
||||
for directory,volume in volumes.items():
|
||||
info=json.loads(d.run(['docker','volume','inspect',volume]))[0]
|
||||
d.need(info['Labels'].get('com.aixun.project')=='aixun-datagov','foreign Airflow volume')
|
||||
args+=['--mount','type=volume,source='+volume+',target=/data/'+directory]
|
||||
program='''import sys,json,base64,os
|
||||
from pathlib import Path,PurePosixPath
|
||||
for name,content in json.load(sys.stdin).items():
|
||||
relative=PurePosixPath(name)
|
||||
assert not relative.is_absolute() and '..' not in relative.parts and relative.parts[0] in ('dags','dag_generated_configs')
|
||||
path=Path('/data').joinpath(*relative.parts)
|
||||
path.parent.mkdir(parents=True,exist_ok=True)
|
||||
parent=path.parent
|
||||
while parent!=Path('/data'):
|
||||
os.chown(parent,50000,0);parent.chmod(0o750);parent=parent.parent
|
||||
path.write_bytes(base64.b64decode(content));os.chown(path,50000,0);path.chmod(0o600)
|
||||
'''
|
||||
d.run(args+['--entrypoint','python',d.HELPER,'-c',program],json.dumps(payload).encode())
|
||||
d.save(record/'worker-import.json',{name:hashlib.sha256(base64.b64decode(value)).hexdigest() for name,value in payload.items()})
|
||||
return len(payload)
|
||||
|
||||
def pause_worker():
|
||||
# Use Airflow's installed ORM as its maintenance API before any scheduler starts.
|
||||
c=d.own('m2-om-ingestion');image=c['Image']
|
||||
volume='aixun-datagov-local-m2-om-private'
|
||||
net=json.loads(d.run(['docker','network','inspect',volume]))[0]
|
||||
d.need(net['Labels'].get('com.aixun.project')=='aixun-datagov','foreign Airflow network')
|
||||
program='''import os
|
||||
from pathlib import Path
|
||||
from urllib.parse import quote
|
||||
password=Path('/run/secrets/db').read_text().strip()
|
||||
os.environ['AIRFLOW__DATABASE__SQL_ALCHEMY_CONN']='mysql+pymysql://aixun_m2_airflow:'+quote(password,safe='')+'@aixun-datagov-m2-om-airflow-mysql:3306/aixun_m2_airflow'
|
||||
from airflow.models.dag import DagModel
|
||||
from airflow.utils.session import create_session
|
||||
with create_session() as session:
|
||||
changed=session.query(DagModel).filter(DagModel.is_paused==False).update({DagModel.is_paused:True},synchronize_session=False)
|
||||
print(changed)
|
||||
'''
|
||||
output=d.run(['docker','run','--rm','--pull','never','--network',volume,'--label','com.aixun.project=aixun-datagov',
|
||||
'--mount','type=bind,source='+str(BASE/'m2/local/secrets/om-airflow-db-password')+',target=/run/secrets/db,readonly',
|
||||
'--group-add','19888','--entrypoint','python',image,'-c',program])
|
||||
return int(output.decode().strip().splitlines()[-1])
|
||||
|
||||
def apply(record):
|
||||
d.need(record.parent==BASE/'data-transfers','wrong native transfer directory')
|
||||
d.need(not (record/'native-attempt.json').exists(),'native attempt exists; reconcile instead of repeating')
|
||||
manifest=json.loads((record/'native-manifest.json').read_text())
|
||||
for name,image in manifest['images'].items():d.need(d.own(name)['Image']==image,'native image version mismatch')
|
||||
for kind,info in manifest['databases'].items():
|
||||
d.need(d.sha(record/(kind+'.sql.gz'))==info['sha256'],'native archive checksum')
|
||||
d.need((record/(kind+'-schema.tsv')).read_text()==schema(kind),'native schema mismatch')
|
||||
for root,info in manifest['airflow_files'].items():d.need(d.sha(record/(root+'.tar'))==info['sha256'],'Airflow archive checksum')
|
||||
d.need(d.sha(record/'om-source-access.json')==manifest['source_access_sha256'],'source credential transfer checksum')
|
||||
d.need(query('airflow',"SELECT COUNT(*) FROM dag_run WHERE state IN ('queued','running');")=='0','remote Airflow has pending work')
|
||||
d.need(query('openmetadata','SELECT COUNT(*) FROM table_entity;')=='0','remote metadata is no longer empty; merge review needed')
|
||||
names=['integration','m2-openmetadata','m2-om-ingestion']
|
||||
d.save(record/'native-attempt.json',{'started_at':time.time(),'containers':{n:d.own(n)['Id'] for n in names}})
|
||||
d.run(['docker','stop','-t','30',*['aixun-datagov-'+n for n in names]],timeout=150)
|
||||
recovery=record/'native-recovery';recovery.mkdir(mode=0o700)
|
||||
before={kind:dump(kind,recovery/(kind+'.sql.gz')) for kind in TARGETS}
|
||||
for root in ('dags','dag_generated_configs'):
|
||||
raw=d.run(['docker','cp','aixun-datagov-m2-om-ingestion:/opt/airflow/'+root,'-'])
|
||||
(recovery/(root+'.tar')).write_bytes(raw);(recovery/(root+'.tar')).chmod(0o600)
|
||||
existing=tar_members(raw,root);incoming=tar_members((record/(root+'.tar')).read_bytes(),root)
|
||||
d.need(all(incoming.get(name)==content for name,content in existing.items()),'existing worker files differ; merge review required')
|
||||
d.save(recovery/'manifest.json',{'counts':before,'files':{name:d.sha(recovery/name) for name in ('openmetadata.sql.gz','airflow.sql.gz','dags.tar','dag_generated_configs.tar')}})
|
||||
secret=BASE/'m2/local/secrets'
|
||||
(recovery/'openmetadata-token').write_bytes((secret/'openmetadata-token').read_bytes());(recovery/'openmetadata-token').chmod(0o600)
|
||||
saved=json.loads((recovery/'manifest.json').read_text())
|
||||
saved['files']['openmetadata-token']=d.sha(recovery/'openmetadata-token')
|
||||
d.save(recovery/'manifest.json',saved)
|
||||
complete(record,manifest)
|
||||
|
||||
def complete(record,manifest):
|
||||
secret=BASE/'m2/local/secrets'
|
||||
for kind in TARGETS:
|
||||
restore_sql(kind,record/(kind+'.sql.gz'),manifest['databases'][kind]['counts'])
|
||||
d.save(record/(kind+'-import.json'),{'status':'IMPORTED','tables':len(manifest['databases'][kind]['counts']),'rows':manifest['databases'][kind]['rows']})
|
||||
paused=pause_worker()
|
||||
d.run(['docker','start','aixun-datagov-m2-openmetadata']);health('m2-openmetadata')
|
||||
old=json.loads((record/'om-source-access.json').read_text())['admin_password']
|
||||
token=login('admin@open-metadata.org',old)
|
||||
desired=(secret/'om-admin-password').read_text()
|
||||
api('/users/changePassword',token,{'username':'admin@open-metadata.org','oldPassword':old,'newPassword':desired,'confirmPassword':desired,'requestType':'SELF'},'PUT')
|
||||
token=login('admin@open-metadata.org',desired)
|
||||
issued=issue_service_token(token)
|
||||
finish(record,manifest,paused,issued)
|
||||
|
||||
def finish(record,manifest,paused,issued):
|
||||
files=worker_files(record,issued['JWTToken'])
|
||||
ops('regenerate-bot-tokens')
|
||||
rebuild_search(record)
|
||||
d.run(['docker','start','aixun-datagov-m2-om-ingestion','aixun-datagov-integration']);health('m2-om-ingestion')
|
||||
result={'status':'PASS','native_counts':{k:{'tables':len(v['counts']),'rows':v['rows']} for k,v in manifest['databases'].items()},
|
||||
'airflow_files':files,'paused_imported_dags':paused,'jwt_expires_at':issued['JWTTokenExpiresAt'],'search_reindex':'PASS','remote_native_passwords':'preserved via official password APIs'}
|
||||
d.save(record/'native-result.json',result);print(json.dumps(result))
|
||||
|
||||
def restore(record):
|
||||
d.need(record.parent==BASE/'data-transfers','wrong native recovery directory')
|
||||
recovery=record/'native-recovery';before=json.loads((recovery/'manifest.json').read_text())
|
||||
for name,digest in before['files'].items():d.need(d.sha(recovery/name)==digest,'native recovery checksum mismatch')
|
||||
attempt=json.loads((record/'native-attempt.json').read_text())
|
||||
for name,identity in attempt['containers'].items():d.need(d.own(name)['Id']==identity,'native container drift')
|
||||
names=['integration','m2-openmetadata','m2-om-ingestion']
|
||||
d.run(['docker','stop','-t','30',*['aixun-datagov-'+n for n in names]],timeout=150)
|
||||
for kind in TARGETS:restore_sql(kind,recovery/(kind+'.sql.gz'),before['counts'][kind])
|
||||
token=BASE/'m2/local/secrets/openmetadata-token';token.write_bytes((recovery/'openmetadata-token').read_bytes());os.chown(token,0,19888);token.chmod(0o440)
|
||||
imported=json.loads((record/'worker-import.json').read_text()) if (record/'worker-import.json').exists() else {}
|
||||
original={}
|
||||
for root in ('dags','dag_generated_configs'):original.update(tar_members((recovery/(root+'.tar')).read_bytes(),root))
|
||||
imported={name:digest for name,digest in imported.items() if name not in original}
|
||||
args=['docker','run','--rm','--pull','never','--network','none','--label','com.aixun.project=aixun-datagov','-i']
|
||||
for root,volume in {'dags':'aixun-datagov-local-m2-om-ingestion-dags','dag_generated_configs':'aixun-datagov-local-m2-om-ingestion-dag-configs'}.items():
|
||||
info=json.loads(d.run(['docker','volume','inspect',volume]))[0]
|
||||
d.need(info['Labels'].get('com.aixun.project')=='aixun-datagov','foreign recovery volume')
|
||||
args+=['--mount','type=volume,source='+volume+',target=/data/'+root]
|
||||
program='''import sys,json,hashlib
|
||||
from pathlib import Path,PurePosixPath
|
||||
for name,digest in json.load(sys.stdin).items():
|
||||
p=PurePosixPath(name)
|
||||
assert not p.is_absolute() and '..' not in p.parts and p.parts[0] in ('dags','dag_generated_configs')
|
||||
path=Path('/data').joinpath(*p.parts)
|
||||
if path.exists():
|
||||
assert path.is_file() and not path.is_symlink() and hashlib.sha256(path.read_bytes()).hexdigest()==digest
|
||||
path.unlink()
|
||||
'''
|
||||
d.run(args+['--entrypoint','python',d.HELPER,'-c',program],json.dumps(imported).encode())
|
||||
d.run(['docker','start','aixun-datagov-m2-openmetadata']);health('m2-openmetadata')
|
||||
rebuild_search(record)
|
||||
d.run(['docker','start','aixun-datagov-m2-om-ingestion','aixun-datagov-integration']);health('m2-om-ingestion')
|
||||
d.save(record/'native-restored.json',{'status':'RESTORED','at':time.time()})
|
||||
print('PASS: native pre-transfer state restored; verify search and application data consistency')
|
||||
|
||||
def main():
|
||||
action,path=sys.argv[1:];record=Path(path).resolve()
|
||||
if action=='export':export(record);return
|
||||
d.need(action in ('apply','restore'),'use export, apply or restore')
|
||||
with (BASE/'release.lock').open('a') as lock:
|
||||
fcntl.flock(lock,fcntl.LOCK_EX|fcntl.LOCK_NB);(apply if action=='apply' else restore)(record)
|
||||
|
||||
if __name__=='__main__':
|
||||
try:main()
|
||||
except Exception as exc:
|
||||
print(type(exc).__name__+': native transfer incomplete; inspect private markers and reconcile, do not repeat apply',file=sys.stderr);sys.exit(1)
|
||||
@@ -0,0 +1,185 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Bounded remote metadata transition; regular image releases still use runner.py."""
|
||||
import fcntl
|
||||
import hashlib
|
||||
import importlib.util
|
||||
import json
|
||||
from pathlib import Path
|
||||
import subprocess
|
||||
import sys
|
||||
import time
|
||||
import urllib.parse
|
||||
import urllib.request
|
||||
import yaml
|
||||
|
||||
BASE=Path('/opt/aixun-datagov')
|
||||
APPS=('integration','dataops','governance','frontend')
|
||||
LEGACY=('m2-om-ingestion','m2-openmetadata','m2-om-mysql','m2-om-airflow-mysql','m2-om-elasticsearch')
|
||||
ALTERED=('dg_external_mapping','ops_job_run_event','asset_identity_source_binding','asset_identity_source_observation')
|
||||
REMOVED_ENV=('AIXUN_DATAGOV_M2_OPENMETADATA_API_URL','AIXUN_DATAGOV_M2_OPENMETADATA_TOKEN_REF','AIXUN_DATAGOV_OPENMETADATA_URL')
|
||||
|
||||
def load(name,path):
|
||||
spec=importlib.util.spec_from_file_location(name,path);module=importlib.util.module_from_spec(spec);spec.loader.exec_module(module);return module
|
||||
|
||||
def nacos(content=None):
|
||||
values=dict(line.split('=',1) for line in (BASE/'.env').read_text().splitlines() if '=' in line)
|
||||
form=urllib.parse.urlencode({'username':values['AIXUN_DATAGOV_NACOS_USERNAME'],'password':values['AIXUN_DATAGOV_NACOS_PASSWORD']}).encode()
|
||||
with urllib.request.urlopen('http://127.0.0.1:28848/nacos/v3/auth/user/login',data=form,timeout=15) as response:token=json.load(response)['accessToken']
|
||||
params={'namespaceId':'aixun-datagov-local','groupName':'AIXUN_DATAGOV_GROUP','dataId':'aixun-integration.yml','accessToken':token}
|
||||
url='http://127.0.0.1:28848/nacos/v3/admin/cs/config'
|
||||
if content is None:
|
||||
request=urllib.request.Request(url+'?'+urllib.parse.urlencode(params))
|
||||
else:
|
||||
params.update(content=content,type='yaml')
|
||||
request=urllib.request.Request(url,data=urllib.parse.urlencode(params).encode(),method='POST')
|
||||
with urllib.request.urlopen(request,timeout=15) as response:result=json.load(response)
|
||||
if result.get('code')!=0:raise RuntimeError('Nacos request failed; reconcile')
|
||||
return result['data'] if content is None else result
|
||||
|
||||
def trim_config(content):
|
||||
config=yaml.safe_load(content);node=config['datagov']
|
||||
removed=[]
|
||||
for parent,key in ((node,'openmetadata'),(node.get('m2',{}),'openmetadata'),(node.get('external-entry',{}),'openmetadata-url')):
|
||||
if key in parent:parent.pop(key);removed.append(key)
|
||||
if node.get('external-entry')=={}:node.pop('external-entry')
|
||||
if len(removed)!=3:raise RuntimeError('Unexpected legacy Nacos configuration; review required')
|
||||
return yaml.safe_dump(config,allow_unicode=True,sort_keys=False)
|
||||
|
||||
def native(record,action):
|
||||
return d.run(['python3',str(record/'native-metadata-migrate.py'),action,'--batch','remote-final-01','--remote-record',str(record)],timeout=600)
|
||||
|
||||
def preflight(record):
|
||||
manifest=json.loads((record/'release.json').read_text())
|
||||
d.need(set(manifest['services'])==set(APPS),'unexpected affected applications')
|
||||
for name,expected in manifest['expected_remote'].items():
|
||||
c=d.own(name);d.need({'container':c['Id'],'image':c['Image']}==expected,'application drift')
|
||||
d.need(d.sql("SELECT COUNT(*) FROM information_schema.tables WHERE table_schema=DATABASE() AND table_name LIKE 'md_native_%'")=='0','native schema already exists; reconcile')
|
||||
history=d.sql('SELECT version,checksum_sha256,success FROM dg_schema_history ORDER BY version;')
|
||||
d.need(len(history.splitlines())==206 and history.splitlines()[-1].startswith('20261009.210\t'),'unexpected migration baseline')
|
||||
d.need(d.sql("SELECT COUNT(*) FROM md_ingestion_request WHERE request_status='PROCESSING' AND update_time>NOW()-INTERVAL 5 MINUTE")=='0','recent ingestion is processing')
|
||||
for name in LEGACY:d.need(d.own(name)['State']['Running'],'legacy component unexpectedly stopped')
|
||||
config=nacos();config=config['content'] if isinstance(config,dict) else config
|
||||
trim_config(config)
|
||||
return manifest,history,config
|
||||
|
||||
def transition(record):
|
||||
d.need(not (record/'native-transition-attempt.json').exists(),'existing transition attempt; reconcile first')
|
||||
manifest,history,content=preflight(record)
|
||||
runner=load('release_runner',record/'runner.py')
|
||||
manifest['pre_stop_runtime']={name:runner.identity(d.own(name)) for name in APPS}
|
||||
d.need(all(v['ip'] for item in manifest['pre_stop_runtime'].values() for v in item['networks'].values()),'empty pre-stop IP')
|
||||
d.save(record/'release.json',manifest)
|
||||
migrations=json.loads((record/'migrations.json').read_text())
|
||||
d.need([x['version'] for x in migrations]==['20261011.'+str(i) for i in range(211,218)],'unexpected migration scope')
|
||||
for item in migrations:d.need(d.sha(record/'sql'/Path(item['path']).name)==item['sha256'],'migration SHA mismatch')
|
||||
recovery=record/'native-recovery';recovery.mkdir(mode=0o700)
|
||||
(recovery/'compose.json').write_bytes((BASE/'compose.json').read_bytes());(recovery/'compose.json').chmod(0o600)
|
||||
(recovery/'integration.yml').write_text(content);(recovery/'integration.yml').chmod(0o600)
|
||||
d.save(recovery/'before.json',{'history':history,'legacy':{n:{'id':d.own(n)['Id'],'image':d.own(n)['Image']} for n in LEGACY},
|
||||
'applications':manifest['expected_remote'],'config_sha256':d.sha(recovery/'compose.json'),'nacos_sha256':d.sha(recovery/'integration.yml')})
|
||||
d.save(record/'native-transition-attempt.json',{'at':time.time(),'stage':'FREEZE','services':list(APPS),'legacy':list(LEGACY)})
|
||||
d.run(['docker','stop','-t','30',*['aixun-datagov-'+n for n in APPS], 'aixun-datagov-m2-om-ingestion'],timeout=180)
|
||||
counts=d.dump(recovery/'altered-tables.sql.gz',list(ALTERED))
|
||||
ddl={table:d.sql('SHOW CREATE TABLE `'+table+'`;') for table in ALTERED}
|
||||
d.save(recovery/'altered-tables.json',{'counts':counts,'ddl':ddl,'sha256':d.sha(recovery/'altered-tables.sql.gz')})
|
||||
# New native tables are additive; existing table changes only widen checks.
|
||||
for item in migrations:
|
||||
marker=record/('migration-'+item['version']+'.json')
|
||||
d.save(marker,{'status':'STARTED','sha256':item['sha256']})
|
||||
d.sql((record/'sql'/Path(item['path']).name).read_text())
|
||||
d.sql("INSERT INTO dg_schema_history(version,description,owner_unit,checksum_sha256,success) VALUES ('"+item['version']+"','"+Path(item['path']).stem+"','"+item['ownerUnit']+"','"+item['sha256']+"','1');")
|
||||
d.save(marker,{'status':'APPLIED','sha256':item['sha256']})
|
||||
print('APPLIED',item['version'],flush=True)
|
||||
d.need(d.counts(list(ALTERED))==counts,'existing table row counts changed')
|
||||
print(native(record,'inventory').decode().strip(),flush=True)
|
||||
print(native(record,'import').decode().strip(),flush=True)
|
||||
d.sql("UPDATE md_native_cutover SET write_enabled=FALSE WHERE domain_key='metadata' AND backend='OPENMETADATA';")
|
||||
print(native(record,'cutover').decode().strip(),flush=True)
|
||||
updated=trim_config(content);nacos(updated)
|
||||
observed=nacos();observed=observed['content'] if isinstance(observed,dict) else observed
|
||||
d.need(yaml.safe_load(observed)==yaml.safe_load(updated),'Nacos readback mismatch')
|
||||
model=json.loads((BASE/'compose.json').read_text());removed=[]
|
||||
for key in REMOVED_ENV:
|
||||
d.need(key in model['services']['integration']['environment'],'legacy environment drift')
|
||||
model['services']['integration']['environment'].pop(key);removed.append(key)
|
||||
for name in (*LEGACY,'m2-om-migrate'):model['services'][name]['profiles']=['legacy-metadata-recovery']
|
||||
d.save(BASE/'compose.json',model)
|
||||
d.save(record/'native-transition-result.json',{'status':'READY_FOR_IMAGE_APPLY','backend':'NATIVE','writes_enabled':False,
|
||||
'migration_versions':[x['version'] for x in migrations],'removed_environment':removed,'nacos_sha256':hashlib.sha256(observed.encode()).hexdigest(),
|
||||
'compose_sha256':d.sha(BASE/'compose.json'),'migration':json.loads((record/'metadata-migration/remote-final-01/report.json').read_text())})
|
||||
print('PASS: native metadata verified; writes fenced until image/read verification',flush=True)
|
||||
|
||||
def finalize(record):
|
||||
result=json.loads((record/'result.json').read_text());d.need(result['status']=='PASS','application verification not passed')
|
||||
d.need((record/'native-read-verification.json').is_file(),'metadata/API verification required')
|
||||
d.need(json.loads((record/'native-read-verification.json').read_text())['status']=='PASS','metadata/API verification failed')
|
||||
d.need(d.sql("SELECT backend,write_enabled FROM md_native_cutover WHERE domain_key='metadata'")=='NATIVE\t0','unexpected native write state')
|
||||
before=json.loads((record/'native-recovery/before.json').read_text())
|
||||
for name,item in before['legacy'].items():d.need(d.own(name)['Id']==item['id'] and d.own(name)['Image']==item['image'],'legacy identity drift')
|
||||
d.run(['docker','stop','-t','30',*['aixun-datagov-'+n for n in LEGACY]],timeout=180)
|
||||
d.need(all(not d.own(n)['State']['Running'] for n in LEGACY),'legacy still running')
|
||||
d.sql("UPDATE md_native_cutover SET write_enabled=TRUE WHERE domain_key='metadata' AND backend='NATIVE' AND write_enabled=FALSE;")
|
||||
d.need(d.sql("SELECT backend,write_enabled FROM md_native_cutover WHERE domain_key='metadata'")=='NATIVE\t1','write enable result unknown')
|
||||
d.save(record/'native-final-result.json',{'status':'PASS','backend':'NATIVE','writes_enabled':True,'legacy_stopped':list(LEGACY),'legacy_volumes':'RETAINED','at':time.time()})
|
||||
print('PASS: native metadata active; only the five replaced legacy components stopped')
|
||||
|
||||
def recover_before_writes(record):
|
||||
"""Only the fenced deployment window is eligible; never discard native writes."""
|
||||
d.need(not (record/'native-final-result.json').exists(),'native writes were enabled; forward repair or explicit data reconciliation required')
|
||||
d.need(d.sql("SELECT backend,write_enabled FROM md_native_cutover WHERE domain_key='metadata'")=='NATIVE\t0','not the fenced deployment window')
|
||||
d.need(d.sql('SELECT (SELECT COUNT(*) FROM md_native_revision)+(SELECT COUNT(*) FROM md_native_job)+(SELECT COUNT(*) FROM md_native_entity WHERE row_version<>0)')=='0','native writes exist; recovery refused')
|
||||
recovery=record/'native-recovery';before=json.loads((recovery/'before.json').read_text())
|
||||
d.need(d.sha(recovery/'compose.json')==before['config_sha256'] and d.sha(recovery/'integration.yml')==before['nacos_sha256'],'recovery configuration checksum mismatch')
|
||||
runner=load('release_runner',record/'runner.py')
|
||||
old=json.loads((recovery/'compose.json').read_text());expected=json.loads(json.dumps(old))
|
||||
for key in REMOVED_ENV:expected['services']['integration']['environment'].pop(key)
|
||||
for name in (*LEGACY,'m2-om-migrate'):expected['services'][name]['profiles']=['legacy-metadata-recovery']
|
||||
reconciled=record/'network-reconciliation-result.json'
|
||||
if reconciled.exists():
|
||||
networks=json.loads(reconciled.read_text())['expected_networks']
|
||||
for name in APPS:
|
||||
for key,value in expected['services'][name]['networks'].items():
|
||||
value['ipv4_address']=networks[name][expected['networks'][key]['name']]['ip']
|
||||
d.need(runner.configuration_without_images(json.loads((BASE/'compose.json').read_text()))==runner.configuration_without_images(expected),'configuration changed after transition')
|
||||
networks={}
|
||||
for name in APPS:
|
||||
c=d.own(name);runner.resources(c)
|
||||
networks[name]=runner.frozen_networks(c,json.loads((record/'result.json').read_text()).get('after',{}).get(name))
|
||||
d.run(['docker','stop','-t','30',*['aixun-datagov-'+n for n in APPS]],timeout=150)
|
||||
# All old data and IDs remain in the old vendor volumes; additive tables and
|
||||
# widened checks are retained. This deliberately performs no DB down migration.
|
||||
d.sql("UPDATE md_native_cutover SET backend='OPENMETADATA',epoch=epoch+1 WHERE domain_key='metadata' AND backend='NATIVE' AND write_enabled=FALSE;")
|
||||
nacos((recovery/'integration.yml').read_text())
|
||||
d.save(BASE/'compose.json',old)
|
||||
model=json.loads(d.run(['docker','compose','--project-directory',str(BASE),'--env-file',str(BASE/'.env'),'-p',d.PROJECT,'-f',str(BASE/'compose.json'),'config','--format','json']))
|
||||
for name in APPS:
|
||||
for key,value in model['services'][name]['networks'].items():value['ipv4_address']=networks[name][model['networks'][key]['name']]['ip']
|
||||
for kind in ('networks','volumes'):
|
||||
model[kind]={k:{'name':v['name'],'external':True} for k,v in model.get(kind,{}).items()}
|
||||
model['services']={k:model['services'][k] for k in APPS}
|
||||
runner.compose(BASE,model,list(APPS))
|
||||
d.run(['docker','start',*['aixun-datagov-'+n for n in LEGACY]],timeout=120)
|
||||
deadline=time.monotonic()+240
|
||||
while True:
|
||||
health=runner.health(APPS)
|
||||
if all(v=='PASS' for v in health.values()) or time.monotonic()>deadline:break
|
||||
time.sleep(5)
|
||||
d.save(record/'native-recovery-result.json',{'health':health,'schema':'additive migrations retained','native_data_deleted':False})
|
||||
d.need(all(v=='PASS' for v in health.values()),'recovery health incomplete; reconcile')
|
||||
print('PASS: pre-write application/configuration recovery; verify legacy business APIs')
|
||||
|
||||
def main():
|
||||
global d
|
||||
action,directory=sys.argv[1:];record=Path(directory).resolve()
|
||||
if record.parent!=BASE/'releases':raise RuntimeError('Invalid remote release directory')
|
||||
d=load('transfer',record/'data-transfer.py')
|
||||
if action=='preflight':preflight(record);print('PASS: remote transition preflight');return
|
||||
d.need(action in ('transition','finalize','recover-before-writes'),'use preflight, transition, finalize or recover-before-writes')
|
||||
with (BASE/'release.lock').open('a') as lock:
|
||||
fcntl.flock(lock,fcntl.LOCK_EX|fcntl.LOCK_NB)
|
||||
{'transition':transition,'finalize':finalize,'recover-before-writes':recover_before_writes}[action](record)
|
||||
|
||||
if __name__=='__main__':
|
||||
try:main()
|
||||
except Exception as exc:
|
||||
print(type(exc).__name__+': transition incomplete; reconcile private markers; no blind retry',file=sys.stderr);sys.exit(1)
|
||||
@@ -0,0 +1,72 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Read-only HTTPS checks for the native metadata transition. No scans or AI calls."""
|
||||
import hashlib
|
||||
import importlib.util
|
||||
import json
|
||||
from pathlib import Path
|
||||
import sys
|
||||
import urllib.parse
|
||||
|
||||
def load(name,path):
|
||||
spec=importlib.util.spec_from_file_location(name,path);module=importlib.util.module_from_spec(spec);spec.loader.exec_module(module);return module
|
||||
|
||||
def digest(value):return hashlib.sha256(json.dumps(value,sort_keys=True,ensure_ascii=False,separators=(',',':')).encode()).hexdigest()
|
||||
|
||||
def main():
|
||||
phase,directory=sys.argv[1:];record=Path(directory).resolve()
|
||||
assert phase in ('before','after','final') and record.parent==Path('/opt/aixun-datagov/releases')
|
||||
sm=load('smoke',record/'smoke.py');sm.URL='https://v.aixunkeji.cn/prod-api'
|
||||
_,body=sm.request('/auth/login',data={'tenantId':'000000','username':'admin','password':(sm.BASE/'secrets/admin-password').read_text(),'clientId':sm.CLIENT,'grantType':'password'})
|
||||
assert body['code']==200;token=body['data']['access_token']
|
||||
def get(path):
|
||||
status,body=sm.request(path,token)
|
||||
if status!=200 or body.get('code')!=200:raise RuntimeError('Read check failed: '+path.split('?')[0]+' HTTP '+str(status)+' code '+str(body.get('code')))
|
||||
return body['data']
|
||||
try:
|
||||
state={'assets':{},'datasets':{},'catalog':{},'details':{},'types':{}}
|
||||
assets=get('/api/governance/v1/asset-details?pageNum=1&pageSize=100')
|
||||
assert isinstance(assets,list) and len(assets)<100
|
||||
for asset in assets:
|
||||
identity=str(asset['assetDetailId']);state['assets'][identity]=get('/api/governance/v1/asset-details/'+identity)
|
||||
datasets=get('/api/dataproduct/v1/dataset-publications?pageNum=1&pageSize=100')
|
||||
assert datasets['total']==len(datasets['rows'])
|
||||
for item in datasets['rows']:
|
||||
identity=str(item['datasetId']);state['datasets'][identity]=get('/api/dataproduct/v1/dataset-publications/'+identity)
|
||||
source_page=get('/api/governance/v1/metadata-catalog/source-options');assert not source_page.get('beforeSourceId')
|
||||
for source in source_page['items']:
|
||||
source_id=str(source['sourceId']);items=[];after=None;cursors=set()
|
||||
for _ in range(100):
|
||||
params={'sourceId':source_id,'entityType':'TABLE','limit':2}
|
||||
if after:params['after']=after
|
||||
page=get('/api/governance/v1/metadata-catalog?'+urllib.parse.urlencode(params));items.extend(page['items']);after=page.get('after')
|
||||
if not after:break
|
||||
assert after not in cursors;cursors.add(after)
|
||||
else:raise RuntimeError('pagination exceeded bound')
|
||||
ids=[item['externalId'] for item in items];assert len(ids)==len(set(ids));state['catalog'][source_id]=sorted(ids)
|
||||
for item in items:
|
||||
path='/api/governance/v1/metadata-catalog/TABLE/'+item['externalId']+'?sourceId='+source_id
|
||||
detail=get(path);assert detail['item']['externalId']==item['externalId'];state['details'][item['externalId']]=detail
|
||||
for category in ('ENTITY','FIELD'):
|
||||
types=get('/api/governance/v1/meta-models/external-types?category='+category+'&limit=100');state['types'][category]=types
|
||||
get('/system/user/getInfo');get('/system/menu/getRouters')
|
||||
for path in ('/api/integration/v1/data-sources','/api/dataops/v1/storage-resources?pageNum=1&pageSize=10','/api/governance/v1/standard-systems?pageNum=1&pageSize=10'):
|
||||
get(path)
|
||||
status,body=sm.request('/api/governance/v1/metadata-catalog/source-options');assert status==401 or body.get('code')==401
|
||||
private=record/'api';private.mkdir(mode=0o700,exist_ok=True)
|
||||
path=private/(phase+'.json');assert not path.exists();path.write_text(json.dumps(state,ensure_ascii=False)+'\n');path.chmod(0o600)
|
||||
result={'status':'PASS','phase':phase,'https_login':'PASS','anonymous_denied':True,'assets':len(state['assets']),'datasets':len(state['datasets']),
|
||||
'catalog_sources':len(state['catalog']),'catalog_tables':sum(len(x) for x in state['catalog'].values()),'pagination_unique':True,
|
||||
'types':{k:len(v) for k,v in state['types'].items()},'business_lists':'PASS'}
|
||||
if phase!='before':
|
||||
baseline=json.loads((private/'before.json').read_text())
|
||||
for key in ('assets','datasets','catalog'):
|
||||
assert state[key]==baseline[key],key+' changed';result[key+'_preserved']=True
|
||||
result['baseline_assets_sha256']=digest(baseline['assets']);result['baseline_datasets_sha256']=digest(baseline['datasets'])
|
||||
output=record/('native-read-verification.json' if phase=='after' else 'native-'+phase+'-verification.json')
|
||||
output.write_text(json.dumps(result,indent=2)+'\n');output.chmod(0o600);print(json.dumps(result))
|
||||
finally:sm.request('/auth/logout',token,data={},method='POST')
|
||||
|
||||
if __name__=='__main__':
|
||||
try:main()
|
||||
except Exception as exc:
|
||||
print(type(exc).__name__+': native read verification incomplete; private responses retained',file=sys.stderr);sys.exit(1)
|
||||
@@ -0,0 +1,168 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Prepare a fresh-target deployment payload; never reads local .env or business DB."""
|
||||
import hashlib
|
||||
import json
|
||||
from pathlib import Path
|
||||
import subprocess
|
||||
import sys
|
||||
import tarfile
|
||||
import io
|
||||
|
||||
ROOT=Path(__file__).resolve().parents[3]
|
||||
BASE=ROOT/'script/datagov'
|
||||
HERE=Path(__file__).resolve().parent
|
||||
APPS=('gateway','auth','system','resource','integration','dataops','governance','dataproduct','frontend')
|
||||
|
||||
def yaml(path):
|
||||
return json.loads(subprocess.check_output(['ruby','-ryaml','-rjson','-e','puts JSON.generate(YAML.safe_load(File.read(ARGV[0]), [], [], true))',str(path)]))
|
||||
|
||||
def first_install_164(source):
|
||||
# This old migration was frozen to one historical local role/history snapshot.
|
||||
# Preserve all business identity, menu and delta guards, replacing only the
|
||||
# local snapshot constraints with the fresh target's catalog verification.
|
||||
start=source.index('-- Match the complete approved role/menu and migration sets, not just counts.')
|
||||
end=source.index('INSERT INTO tmp_dg130_guard SELECT 1 WHERE\n (SELECT COUNT(*) FROM sys_user',start)
|
||||
source=source[:start]+'-- Fresh installation: catalog checksums are verified by the explicit remote runner.\n'+source[end:]
|
||||
old="OR EXISTS(SELECT 1 FROM dg_schema_history WHERE version IN ('20260920.158','20260920.159','20260920.160','20260920.161','20260920.162','20260921.164'));"
|
||||
need_count=source.count(old)
|
||||
if need_count!=1: raise ValueError('unexpected migration 164 shape')
|
||||
source=source.replace(old,"OR EXISTS(SELECT 1 FROM dg_schema_history WHERE version='20260921.164');")
|
||||
return source.replace('-- Execute only the approved exact-164 runner; never apply pending 158-162.','-- Remote fresh-install variant: source snapshot guards replaced; original migration remains unchanged.')
|
||||
|
||||
def first_install_191(source):
|
||||
# Migration 135 intentionally hides the old storage entry after introducing
|
||||
# unified ingestion. The historical live environment later made it visible.
|
||||
# Fresh installation preserves 135 and changes only 191's expected pre-state.
|
||||
old="AND menu_type='C' AND status='0' AND visible='0')<>1"
|
||||
if source.count(old)!=1: raise ValueError('unexpected migration 191 shape')
|
||||
return '-- Fresh-install variant: preserve migration 135 hidden storage entry.\n'+source.replace(old,"AND menu_type='C' AND status='0' AND visible='1')<>1")
|
||||
|
||||
def main():
|
||||
version=sys.argv[1]
|
||||
manifest=json.loads((HERE/'releases'/version/'release.json').read_text())
|
||||
target=json.loads((HERE/'test-v.json').read_text())
|
||||
base=yaml(BASE/'docker-compose.local.yml'); m2=yaml(BASE/'m2/docker-compose.yml')
|
||||
model={'name':target['project'],'services':{n:base['services'][n] for n in ('mysql','redis','nacos')},'networks':base['networks'],'volumes':base['volumes']}
|
||||
for field in ('networks','volumes','secrets'): model.setdefault(field,{}).update(m2.get(field,{}))
|
||||
model['services'].update({k:v for k,v in m2['services'].items() if k not in ('integration','m2-source-mysql','m2-openmetadata') and not k.startswith('m2-om-')})
|
||||
model['x-datagov-metadata-backend']='NATIVE'
|
||||
for name in APPS:
|
||||
conf=json.loads((BASE/'deployment'/(name+'.json')).read_text())
|
||||
app=conf['services'][name]
|
||||
app['image']=manifest['services'][name]['id']
|
||||
app['networks']={n:{} for n in app['networks']}
|
||||
env=app.get('environment',{})
|
||||
if isinstance(env,list): env=dict(item.split('=',1) for item in env)
|
||||
env.pop('SPRING_CLOUD_NACOS_DISCOVERY_IP',None)
|
||||
if name=='integration':
|
||||
env['AIXUN_DATAGOV_M2_ENABLED']='true'
|
||||
# No local POC source database or business fixture is copied remotely.
|
||||
for key in list(env):
|
||||
if key.startswith('AIXUN_DATAGOV_M2_SOURCE_'): del env[key]
|
||||
for key in list(env):
|
||||
if 'OPENMETADATA' in key:del env[key]
|
||||
if env: app['environment']=env
|
||||
model['services'][name]=app
|
||||
for k,v in conf.get('volumes',{}).items():
|
||||
model['volumes'][k]={'name':v['name'],'labels':{'com.aixun.project':'aixun-datagov','com.aixun.environment':'test'}}
|
||||
model['services']['m2-seatunnel'].pop('depends_on',None)
|
||||
# Native schema migration is an explicit, recorded first-install action.
|
||||
scheduler=model['services']['m2-dolphinscheduler']
|
||||
scheduler['command']=['/bin/bash','/opt/aixun-datagov/dolphinscheduler-remote-start.sh']
|
||||
# Local Compose now declares persistence; replace these exact targets with the remote payload paths.
|
||||
scheduler['volumes']=[mount for mount in scheduler['volumes']
|
||||
if (mount.split(':')[1] if isinstance(mount,str) else mount['target']) not in
|
||||
('/var/lib/aixun-datagov/dolphinscheduler','/opt/aixun-datagov/dolphinscheduler-remote-start.sh')]
|
||||
scheduler['volumes']+=['m2-dolphinscheduler-data:/var/lib/aixun-datagov/dolphinscheduler','./m2/dolphinscheduler/remote-start.sh:/opt/aixun-datagov/dolphinscheduler-remote-start.sh:ro']
|
||||
model['volumes']['m2-dolphinscheduler-data']={'name':'aixun-datagov-local-m2-dolphinscheduler-data'}
|
||||
model['services']['frontend']['ports']=['127.0.0.1:'+str(target['frontend_port'])+':80']
|
||||
model['services']['frontend'].setdefault('volumes',[]).append({'type':'bind','source':'./nginx/frontend.conf','target':'/etc/nginx/conf.d/default.conf','read_only':True})
|
||||
model['volumes'].pop('m2-source-mysql-data',None)
|
||||
model['secrets'].pop('source_mysql_root_password',None)
|
||||
model['secrets'].pop('source_password',None)
|
||||
for kind in ('networks','volumes','secrets'):
|
||||
model[kind]={k:v for k,v in model[kind].items() if not k.startswith(('m2-om-','om_','openmetadata_'))}
|
||||
mysql=model['services']['mysql']
|
||||
mysql['volumes']=['mysql-data:/var/lib/mysql','./bootstrap/seed.sql:/opt/aixun-datagov/source/aixun-cloud.sql:ro','./mysql/00-init-system.sh:/docker-entrypoint-initdb.d/00-init-system.sh:ro','./mysql/01-m0-disable-inactive.sql:/docker-entrypoint-initdb.d/01-m0-disable-inactive.sql:ro']
|
||||
# Dedicated remote allocation was checked against the server network inventory.
|
||||
model['networks']['m2-doris-private']['ipam']['config']=[{'subnet':target['doris_subnet']}]
|
||||
text=json.dumps(model).replace('172.27.41.2','10.243.41.2').replace('172.27.41.3','10.243.41.3')
|
||||
model=json.loads(text)
|
||||
for service in model['services'].values():
|
||||
service.pop('build',None); service.pop('profiles',None)
|
||||
if isinstance(service['labels'],list): service['labels']=dict(x.split('=',1) for x in service['labels'])
|
||||
service['labels']['com.aixun.environment']='test'
|
||||
service['labels'].pop('com.aixun.task',None)
|
||||
if service.get('secrets'): service['group_add']=['19888']
|
||||
for kind in ('networks','volumes'):
|
||||
for entry in model[kind].values():
|
||||
entry.pop('external',None)
|
||||
entry['labels']={'com.aixun.project':'aixun-datagov','com.aixun.environment':'test'}
|
||||
bindings={}
|
||||
for name in ('components.json','registry-fallback.json'):
|
||||
file=HERE/'releases'/version/name
|
||||
if file.exists(): bindings.update(json.loads(file.read_text()))
|
||||
for name,image in bindings.items():
|
||||
if name in model['services']: model['services'][name]['image']=image['id']
|
||||
for service,source in [('m2-hive-metastore','m2-hive')]:
|
||||
if source in bindings: model['services'][service]['image']=bindings[source]['id']
|
||||
payload={}
|
||||
frontend=(BASE/'nginx/default.conf').read_text()
|
||||
old='proxy_set_header X-Forwarded-Proto $scheme;'
|
||||
if frontend.count(old)!=1: raise ValueError('unexpected frontend proxy configuration')
|
||||
frontend='map $http_x_forwarded_proto $datagov_scheme { default $scheme; https https; }\n\n'+frontend.replace(old,'proxy_set_header X-Forwarded-Proto $datagov_scheme;')
|
||||
payload['nginx/frontend.conf']=frontend.encode()
|
||||
payload['m2/dolphinscheduler/remote-start.sh']=(HERE/'dolphinscheduler-start.sh').read_bytes()
|
||||
def add(path,name=None): payload[name or path.relative_to(BASE).as_posix()]=path.read_bytes()
|
||||
for path in [BASE/'nacos-startup.sh',BASE/'mysql/00-init-system.sh',BASE/'mysql/01-m0-disable-inactive.sql',BASE/'m2/generate-local-secrets.sh']:
|
||||
add(path)
|
||||
for name in ('bootstrap-dolphinscheduler.sh','bootstrap-hive.sh','bootstrap-doris.sh'):
|
||||
path=BASE/'m2'/name; data=path.read_text()
|
||||
if name=='bootstrap-dolphinscheduler.sh': data=data.replace("date -v+1y", "date -d '+1 year'")
|
||||
if name=='bootstrap-doris.sh':
|
||||
start=data.index('set +e\ndocker exec -i aixun-datagov-m2-doris-fe')
|
||||
end=data.index('sed -E ',start)
|
||||
data=data[:start]+'''docker exec -i -e MYSQL_PWD="${root_password}" aixun-datagov-m2-doris-fe \\
|
||||
mysql --protocol=TCP -h127.0.0.1 -P9030 -uroot \\
|
||||
<"${sql}" >"${EVIDENCE_DIR}/bootstrap-readback.raw.tsv"
|
||||
'''+data[end:]
|
||||
if name=='bootstrap-hive.sh':
|
||||
data=data.replace('SELECT * FROM aixun_m2.must_not_exist','SELECT * FROM aixun_m2.m2_orders_valid LIMIT 1')
|
||||
# Fresh target has no old database-wide grant; REVOKE ALL would fail
|
||||
# before the two intended table-scoped grants on Hive 4.2.
|
||||
data=data.replace('REVOKE ALL ON DATABASE aixun_m2 FROM USER aixun_m2_hive_loader;', '')
|
||||
payload['m2/'+name]=data.encode()
|
||||
for service in model['services'].values():
|
||||
for volume in service.get('volumes',[]):
|
||||
source=volume.split(':')[0] if isinstance(volume,str) else volume['source']
|
||||
if source.startswith('./') and not source.startswith('./bootstrap/'):
|
||||
path=BASE/source[2:]
|
||||
if path.is_file() and source[2:] not in payload: add(path)
|
||||
for path in (ROOT/'script/config/datagov/nacos').glob('*.yml'): add(path,'nacos/'+path.name)
|
||||
add(ROOT/'script/sql/aixun_cloud.sql','bootstrap/seed.sql')
|
||||
catalog=yaml(ROOT/'db/migration/catalog.yml')
|
||||
for migration in catalog['migrations']:
|
||||
path=ROOT/migration['path']
|
||||
if hashlib.sha256(path.read_bytes()).hexdigest()!=migration['sha256']: raise ValueError('migration checksum drift '+migration['version'])
|
||||
add(path,migration['path'])
|
||||
variants={'20260921.164':first_install_164,'20260923.191':first_install_191}
|
||||
if migration['version'] in variants:
|
||||
migration['source_path']=migration['path']; migration['source_sha256']=migration['sha256']
|
||||
migration['path']='bootstrap/migrations/V'+migration['version']+'__fresh_install.sql'
|
||||
data=variants[migration['version']](path.read_text()).encode()
|
||||
payload[migration['path']]=data
|
||||
migration['sha256']=hashlib.sha256(data).hexdigest()
|
||||
payload['bootstrap/catalog.json']=json.dumps(catalog,indent=2).encode()
|
||||
payload['compose.json']=json.dumps(model,indent=2).encode()
|
||||
add(HERE/'bootstrap.py','bootstrap/bootstrap.py')
|
||||
output=ROOT/'.cache'/('remote-bootstrap-'+version+'.tar.gz')
|
||||
output.parent.mkdir(exist_ok=True)
|
||||
with tarfile.open(output,'w:gz') as archive:
|
||||
for name,data in sorted(payload.items()):
|
||||
entry=tarfile.TarInfo(name); entry.size=len(data); entry.mode=0o755 if name.endswith('.sh') else 0o644
|
||||
archive.addfile(entry,io.BytesIO(data))
|
||||
inventory={name:hashlib.sha256(data).hexdigest() for name,data in payload.items()}
|
||||
(HERE/'releases'/version/'bootstrap-files.json').write_text(json.dumps(inventory,indent=2)+'\n')
|
||||
print(json.dumps({'archive':str(output),'sha256':hashlib.sha256(output.read_bytes()).hexdigest(),'files':len(payload),'services':list(model['services'])}))
|
||||
|
||||
if __name__=='__main__': main()
|
||||
@@ -0,0 +1,150 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Local image binding and SSH transport; never redirects the local deploy tool."""
|
||||
import argparse
|
||||
import hashlib
|
||||
import json
|
||||
import os
|
||||
from pathlib import Path
|
||||
import re
|
||||
import shlex
|
||||
import subprocess
|
||||
import sys
|
||||
import tempfile
|
||||
import tarfile
|
||||
import io
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[3]
|
||||
HERE = Path(__file__).resolve().parent
|
||||
APPS = ('gateway', 'auth', 'system', 'resource', 'integration', 'dataops', 'governance', 'dataproduct', 'frontend')
|
||||
|
||||
def run(args, **kwargs):
|
||||
p = subprocess.run(args, cwd=ROOT, capture_output=True, **kwargs)
|
||||
if p.returncode:
|
||||
raise RuntimeError('command failed: ' + Path(args[0]).name + '; raw output withheld')
|
||||
return p.stdout
|
||||
|
||||
def write(path, data):
|
||||
path.parent.mkdir(parents=True, exist_ok=True)
|
||||
path.write_text(json.dumps(data, indent=2, ensure_ascii=False) + '\n')
|
||||
|
||||
def sha(path):
|
||||
h = hashlib.sha256()
|
||||
with path.open('rb') as f:
|
||||
for b in iter(lambda: f.read(1024*1024), b''): h.update(b)
|
||||
return h.hexdigest()
|
||||
|
||||
def main():
|
||||
p = argparse.ArgumentParser(description=__doc__)
|
||||
p.add_argument('--target', default='test-v')
|
||||
sub = p.add_subparsers(dest='action', required=True)
|
||||
sub.add_parser('inspect')
|
||||
q = sub.add_parser('prepare')
|
||||
q.add_argument('version')
|
||||
q.add_argument('--services', nargs='+', choices=APPS, required=True)
|
||||
q.add_argument('--image', action='append', default=[], help='SERVICE=exact-image-tag; defaults to current local released image')
|
||||
for action in ('transfer', 'apply', 'verify', 'rollback'):
|
||||
q = sub.add_parser(action); q.add_argument('version')
|
||||
args = p.parse_args()
|
||||
if not re.fullmatch(r'[a-z0-9-]+', args.target): p.error('invalid target')
|
||||
target = json.loads((HERE/(args.target+'.json')).read_text())
|
||||
ssh = ['ssh', '-p', str(target['port']), '-o', 'StrictHostKeyChecking=yes', '-o', 'ConnectTimeout=15']
|
||||
sock = ROOT / target['ssh_control_path']
|
||||
if sock.exists(): ssh += ['-S', str(sock)]
|
||||
destination = target['user']+'@'+target['host']
|
||||
def remote(command, **kw): return run(ssh+[destination, command], **kw)
|
||||
if args.action == 'inspect':
|
||||
print(remote("uname -m; docker version --format '{{.Server.Version}} {{.Server.Os}}/{{.Server.Arch}}'; docker compose version; docker ps -a --filter label=com.aixun.project=aixun-datagov --format '{{.Names}}|{{.Image}}|{{.Status}}'; df -h /", text=True))
|
||||
return
|
||||
if not re.fullmatch(r'[a-z0-9][a-z0-9_.-]{0,79}', args.version): p.error('invalid version')
|
||||
record = HERE/'releases'/args.version
|
||||
manifest_file = record/'release.json'
|
||||
remote_record = target['directory']+'/releases/'+args.version
|
||||
if args.action == 'prepare':
|
||||
if manifest_file.exists(): p.error('version already exists')
|
||||
overrides = dict(x.split('=', 1) for x in args.image)
|
||||
if not set(overrides) <= set(args.services): p.error('image override outside service scope')
|
||||
images = {}
|
||||
for service in args.services:
|
||||
if service in overrides:
|
||||
ref = overrides[service]
|
||||
else:
|
||||
c = json.loads(run(['docker','inspect','aixun-datagov-'+service]))[0]
|
||||
if c['Config']['Labels'].get('com.aixun.project') != 'aixun-datagov': p.error('foreign local container')
|
||||
ref = c['Image']
|
||||
info = json.loads(run(['docker','image','inspect',ref]))[0]
|
||||
if info['Os']+'/'+info['Architecture'] != target['platform']: p.error('image platform mismatch')
|
||||
if info['Config'].get('Labels',{}).get('com.aixun.project') != 'aixun-datagov': p.error('foreign image')
|
||||
sys.path.insert(0, str(HERE.parent))
|
||||
from deployment_artifacts import image_artifact, tree_digest
|
||||
image_env=dict(item.split('=',1) for item in info['Config'].get('Env',[]) if '=' in item)
|
||||
frontend_source=image_env.get('AIXUN_DATAGOV_FRONTEND_SOURCE','/opt/aixun-datagov/frontend-current')
|
||||
if service=='frontend' and not re.fullmatch(r'/opt/aixun-datagov/frontend-[a-zA-Z0-9_.-]+',frontend_source):
|
||||
p.error('unexpected frontend artifact source')
|
||||
if service not in overrides:
|
||||
prefix = frontend_source if service=='frontend' else '/aixun-datagov/app/app.jar'
|
||||
changes=run(['docker','diff',c['Id']],text=True).splitlines()
|
||||
if any(line[2:]==prefix or line[2:].startswith(prefix+'/') for line in changes):
|
||||
p.error('released container artifact changed; supply explicit immutable image')
|
||||
payload=run(['docker','cp',c['Id']+':'+prefix,'-'])
|
||||
with tarfile.open(fileobj=io.BytesIO(payload)) as archive:
|
||||
records={}
|
||||
for item in archive:
|
||||
if item.isfile():
|
||||
data=archive.extractfile(item).read()
|
||||
records[item.name.split('/',1)[-1]]=hashlib.sha256(data).hexdigest()
|
||||
artifact=tree_digest(records) if service=='frontend' else next(iter(records.values()))
|
||||
else:
|
||||
process = subprocess.Popen(['docker','image','save',info['Id']],stdout=subprocess.PIPE,stderr=subprocess.DEVNULL)
|
||||
try:
|
||||
artifact = image_artifact(process.stdout, service=='frontend',frontend_source)
|
||||
if process.wait(): raise RuntimeError('image stream failed')
|
||||
finally:
|
||||
process.stdout.close()
|
||||
if process.poll() is None: process.kill(); process.wait()
|
||||
tag = 'aixun-datagov/'+service+':'+args.version
|
||||
run(['docker','tag',info['Id'],tag])
|
||||
images[service] = {'tag':tag,'id':info['Id'],'artifact_sha256':artifact,'platform':target['platform'],'source':ref}
|
||||
if service=='frontend': images[service]['artifact_path']=frontend_source
|
||||
print('Bound',service,info['Id'],flush=True)
|
||||
probe="import json,subprocess\nresult={}\nfor name in "+repr(args.services)+":\n p=subprocess.run(['docker','inspect','aixun-datagov-'+name],capture_output=True)\n if p.returncode: result[name]=None; continue\n c=json.loads(p.stdout)[0]\n assert c['Config'].get('Labels',{}).get('com.aixun.project')=='aixun-datagov'\n assert c['Config']['Labels'].get('com.docker.compose.project')=='aixun-datagov-local'\n result[name]={'container':c['Id'],'image':c['Image']}\nprint(json.dumps(result))\n"
|
||||
expected=json.loads(remote('python3 -',input=probe.encode()))
|
||||
write(manifest_file, {'version':args.version,'target':target['name'],'services':images,'expected_remote':expected,'database_change':False,'config_change':False})
|
||||
return
|
||||
manifest = json.loads(manifest_file.read_text())
|
||||
if manifest['target'] != target['name']: p.error('target mismatch')
|
||||
if args.action == 'transfer':
|
||||
remote('umask 077; mkdir -p '+shlex.quote(remote_record))
|
||||
for name in ('runner.py',):
|
||||
remote('cat > '+shlex.quote(remote_record+'/'+name), input=(HERE/name).read_bytes())
|
||||
remote('cat > '+shlex.quote(remote_record+'/release.json'),input=manifest_file.read_bytes())
|
||||
# One disposable compressed image archive, always removed locally and remotely.
|
||||
with tempfile.TemporaryDirectory(prefix='remote-transfer-',dir=ROOT/'.cache') as tmp:
|
||||
archive = Path(tmp)/'images.tar.gz'
|
||||
save = subprocess.Popen(['docker','image','save',*[x['tag'] for x in manifest['services'].values()]],stdout=subprocess.PIPE,stderr=subprocess.DEVNULL)
|
||||
with archive.open('wb') as out:
|
||||
zip_process = subprocess.run(['gzip','-1'],stdin=save.stdout,stdout=out)
|
||||
save.stdout.close()
|
||||
if zip_process.returncode or save.wait(): raise RuntimeError('image export failed')
|
||||
checksum = sha(archive)
|
||||
manifest['transfer_sha256'] = checksum
|
||||
write(manifest_file, manifest)
|
||||
remote('cat > '+shlex.quote(remote_record+'/release.json'),input=manifest_file.read_bytes())
|
||||
remote_path = remote_record+'/images.tar.gz'
|
||||
try:
|
||||
with archive.open('rb') as inp:
|
||||
result = subprocess.run(ssh+[destination,'cat > '+shlex.quote(remote_path)],stdin=inp)
|
||||
if result.returncode: raise RuntimeError('image upload failed')
|
||||
print(remote('python3 '+shlex.quote(remote_record+'/runner.py')+' load '+shlex.quote(remote_record),text=True))
|
||||
finally:
|
||||
remote('rm -f -- '+shlex.quote(remote_path))
|
||||
return
|
||||
command = 'python3 '+shlex.quote(remote_record+'/runner.py')+' '+args.action+' '+shlex.quote(remote_record)
|
||||
result = subprocess.run(ssh+[destination,command],cwd=ROOT)
|
||||
if result.returncode: raise RuntimeError('remote '+args.action+' failed; reconcile release record before retry')
|
||||
receipt = remote('cat '+shlex.quote(remote_record+'/result.json'))
|
||||
(record/'result.json').write_bytes(receipt)
|
||||
|
||||
if __name__ == '__main__':
|
||||
try: main()
|
||||
except (RuntimeError, ValueError, OSError) as e:
|
||||
print(str(e),file=sys.stderr); sys.exit(1)
|
||||
@@ -0,0 +1,87 @@
|
||||
# remote-20261010-01 远程首发
|
||||
|
||||
目标:`test-v`,43.249.195.133:22,root,Ubuntu 24.04.1,linux/amd64,Docker 29.7.2 / Compose 5.4.0。项目目录 `/opt/aixun-datagov`;专属 Compose 项目 `aixun-datagov-local`。
|
||||
|
||||
结果:发布流程源码 PASS;远程首装及 HTTPS 部署 PASS;最小业务接口冒烟 PASS;完整业务验收、人工 UAT 和真实业务链路 NOT_RUN。整体交付 PASS_WITH_LIMITATION。
|
||||
|
||||
后续用户另行授权本地测试数据迁移,实际数据与限制见相邻 `remote-data-20261010-01/REPORT.md`。下文“未导入本地业务数据”描述首发时点,不代表补充迁移后的状态。
|
||||
|
||||
授权来源:2026-10-10 当前用户请求完成全功能远程测试首装、连接、构建/复用、传输、部署和验证;后续明确允许仅从官网配置迁移 `v.aixunkeji.cn`,保持 `t.aixunkeji.cn` 和官网容器不变,并授权申请免费 ACME 证书、完成 HTTPS。
|
||||
|
||||
## 改动与制品
|
||||
|
||||
- 新增独立 `script/datagov/deploy-remote.sh` 和 `remote/` 实现,现有本地 deploy.sh 和运行应用未部署或重启。
|
||||
- 现有 `deployment_artifacts.py` 只增加可选前端源目录参数,默认行为不变;唯一原文件备份为 `.cache/remote-originals/deployment_artifacts.py`。本次复用镜像声明实际资源目录 frontend-576,制品摘要按该目录记录,本地与远程一致。
|
||||
- 应用范围:gateway、auth、system、resource、integration、dataops、governance、dataproduct、frontend。选择本地已发布镜像作为首发基线,不从工作目录重新打包未完成修改;所有镜像平台和制品 SHA-256 见 release.json。
|
||||
- gateway、auth 的现有工作目录 JAR 与运行镜像不相同,本次明确选择运行镜像。没有把这些 JAR 当作已验证的发布制品。
|
||||
- 独立 MySQL、Redis、Nacos;SeaTunnel、DolphinScheduler、Hive、Doris、OpenMetadata 及各自必要依赖。未复用服务器已有同名数据库/引擎,未导入本地业务库或 POC 源数据。
|
||||
- 密码在远程生成,目标 JSON 不含秘密。管理员用户名 admin,密码仅位于服务器 `secrets/admin-password`。用户给出的已有服务器 MySQL root 凭据未用于连接其他项目数据库。
|
||||
- 部分公共镜像锁定 digest 在服务器拉取失败,使用本地同版本镜像的 SSH 导出/导入回退;身份见 components.json、registry-fallback.json 及对应传输记录。
|
||||
|
||||
## 已验证与首装修正
|
||||
|
||||
- 读取 AGENTS.md、README.md、当前开发入口、D-020 隔离规范及相关部署源码。
|
||||
- 已读回远程已有容器、端口、网络、卷、Docker/Compose、CPU 架构、磁盘及内存。启动前清单见 server-before.txt。
|
||||
- MySQL 初始 bind 文件权限阻止系统种子脚本执行。确认没有任何 sys_* 系统表后,修正非敏感文件权限,显式导入系统种子并禁用默认账号/配置;未删除数据库或数据卷。初始命令失败后按实际健康状态对账,没有重复整栈启动。
|
||||
- 共 206 条迁移登记并读回,最新 `20261009.210`。原文件保持不变:164 的历史本机全量快照约束和 191 对旧存储菜单显示状态的假设不适用于首装,使用单独校验的 fresh-install 版本。164 保留管理员身份、菜单前态和权限增量检查;191 保留迁移 135 隐藏旧入口的产品行为,不扩大角色授权。目标 bootstrap/catalog.json 同时记录 source_sha256 与实际执行 sha256。
|
||||
- 两次失败事务均先确认历史未登记、目标菜单未产生,再登记首装适配并继续;既有迁移只校验不重跑。
|
||||
- 10 份 Nacos 配置已在独立 namespace/group 发布。3 个基础服务健康,项目专属网络/卷归属已核验。
|
||||
- 10 项远程发布工具测试、5 项原有制品测试通过:项目/服务隔离、Compose 字面美元符号、环境漂移、164/191 业务检查、自定义前端资源路径、域名切换/恢复、HTTP-01 分阶段切换与证书不匹配拒绝的临时目录模拟,以及原有镜像层/缓存行为。显式文件语法/秘密检查通过。
|
||||
- 9 个应用均已运行,认证后的 actuator 健康及镜像身份全部通过;前端 HTTP 内容与实际镜像源 index.html 一致。首次探针缺少 RCP6 Basic Auth 返回 401,已修正探针并原地验证,没有因此重启应用或放宽鉴权。
|
||||
- Nacos 8 个应用均有且仅有 1 个健康实例;使用 Nacos 3 客户端 API,未启用旧 v1 兼容接口。
|
||||
- 业务冒烟 PASS:管理员登录、身份、菜单、四业务模块列表;匿名身份访问被拒;合成文件上传、下载 SHA-256、删除及 2 条成功审计记录均通过。仅测试文件被清理,未创建业务数据源或运行采集任务。详见 smoke.json。
|
||||
- OpenMetadata 1.13.4 原生迁移只执行一次,退出 0。独立管理员已换密,非管理员服务身份与 30 天 JWT 已读回,匿名请求被拒;JWT 到期时间见 native.json,须在到期前通过官方接口续期更新服务器 secretRef。
|
||||
- Doris 独立 loader/query/denied 身份、列权限、行策略及 workload group 已建立并读回。仅建空表,不导入本地 POC 数据。
|
||||
- SeaTunnel、DolphinScheduler、Hive、Doris、OpenMetadata 及采集组件已启动,15 个组件条目的健康/初始化结果与镜像身份验证 PASS。OpenMetadata migration 任务退出 0;Airflow 元数据库、scheduler、dag_processor 健康,未启用 triggerer。
|
||||
- DolphinScheduler 专属 H2 卷持久化验证 PASS:单独重启该容器后,原服务令牌仍能读取同一项目。Hive schema 4.2.0、Airflow alembic d2f4e1b3c5a7、调度 schema 摘要已记录。
|
||||
- Hive 旧引导脚本对新库执行无授权可撤的 REVOKE 导致失败。先确认两张空表存在、账号无旧授权,再仅补两条表级 SELECT/INSERT 授权;读回 4 条权限,并验证 denied 身份读取现有表被拒。初始失败与前向对账记录均保留,未重复运行完整脚本。生成器已对首装修正,不改历史原脚本。
|
||||
- 额外核对发现新建 Doris 的默认 admin 尚无密码,已生成服务器专属 secretRef 并显式设置;读回所有 Doris 账号 Password=Yes。只修改本项目实例,没有连接服务器原有 Doris。
|
||||
- 原有 58 个其他项目容器的 ID 和镜像未改变,见 other-projects.json。
|
||||
- 239 个远程初始化/配置文件与当前生成清单逐项 SHA-256 一致;服务器发布工具摘要及静态资源核验见 verification.json。
|
||||
|
||||
## 待完成验证
|
||||
|
||||
全部镜像传输、SHA-256 校验、导入和启动完成,临时镜像包已删除。浏览器工具无可用浏览器,Browser 交互验收 NOT_RUN;人工全功能 UAT、真实数据采集/DAG、AI Provider 调用 NOT_RUN。业务数据源和 AI Provider 没有从本地自动导入,需在远程另行配置。OpenMetadata 内部 API 已配置,原生控制台公共 URL 未配置。不能把已通过的接口冒烟等同全功能业务验收。
|
||||
|
||||
OpenMetadata 服务 JWT 到期时间为 2026-11-09 16:00:49(Asia/Shanghai),须到期前按官方接口续期并更新服务器 secretRef。
|
||||
|
||||
## 证书与入口
|
||||
|
||||
附件叶子证书 SAN 为 `aixunkeji.cn` 和 `www.aixunkeji.cn`,没有 `*.aixunkeji.cn` 或 `v.aixunkeji.cn`。未使用该证书或用户粘贴的私钥。
|
||||
|
||||
已使用获准的 Let's Encrypt ACME 签发目标域名证书,2027-01-08 08:13:04 UTC 到期。官网配置只移出 v,t 的 HTTP 状态和响应 SHA-256 与切换前一致;原配置仅备份一次到服务器本次 releases 目录。独立 Nginx 配置反代回环 `127.0.0.1:28000`,HTTP 跳转 HTTPS。公网 HTTPS 200、系统信任链校验 0;经真实 HTTPS 的登录、身份、菜单、四业务列表及匿名拒绝均 PASS,见 https.json。
|
||||
|
||||
Certbot 5.8.0 镜像固定 SHA-256,客户端使用本项目网络和挂载;未安装全局 Python 依赖。根目录从 0700 改为 0711,只允许 Nginx 遍历 challenge 路径;秘密子目录保持 0700、私钥保持 0600。证书账户和私钥仅存服务器,续期由项目专属 systemd timer 每日检查两次,证书变化后校验并 reload Nginx。
|
||||
|
||||
`certificate.sh dry-run` 完成 staging ACME 模拟续期,退出 0、全部模拟续期成功。未替换当前正式证书。定时器及一次真实续期检查状态记录在 verification.json;当前证书无需立即续期。
|
||||
|
||||
## 恢复原则
|
||||
|
||||
这是首次安装,没有上一可用应用版本,不能宣称可回滚到旧镜像。必要时只停止本次应用,保留数据库、引擎、网络及所有数据卷,再从绑定的镜像和服务器专属配置恢复。普通后续镜像更新使用 deploy-remote.sh rollback VERSION;存在不兼容数据库/配置变更时拒绝普通镜像回退。
|
||||
|
||||
服务器上执行以下止损命令,不删除容器或数据:
|
||||
|
||||
```bash
|
||||
cd /opt/aixun-datagov
|
||||
flock -n release.lock docker compose --env-file .env -p aixun-datagov-local -f compose.json stop gateway auth system resource integration dataops governance dataproduct frontend
|
||||
```
|
||||
|
||||
恢复刚停止的同一批容器:
|
||||
|
||||
```bash
|
||||
cd /opt/aixun-datagov
|
||||
flock -n release.lock docker compose --env-file .env -p aixun-datagov-local -f compose.json start gateway auth system resource integration dataops governance dataproduct frontend
|
||||
python3 releases/remote-20261010-01/runner.py verify /opt/aixun-datagov/releases/remote-20261010-01
|
||||
```
|
||||
|
||||
不执行 down、卷删除、历史迁移重放或数据库倒退。迁移与配置属于本次首装,普通镜像 rollback 会明确拒绝该版本。需要将 v 恢复到原官网时,在服务器执行:
|
||||
|
||||
```bash
|
||||
systemctl disable --now aixun-datagov-cert-renew.timer
|
||||
cd /opt/aixun-datagov
|
||||
python3 releases/remote-20261010-01/edge.py restore remote-20261010-01
|
||||
```
|
||||
|
||||
它核对摘要后恢复原官网 v+t 配置,移除本项目 vhost,仅 reload Nginx;不会删除应用或数据。原官网配置本来仅提供 HTTP,恢复操作不保证原官网的 HTTPS。若有后续配置漂移则拒绝覆盖,需对账后处理。
|
||||
|
||||
保护备份 `/Users/apple/Documents/AiXun-DataGov2026-10-10.zip` 未读取、复制、删除或改写。未使用 Git、worktree、第二源码目录、全局 Docker prune 或其他项目资源。
|
||||
@@ -0,0 +1,241 @@
|
||||
{
|
||||
"nginx/frontend.conf": "51b88ed05337dd4a0b41d14cd828f05bbba9c6c1a43c58621bc880836f879bed",
|
||||
"m2/dolphinscheduler/remote-start.sh": "50ff88e96beb93ddcdb77cb37ba6145595b64c0957c6722837012e8ec24d9793",
|
||||
"nacos-startup.sh": "abaae490aaf9ee64ac07cb84658bdadf02768f7ffee0a580906e475a4ee3996a",
|
||||
"mysql/00-init-system.sh": "1cd0fe8f43e4402fa5cb7758c45030cac97bd17f928b48ad0b7087ce5e5c6a6e",
|
||||
"mysql/01-m0-disable-inactive.sql": "c031eff707441ac4a7a73a297e38d0ae9432eb4c7901a565befe33373c67cc10",
|
||||
"m2/generate-local-secrets.sh": "7285989174d91c238be3b1a4bc550566708a0b22c6f444597df03ec88bd855aa",
|
||||
"m2/bootstrap-dolphinscheduler.sh": "8f35803d8b1ae63cbe8af2b5d204b6dfcb9122899382d57b6e7f67f0d0c03de9",
|
||||
"m2/bootstrap-openmetadata.sh": "6483441b161b60a620646a4decd9b78e46d24ef0a523bac3ca82caae9a2b3208",
|
||||
"m2/bootstrap-hive.sh": "e3149b61c193ac95a15724e68cac1aaae03c90fda5a24dac6edef8555fa97ea4",
|
||||
"m2/bootstrap-doris.sh": "f53afb8df87ca86ac11ea56397c825b3871283585ccd7e8f22c2c385461f3734",
|
||||
"m2/hive/minio-bootstrap.sh": "d6e803922a81c04d5ae4c096061481281d82061df262ae5e490a6948196e859b",
|
||||
"m2/hive/hive-bucket-policy.json": "6d9be76108eefdbeffdb8414ee67001ac01cb9e4ae5fafc53f2adee726bdef88",
|
||||
"m2/doris/start-be.sh": "d914d0bf6fa41be1d59121bf9c1cc492afd895efa710e6b9e3fbeb5214d409a4",
|
||||
"m2/openmetadata/mysql-wrapper.sh": "9ef53556fd67ac1604371081d56585f956a5fe3928b4109d0a0e6208300696b0",
|
||||
"m2/openmetadata/airflow-mysql-wrapper.sh": "383665e8daf24cc85a0a3e1be9d56aca2a716da40db53e70d2cc783faa0ccfdb",
|
||||
"m2/openmetadata/openmetadata-wrapper.sh": "88deb4f593d1173c53ae808b175e938b2d0f115f471660d73c2247a6705c0381",
|
||||
"m2/openmetadata/ingestion-wrapper.sh": "fac36daaa3fa61523fce1df10e70a27bca6ad25d9be1bf55bc06c023bd981aea",
|
||||
"nacos/datasource.yml": "dabc21dc741cf2901d6ee62ae8554868765e2279855a45e1bcf4ef34df49c923",
|
||||
"nacos/aixun-dataproduct.yml": "27d76f61362a834c558995932d9516fe7dc6ecdf8955ec3a0745e1aff6e5ec13",
|
||||
"nacos/aixun-datagov-resource.yml": "2d7cbfcd065bd5c18a74c5823020d6e3cd6729dbb89f29de37b4c9fb3168f107",
|
||||
"nacos/aixun-governance.yml": "ca85d174876f5847dc68aa097e1013383aa7b03fcc26e7f7c6dbb009557f7146",
|
||||
"nacos/aixun-dataops.yml": "57561ee01856111f37acc0d45ea735d17aed67d63d9e3998dbd4fd1e1c1e62ed",
|
||||
"nacos/aixun-datagov-auth.yml": "d801d7441ed9d3e27346a34c93835624429702099c6d96ef39dcad003bb28956",
|
||||
"nacos/aixun-integration.yml": "0ffa1c2909a5c9470504636d723679a8076290139214107a8470bc2c95d504e9",
|
||||
"nacos/aixun-datagov-system.yml": "59cdd3e14dcb98f0e65d5fb12fe08460eae9e69d84e8cab67ee7809f73550dd9",
|
||||
"nacos/application-common.yml": "0115688d403dcb0678fcc616b222b54b77d0cd3ffca1187073ca0d27ec536033",
|
||||
"nacos/aixun-datagov-gateway.yml": "3695ba658640e09c5177bf67c2c06ed7ca7a59781ebc10b43f16bc588c5ee99d",
|
||||
"bootstrap/seed.sql": "5700b6a08dd25f54f81ffbff8e43578226138c1a77dbcb22060a4c90290a29f9",
|
||||
"db/migration/integration/V20260824.000__create_schema_history.sql": "c42201377942c192c8c59fe6f69f20196395c06da8c29a37c6a7182d9bfb56e2",
|
||||
"db/migration/integration/V20260824.001__create_contract_probe.sql": "1f3bc478b259a1aef4a196210ca731df62e390b3268f6024b43c836ab4c049e5",
|
||||
"db/migration/integration/V20260824.002__create_secret_binding.sql": "85c006633079a95bc4260fddc291baed2f81fb74acc814f9864613d720452482",
|
||||
"db/migration/integration/V20260824.003__create_maintenance_lease.sql": "b59cb4b895c2cf2b54ada4af69fe7a6cf7d31e6f3cd9d8b633ec988399952f9d",
|
||||
"db/migration/system/V20260824.004__register_external_component_entry.sql": "d7b225c39ddf9ffda06a76c96f7637260ee1dc31cf517a88b0057e7a670fd416",
|
||||
"db/migration/system/V20260824.005__repair_external_component_entry_utf8.sql": "558109beb4353bddbb0eee6ebb3cf3ece1ea5f238efb6b3cd5e0ea0540aad37d",
|
||||
"db/migration/integration/V20260825.006__create_m2_integration_records.sql": "9ec71789db80899ec9df059a33decbab83b94cd47e4a57fd26693f969edd28e1",
|
||||
"db/migration/dataops/V20260825.007__create_m2_dataops_records.sql": "1fa70ebe5d98568cff3cbfea1f796ad60c7b8b6f5369457655003a76ceaaefad",
|
||||
"db/migration/governance/V20260825.008__create_m2_metadata_projection.sql": "8bf294175c2b591a21638db8b26464b986a65018da61ad4ae62bc86ed949b8b9",
|
||||
"db/migration/system/V20260825.009__register_m2_golden_chain_menu.sql": "463669f18967590e0a5df9d15db7a31a086fd68bd547af1725c9d43899eac0b9",
|
||||
"db/migration/governance/V20260825.010__allow_reused_openmetadata_entity_projection.sql": "4235ccb3299a1bf0704add26b5eb8b3f7e01c3c947fab39bf461fc7de23413f1",
|
||||
"db/migration/integration/V20260825.011__extend_data_source_management.sql": "b031393a4683bb0c273de7ab8270b13fdc66e25b32ce48cb3b89ebc06dd4be59",
|
||||
"db/migration/dataops/V20260825.012__create_storage_resources.sql": "68158a268a0d6d5e43600273a1becc56561448afc94ed9e183660a48f4a846e2",
|
||||
"db/migration/dataops/V20260825.013__create_project_environments.sql": "fb065309be772cb97d0b13119c653d168d5538c48a7a66d09bf7b1679b1992b9",
|
||||
"db/migration/system/V20260825.014__register_m3_a_menus.sql": "edd182a5ddcf74257805be593e0eafee17352827214fdcd65c016483e593682e",
|
||||
"db/migration/dataops/V20260825.015__create_lakehouse_layers.sql": "0943842e0857350c96bf0d29cb1cf649e9550fa29b05ed836b2103bead1442a2",
|
||||
"db/migration/dataops/V20260825.016__create_visual_development.sql": "0be44b80414420e4e5fa9e3c1dc4dfdacc432ce3049c60557dc03d47802301b8",
|
||||
"db/migration/integration/V20260826.017__create_collection_nodes.sql": "e60d73bc6b00cfab98dda7701a223cefc88aad896aa3c85df81289c620c98693",
|
||||
"db/migration/dataops/V20260826.018__create_batch_ingestion.sql": "e039f5689f44636c792ebdf7a865544b221f17ebab65b6d11aca7464b9323885",
|
||||
"db/migration/dataops/V20260826.019__create_file_ingestion.sql": "a5aed1a2cfeeb87ad85665aca62ff310f89a8f44de10c58dd3be7ab75e92e132",
|
||||
"db/migration/system/V20260826.020__register_m3_b_menus.sql": "70193b326b4c1106fecca7f8e6c8b9055847a2b8ccd65777c7b7bb45dd205153",
|
||||
"db/migration/dataops/V20260826.021__create_table_files.sql": "f0920a075beb8bc8e938d18eb5aa507e25f7bfcc5cecc3894f11179d96a9dd3f",
|
||||
"db/migration/system/V20260826.022__register_table_files_menu.sql": "74717736ccc42a340cdee3103df5ebc6b6a4433df52145d9bf57f02ceb31b53d",
|
||||
"db/migration/dataops/V20260826.023__create_code_development.sql": "777ed8e47c19be9eb3ed08ac2cea730402202f941267be52f9128e3cf4b09a7b",
|
||||
"db/migration/dataops/V20260826.024__create_batch_jobs.sql": "412bdaf1a66246c36c4d43fe86a260ec73f9713a85df3a7d27953035a7c8dd45",
|
||||
"db/migration/dataops/V20260826.025__create_transformation_cleaning.sql": "410259f9c860a05a381abbecfd69f75f25e4d6f87934b16e2a9ed6c7b34b57a3",
|
||||
"db/migration/system/V20260826.026__register_m3_dev_menus.sql": "a93b7286b5f812563adef419b884a402ce12b56c9eb952d365068ae048495577",
|
||||
"db/migration/dataops/V20260826.027__create_scheduling.sql": "eaf92473faca3b8d523aaac6f05febf31a98f5826ccd6d8275c12cf18fcdbe3c",
|
||||
"db/migration/system/V20260827.028__register_scheduling_menus.sql": "fd95238a2b421db8758a7f1d368b755e6e3388a3cf574e6404602188e680eff9",
|
||||
"db/migration/dataops/V20260827.029__create_data_testing.sql": "4e97d0444f372daa1245dea1c47651ccb80a04a239e80339f509dfe759f1a1ab",
|
||||
"db/migration/dataops/V20260827.030__create_task_logs.sql": "bd14d4fca79d75421aa8953df265bd18a0a3582f038d85569fe6c346391a7aea",
|
||||
"db/migration/system/V20260827.031__register_data_testing_task_logs.sql": "e0e56953add36e6c92ae36ff01c846c09fc6559dc462391e7b1d060bbd1d6847",
|
||||
"db/migration/dataops/V20260827.032__create_run_operations.sql": "74f26253c5df4b977c78d0364dc33ba2f16b679b97b93186aefff58dec905af1",
|
||||
"db/migration/dataops/V20260827.033__create_chain_metrics.sql": "73cd349db00ab0d88f3ae4bc50f72714d4ac1ba0307e4b1071933d68d72ae3b5",
|
||||
"db/migration/system/V20260827.034__register_run_operations_chain_metrics.sql": "bc219cd5254923fc9e62b68438eded7a27a9e5ac42e7a1104be2e658f9538ee5",
|
||||
"db/migration/system/V20260827.035__register_operations_dashboard.sql": "0212f11309f7ac39e2188864b6d4fa8f42b28e5cee88cf832d88f0a0b7b600ea",
|
||||
"db/migration/dataops/V20260827.036__create_alert_events.sql": "c881d2c5c861e6732296aa2ba7febf44698c6d74974d2ac1331f5ae13c139e3f",
|
||||
"db/migration/system/V20260827.037__register_alert_events.sql": "c921ae5251b57201ee552a2a0768720f653058d48090b81ee0854b4ecedf7ccb",
|
||||
"db/migration/dataops/V20260827.038__extend_file_ingestion_execution_contract.sql": "0246d7399fff27ad6ec62060a699b5d3f54a98f65a7717465723b3a496408061",
|
||||
"db/migration/dataops/V20260828.039__extend_dev_external_execution_evidence.sql": "7318f93f0736065b2e7a37a9b72128d9708256b51dc24ea2d694e13d02f4b908",
|
||||
"db/migration/governance/V20260828.040__create_meta_models.sql": "7c6082254b45e8cac3e416dae6ee4fdbd7e6c9590e99ff2606acfc838ef8ea05",
|
||||
"db/migration/system/V20260828.041__register_meta_model_menu.sql": "f18f9a84535765a88b2405e8883dc2e21e49e19868b50d77657c70516a4cfb3b",
|
||||
"db/migration/governance/V20260828.042__create_metadata_ingestion.sql": "61a8d397f5976e1db98acdd731e1916d5b9905b1efbe1cab1a65287078da3bf6",
|
||||
"db/migration/system/V20260828.043__register_metadata_ingestion_menu.sql": "9a5c3c1a0eb6c15a38d9be433657b4c52c51cf3130da3699712e29bc8ca6ae0a",
|
||||
"db/migration/governance/V20260828.044__create_metadata_catalog.sql": "05f6b58703dfc884b4997ba3f85c1939a0da1e2cad90e1a99024abf44c017b38",
|
||||
"db/migration/system/V20260828.045__register_metadata_catalog_menu.sql": "84c6ec2bb6c1814fa83435776e67e5015a6df9c62f3e33677bb243e2caf1368a",
|
||||
"db/migration/governance/V20260828.046__create_metadata_quality.sql": "c76a3e7f79ad0c8648428a66f807d24a8c925419c2774cb93b63d082a5a86d07",
|
||||
"db/migration/system/V20260828.047__register_metadata_quality_menu.sql": "494d79293ea94be1a1fab905c4d4ab619ea413c810ed2da28b2ed22b9817680f",
|
||||
"db/migration/governance/V20260828.048__create_metadata_lineage.sql": "0aa8fca209fdea687db007c3e8bb93ae6d37d7e4db4824242a8aef1bc0e6fc4b",
|
||||
"db/migration/system/V20260828.049__register_metadata_lineage_menu.sql": "bf1980a0fc7afa079f3824464d455adda829b78bd092ac496d3910437211aeb4",
|
||||
"db/migration/governance/V20260828.050__create_metadata_relations.sql": "3b1739ae3514713a1e9e80960eef9fe44ad3456a5f84912b95d7d3c94bc13483",
|
||||
"db/migration/system/V20260828.051__register_metadata_relations_menu.sql": "00a43615534240bea77a74ec073d4fb49d391834a61f71e2a105b580d46a68c4",
|
||||
"db/migration/governance/V20260828.052__align_metadata_ingestion_secret_ref.sql": "87c6badac492bec9d41d437fb01b0a53a79afc7543bd93c168401592d383a9ed",
|
||||
"db/migration/governance/V20260829.053__create_standard_system.sql": "89770f4e43ba801b48c71026a7448dc2e116b3a9c3c65078aebcd76c5977d8b5",
|
||||
"db/migration/governance/V20260829.054__create_enterprise_architecture.sql": "80c67dc9a0ddfbfb0d2308375ece1de82495155962a56edd7176eddcbc4ad129",
|
||||
"db/migration/system/V20260829.055__register_m5_wave_a_menus.sql": "19b524de58dd42790783aba03925860cb738f410c66bfd07f3a8451b06afb98a",
|
||||
"db/migration/governance/V20260829.056__create_quality_model.sql": "37957bb724c50d0b2fb8ba73b8fbce1547344d6c3341e994dd03532d9e1fd6b6",
|
||||
"db/migration/governance/V20260829.057__create_data_profile.sql": "02977aba90b4fb3688dc7114a1e3f9dca14f0ffe167405fde6d2e371ea6b2c7c",
|
||||
"db/migration/governance/V20260829.058__create_quality_rule_core.sql": "6da962a446c87ada7385d9d4051de20968e325d80278a807e31e32d0b91b92c3",
|
||||
"db/migration/governance/V20260829.059__create_quality_rule_execution.sql": "7f4e048ecf5f4e28a9a7b71bca79799ef01cc98cb157bde8964ca8e0556d5dda",
|
||||
"db/migration/governance/V20260829.060__create_business_terms.sql": "30f1ecbcdadd83b1c89f426a91088f1315859fceed160fdda8a425cd26d456c0",
|
||||
"db/migration/governance/V20260829.061__create_subject_layers.sql": "15d2df076b0dd3611d3d03b70c52cbcb99731b2bcc6827c4e247019aae30cfab",
|
||||
"db/migration/governance/V20260829.062__create_model_repository.sql": "6d831afe23c5bb73c3195c6a266e9981e9ced896bf9d65161fa9d1b297350619",
|
||||
"db/migration/governance/V20260829.063__create_data_elements.sql": "f47bd994abf78318f5698d41f9242e9c204eb0f79f38067cddba9c5fa00c816e",
|
||||
"db/migration/governance/V20260829.064__create_model_design.sql": "6080795ece8177697e2171288d56cf802301020ed022e50b7ba245789027bc6c",
|
||||
"db/migration/governance/V20260829.065__create_reference_data.sql": "962aacfa8c4620c7df741d2a7422d205c69391c48925026ca945a67375834bbc",
|
||||
"db/migration/governance/V20260829.066__create_anomaly_detection.sql": "7aae483bad19878e0ae5158d884244f4ed1c8c320b8e61e8eac61ae50405f3c6",
|
||||
"db/migration/governance/V20260829.067__create_model_engineering.sql": "55a865f275756c537e0fca60e88cb18001f63297725a63e66c0fae37c4fa63a7",
|
||||
"db/migration/governance/V20260829.068__create_external_standard.sql": "ee07594fe1cbe9d930a2586c98cdc6b7071184e67dc430ec0fd4367d1ad8e97d",
|
||||
"db/migration/governance/V20260829.069__create_quality_issue.sql": "e03793cd9b8be431d7c89f679056b01f0e28eb6d5b614f1a3c745252c77e2970",
|
||||
"db/migration/governance/V20260829.070__create_standard_adoption.sql": "019874b08c5b19355c9b64b8d1c6488ad6592778e5ac9804e3573ec29ff48040",
|
||||
"db/migration/governance/V20260829.071__create_architecture_governance.sql": "75834b9a18225c99231085259d83255daf8c2313593685939ec897f788a2601d",
|
||||
"db/migration/governance/V20260829.072__create_root_cause_analysis.sql": "256c49230deaf6b38148b561e3c9bf54287b5a2f159422f30ef206e15bedcb0d",
|
||||
"db/migration/governance/V20260829.073__create_standard_operation.sql": "7c45649e0e6a19abb21feb4fc7c29ba349ab148895805caa2841aaab66a2ca74",
|
||||
"db/migration/governance/V20260829.074__create_quality_remediation.sql": "4d9fc67d5facc989e586a8db58d4c883928f2dcd3371cb58f3af99dcf81d9ea1",
|
||||
"db/migration/governance/V20260829.075__create_quality_remediation_execution.sql": "30a19f3e1b0df529afd53b30489b0ffeb087add43c37976e16956e91e5ecbd0c",
|
||||
"db/migration/governance/V20260829.076__create_work_overview.sql": "706d5e9cf99a4d5dbb9a424095b5e68bb7f787d0b1500104a924892e58539bab",
|
||||
"db/migration/governance/V20260829.077__create_my_work.sql": "5bb68b579b1eb0b91ecf2d1cfda4c384bc933555f5f78b93a62c54a982b2a4ca",
|
||||
"db/migration/system/V20260829.078__register_m5_standard_menus.sql": "98c42989cc00bd51f30d5a3c8a7e047e1c63c54dc1c8c43b9f04b956f321f473",
|
||||
"db/migration/system/V20260829.079__register_m5_architecture_menus.sql": "2feb9b7eef3794e5fc47b96b9cf9228e788e803afa8fc5d4f41b1c4f4d15b72a",
|
||||
"db/migration/system/V20260829.080__register_m5_quality_menus.sql": "2b944c7f2b7fc5f5956c2790fff75eaf1fc45262e302a29222e8ad3038a5c93a",
|
||||
"db/migration/system/V20260829.081__register_m5_workbench_menus.sql": "0528d322b1e1cbcc5a59f245e37bdb8e4884d3e4d14bda0ed0afa7081e91d37c",
|
||||
"db/migration/system/V20260829.082__grant_m5_superadmin_menus.sql": "508dc7deaa13b8d9964f572f073b6dcd2d465a40c041be4e85bfeeb4c83444cf",
|
||||
"db/migration/system/V20260829.083__grant_m5_wave_a_superadmin_menus.sql": "78b942f9751f66a4942c40806406b1d9a35fad87bbaff567d8848050f1d3a484",
|
||||
"db/migration/governance/V20260830.084__create_master_data_model.sql": "6d6b56f4374132af288a466c3f5b79ac1b2e60dc65b2ca617ece7749ba03ddf6",
|
||||
"db/migration/governance/V20260830.085__create_security_classification.sql": "cb06389b6616b141c62e8b11ad270afa5ec969ff82add01495452be7aa443dd0",
|
||||
"db/migration/governance/V20260830.086__create_asset_inventory.sql": "e2ba6c4150e19843b4861961d7a3ce3123189c5beb80434e0fe9730372edffd8",
|
||||
"db/migration/system/V20260830.087__register_m6_wave_a_menus.sql": "128b918bceab9ab1cc1ffbac76797dc65b0ef125b18efb678cd63c19d8b35c64",
|
||||
"db/migration/governance/V20260830.088__create_master_data_identity.sql": "5e0ac06f21ba45f63ec6149b2acb6c2220834dd560d27080d5ba5ab36ba00290",
|
||||
"db/migration/governance/V20260830.089__create_access_control.sql": "c0300e748a892ef3ac74a9f7070b0d3b79fe949033a9675adf6e746fd8ce1aa5",
|
||||
"db/migration/governance/V20260830.090__create_asset_catalog.sql": "60eef24ff01a803c51e7fc7f6bcf4f931ce1a856bb8050b71dda1a09f3038579",
|
||||
"db/migration/dataproduct/V20260830.091__create_metric_system.sql": "900ef8223d1a7058bad5932da3c977ffac912f797bbbb5fbcff92cf754503bad",
|
||||
"db/migration/system/V20260830.092__register_m6_wave_b_menus.sql": "daf72856490df6e55338ad2ddba2b232a9244e22ebaa29e89cfda87567dcd787",
|
||||
"db/migration/governance/V20260830.093__create_master_data_source.sql": "3e0ca8fc226c2b0184a25957fb19a1026da3c25b2feab1922ae21dbda789e6b4",
|
||||
"db/migration/governance/V20260830.094__create_data_protection.sql": "1b879c0406a995d7a56042e892827daaed161a657c429f0f37c39300d8044bf0",
|
||||
"db/migration/system/V20260830.095__register_m6_wave_c_menus.sql": "36d332b658376622dc7c47730248d64ab8e81fdc3e1df50b0342e6f2180d9fb0",
|
||||
"db/migration/dataproduct/V20260830.096__create_semantic_model.sql": "e94dfb9791be85a0da73c1966389ac2d9dd8d9eb1928dd31613c1a95d70e61e1",
|
||||
"db/migration/dataproduct/V20260830.097__create_dataset_publication.sql": "54c2bc9840bc36f3ebb1f54af1c7bec70238c1e55f4fcfd816c7bfed80349e32",
|
||||
"db/migration/governance/V20260830.098__create_master_data_maintenance.sql": "b8a1443607c8ab869a9f1ec84aa408c73955662bb579e5cd444b3c2eab34fca9",
|
||||
"db/migration/governance/V20260830.099__create_asset_detail.sql": "4f9868f982da14a57904aa60cf6cfac04ac97bf93815273d190e385e255a9e05",
|
||||
"db/migration/dataproduct/V20260830.100__create_api_development.sql": "7fe03244b9ab8a6b5dab53b8b00ad5c2b53865bce840e7f3f2ae673fdc676555",
|
||||
"db/migration/governance/V20260830.101__create_asset_lifecycle.sql": "7c54e1badb05f36b49689cbd5f8ea5eecda45eb6aa0cc658d8f10cbd499fed86",
|
||||
"db/migration/dataproduct/V20260830.102__create_metric_calculation.sql": "83d557a64061eee299a95ad84551bb4d457f53180725a0bfdd8012fd9e3f6671",
|
||||
"db/migration/governance/V20260830.103__create_security_incident.sql": "50fe2e8d1b42aa38e91ad8e41777844e2412abd58619e4989858194815510283",
|
||||
"db/migration/dataproduct/V20260830.104__create_service_gateway.sql": "ce9ab92b864cef05e02a1e4561f0964e3fb2cb262513dfffd622c7309aaf9600",
|
||||
"db/migration/dataproduct/V20260830.105__create_metric_lineage.sql": "ee4577686a6ee6c491608584875efb899c1ae257038124b2812aae7931842721",
|
||||
"db/migration/dataproduct/V20260830.106__create_metric_self_service.sql": "746c5bac55882ecd68a810001402fc580271b60571f8347197ed3474ab068156",
|
||||
"db/migration/dataproduct/V20260830.107__create_metric_business_alert.sql": "cf99784cc0b2b10f9bc9c9d4d42445f71bc2f3150ccda0d0ac602b0d11552279",
|
||||
"db/migration/dataproduct/V20260830.108__create_api_management.sql": "6b2d3ab9fb9c34e245ae71592cbaa46136013f7afe668accfc443fb54d528e19",
|
||||
"db/migration/dataproduct/V20260830.109__create_data_exchange.sql": "4afda71cc62c4e0d1ba143110d5c4b88b3613ff64e7aa26e9f35f198ccf83851",
|
||||
"db/migration/system/V20260830.110__register_m6_wave_d_menus.sql": "e7c19b77d63a627c284e949439b9c7d75afb86d0bb8f868e0534c8702aa26cef",
|
||||
"db/migration/system/V20260831.111__register_quality_rule_execution_permissions.sql": "36dfcedb78361dcb105c2f2bda32f8cefef4b82987051d2d17230cdc236541b2",
|
||||
"db/migration/integration/V20260901.112__enable_postgresql_data_source.sql": "1bd5b6eb32b68db77a49059266505df4d788444b75ae51419a72d14536370474",
|
||||
"db/migration/system/V20260902.113__restore_operation_log_menu.sql": "d3e6cb822f6ad3597e816be90b0b3f018281c30413f813a07bbe76d7f09ef7c3",
|
||||
"db/migration/system/V20260903.114__organize_datagov_menu_hierarchy.sql": "81fe7a3719c632946116bf44273717e3f65b1428960f82ea74a764c81a386020",
|
||||
"db/migration/integration/V20260903.115__expand_open_database_connectors.sql": "2bcae75df93c0492603e9a154de8ca7f8c9f70a2bd743dc089c295ae92e1935a",
|
||||
"db/migration/dataops/V20260904.116__normalize_storage_capacity_telemetry.sql": "7e801dd329f35ff796d090f35f5c4040d6d6cc6b7e513f091f669f2878b94a53",
|
||||
"db/migration/dataops/V20260904.117__manage_storage_access_credentials.sql": "e5f9652db158533dc30922d8d7c555e3fad421406b3697049b914a3b04f28075",
|
||||
"db/migration/integration/V20260908.118__enable_dameng_data_source.sql": "3aaf52f469c8ab4c97f22123e00779d140a492290d0ac606bc4db39231997a69",
|
||||
"db/migration/integration/V20260908.119__enable_sqlserver_data_source.sql": "6661fae582582ae4036a5f6036b1d9aff79984fe321db812654cfff34879efbb",
|
||||
"db/migration/integration/V20260908.120__make_data_sources_organization_scoped.sql": "c0b440a748d1207621af5f89b93e6df009fc62c9107689285b91aa458aed6834",
|
||||
"db/migration/dataops/V20260908.121__create_project_data_source_bindings.sql": "016897a249766e0e7dd3176297902418681fe3e0025c87c6d84e16d78290141f",
|
||||
"db/migration/system/V20260909.122__register_data_source_browse_preview_permissions.sql": "1048aacd6970323ed90dfbbaca2423407f2d675c3a8e72366d754a9b1ec2f97d",
|
||||
"db/migration/governance/V20260909.124__create_model_design_layout.sql": "820bf671193f5388729f1a0d70edf19db63d6f35ad981db8f8a0fd86773b9cd6",
|
||||
"db/migration/dataops/V20260910.125__create_batch_submission_recovery_journal.sql": "c5eb12f19c924199d83df52384c9f91e0b54d70176c3777d49b9db6963c9a0ef",
|
||||
"db/migration/dataops/V20260910.126__add_transformation_execution_guard.sql": "eba93043537dc83e83b6ac682a4809bbaf0fbdb75a6c69246fd5c9bce7db8e0e",
|
||||
"db/migration/dataops/V20260910.127__create_storage_query_credential.sql": "0fd6bd22b9b62c56c4730540508eed0471c2c12af34efcd00da59ea6820e3066",
|
||||
"db/migration/governance/V20260910.128__create_model_business_system_reference.sql": "ec4bdab4484175f593d62f61f4edab0b314a3628284ac081d83296648bc606f0",
|
||||
"db/migration/dataops/V20260911.129__add_existing_storage_binding_evidence.sql": "eaf05d263b4648b85f59e6aae021e25897aa7d74a865cd1fd47576f95a608c1a",
|
||||
"db/migration/dataops/V20260913.130__add_storage_physical_creation.sql": "3c26dc4dc8a77ad98dff3ed9e44fd4900362b6c8e027ad76e2faa377b0b32c57",
|
||||
"db/migration/governance/V20260913.131__bind_metadata_ingestion_to_data_source.sql": "50c2301dea57805aa49b082f60c22f63cce0c96c64028c71734191787803fbdb",
|
||||
"db/migration/dataops/V20260914.132__create_code_result_materialization.sql": "752d78f29b4d1a47f18ada45e0cca2bde69cf39f812166cbf3f580a41dfbbf3a",
|
||||
"db/migration/system/V20260914.133__register_code_result_materialization_permission.sql": "e5c82c887cbf2ebd9e723df68be825b927cea2aa3027ca710a51292349cc6df3",
|
||||
"db/migration/dataops/V20260914.134__enable_project_free_unified_ingestion.sql": "e144fd12728100b055025a59a1090f1d33f784fc653d44dc4900ea92f720e07a",
|
||||
"db/migration/system/V20260914.135__activate_unified_ingestion_menu.sql": "1d06d4cc8c4e64358c31396205d1f0da359a54ba1a994f581f726421420f92be",
|
||||
"db/migration/governance/V20260914.136__extend_standard_catalog_import.sql": "b1ed53a585cef7ce4d6bfabe5da8ebc5f91a66f8cd916c2b2d6c59c907c56bc9",
|
||||
"db/migration/system/V20260914.137__register_standard_catalog_import_permissions.sql": "3d32461076c68448d00aea39e995178ae70b479d1fe20b776a1e37607b200672",
|
||||
"db/migration/dataops/V20260915.138__allow_storage_physical_retry.sql": "a487f7a1fc560b908545226d68b3057865032d741fe5c7bdcfa45824851555d9",
|
||||
"db/migration/dataops/V20260915.139__allow_created_physical_storage_origin.sql": "516570cd4cc48ea6e352ce541358fe3bb5b9c38860dd475a5d71716861733ea4",
|
||||
"db/migration/dataops/V20260915.140__remove_data_development_project_scope.sql": "10a70b0dade987ac97fa777db72d132aeb24cd21a715b915fb73548c8d47ea4b",
|
||||
"db/migration/dataops/V20260915.141__remove_downstream_project_scope.sql": "92d32e0a0c4fa8ffe807b352174967e09d6a987fcda978fc1ecff191dd0835ce",
|
||||
"db/migration/system/V20260915.142__retire_project_environment_menu.sql": "ab07bdc3cab052b448209446e23500c0705a1d5e2a173b6bfa116142fd45580c",
|
||||
"db/migration/governance/V20260915.143__extend_national_standard_full_catalog.sql": "969a703e8ea64a3ca977fbadf1573dc1a5617d465cf370354443d3bd16ee6c04",
|
||||
"db/migration/dataops/V20260915.144__create_ingestion_collection_and_metrics.sql": "606e0a050c453462ad637615e6e45877b7ab0489a13c0cce4f02791a9820d70b",
|
||||
"db/migration/dataops/V20260915.145__extend_file_intake_to_aggregate_ingestion.sql": "5bbc02f791293e1def8ea976e97b54acbc48a8507ebb83834eea858e772d39c8",
|
||||
"db/migration/dataops/V20260915.146__fix_hive_managed_location_and_ingestion_recovery.sql": "9456e74f34e5bcfd0e7df8d84295229420cd1b3a936d515d82a2a05f96b586b6",
|
||||
"db/migration/system/V20260916.147__reorder_datagov_governance_workflow_menus.sql": "ae98eba9b4a0964f59d036e1c82c03da81a12f4ee995e8112b947a5ab58da837",
|
||||
"db/migration/dataops/V20260916.148__repair_ingestion_table_file_layer_binding.sql": "88761770a7db60c0f740a9197f73bb9326383f18b2b7c5b83202d7b2b1577e7c",
|
||||
"db/migration/dataops/V20260916.149__repair_projectless_transformation_plan.sql": "26a965d1e2dfb340114595c45d2b097870d300d000a569307dddb3ec3feb0d9b",
|
||||
"db/migration/governance/V20260916.150__profile_physical_source_version.sql": "0957c4a1d114afd571f8247b1f43a5fae2bc442125317ac6034c469bd2006a55",
|
||||
"db/migration/governance/V20260916.151__enable_security_vocabulary_request_audit.sql": "4cd062f1d0ec35da0175c720428bbeabcf26438eb7424959acadd2b05ab4f4e1",
|
||||
"db/migration/system/V20260916.152__register_security_vocabulary_permission.sql": "a0d5a7af97e92bbf69659d94a939d9bd6b63174dc94d6fe52981abbc25856365",
|
||||
"db/migration/integration/V20260917.153__create_metric_result_evidence.sql": "78437f367f1f538c6568c5393fc589da7dca916c9f31455dcba9e34ed185b3ed",
|
||||
"db/migration/dataops/V20260917.154__create_transformation_cleaning_rule_library.sql": "520d72b8f5df537b263fc7a49b6ab95e8f068ba6ac77a596493a78aa827a9762",
|
||||
"db/migration/governance/V20260917.155__seed_common_quality_rule_library.sql": "fb2db27ed0f67ee78b4c1d2b3cdf9d49a868fef08871ff1ade7c0fed78dd50bb",
|
||||
"db/migration/dataops/V20260918.156__allow_null_physical_space_quota.sql": "29bed569b2290c0b1002a6554131b80f81018a8cb9d22d7ae18dd3a30af0972d",
|
||||
"db/migration/integration/V20260919.157__enable_oracle_data_source.sql": "d974c61ca38e400a28edb51f64099e5bba432d54799c9b29c5e127966245f0e7",
|
||||
"db/migration/governance/V20260920.158__create_asset_identity_composition.sql": "1e1daf33a312e71f8c322d6895e51b14ec8e58a5324880173d8a412b7b61303e",
|
||||
"db/migration/governance/V20260920.159__create_asset_financial_batch.sql": "c7a0daf74d6d07bf36ebe48423ad649322f01888a9cd36e7630c6c2a25d309c9",
|
||||
"db/migration/dataproduct/V20260920.160__create_dataset_content.sql": "3905aa4fae2f2509b190c5019994963c2443f0e25f3e31ceccbab490ee396b73",
|
||||
"db/migration/dataproduct/V20260920.161__create_dataset_annotation.sql": "35037d01f9c30c7879a3252007bc507d3a0edb80e2c69e3626ff3b69d7d59c3d",
|
||||
"db/migration/dataproduct/V20260920.162__allow_dataset_draft_preparation.sql": "b8b3b83be689c2445bfc75319c42a643df134a61960f7662d1e09e259b289846",
|
||||
"db/migration/dataops/V20260921.163__persist_unified_ingestion_commands.sql": "4ef2bfdd87597600d0f6f74c7f36055d34d840644d287f819e5669364bc23ed4",
|
||||
"db/migration/system/V20260921.164__upgrade_asset_dataset_navigation.sql": "412e3923041be023cd7063399bba99923f76c8b9512fe84135ad1bf5d79a637a",
|
||||
"bootstrap/migrations/V20260921.164__fresh_install.sql": "e01228730ee16f5c51a04b2f51718f1a2fd5e65d790869dacc3081ccf5a76d0f",
|
||||
"db/migration/system/V20260921.165__create_private_business_file_binding.sql": "1fe1101329430fd838d63f1c03118b279d3618c278087264c52723be73c97ca5",
|
||||
"db/migration/dataproduct/V20260921.166__create_dataset_input_registration.sql": "0329ae927915532cc2307a976f2eae9814d13820a975e65a8d9a3781a4302319",
|
||||
"db/migration/governance/V20260921.167__create_asset_compliance_reviews.sql": "f99649dbcdc478f89c00fedd4b78e115e3482eb7c897103f362b16ba21d863af",
|
||||
"db/migration/system/V20260921.168__register_annotation_compliance_menus.sql": "d10a2e2c129a704c8f8916ca59d5a53880f93037631265c2c83846c9af4e5159",
|
||||
"db/migration/dataproduct/V20260921.170__support_dataset_annotation_dispatch.sql": "68d82d94150f32931bea552e4f1bfd91aba43f626e058952cfffcc2c958376f4",
|
||||
"db/migration/system/V20260921.171__register_dataset_annotation_dispatch_permission.sql": "04b02d3c6331640854dc33587f9362aec739464f14e25fb56c301c9b8be9f7a5",
|
||||
"db/migration/dataproduct/V20260921.172__support_dataset_annotation_dispute.sql": "5ffdbf10fba65b3fe615374b6f6da0857ffcdaff454be05b1e8a8e20dd56dd40",
|
||||
"db/migration/system/V20260921.173__register_dataset_annotation_dispute_permissions.sql": "49b559bf30ee980ade21f2ae2c26d1a5428cad0d57a71a6e824e4ab8e157357b",
|
||||
"db/migration/dataops/V20260921.174__create_dataset_preparation_control.sql": "b097949c8f53e6e46dd208a8c61e584177bd2ab6c40c13ba60323362f9b61bae",
|
||||
"db/migration/governance/V20260921.175__create_asset_identity_source_binding_observation.sql": "2eddb229940f9740e0e56b8ee1cc0edf22ed4925b1a5ba2b88bebfeffb1b766f",
|
||||
"db/migration/governance/V20260921.176__create_financial_draft_input.sql": "de30b856ae8f9f402e80cae5a7fbfe3a0fa1b558681fe3275e9be84906777fc4",
|
||||
"db/migration/system/V20260921.177__register_financial_draft_input_permissions.sql": "b4840fa8ee181f22a0f6c46bff85e8be4dcbbf0dcc0d6a9bfacf3d711d1f8530",
|
||||
"db/migration/system/V20260922.178__register_dataset_preparation_menu.sql": "8c9b292c9f8d35fbb7728ec759c7af985aa5ab653eeb9249a8c473a8ab6d17a0",
|
||||
"db/migration/dataops/V20260922.180__expand_storage_idempotency_operation_kind.sql": "30b37f7959eb059cd1ab374db55fec1abdaaf74a39cd38a688eb3e981ffd6175",
|
||||
"db/migration/dataops/V20260922.181__support_visual_mapping_draft_delete.sql": "07ee90627816cc715a152c2305473ddfa34e9abca776017ea15858462844c7ab",
|
||||
"db/migration/system/V20260922.182__register_visual_mapping_delete_permission.sql": "165e7dbfda2f13f1d0dcdc0b3ed3a1e17dedd552268c902b8a83edd37768a740",
|
||||
"db/migration/dataops/V20260922.183__support_data_test_draft_delete.sql": "8af8772464dbf1565c7aad81b5cbc2cee135c835630132a78e1f1416364b090d",
|
||||
"db/migration/system/V20260922.184__register_data_test_delete_permission.sql": "dee68f256fc87edd5bbf7ee3a98f9beaf9e2971c34799555c07743d68e1b3aeb",
|
||||
"db/migration/governance/V20260922.187__support_standard_operation_draft_delete.sql": "590020bfb91263408c19a4d29cacc13219b02306907898e9fd050051e2b1cb0a",
|
||||
"db/migration/system/V20260922.188__register_standard_draft_delete_permissions.sql": "0f6eff7ee57c0520a4b71eb662977e8ea0749c22fba8f5a3602c5d16a1e254aa",
|
||||
"db/migration/system/V20260922.189__register_batch_job_delete_permission.sql": "4f90b90e82ea4b52099d7b1c6d050323397adc73d93cd17f593877fa4ef6a3c0",
|
||||
"db/migration/dataops/V20260923.190__support_storage_registration_delete.sql": "705060f79f1504451fa84274be714c70841615ee8027ebce01e82245ad47c70b",
|
||||
"db/migration/system/V20260923.191__register_storage_delete_permissions.sql": "a22f1c370e15008863cb7ac5162edf8095783d7f461f5f929246a4d44a92ff3f",
|
||||
"bootstrap/migrations/V20260923.191__fresh_install.sql": "4eb20348fac9318a41f1f5911a47616af7a8a60c233e83a51f6a97e1a3bca59b",
|
||||
"db/migration/governance/V20260923.192__support_metadata_ingestion_delete.sql": "7a6be1a89aaf5eaf80e1169c443f5a5960f9ff364e375da352042252f96d9915",
|
||||
"db/migration/system/V20260923.193__register_metadata_ingestion_delete_permission.sql": "87f9689c549b56fdc126f08dc583e4d61a193562ff3d34b1440c192d28df623b",
|
||||
"db/migration/governance/V20260924.194__support_doris_hive_metadata_ingestion.sql": "c0efe8649bae112eb38551efa53850df19e4e89fc5a9e64015fc9c8d8caab82e",
|
||||
"db/migration/governance/V20260926.195__allow_repeated_metadata_ingestion_runs.sql": "0d6f5fd59fb782430120f9b662e1012256e0b493e5b7f2cbe2a54ba360548907",
|
||||
"db/migration/system/V20260926.196__grant_dataset_preparation_view_to_fixed_superadmin.sql": "0f4dfb8e5b802a5ff31759a16b5c55aa3280e48863b37cd7cdb9ad694033cfa2",
|
||||
"db/migration/integration/V20260928.197__support_registration_draft_delete.sql": "b714c4bef609040b34d5ec84d54a52f196f63148ba5ea83fb4860e6cd1460a7e",
|
||||
"db/migration/dataops/V20260928.198__support_remaining_draft_delete.sql": "a42cc6bce7774dcfb5c5e200f9ea440339083ad58bc1ae27d79d75b287f5fa26",
|
||||
"db/migration/system/V20260928.199__register_remaining_draft_delete_permissions.sql": "47b8afd2bc7411f4d1eb1259e0be619b34c2e7b38bb7bbbd00628d7b55ddd2ab",
|
||||
"db/migration/governance/V20261005.200__support_model_design_draft_derivation.sql": "d85ffaf9145d4709c3b625e74253f189c275842606d926deb017e016ad2e61c0",
|
||||
"db/migration/system/V20261005.201__register_login_brand_config.sql": "bee2cd74b9365d3e437c6e39e3f7e03cac02db9484bf3a7d2839bf645854bda7",
|
||||
"db/migration/governance/V20261007.202__add_asset_inventory_request_reason.sql": "f9b06111ada2ec7195686066fc5e09afcbd54c2d08c682d41543b9a37745300c",
|
||||
"db/migration/integration/V20261007.203__create_ai_provider_configuration.sql": "1bcbd83349149b9e313a46cdf9a8a2bfbe475e836899d05a315a987381999c52",
|
||||
"db/migration/governance/V20261007.204__create_ai_governance_suggestions.sql": "111f20b1674c6495dc638bbaba252174c995b5813a679e8d8c382448b4e991e1",
|
||||
"db/migration/dataops/V20261007.205__create_ai_dataops_suggestions.sql": "4b2a416ef0493796b76de2b3c56251ffe0841f0442f8391020d1d339d923b558",
|
||||
"db/migration/system/V20261007.206__register_ai_assistant_menus_permissions.sql": "3702bc1d4c610e9f706c583a42666e3fa71645af6e798843374fc6c3f58e5269",
|
||||
"db/migration/system/V20261008.207__embed_quality_rule_ai_entry.sql": "f0c2411611905c9e498d6d690412eb91a145eae9ac616444c3039dffee8e1408",
|
||||
"db/migration/system/V20261009.208__embed_metadata_catalog_ai_enrichment.sql": "55140d95d25d687057dd2b92e4dd99df59a61c95ff74e3c5015d37ac8639c9f2",
|
||||
"db/migration/system/V20261009.209__embed_standard_adoption_ai_match.sql": "50d041ec0e92e7046211471e81c0b4f9506380c61455a820754cc38671acba4f",
|
||||
"db/migration/system/V20261009.210__embed_run_operation_ai_diagnosis.sql": "a5b9717e6c036f69e7a767609f7ee9b1122bdbe5e66d067e9021194ff7b21554",
|
||||
"bootstrap/catalog.json": "917ed6d7fe4e84cb6dd207297acaedad3db1a03b652b5cb353c294c6ef383b4d",
|
||||
"compose.json": "2c15838601b2fece0e5927804e7a40372bf6072598f1e933cbd192c02e72f0c1",
|
||||
"bootstrap/bootstrap.py": "7590ff499b257b0322c10a56b0ee497626ec43769e4c6206bb4ff36113c2ba9c"
|
||||
}
|
||||
@@ -0,0 +1,100 @@
|
||||
{
|
||||
"services": {
|
||||
"m2-seatunnel": {
|
||||
"image": "sha256:ca3abd5c49419c8187cad3043f8c5c69637ef6a023fabd62f0663c26e7fd5372",
|
||||
"image_matches": true,
|
||||
"status": "PASS",
|
||||
"restart_count": 0
|
||||
},
|
||||
"m2-dolphinscheduler": {
|
||||
"image": "sha256:682d0c583f3066d20612d706537ebdb101b926d468c81eeb5e9575dff97f1f13",
|
||||
"image_matches": true,
|
||||
"status": "PASS",
|
||||
"restart_count": 0
|
||||
},
|
||||
"m2-hive-mysql": {
|
||||
"image": "sha256:4af1f8815716546f5b12410f7621f37f93db8dd11a184706ef59111930b8c2ff",
|
||||
"image_matches": true,
|
||||
"status": "PASS",
|
||||
"restart_count": 0
|
||||
},
|
||||
"m2-hive-minio": {
|
||||
"image": "sha256:a1ea29fa28355559ef137d71fc570e508a214ec84ff8083e39bc5428980b015e",
|
||||
"image_matches": true,
|
||||
"status": "PASS",
|
||||
"restart_count": 0
|
||||
},
|
||||
"m2-hive-minio-bootstrap": {
|
||||
"image": "sha256:aead63c77f9db9107f1696fb08ecb0faeda23729cde94b0f663edf4fe09728e3",
|
||||
"image_matches": true,
|
||||
"status": "PASS",
|
||||
"restart_count": 0
|
||||
},
|
||||
"m2-hive-metastore": {
|
||||
"image": "sha256:1f6e960ff19a915f8f21df796f6818921425ff3ec082b97b66198fe6b0ef0ba9",
|
||||
"image_matches": true,
|
||||
"status": "PASS",
|
||||
"restart_count": 0
|
||||
},
|
||||
"m2-hive": {
|
||||
"image": "sha256:1f6e960ff19a915f8f21df796f6818921425ff3ec082b97b66198fe6b0ef0ba9",
|
||||
"image_matches": true,
|
||||
"status": "PASS",
|
||||
"restart_count": 0
|
||||
},
|
||||
"m2-doris-fe": {
|
||||
"image": "sha256:390413325a93d9121768bda153ccaa3c7a8da4aa0fd2a466406cddc14a6399b2",
|
||||
"image_matches": true,
|
||||
"status": "PASS",
|
||||
"restart_count": 0
|
||||
},
|
||||
"m2-doris-be": {
|
||||
"image": "sha256:d911ae3826491598be4e383cba83011a266091b8fdc6c34c036280220cc4fea9",
|
||||
"image_matches": true,
|
||||
"status": "PASS",
|
||||
"restart_count": 0
|
||||
},
|
||||
"m2-om-mysql": {
|
||||
"image": "sha256:414f0fbc3fbc9b2de69d291a0ef2f82d0bf6bac67f8aa0bb851aeaa108f7c4f9",
|
||||
"image_matches": true,
|
||||
"status": "PASS",
|
||||
"restart_count": 0
|
||||
},
|
||||
"m2-om-airflow-mysql": {
|
||||
"image": "sha256:414f0fbc3fbc9b2de69d291a0ef2f82d0bf6bac67f8aa0bb851aeaa108f7c4f9",
|
||||
"image_matches": true,
|
||||
"status": "PASS",
|
||||
"restart_count": 0
|
||||
},
|
||||
"m2-om-elasticsearch": {
|
||||
"image": "sha256:4f6bdcb742e892539c6ac49b0dd3e4e182e90218546e8c6a22db378c344acb60",
|
||||
"image_matches": true,
|
||||
"status": "PASS",
|
||||
"restart_count": 0
|
||||
},
|
||||
"m2-om-migrate": {
|
||||
"image": "sha256:99b48e01b941efb6ace3c742fdf074fb173734739b4c57c50ee4959f49d527f8",
|
||||
"image_matches": true,
|
||||
"status": "PASS",
|
||||
"restart_count": 0
|
||||
},
|
||||
"m2-om-ingestion": {
|
||||
"image": "sha256:3e25a862539d5b23ccf5320bce100cd443bd8e0b49feec3176d81e359eef0131",
|
||||
"image_matches": true,
|
||||
"status": "PASS",
|
||||
"restart_count": 0
|
||||
},
|
||||
"m2-openmetadata": {
|
||||
"image": "sha256:99b48e01b941efb6ace3c742fdf074fb173734739b4c57c50ee4959f49d527f8",
|
||||
"image_matches": true,
|
||||
"status": "PASS",
|
||||
"restart_count": 0
|
||||
}
|
||||
},
|
||||
"native_schema_versions": {
|
||||
"m2-hive-mysql": "4.2.0",
|
||||
"m2-om-airflow-mysql": "d2f4e1b3c5a7",
|
||||
"dolphinscheduler_schema_sha256": "652591835931fb94d92c49227f571f3946740785bd3c8cb3cee94f6247480bf0"
|
||||
},
|
||||
"status": "PASS"
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
{
|
||||
"sha256": "70ed1b65c81c50e5e00beef13316b4a28aa25499ce8eadeb460718e9d527b818",
|
||||
"images": {
|
||||
"m2-seatunnel": {
|
||||
"tag": "aixun-datagov/m2-seatunnel:remote-20261010-01",
|
||||
"id": "sha256:ca3abd5c49419c8187cad3043f8c5c69637ef6a023fabd62f0663c26e7fd5372",
|
||||
"platform": "linux/amd64",
|
||||
"size": 1520925348
|
||||
},
|
||||
"m2-dolphinscheduler": {
|
||||
"tag": "aixun-datagov/m2-dolphinscheduler:remote-20261010-01",
|
||||
"id": "sha256:682d0c583f3066d20612d706537ebdb101b926d468c81eeb5e9575dff97f1f13",
|
||||
"platform": "linux/amd64",
|
||||
"size": 2017619270
|
||||
},
|
||||
"m2-hive": {
|
||||
"tag": "aixun-datagov/m2-hive:remote-20261010-01",
|
||||
"id": "sha256:1f6e960ff19a915f8f21df796f6818921425ff3ec082b97b66198fe6b0ef0ba9",
|
||||
"platform": "linux/amd64",
|
||||
"size": 3101200890
|
||||
},
|
||||
"m2-om-ingestion": {
|
||||
"tag": "aixun-datagov/m2-om-ingestion:remote-20261010-01",
|
||||
"id": "sha256:3e25a862539d5b23ccf5320bce100cd443bd8e0b49feec3176d81e359eef0131",
|
||||
"platform": "linux/amd64",
|
||||
"size": 1824704508
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
{
|
||||
"m2-seatunnel": {
|
||||
"tag": "aixun-datagov/m2-seatunnel:remote-20261010-01",
|
||||
"id": "sha256:ca3abd5c49419c8187cad3043f8c5c69637ef6a023fabd62f0663c26e7fd5372",
|
||||
"platform": "linux/amd64",
|
||||
"size": 1520925348
|
||||
},
|
||||
"m2-dolphinscheduler": {
|
||||
"tag": "aixun-datagov/m2-dolphinscheduler:remote-20261010-01",
|
||||
"id": "sha256:682d0c583f3066d20612d706537ebdb101b926d468c81eeb5e9575dff97f1f13",
|
||||
"platform": "linux/amd64",
|
||||
"size": 2017619270
|
||||
},
|
||||
"m2-hive": {
|
||||
"tag": "aixun-datagov/m2-hive:remote-20261010-01",
|
||||
"id": "sha256:1f6e960ff19a915f8f21df796f6818921425ff3ec082b97b66198fe6b0ef0ba9",
|
||||
"platform": "linux/amd64",
|
||||
"size": 3101200890
|
||||
},
|
||||
"m2-om-ingestion": {
|
||||
"tag": "aixun-datagov/m2-om-ingestion:remote-20261010-01",
|
||||
"id": "sha256:3e25a862539d5b23ccf5320bce100cd443bd8e0b49feec3176d81e359eef0131",
|
||||
"platform": "linux/amd64",
|
||||
"size": 1824704508
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"configs": {
|
||||
"aixun-datagov-auth.yml": "d801d7441ed9d3e27346a34c93835624429702099c6d96ef39dcad003bb28956",
|
||||
"aixun-datagov-gateway.yml": "3695ba658640e09c5177bf67c2c06ed7ca7a59781ebc10b43f16bc588c5ee99d",
|
||||
"aixun-datagov-resource.yml": "2d7cbfcd065bd5c18a74c5823020d6e3cd6729dbb89f29de37b4c9fb3168f107",
|
||||
"aixun-datagov-system.yml": "59cdd3e14dcb98f0e65d5fb12fe08460eae9e69d84e8cab67ee7809f73550dd9",
|
||||
"aixun-dataops.yml": "57561ee01856111f37acc0d45ea735d17aed67d63d9e3998dbd4fd1e1c1e62ed",
|
||||
"aixun-dataproduct.yml": "27d76f61362a834c558995932d9516fe7dc6ecdf8955ec3a0745e1aff6e5ec13",
|
||||
"aixun-governance.yml": "ca85d174876f5847dc68aa097e1013383aa7b03fcc26e7f7c6dbb009557f7146",
|
||||
"aixun-integration.yml": "0ffa1c2909a5c9470504636d723679a8076290139214107a8470bc2c95d504e9",
|
||||
"application-common.yml": "0115688d403dcb0678fcc616b222b54b77d0cd3ffca1187073ca0d27ec536033",
|
||||
"datasource.yml": "dabc21dc741cf2901d6ee62ae8554868765e2279855a45e1bcf4ef34df49c923"
|
||||
},
|
||||
"admin": "password stored in server secretRef"
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"version": "remote-20261010-01",
|
||||
"phase": "https",
|
||||
"corporate_before": "9e0aadf57bd479097927280bb7b05b005d9a954378fc52ae03224837fc582fe0",
|
||||
"corporate_after": "6547b752caddc607daed1d9114ddaddf5f00f12d162760ee5a73035a54804e42",
|
||||
"datagov_after": "dad988b3d0625c6eeaf3beb4d40ce05620d5be402141aac5eaf9706ce09ca082",
|
||||
"certificate_sha256": "eee7d834992c625eebe1109f82c03114997c8e7d9d65e7a9c0193ee6fbae1d0b",
|
||||
"changed_domains": [
|
||||
"v.aixunkeji.cn"
|
||||
],
|
||||
"preserved_domains": [
|
||||
"t.aixunkeji.cn"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
{
|
||||
"url": "https://v.aixunkeji.cn",
|
||||
"tls_verification": true,
|
||||
"frontend": {
|
||||
"http": 200,
|
||||
"sha256": "41fcd17e1a2b4cde33686c7d865376cf05c1b7d694cf211e1c34d4315b2a179a"
|
||||
},
|
||||
"corporate_t_preserved": true,
|
||||
"anonymous_denied": true,
|
||||
"login": {
|
||||
"http": 200,
|
||||
"code": 200
|
||||
},
|
||||
"identity": {
|
||||
"http": 200,
|
||||
"code": 200
|
||||
},
|
||||
"menus": {
|
||||
"http": 200,
|
||||
"code": 200
|
||||
},
|
||||
"integration": {
|
||||
"http": 200,
|
||||
"code": 200
|
||||
},
|
||||
"dataops": {
|
||||
"http": 200,
|
||||
"code": 200
|
||||
},
|
||||
"governance": {
|
||||
"http": 200,
|
||||
"code": 200
|
||||
},
|
||||
"dataproduct": {
|
||||
"http": 200,
|
||||
"code": 200
|
||||
},
|
||||
"certificate": "subject=CN = v.aixunkeji.cn\nissuer=C = US, O = Let's Encrypt, CN = YE1\nnotBefore=Oct 10 08:13:05 2026 GMT\nnotAfter=Jan 8 08:13:04 2027 GMT\nsha256 Fingerprint=B5:75:02:30:57:7F:B3:F4:B3:F6:B8:22:34:64:E4:F2:95:C2:CC:37:3B:97:C9:C3:F0:36:50:CA:27:A1:83:1F\nX509v3 Subject Alternative Name: \n DNS:v.aixunkeji.cn\n",
|
||||
"status": "PASS"
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"status": "PASS",
|
||||
"reconciled_after_command_failure": true,
|
||||
"services": {
|
||||
"mysql": {
|
||||
"id": "db7c8474dc1dea9707ec5fcf6bedfe78dcf3b35328784ee5ef13d8520dc4c195",
|
||||
"image": "sha256:c36050afdca850f23cef85703f84c7531a5ae155a11b5ee1c60acb09937c4084",
|
||||
"health": "healthy"
|
||||
},
|
||||
"redis": {
|
||||
"id": "2105c58515b8d0e61fca63d1460c67c5cca5e9afa7f12f0cba27b5da0c7f32f4",
|
||||
"image": "sha256:4d25e2fe601f7ffaeb4437cb6ced3518bc36edf34ebe98863c80836943d94529",
|
||||
"health": "healthy"
|
||||
},
|
||||
"nacos": {
|
||||
"id": "2484f2cbb26ff955c314f5f706d152e0a0f0eeaf56fd69f9c72513122a634408",
|
||||
"image": "sha256:059ca6313125c9ec43854d87d10b0d52fbbe86e595afad89b04da3ad5e2a3fde",
|
||||
"health": "healthy"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,826 @@
|
||||
[
|
||||
{
|
||||
"version": "20260824.000",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260824.001",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260824.002",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260824.003",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260824.004",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260824.005",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260825.006",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260825.007",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260825.008",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260825.009",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260825.010",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260825.011",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260825.012",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260825.013",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260825.014",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260825.015",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260825.016",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260826.017",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260826.018",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260826.019",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260826.020",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260826.021",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260826.022",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260826.023",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260826.024",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260826.025",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260826.026",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260826.027",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260827.028",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260827.029",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260827.030",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260827.031",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260827.032",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260827.033",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260827.034",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260827.035",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260827.036",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260827.037",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260827.038",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260828.039",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260828.040",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260828.041",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260828.042",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260828.043",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260828.044",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260828.045",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260828.046",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260828.047",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260828.048",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260828.049",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260828.050",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260828.051",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260828.052",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260829.053",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260829.054",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260829.055",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260829.056",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260829.057",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260829.058",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260829.059",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260829.060",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260829.061",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260829.062",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260829.063",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260829.064",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260829.065",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260829.066",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260829.067",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260829.068",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260829.069",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260829.070",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260829.071",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260829.072",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260829.073",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260829.074",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260829.075",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260829.076",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260829.077",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260829.078",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260829.079",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260829.080",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260829.081",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260829.082",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260829.083",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260830.084",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260830.085",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260830.086",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260830.087",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260830.088",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260830.089",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260830.090",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260830.091",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260830.092",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260830.093",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260830.094",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260830.095",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260830.096",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260830.097",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260830.098",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260830.099",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260830.100",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260830.101",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260830.102",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260830.103",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260830.104",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260830.105",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260830.106",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260830.107",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260830.108",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260830.109",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260830.110",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260831.111",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260901.112",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260902.113",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260903.114",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260903.115",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260904.116",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260904.117",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260908.118",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260908.119",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260908.120",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260908.121",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260909.122",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260909.124",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260910.125",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260910.126",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260910.127",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260910.128",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260911.129",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260913.130",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260913.131",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260914.132",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260914.133",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260914.134",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260914.135",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260914.136",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260914.137",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260915.138",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260915.139",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260915.140",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260915.141",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260915.142",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260915.143",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260915.144",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260915.145",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260915.146",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260916.147",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260916.148",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260916.149",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260916.150",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260916.151",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260916.152",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260917.153",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260917.154",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260917.155",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260918.156",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260919.157",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260920.158",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260920.159",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260920.160",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260920.161",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260920.162",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260921.163",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260921.164",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260921.165",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260921.166",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260921.167",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260921.168",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260921.170",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260921.171",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260921.172",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260921.173",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260921.174",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260921.175",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260921.176",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260921.177",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260922.178",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260922.180",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260922.181",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260922.182",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260922.183",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260922.184",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260922.187",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260922.188",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260922.189",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260923.190",
|
||||
"status": "ALREADY_APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260923.191",
|
||||
"status": "APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260923.192",
|
||||
"status": "APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260923.193",
|
||||
"status": "APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260924.194",
|
||||
"status": "APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260926.195",
|
||||
"status": "APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260926.196",
|
||||
"status": "APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260928.197",
|
||||
"status": "APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260928.198",
|
||||
"status": "APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20260928.199",
|
||||
"status": "APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20261005.200",
|
||||
"status": "APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20261005.201",
|
||||
"status": "APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20261007.202",
|
||||
"status": "APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20261007.203",
|
||||
"status": "APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20261007.204",
|
||||
"status": "APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20261007.205",
|
||||
"status": "APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20261007.206",
|
||||
"status": "APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20261008.207",
|
||||
"status": "APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20261009.208",
|
||||
"status": "APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20261009.209",
|
||||
"status": "APPLIED"
|
||||
},
|
||||
{
|
||||
"version": "20261009.210",
|
||||
"status": "APPLIED"
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,56 @@
|
||||
{
|
||||
"openmetadata": {
|
||||
"status": "PASS",
|
||||
"result": "PASS: OpenMetadata bootstrap administrator rotated; DataSteward plus M2 least-privilege writer service identity and 30-day JWT secretRef read back; unauthenticated access denied.",
|
||||
"token": {
|
||||
"http": 200,
|
||||
"JWTTokenExpiry": "30",
|
||||
"JWTTokenExpiresAt": 1794211249522,
|
||||
"tokenPersistedBy": "secretRef"
|
||||
}
|
||||
},
|
||||
"doris": {
|
||||
"status": "PASS",
|
||||
"result": "PASS: Doris loader/query/denied identities, column grant, row policy and workload group read back."
|
||||
},
|
||||
"doris_admin": {
|
||||
"status": "PASS",
|
||||
"users": [
|
||||
{
|
||||
"identity": "'admin'@'%'",
|
||||
"password_configured": true
|
||||
},
|
||||
{
|
||||
"identity": "'aixun_m2_doris_denied'@'%'",
|
||||
"password_configured": true
|
||||
},
|
||||
{
|
||||
"identity": "'aixun_m2_doris_loader'@'%'",
|
||||
"password_configured": true
|
||||
},
|
||||
{
|
||||
"identity": "'aixun_m2_doris_query'@'%'",
|
||||
"password_configured": true
|
||||
},
|
||||
{
|
||||
"identity": "'root'@'%'",
|
||||
"password_configured": true
|
||||
}
|
||||
]
|
||||
},
|
||||
"hive": {
|
||||
"status": "PASS",
|
||||
"result": "PASS: fresh-install Hive table SELECT/INSERT grants read back; existing-table access denied for denied identity.",
|
||||
"reconciliation": {
|
||||
"status": "PASS",
|
||||
"table_privilege_rows": 4,
|
||||
"database_privileges": 0,
|
||||
"denied_read_exit": 1,
|
||||
"denied_failure_is_privilege": true
|
||||
}
|
||||
},
|
||||
"dolphinscheduler": {
|
||||
"status": "PASS",
|
||||
"result": "PASS: DolphinScheduler bootstrap credential rotated; GENERAL_USER token owns only the M2 project."
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"checked_existing_containers": 58,
|
||||
"identity_changes": [],
|
||||
"status": "PASS"
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"sha256": "19f54b4bf92628e60c12d5e96f8e97a3e9ae8f8e7e0e44cea9402613d03fb4ef",
|
||||
"images": {
|
||||
"m2-hive-mysql": {
|
||||
"tag": "aixun-datagov/m2-hive-mysql:remote-20261010-01",
|
||||
"id": "sha256:4af1f8815716546f5b12410f7621f37f93db8dd11a184706ef59111930b8c2ff",
|
||||
"platform": "linux/amd64"
|
||||
},
|
||||
"m2-hive-minio": {
|
||||
"tag": "aixun-datagov/m2-hive-minio:remote-20261010-01",
|
||||
"id": "sha256:a1ea29fa28355559ef137d71fc570e508a214ec84ff8083e39bc5428980b015e",
|
||||
"platform": "linux/amd64"
|
||||
},
|
||||
"m2-hive-minio-bootstrap": {
|
||||
"tag": "aixun-datagov/m2-hive-minio-bootstrap:remote-20261010-01",
|
||||
"id": "sha256:aead63c77f9db9107f1696fb08ecb0faeda23729cde94b0f663edf4fe09728e3",
|
||||
"platform": "linux/amd64"
|
||||
},
|
||||
"m2-openmetadata": {
|
||||
"tag": "aixun-datagov/m2-openmetadata:remote-20261010-01",
|
||||
"id": "sha256:99b48e01b941efb6ace3c742fdf074fb173734739b4c57c50ee4959f49d527f8",
|
||||
"platform": "linux/amd64"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"m2-hive-mysql": {
|
||||
"tag": "aixun-datagov/m2-hive-mysql:remote-20261010-01",
|
||||
"id": "sha256:4af1f8815716546f5b12410f7621f37f93db8dd11a184706ef59111930b8c2ff",
|
||||
"platform": "linux/amd64"
|
||||
},
|
||||
"m2-hive-minio": {
|
||||
"tag": "aixun-datagov/m2-hive-minio:remote-20261010-01",
|
||||
"id": "sha256:a1ea29fa28355559ef137d71fc570e508a214ec84ff8083e39bc5428980b015e",
|
||||
"platform": "linux/amd64"
|
||||
},
|
||||
"m2-hive-minio-bootstrap": {
|
||||
"tag": "aixun-datagov/m2-hive-minio-bootstrap:remote-20261010-01",
|
||||
"id": "sha256:aead63c77f9db9107f1696fb08ecb0faeda23729cde94b0f663edf4fe09728e3",
|
||||
"platform": "linux/amd64"
|
||||
},
|
||||
"m2-openmetadata": {
|
||||
"tag": "aixun-datagov/m2-openmetadata:remote-20261010-01",
|
||||
"id": "sha256:99b48e01b941efb6ace3c742fdf074fb173734739b4c57c50ee4959f49d527f8",
|
||||
"platform": "linux/amd64"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,84 @@
|
||||
{
|
||||
"version": "remote-20261010-01",
|
||||
"target": "test-v",
|
||||
"services": {
|
||||
"gateway": {
|
||||
"tag": "aixun-datagov/gateway:remote-20261010-01",
|
||||
"id": "sha256:101533e52cefdc5e78a9419d3e9ed63af738c5a9803d193bcd2b557d68818d61",
|
||||
"artifact_sha256": "60b9fdb58d6231923161c931776dd7bcd1307619f365e4a1844949c1399be0b1",
|
||||
"platform": "linux/amd64",
|
||||
"source": "sha256:101533e52cefdc5e78a9419d3e9ed63af738c5a9803d193bcd2b557d68818d61"
|
||||
},
|
||||
"auth": {
|
||||
"tag": "aixun-datagov/auth:remote-20261010-01",
|
||||
"id": "sha256:068d5c30fbf457ff1b66cabf8da2b3ab5947d63453705ae0341b23c8ca9c34d0",
|
||||
"artifact_sha256": "2fbe6763932151c0c7194e5e4084e07efbb4f52c78db12bbbf839f686f2a4e40",
|
||||
"platform": "linux/amd64",
|
||||
"source": "sha256:068d5c30fbf457ff1b66cabf8da2b3ab5947d63453705ae0341b23c8ca9c34d0"
|
||||
},
|
||||
"system": {
|
||||
"tag": "aixun-datagov/system:remote-20261010-01",
|
||||
"id": "sha256:51cc508e90d343ec33ca43bbf3027041995df9f53c99f9247daca7ce3038b2bd",
|
||||
"artifact_sha256": "cf272b3f8be9a16d7f8bebcbc5d813a9eb10b9156991f9987c8ccebb51a64816",
|
||||
"platform": "linux/amd64",
|
||||
"source": "sha256:51cc508e90d343ec33ca43bbf3027041995df9f53c99f9247daca7ce3038b2bd"
|
||||
},
|
||||
"resource": {
|
||||
"tag": "aixun-datagov/resource:remote-20261010-01",
|
||||
"id": "sha256:bcc8a5d1551d0c0f96502eed4dff8cb6fd7867480d587d940003522429a12729",
|
||||
"artifact_sha256": "1d2eb0e74fb6c01052a5121c97324ba462b5bedd93a039c5e26c5f29c0829785",
|
||||
"platform": "linux/amd64",
|
||||
"source": "sha256:bcc8a5d1551d0c0f96502eed4dff8cb6fd7867480d587d940003522429a12729"
|
||||
},
|
||||
"integration": {
|
||||
"tag": "aixun-datagov/integration:remote-20261010-01",
|
||||
"id": "sha256:553d05e2da41ef9b90029c771bf3f44fcc99dfa52dd1705c5f90ed5213b70db7",
|
||||
"artifact_sha256": "27f55419216a60c4bd5327411c6311e75e485fee383de24f7d0498eea81b304a",
|
||||
"platform": "linux/amd64",
|
||||
"source": "sha256:553d05e2da41ef9b90029c771bf3f44fcc99dfa52dd1705c5f90ed5213b70db7"
|
||||
},
|
||||
"dataops": {
|
||||
"tag": "aixun-datagov/dataops:remote-20261010-01",
|
||||
"id": "sha256:7359df0d2ef67feeca94263696565de0edef8f18dae2ae49e10bcfcc9e098afb",
|
||||
"artifact_sha256": "7340f80a2f21dd10a97edbda6ee3410fdae35ff5cea8e6c5504ff0acbf15c00d",
|
||||
"platform": "linux/amd64",
|
||||
"source": "sha256:7359df0d2ef67feeca94263696565de0edef8f18dae2ae49e10bcfcc9e098afb"
|
||||
},
|
||||
"governance": {
|
||||
"tag": "aixun-datagov/governance:remote-20261010-01",
|
||||
"id": "sha256:03b84a618107d9246569e9c733f04903bb7787a156ddd3246c20526d51a105ab",
|
||||
"artifact_sha256": "c9bf03bc9e5e5927109d837ba1818904b372074c18ae1e8b265e4e5a411186d1",
|
||||
"platform": "linux/amd64",
|
||||
"source": "sha256:03b84a618107d9246569e9c733f04903bb7787a156ddd3246c20526d51a105ab"
|
||||
},
|
||||
"dataproduct": {
|
||||
"tag": "aixun-datagov/dataproduct:remote-20261010-01",
|
||||
"id": "sha256:67e459cef0cb972da8442eb5d9e433fb8e4f989882677db0b16fb422f4443dcf",
|
||||
"artifact_sha256": "fd3413b51ba2e10c8e74f9c38e56e55ad55a213347bf787627e836ab921769b8",
|
||||
"platform": "linux/amd64",
|
||||
"source": "sha256:67e459cef0cb972da8442eb5d9e433fb8e4f989882677db0b16fb422f4443dcf"
|
||||
},
|
||||
"frontend": {
|
||||
"tag": "aixun-datagov/frontend:remote-20261010-01",
|
||||
"id": "sha256:9c501b9d535742d6ff26a8d91327bd31daf2a609891bab2df5ffb712fbfcfacf",
|
||||
"artifact_sha256": "dcab55478c1fbdf3796b28b7d51831c668a0576d7b8398646c74f9aee15b65a5",
|
||||
"platform": "linux/amd64",
|
||||
"source": "sha256:9c501b9d535742d6ff26a8d91327bd31daf2a609891bab2df5ffb712fbfcfacf",
|
||||
"artifact_path": "/opt/aixun-datagov/frontend-576"
|
||||
}
|
||||
},
|
||||
"database_change": true,
|
||||
"config_change": true,
|
||||
"transfer_sha256": "cfef017116c2d85d526554b3b9da23b569d2c73dd7da58040172657127b1690f",
|
||||
"expected_remote": {
|
||||
"gateway": null,
|
||||
"auth": null,
|
||||
"system": null,
|
||||
"resource": null,
|
||||
"integration": null,
|
||||
"dataops": null,
|
||||
"governance": null,
|
||||
"dataproduct": null,
|
||||
"frontend": null
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,376 @@
|
||||
{
|
||||
"network": [
|
||||
{
|
||||
"name": "aixun-datagov-local-backend",
|
||||
"id": "5be135116e5af13c6c22b742f9eb7e8ca928bf238f91e9dd6966fd7f51ce1108",
|
||||
"labels": {
|
||||
"com.aixun.environment": "test",
|
||||
"com.aixun.project": "aixun-datagov",
|
||||
"com.docker.compose.config-hash": "ae42e0c9e1c0747d175206e7f35898e40733a705d59a2f98f294312540e770dc",
|
||||
"com.docker.compose.network": "backend",
|
||||
"com.docker.compose.project": "aixun-datagov-local",
|
||||
"com.docker.compose.version": "5.4.0"
|
||||
},
|
||||
"ipam": {
|
||||
"Driver": "default",
|
||||
"Options": null,
|
||||
"Config": [
|
||||
{
|
||||
"Subnet": "192.168.16.0/20",
|
||||
"Gateway": "192.168.16.1"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "aixun-datagov-local-frontend",
|
||||
"id": "0d9799886f3213246d96981c9d57a469b38512ea7321cb138fe6148e43c52914",
|
||||
"labels": {
|
||||
"com.aixun.environment": "test",
|
||||
"com.aixun.project": "aixun-datagov",
|
||||
"com.docker.compose.network": "frontend",
|
||||
"com.docker.compose.project": "aixun-datagov-local"
|
||||
},
|
||||
"ipam": {
|
||||
"Driver": "default",
|
||||
"Options": {},
|
||||
"Config": [
|
||||
{
|
||||
"Subnet": "192.168.32.0/20",
|
||||
"Gateway": "192.168.32.1"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "aixun-datagov-local-m2-doris-private",
|
||||
"id": "ae9dce0505070919533b2891c0a5f5c7e925cccb36fa4de020997e86f4c69f4d",
|
||||
"labels": {
|
||||
"com.aixun.environment": "test",
|
||||
"com.aixun.project": "aixun-datagov",
|
||||
"com.docker.compose.network": "m2-doris-private",
|
||||
"com.docker.compose.project": "aixun-datagov-local"
|
||||
},
|
||||
"ipam": {
|
||||
"Driver": "default",
|
||||
"Options": {},
|
||||
"Config": [
|
||||
{
|
||||
"Subnet": "10.243.41.0/24",
|
||||
"Gateway": "10.243.41.1"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "aixun-datagov-local-m2-hive-private",
|
||||
"id": "02641cfa271f02b2d537c7a0cbf6c47d134535361af7b5e7e93e668b3a9197f1",
|
||||
"labels": {
|
||||
"com.aixun.environment": "test",
|
||||
"com.aixun.project": "aixun-datagov",
|
||||
"com.docker.compose.network": "m2-hive-private",
|
||||
"com.docker.compose.project": "aixun-datagov-local"
|
||||
},
|
||||
"ipam": {
|
||||
"Driver": "default",
|
||||
"Options": {},
|
||||
"Config": [
|
||||
{
|
||||
"Subnet": "192.168.64.0/20",
|
||||
"Gateway": "192.168.64.1"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "aixun-datagov-local-m2-integration",
|
||||
"id": "452d6bfe8d99d954c328e94e5515d3459aa02c8b0555028508bb97a101dd3b60",
|
||||
"labels": {
|
||||
"com.aixun.environment": "test",
|
||||
"com.aixun.project": "aixun-datagov",
|
||||
"com.docker.compose.network": "m2-integration",
|
||||
"com.docker.compose.project": "aixun-datagov-local"
|
||||
},
|
||||
"ipam": {
|
||||
"Driver": "default",
|
||||
"Options": {},
|
||||
"Config": [
|
||||
{
|
||||
"Subnet": "192.168.48.0/20",
|
||||
"Gateway": "192.168.48.1"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "aixun-datagov-local-m2-om-private",
|
||||
"id": "f0671ff581dd76107dcb8756d4fb662142516c8321b087f5a925e6448de7c9ac",
|
||||
"labels": {
|
||||
"com.aixun.environment": "test",
|
||||
"com.aixun.project": "aixun-datagov",
|
||||
"com.docker.compose.network": "m2-om-private",
|
||||
"com.docker.compose.project": "aixun-datagov-local"
|
||||
},
|
||||
"ipam": {
|
||||
"Driver": "default",
|
||||
"Options": {},
|
||||
"Config": [
|
||||
{
|
||||
"Subnet": "192.168.80.0/20",
|
||||
"Gateway": "192.168.80.1"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"volume": [
|
||||
{
|
||||
"name": "aixun-datagov-local-file-data",
|
||||
"id": null,
|
||||
"labels": {
|
||||
"com.aixun.environment": "test",
|
||||
"com.aixun.project": "aixun-datagov",
|
||||
"com.docker.compose.project": "aixun-datagov-local",
|
||||
"com.docker.compose.volume": "file-data"
|
||||
},
|
||||
"ipam": null
|
||||
},
|
||||
{
|
||||
"name": "aixun-datagov-local-file-ingestion-data",
|
||||
"id": null,
|
||||
"labels": {
|
||||
"com.aixun.environment": "test",
|
||||
"com.aixun.project": "aixun-datagov",
|
||||
"com.docker.compose.project": "aixun-datagov-local",
|
||||
"com.docker.compose.volume": "file-ingestion-data"
|
||||
},
|
||||
"ipam": null
|
||||
},
|
||||
{
|
||||
"name": "aixun-datagov-local-frontend-assets",
|
||||
"id": null,
|
||||
"labels": {
|
||||
"com.aixun.environment": "test",
|
||||
"com.aixun.project": "aixun-datagov",
|
||||
"com.docker.compose.project": "aixun-datagov-local",
|
||||
"com.docker.compose.volume": "frontend-assets"
|
||||
},
|
||||
"ipam": null
|
||||
},
|
||||
{
|
||||
"name": "aixun-datagov-local-m2-dolphinscheduler-logs",
|
||||
"id": null,
|
||||
"labels": {
|
||||
"com.aixun.environment": "test",
|
||||
"com.aixun.project": "aixun-datagov",
|
||||
"com.docker.compose.project": "aixun-datagov-local",
|
||||
"com.docker.compose.volume": "m2-dolphinscheduler-logs"
|
||||
},
|
||||
"ipam": null
|
||||
},
|
||||
{
|
||||
"name": "aixun-datagov-local-m2-doris-be-log",
|
||||
"id": null,
|
||||
"labels": {
|
||||
"com.aixun.environment": "test",
|
||||
"com.aixun.project": "aixun-datagov",
|
||||
"com.docker.compose.project": "aixun-datagov-local",
|
||||
"com.docker.compose.volume": "m2-doris-be-log"
|
||||
},
|
||||
"ipam": null
|
||||
},
|
||||
{
|
||||
"name": "aixun-datagov-local-m2-doris-be-storage",
|
||||
"id": null,
|
||||
"labels": {
|
||||
"com.aixun.environment": "test",
|
||||
"com.aixun.project": "aixun-datagov",
|
||||
"com.docker.compose.project": "aixun-datagov-local",
|
||||
"com.docker.compose.volume": "m2-doris-be-storage"
|
||||
},
|
||||
"ipam": null
|
||||
},
|
||||
{
|
||||
"name": "aixun-datagov-local-m2-doris-fe-log",
|
||||
"id": null,
|
||||
"labels": {
|
||||
"com.aixun.environment": "test",
|
||||
"com.aixun.project": "aixun-datagov",
|
||||
"com.docker.compose.project": "aixun-datagov-local",
|
||||
"com.docker.compose.volume": "m2-doris-fe-log"
|
||||
},
|
||||
"ipam": null
|
||||
},
|
||||
{
|
||||
"name": "aixun-datagov-local-m2-doris-fe-meta",
|
||||
"id": null,
|
||||
"labels": {
|
||||
"com.aixun.environment": "test",
|
||||
"com.aixun.project": "aixun-datagov",
|
||||
"com.docker.compose.project": "aixun-datagov-local",
|
||||
"com.docker.compose.volume": "m2-doris-fe-meta"
|
||||
},
|
||||
"ipam": null
|
||||
},
|
||||
{
|
||||
"name": "aixun-datagov-local-m2-hive-minio-data",
|
||||
"id": null,
|
||||
"labels": {
|
||||
"com.aixun.environment": "test",
|
||||
"com.aixun.project": "aixun-datagov",
|
||||
"com.docker.compose.project": "aixun-datagov-local",
|
||||
"com.docker.compose.volume": "m2-hive-minio-data"
|
||||
},
|
||||
"ipam": null
|
||||
},
|
||||
{
|
||||
"name": "aixun-datagov-local-m2-hive-mysql-data",
|
||||
"id": null,
|
||||
"labels": {
|
||||
"com.aixun.environment": "test",
|
||||
"com.aixun.project": "aixun-datagov",
|
||||
"com.docker.compose.project": "aixun-datagov-local",
|
||||
"com.docker.compose.volume": "m2-hive-mysql-data"
|
||||
},
|
||||
"ipam": null
|
||||
},
|
||||
{
|
||||
"name": "aixun-datagov-local-m2-om-airflow-mysql-data",
|
||||
"id": null,
|
||||
"labels": {
|
||||
"com.aixun.environment": "test",
|
||||
"com.aixun.project": "aixun-datagov",
|
||||
"com.docker.compose.project": "aixun-datagov-local",
|
||||
"com.docker.compose.volume": "m2-om-airflow-mysql-data"
|
||||
},
|
||||
"ipam": null
|
||||
},
|
||||
{
|
||||
"name": "aixun-datagov-local-m2-om-elasticsearch-data",
|
||||
"id": null,
|
||||
"labels": {
|
||||
"com.aixun.environment": "test",
|
||||
"com.aixun.project": "aixun-datagov",
|
||||
"com.docker.compose.project": "aixun-datagov-local",
|
||||
"com.docker.compose.volume": "m2-om-elasticsearch-data"
|
||||
},
|
||||
"ipam": null
|
||||
},
|
||||
{
|
||||
"name": "aixun-datagov-local-m2-om-ingestion-dag-configs",
|
||||
"id": null,
|
||||
"labels": {
|
||||
"com.aixun.environment": "test",
|
||||
"com.aixun.project": "aixun-datagov",
|
||||
"com.docker.compose.project": "aixun-datagov-local",
|
||||
"com.docker.compose.volume": "m2-om-ingestion-dag-configs"
|
||||
},
|
||||
"ipam": null
|
||||
},
|
||||
{
|
||||
"name": "aixun-datagov-local-m2-om-ingestion-dags",
|
||||
"id": null,
|
||||
"labels": {
|
||||
"com.aixun.environment": "test",
|
||||
"com.aixun.project": "aixun-datagov",
|
||||
"com.docker.compose.project": "aixun-datagov-local",
|
||||
"com.docker.compose.volume": "m2-om-ingestion-dags"
|
||||
},
|
||||
"ipam": null
|
||||
},
|
||||
{
|
||||
"name": "aixun-datagov-local-m2-om-ingestion-logs",
|
||||
"id": null,
|
||||
"labels": {
|
||||
"com.aixun.environment": "test",
|
||||
"com.aixun.project": "aixun-datagov",
|
||||
"com.docker.compose.project": "aixun-datagov-local",
|
||||
"com.docker.compose.volume": "m2-om-ingestion-logs"
|
||||
},
|
||||
"ipam": null
|
||||
},
|
||||
{
|
||||
"name": "aixun-datagov-local-m2-om-ingestion-tmp",
|
||||
"id": null,
|
||||
"labels": {
|
||||
"com.aixun.environment": "test",
|
||||
"com.aixun.project": "aixun-datagov",
|
||||
"com.docker.compose.project": "aixun-datagov-local",
|
||||
"com.docker.compose.volume": "m2-om-ingestion-tmp"
|
||||
},
|
||||
"ipam": null
|
||||
},
|
||||
{
|
||||
"name": "aixun-datagov-local-m2-om-mysql-data",
|
||||
"id": null,
|
||||
"labels": {
|
||||
"com.aixun.environment": "test",
|
||||
"com.aixun.project": "aixun-datagov",
|
||||
"com.docker.compose.project": "aixun-datagov-local",
|
||||
"com.docker.compose.volume": "m2-om-mysql-data"
|
||||
},
|
||||
"ipam": null
|
||||
},
|
||||
{
|
||||
"name": "aixun-datagov-local-m2-seatunnel-checkpoints",
|
||||
"id": null,
|
||||
"labels": {
|
||||
"com.aixun.environment": "test",
|
||||
"com.aixun.project": "aixun-datagov",
|
||||
"com.docker.compose.project": "aixun-datagov-local",
|
||||
"com.docker.compose.volume": "m2-seatunnel-checkpoints"
|
||||
},
|
||||
"ipam": null
|
||||
},
|
||||
{
|
||||
"name": "aixun-datagov-local-managed-credential-data",
|
||||
"id": null,
|
||||
"labels": {
|
||||
"com.aixun.environment": "test",
|
||||
"com.aixun.project": "aixun-datagov",
|
||||
"com.docker.compose.project": "aixun-datagov-local",
|
||||
"com.docker.compose.volume": "managed-credential-data"
|
||||
},
|
||||
"ipam": null
|
||||
},
|
||||
{
|
||||
"name": "aixun-datagov-local-mysql-data",
|
||||
"id": null,
|
||||
"labels": {
|
||||
"com.aixun.environment": "test",
|
||||
"com.aixun.project": "aixun-datagov",
|
||||
"com.docker.compose.config-hash": "e07149a967a485cbb13a7a1cfd6e17be6b9b2f41d6969fd472bcae8c5e3d6251",
|
||||
"com.docker.compose.project": "aixun-datagov-local",
|
||||
"com.docker.compose.version": "5.4.0",
|
||||
"com.docker.compose.volume": "mysql-data"
|
||||
},
|
||||
"ipam": null
|
||||
},
|
||||
{
|
||||
"name": "aixun-datagov-local-nacos-data",
|
||||
"id": null,
|
||||
"labels": {
|
||||
"com.aixun.environment": "test",
|
||||
"com.aixun.project": "aixun-datagov",
|
||||
"com.docker.compose.config-hash": "76c4ac939dbd6c93f4c42b443feeb65f65a023d03dacfe19a1d9d2273fe529bd",
|
||||
"com.docker.compose.project": "aixun-datagov-local",
|
||||
"com.docker.compose.version": "5.4.0",
|
||||
"com.docker.compose.volume": "nacos-data"
|
||||
},
|
||||
"ipam": null
|
||||
},
|
||||
{
|
||||
"name": "aixun-datagov-local-redis-data",
|
||||
"id": null,
|
||||
"labels": {
|
||||
"com.aixun.environment": "test",
|
||||
"com.aixun.project": "aixun-datagov",
|
||||
"com.docker.compose.config-hash": "67888625e47fdf57773903ecfb83e3c4a544b19f0a890f97a00ec3a1b2cb7840",
|
||||
"com.docker.compose.project": "aixun-datagov-local",
|
||||
"com.docker.compose.version": "5.4.0",
|
||||
"com.docker.compose.volume": "redis-data"
|
||||
},
|
||||
"ipam": null
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,293 @@
|
||||
{
|
||||
"version": "remote-20261010-01",
|
||||
"action": "apply",
|
||||
"health": {
|
||||
"gateway": "PASS",
|
||||
"auth": "PASS",
|
||||
"system": "PASS",
|
||||
"resource": "PASS",
|
||||
"integration": "PASS",
|
||||
"dataops": "PASS",
|
||||
"governance": "PASS",
|
||||
"dataproduct": "PASS",
|
||||
"frontend": "PASS"
|
||||
},
|
||||
"after": {
|
||||
"gateway": {
|
||||
"container": "36164c30da35c6735ca567c1ca144d3016bfe29065a5765f03c0114e3e8990cd",
|
||||
"image": "sha256:101533e52cefdc5e78a9419d3e9ed63af738c5a9803d193bcd2b557d68818d61",
|
||||
"networks": {
|
||||
"aixun-datagov-local-backend": {
|
||||
"id": "5be135116e5af13c6c22b742f9eb7e8ca928bf238f91e9dd6966fd7f51ce1108",
|
||||
"ip": "192.168.16.12"
|
||||
},
|
||||
"aixun-datagov-local-frontend": {
|
||||
"id": "0d9799886f3213246d96981c9d57a469b38512ea7321cb138fe6148e43c52914",
|
||||
"ip": "192.168.32.2"
|
||||
},
|
||||
"aixun-datagov-local-m2-integration": {
|
||||
"id": "452d6bfe8d99d954c328e94e5515d3459aa02c8b0555028508bb97a101dd3b60",
|
||||
"ip": "192.168.48.4"
|
||||
}
|
||||
},
|
||||
"mounts": [],
|
||||
"ports": {
|
||||
"8080/tcp": [
|
||||
{
|
||||
"HostIp": "127.0.0.1",
|
||||
"HostPort": "28080"
|
||||
}
|
||||
]
|
||||
},
|
||||
"config_sha256": "9ffad4c0595cf56eee3d6efe84ecba80a18d7ec285484b6a419eaed8fdb0f7a7"
|
||||
},
|
||||
"auth": {
|
||||
"container": "2250cd5db16c3aeaa31dd9d3b3a39c18570398bfea7c4848921b79019b1c850d",
|
||||
"image": "sha256:068d5c30fbf457ff1b66cabf8da2b3ab5947d63453705ae0341b23c8ca9c34d0",
|
||||
"networks": {
|
||||
"aixun-datagov-local-backend": {
|
||||
"id": "5be135116e5af13c6c22b742f9eb7e8ca928bf238f91e9dd6966fd7f51ce1108",
|
||||
"ip": "192.168.16.6"
|
||||
}
|
||||
},
|
||||
"mounts": [],
|
||||
"ports": {
|
||||
"9210/tcp": [
|
||||
{
|
||||
"HostIp": "127.0.0.1",
|
||||
"HostPort": "29210"
|
||||
}
|
||||
]
|
||||
},
|
||||
"config_sha256": "3c1a5bda7d90609011e292b4b3dfbd386ad755a4432fa8da368d4243f7c149a7"
|
||||
},
|
||||
"system": {
|
||||
"container": "7bc927cd125c481954e9898a606bb498b32e9f51f30ddde943b748ca607c3c58",
|
||||
"image": "sha256:51cc508e90d343ec33ca43bbf3027041995df9f53c99f9247daca7ce3038b2bd",
|
||||
"networks": {
|
||||
"aixun-datagov-local-backend": {
|
||||
"id": "5be135116e5af13c6c22b742f9eb7e8ca928bf238f91e9dd6966fd7f51ce1108",
|
||||
"ip": "192.168.16.8"
|
||||
}
|
||||
},
|
||||
"mounts": [],
|
||||
"ports": {
|
||||
"9201/tcp": [
|
||||
{
|
||||
"HostIp": "127.0.0.1",
|
||||
"HostPort": "29201"
|
||||
}
|
||||
]
|
||||
},
|
||||
"config_sha256": "d12f3e7c55aea440c6a0c7ab77c5efedd6938be9bf564286ad3a4de063060959"
|
||||
},
|
||||
"resource": {
|
||||
"container": "d1e4b19bdabd1fd898531b0b68947c435ca2fa0110a52392aca1e8ae18132e7c",
|
||||
"image": "sha256:bcc8a5d1551d0c0f96502eed4dff8cb6fd7867480d587d940003522429a12729",
|
||||
"networks": {
|
||||
"aixun-datagov-local-backend": {
|
||||
"id": "5be135116e5af13c6c22b742f9eb7e8ca928bf238f91e9dd6966fd7f51ce1108",
|
||||
"ip": "192.168.16.10"
|
||||
}
|
||||
},
|
||||
"mounts": [
|
||||
{
|
||||
"Type": "volume",
|
||||
"Name": "aixun-datagov-local-file-data",
|
||||
"Source": "/var/lib/docker/volumes/aixun-datagov-local-file-data/_data",
|
||||
"Destination": "/var/lib/aixun-datagov/files",
|
||||
"Driver": "local",
|
||||
"Mode": "rw",
|
||||
"RW": true,
|
||||
"Propagation": ""
|
||||
}
|
||||
],
|
||||
"ports": {
|
||||
"9204/tcp": [
|
||||
{
|
||||
"HostIp": "127.0.0.1",
|
||||
"HostPort": "29204"
|
||||
}
|
||||
]
|
||||
},
|
||||
"config_sha256": "6dafa6e8fc8b127573ed5d7475487e2cadb0f6a390a254170b84f9c28e56bd90"
|
||||
},
|
||||
"integration": {
|
||||
"container": "4767489bfe2092c3102288c6c4c7f4d747ed4af99f914e7ded89dd32d608ae30",
|
||||
"image": "sha256:553d05e2da41ef9b90029c771bf3f44fcc99dfa52dd1705c5f90ed5213b70db7",
|
||||
"networks": {
|
||||
"aixun-datagov-local-backend": {
|
||||
"id": "5be135116e5af13c6c22b742f9eb7e8ca928bf238f91e9dd6966fd7f51ce1108",
|
||||
"ip": "192.168.16.9"
|
||||
},
|
||||
"aixun-datagov-local-m2-integration": {
|
||||
"id": "452d6bfe8d99d954c328e94e5515d3459aa02c8b0555028508bb97a101dd3b60",
|
||||
"ip": "192.168.48.5"
|
||||
}
|
||||
},
|
||||
"mounts": [
|
||||
{
|
||||
"Type": "volume",
|
||||
"Name": "aixun-datagov-local-file-ingestion-data",
|
||||
"Source": "/var/lib/docker/volumes/aixun-datagov-local-file-ingestion-data/_data",
|
||||
"Destination": "/var/lib/aixun-datagov/ingestion",
|
||||
"Driver": "local",
|
||||
"Mode": "rw",
|
||||
"RW": true,
|
||||
"Propagation": ""
|
||||
},
|
||||
{
|
||||
"Type": "bind",
|
||||
"Source": "/opt/aixun-datagov/m2/local/secrets",
|
||||
"Destination": "/run/secrets/aixun-datagov/m2",
|
||||
"Mode": "ro",
|
||||
"RW": false,
|
||||
"Propagation": "rprivate"
|
||||
},
|
||||
{
|
||||
"Type": "volume",
|
||||
"Name": "aixun-datagov-local-managed-credential-data",
|
||||
"Source": "/var/lib/docker/volumes/aixun-datagov-local-managed-credential-data/_data",
|
||||
"Destination": "/run/secrets/aixun-datagov/managed",
|
||||
"Driver": "local",
|
||||
"Mode": "rw",
|
||||
"RW": true,
|
||||
"Propagation": ""
|
||||
}
|
||||
],
|
||||
"ports": {
|
||||
"9310/tcp": [
|
||||
{
|
||||
"HostIp": "127.0.0.1",
|
||||
"HostPort": "29310"
|
||||
}
|
||||
]
|
||||
},
|
||||
"config_sha256": "d6e031499d878393d7c2d6a0974d6b6fb8c7a6957961d269343bfc3582ea4b83"
|
||||
},
|
||||
"dataops": {
|
||||
"container": "f56b196516b773b92134071a47f8fb8a5077ccef5f2b156503aa8d3b7040efb3",
|
||||
"image": "sha256:7359df0d2ef67feeca94263696565de0edef8f18dae2ae49e10bcfcc9e098afb",
|
||||
"networks": {
|
||||
"aixun-datagov-local-backend": {
|
||||
"id": "5be135116e5af13c6c22b742f9eb7e8ca928bf238f91e9dd6966fd7f51ce1108",
|
||||
"ip": "192.168.16.11"
|
||||
}
|
||||
},
|
||||
"mounts": [],
|
||||
"ports": {
|
||||
"9320/tcp": [
|
||||
{
|
||||
"HostIp": "127.0.0.1",
|
||||
"HostPort": "29320"
|
||||
}
|
||||
]
|
||||
},
|
||||
"config_sha256": "494ca4186e93445d12234bf20d90cda342a9390608ee12fa5c1ff0248614b98c"
|
||||
},
|
||||
"governance": {
|
||||
"container": "4495d14e8270180834501b5d12639680837516b5efc9e47cd32a195a5a9e3a0f",
|
||||
"image": "sha256:03b84a618107d9246569e9c733f04903bb7787a156ddd3246c20526d51a105ab",
|
||||
"networks": {
|
||||
"aixun-datagov-local-backend": {
|
||||
"id": "5be135116e5af13c6c22b742f9eb7e8ca928bf238f91e9dd6966fd7f51ce1108",
|
||||
"ip": "192.168.16.7"
|
||||
}
|
||||
},
|
||||
"mounts": [],
|
||||
"ports": {
|
||||
"9330/tcp": [
|
||||
{
|
||||
"HostIp": "127.0.0.1",
|
||||
"HostPort": "29330"
|
||||
}
|
||||
]
|
||||
},
|
||||
"config_sha256": "b4ce7621617df411a4030d7b632ae285886dd94233450547fec64635a0c96afc"
|
||||
},
|
||||
"dataproduct": {
|
||||
"container": "068dbb30497d0538842c36285c65ccdd790d6a07d9dad463ec9a06405c9849c9",
|
||||
"image": "sha256:67e459cef0cb972da8442eb5d9e433fb8e4f989882677db0b16fb422f4443dcf",
|
||||
"networks": {
|
||||
"aixun-datagov-local-backend": {
|
||||
"id": "5be135116e5af13c6c22b742f9eb7e8ca928bf238f91e9dd6966fd7f51ce1108",
|
||||
"ip": "192.168.16.5"
|
||||
}
|
||||
},
|
||||
"mounts": [],
|
||||
"ports": {
|
||||
"9340/tcp": [
|
||||
{
|
||||
"HostIp": "127.0.0.1",
|
||||
"HostPort": "29340"
|
||||
}
|
||||
]
|
||||
},
|
||||
"config_sha256": "223608de7381e5b0fd6a422041ebcbb752e393c081685174d14f6c393e969f98"
|
||||
},
|
||||
"frontend": {
|
||||
"container": "89b1d9e7bfe3e3c646a45fb4b7969932897478f2af072515805b264037c5ef13",
|
||||
"image": "sha256:9c501b9d535742d6ff26a8d91327bd31daf2a609891bab2df5ffb712fbfcfacf",
|
||||
"networks": {
|
||||
"aixun-datagov-local-frontend": {
|
||||
"id": "0d9799886f3213246d96981c9d57a469b38512ea7321cb138fe6148e43c52914",
|
||||
"ip": "192.168.32.3"
|
||||
}
|
||||
},
|
||||
"mounts": [
|
||||
{
|
||||
"Type": "volume",
|
||||
"Name": "aixun-datagov-local-frontend-assets",
|
||||
"Source": "/var/lib/docker/volumes/aixun-datagov-local-frontend-assets/_data",
|
||||
"Destination": "/usr/share/nginx/html",
|
||||
"Driver": "local",
|
||||
"Mode": "rw",
|
||||
"RW": true,
|
||||
"Propagation": ""
|
||||
},
|
||||
{
|
||||
"Type": "bind",
|
||||
"Source": "/opt/aixun-datagov/nginx/frontend.conf",
|
||||
"Destination": "/etc/nginx/conf.d/default.conf",
|
||||
"Mode": "ro",
|
||||
"RW": false,
|
||||
"Propagation": "rprivate"
|
||||
}
|
||||
],
|
||||
"ports": {
|
||||
"80/tcp": [
|
||||
{
|
||||
"HostIp": "127.0.0.1",
|
||||
"HostPort": "28000"
|
||||
}
|
||||
]
|
||||
},
|
||||
"config_sha256": "c5d9e7b3ff5b62de205f1e0bcdf18fac7b8472e6edf666ab591c3abd6e99b1d0"
|
||||
}
|
||||
},
|
||||
"status": "PASS",
|
||||
"business_uat": "NOT_RUN",
|
||||
"initial_health": {
|
||||
"gateway": "FAILED",
|
||||
"auth": "FAILED",
|
||||
"system": "FAILED",
|
||||
"resource": "FAILED",
|
||||
"integration": "FAILED",
|
||||
"dataops": "FAILED",
|
||||
"governance": "FAILED",
|
||||
"dataproduct": "FAILED",
|
||||
"frontend": "PASS"
|
||||
},
|
||||
"health_authentication": "existing RCP6 monitor Basic Auth",
|
||||
"image_identity": {
|
||||
"gateway": true,
|
||||
"auth": true,
|
||||
"system": true,
|
||||
"resource": true,
|
||||
"integration": true,
|
||||
"dataops": true,
|
||||
"governance": true,
|
||||
"dataproduct": true,
|
||||
"frontend": true
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"before": {
|
||||
"code": "186565121971872",
|
||||
"name": "aixun_m2_golden_project",
|
||||
"service_token_readback": "PASS"
|
||||
},
|
||||
"container": "a1c8a014a186f30f455e0203e2acf40d0e78915356542790a50a12701a3b17a1",
|
||||
"image": "sha256:682d0c583f3066d20612d706537ebdb101b926d468c81eeb5e9575dff97f1f13",
|
||||
"started": 1791622947.7014477,
|
||||
"status": "PASS",
|
||||
"after": {
|
||||
"code": "186565121971872",
|
||||
"name": "aixun_m2_golden_project",
|
||||
"service_token_readback": "PASS"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,58 @@
|
||||
aab8c12dabcf|runninghub-studio-app-1|runninghub-studio:20261009-files-dialog-fix|Up 29 hours (healthy)
|
||||
3c8c4c189ae4|ticket-piaoka-web|ticket-piaoka/web:local|Up 29 hours
|
||||
3a982114f844|ticket-piaoka-backend|ticket-piaoka/backend:local|Up 29 hours
|
||||
655a3d2a70fe|matrix5_admin_frontend|matrix/admin-dist:matrix5_admin_frontend_checkin_unified_20261008_v1|Up 2 days
|
||||
c3ca6a658fb0|matrix5_backend|matrix/backend-pyc:matrix5_backend_checkin_unified_20261008_v1|Up 2 days
|
||||
8d717ed8435e|matrix4_admin_frontend|matrix/admin-dist:matrix4_admin_frontend_checkin_unified_20261008_v1|Up 2 days
|
||||
b087561495af|matrix4_backend|matrix/backend-pyc:matrix4_backend_checkin_unified_20261008_v1|Up 2 days
|
||||
aecf32594833|matrix3_admin_frontend|matrix/admin-dist:matrix3_admin_frontend_checkin_unified_20261008_v1|Up 2 days
|
||||
0897c2dfc5cb|matrix3_backend|matrix/backend-pyc:matrix3_backend_checkin_unified_20261008_v1|Up 2 days
|
||||
b97f5146e246|matrix2_admin_frontend|matrix/admin-dist:matrix2_admin_frontend_checkin_unified_20261008_v1|Up 2 days
|
||||
6aa07e13b13d|matrix2_backend|matrix/backend-pyc:matrix2_backend_checkin_unified_20261008_v1|Up 2 days
|
||||
230c70449afb|matrix1_admin_frontend|matrix/admin-dist:matrix1_admin_frontend_checkin_unified_20261008_v1|Up 2 days
|
||||
585820475b03|matrix1_backend|matrix/backend-pyc:matrix1_backend_checkin_unified_20261008_v1|Up 2 days
|
||||
426b90dd4c2c|aixun-company-cloud-cron-1|b1ae671e9815|Up 4 days
|
||||
b2f47c16869d|aixun-company-cloud-app-1|b1ae671e9815|Up 4 days
|
||||
0c49b1846f4e|aixun-company-cloud-db-1|18cfe3ef5e68|Up 4 days (healthy)
|
||||
fda36763bd27|aixun-company-cloud-redis-1|ff02b58f971e|Up 4 days
|
||||
66cef5ab52a6|doris-be|m.daocloud.io/docker.io/apache/doris:be-4.0.8|Up 2 weeks
|
||||
b1197e37bfbf|doris|m.daocloud.io/docker.io/apache/doris:fe-4.0.8|Up 2 weeks
|
||||
778c1892188f|matrix5_target_redpack_scheduler|matrix/backend-pyc:b_matrix2_start_time_20260920_v1|Up 2 weeks
|
||||
660c99032b5e|matrix5_wework_sync|matrix/backend-pyc:b_matrix2_wework_sync_inviter_identity_20260828_v1|Up 2 weeks
|
||||
a560deee1e83|matrix5_wework_reconcile|matrix/backend-pyc:b_matrix2_wework_reconcile_inviter_identity_20260828_v1|Up 2 weeks
|
||||
74ddc3a83f6b|matrix5_redis|redis:7-alpine|Up 2 weeks
|
||||
4bc04e5a1baa|maxkb-pro-maxkb|registry.fit2cloud.com/maxkb/maxkb-pro:v2.10.6-lts|Up 2 weeks (healthy)
|
||||
929a0125c8fa|maxkb-pro-redis|registry.fit2cloud.com/maxkb/maxkb-pro:v2.10.6-lts|Up 2 weeks (healthy)
|
||||
3da139605dc3|maxkb-pro-pgsql|registry.fit2cloud.com/maxkb/maxkb-pro:v2.10.6-lts|Up 2 weeks (healthy)
|
||||
7f4092a2636a|matrix3_target_redpack_scheduler|matrix/backend-pyc:b_matrix3_start_time_20260920_v1|Up 2 weeks
|
||||
b55ca5df4420|matrix2_target_redpack_scheduler|matrix/backend-pyc:b_matrix2_start_time_20260920_v1|Up 2 weeks
|
||||
5fcc8721b3cf|matrix1_target_redpack_scheduler|matrix/backend-pyc:b_matrix1_start_time_20260920_v1|Up 2 weeks
|
||||
0ca0de8de89c|matrix4_target_redpack_scheduler|matrix/backend-pyc:matrix4_start_time_20260920_v1|Up 2 weeks
|
||||
00242edc595d|standalone-postgresql|postgres:17-alpine|Up 2 weeks (healthy)
|
||||
ae3438f4081d|standalone-sqlserver|mcr.microsoft.com/mssql/server:2022-latest|Up 2 weeks
|
||||
04e6d052cb10|matrix4_wework_reconcile|matrix/backend-pyc:b_matrix2_wework_reconcile_inviter_identity_20260828_v1|Up 3 weeks
|
||||
314011b6a45d|matrix4_wework_sync|matrix/backend-pyc:b_matrix2_wework_sync_inviter_identity_20260828_v1|Up 3 weeks
|
||||
f65b5ca03167|matrix4_redis|redis:7-alpine|Up 3 weeks
|
||||
b1b4d0844dc8|hive-server2|m.daocloud.io/docker.io/apache/hive:4.2.1|Up 3 weeks (healthy)
|
||||
9eb054f6f793|doris-4.1.3-rollback-20260923-221826|apache/doris:all-in-one-4.1.3|Exited (0) 2 weeks ago
|
||||
5bcbfeb3bf2b|hive-metastore|m.daocloud.io/docker.io/apache/hive:4.2.1|Up 3 weeks (healthy)
|
||||
f489f7d18365|hive-postgres|m.daocloud.io/docker.io/library/postgres:17-alpine|Up 3 weeks (healthy)
|
||||
5140108276f9|matrix3_wework_reconcile|matrix/backend-pyc:b_matrix2_wework_reconcile_inviter_identity_20260828_v1|Up 4 weeks
|
||||
c8f7742716bf|matrix3_wework_sync|matrix/backend-pyc:b_matrix2_wework_sync_inviter_identity_20260828_v1|Up 4 weeks
|
||||
3d152facb6c8|aixun-course-v320-api-1|aixun-course-api:v320-20260908|Up 4 weeks (healthy)
|
||||
b039745e5ed8|matrix3_redis|redis:7-alpine|Up 4 weeks
|
||||
63fa2afcb834|aixun-course-v320-web-1|aixun-course-web:v320-20260908|Up 4 weeks (healthy)
|
||||
503b05b39f98|aixun--piaoka-web|aixun--piaoka/web:local|Up 4 weeks
|
||||
888ea3fab84e|aixun--piaoka-backend|aixun--piaoka/backend:local|Up 4 weeks
|
||||
0fadf433533d|aixun-corporate-site|node:22-alpine|Up 4 weeks
|
||||
409c8844e65e|aixun-course-v320-db-1|postgres:17-alpine|Up 4 weeks (healthy)
|
||||
06b93c2c3008|aixun--piaoka-redis|redis:7.4-alpine|Up 5 weeks (healthy)
|
||||
baaba8167ca0|aixun--piaoka-mysql|m.daocloud.io/docker.io/library/mysql:8.0.40|Up 5 weeks (healthy)
|
||||
36e9dc8cd23c|ticket-piaoka-mysql|m.daocloud.io/docker.io/library/mysql:8.4|Up 5 weeks (healthy)
|
||||
5f2e55d5a514|matrix2_wework_reconcile|matrix/backend-pyc:b_matrix2_wework_reconcile_inviter_identity_20260828_v1|Up 6 weeks
|
||||
0fe958f141ef|matrix2_wework_sync|matrix/backend-pyc:b_matrix2_wework_sync_inviter_identity_20260828_v1|Up 6 weeks
|
||||
712db296a631|matrix1_wework_reconcile|matrix/backend-pyc:b_matrix1_wework_reconcile_inviter_identity_20260828_v1|Up 6 weeks
|
||||
bf9381459694|matrix1_wework_sync|matrix/backend-pyc:b_matrix1_wework_sync_inviter_identity_20260828_v1|Up 6 weeks
|
||||
194462d2114e|ticket-piaoka-redis|redis:7.4-alpine|Up 6 weeks (healthy)
|
||||
95557816300c|matrix2_redis|redis:7-alpine|Up 7 weeks
|
||||
5e9c9f1626f5|matrix1_redis|redis:7-alpine|Up 2 months
|
||||
@@ -0,0 +1,65 @@
|
||||
{
|
||||
"discovery": {
|
||||
"aixun-datagov-gateway": 1,
|
||||
"aixun-datagov-auth": 1,
|
||||
"aixun-datagov-system": 1,
|
||||
"aixun-datagov-resource": 1,
|
||||
"aixun-integration": 1,
|
||||
"aixun-dataops": 1,
|
||||
"aixun-governance": 1,
|
||||
"aixun-dataproduct": 1
|
||||
},
|
||||
"unauthenticated_denied": true,
|
||||
"login": {
|
||||
"http": 200,
|
||||
"code": 200
|
||||
},
|
||||
"identity": {
|
||||
"http": 200,
|
||||
"code": 200,
|
||||
"pass": true
|
||||
},
|
||||
"menus": {
|
||||
"http": 200,
|
||||
"code": 200,
|
||||
"pass": true
|
||||
},
|
||||
"integration_list": {
|
||||
"http": 200,
|
||||
"code": 200,
|
||||
"pass": true
|
||||
},
|
||||
"dataops_list": {
|
||||
"http": 200,
|
||||
"code": 200,
|
||||
"pass": true
|
||||
},
|
||||
"governance_list": {
|
||||
"http": 200,
|
||||
"code": 200,
|
||||
"pass": true
|
||||
},
|
||||
"dataproduct_list": {
|
||||
"http": 200,
|
||||
"code": 200,
|
||||
"pass": true
|
||||
},
|
||||
"file_upload": {
|
||||
"http": 200,
|
||||
"code": 200
|
||||
},
|
||||
"smoke_file_id": "2108829904360214529",
|
||||
"file_download": {
|
||||
"http": 200,
|
||||
"sha256_matches": true
|
||||
},
|
||||
"file_cleanup": {
|
||||
"http": 200,
|
||||
"code": 200
|
||||
},
|
||||
"file_operation_audit": {
|
||||
"successful_records": 2,
|
||||
"pass": true
|
||||
},
|
||||
"status": "PASS"
|
||||
}
|
||||
@@ -0,0 +1,108 @@
|
||||
{
|
||||
"bootstrap_files": 239,
|
||||
"bootstrap_mismatches": [],
|
||||
"remote_tools": {
|
||||
"releases/remote-20261010-01/runner.py": "64b541ccf6394012714297bbb716724daf5acaefe8fc8f4493cb87e097ed1915",
|
||||
"releases/remote-20261010-01/edge.py": "038d4c5443ac9a41c5a5ca3a76a8ef5a19872f7eb055fe9c9dbdcacdbd59a049",
|
||||
"releases/remote-20261010-01/smoke.py": "049fd941b3334ce8ab93cc91f7e6f2e2c207d502ff8658fc711de489c8fc8d59",
|
||||
"releases/remote-20261010-01/verify-components.py": "f37ae931298102377477f8558d32153215dc48fd6d8859c0b17a84046aa2a397",
|
||||
"releases/remote-20261010-01/certificate.sh": "8eee30e0071741c1340690493399a29ba9272500df7109b3d881bbefe747d208",
|
||||
"releases/remote-20261010-01/certificate-renew.service": "058ae36ad8cf3f13af5e6441340512d6993ca8fb8d427024f227084619f07daa",
|
||||
"releases/remote-20261010-01/certificate-renew.timer": "1b1241bdba3041c06cd60afd6655414c6b22a1ad15c2878e1d6388a71f81e088"
|
||||
},
|
||||
"frontend_assets": {
|
||||
"/assets/index-CNCeJ1Ho.js": {
|
||||
"http": 200,
|
||||
"bytes": 1384201,
|
||||
"content_type": "application/javascript",
|
||||
"not_html": true
|
||||
},
|
||||
"/assets/rolldown-runtime-aKtaBQYM.js": {
|
||||
"http": 200,
|
||||
"bytes": 1084,
|
||||
"content_type": "application/javascript",
|
||||
"not_html": true
|
||||
},
|
||||
"/assets/runtime-core.esm-bundler-r30AjZCt.js": {
|
||||
"http": 200,
|
||||
"bytes": 84845,
|
||||
"content_type": "application/javascript",
|
||||
"not_html": true
|
||||
},
|
||||
"/assets/runtime-dom.esm-bundler-BDccWgbe.js": {
|
||||
"http": 200,
|
||||
"bytes": 23754,
|
||||
"content_type": "application/javascript",
|
||||
"not_html": true
|
||||
},
|
||||
"/assets/user-CcwY_-HK.css": {
|
||||
"http": 200,
|
||||
"bytes": 37445,
|
||||
"content_type": "text/css",
|
||||
"not_html": true
|
||||
},
|
||||
"/assets/index-CjAGjvBE.css": {
|
||||
"http": 200,
|
||||
"bytes": 1006840,
|
||||
"content_type": "text/css",
|
||||
"not_html": true
|
||||
}
|
||||
},
|
||||
"airflow_health": {
|
||||
"metadatabase": {
|
||||
"status": "healthy"
|
||||
},
|
||||
"scheduler": {
|
||||
"status": "healthy",
|
||||
"latest_scheduler_heartbeat": "2026-10-10T09:01:53.996596+00:00"
|
||||
},
|
||||
"triggerer": {
|
||||
"status": null,
|
||||
"latest_triggerer_heartbeat": null
|
||||
},
|
||||
"dag_processor": {
|
||||
"status": "healthy",
|
||||
"latest_dag_processor_heartbeat": "2026-10-10T09:01:59.288068+00:00"
|
||||
}
|
||||
},
|
||||
"integration_component_dns": {
|
||||
"m2-seatunnel": "192.168.48.7",
|
||||
"m2-dolphinscheduler": "192.168.48.6",
|
||||
"m2-hive": "192.168.48.9",
|
||||
"m2-doris-fe": "192.168.48.2",
|
||||
"m2-openmetadata": "192.168.48.3"
|
||||
},
|
||||
"public_https": {
|
||||
"http": 200,
|
||||
"ssl_verify_result": 0,
|
||||
"remote_ip": "43.249.195.133"
|
||||
},
|
||||
"certificate_client": {
|
||||
"image": "certbot/certbot@sha256:f70ad0adbb7e117f0fe42a63c553f28ea451edabc0148757b6efcd9735acaa20",
|
||||
"version": "5.8.0"
|
||||
},
|
||||
"certificate_renewal": {
|
||||
"dry_run": "PASS",
|
||||
"dry_run_exit": 0,
|
||||
"timer": {
|
||||
"NextElapseUSecRealtime": "Sat 2026-10-10 12:23:23 UTC",
|
||||
"ActiveState": "active",
|
||||
"UnitFileState": "enabled"
|
||||
},
|
||||
"service": {
|
||||
"Result": "success",
|
||||
"ExecMainStatus": "0",
|
||||
"ActiveState": "inactive"
|
||||
}
|
||||
},
|
||||
"completed_at": "2026-10-10T09:16:41.163895+00:00",
|
||||
"delivery": {
|
||||
"source": "PASS",
|
||||
"remote_deployment": "PASS",
|
||||
"business_smoke": "PASS",
|
||||
"browser_interaction": "NOT_RUN",
|
||||
"manual_full_uat": "NOT_RUN",
|
||||
"real_ingestion_dag_ai": "NOT_RUN",
|
||||
"overall": "PASS_WITH_LIMITATION"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,63 @@
|
||||
# 远程发布 remote-20261012-01
|
||||
|
||||
2026-10-12,用户授权“项目已经做了较大的改动,请你打包并部署的远程服务器”。目标 `test-v`,`43.249.195.133:22`,`/opt/aixun-datagov`,linux/amd64,访问 https://v.aixunkeji.cn 。
|
||||
|
||||
## 结果
|
||||
|
||||
- 源码与制品:PASS。复核内置元数据替换交付清单中 73 个未变应用输入,以及 JAR/dist 与不可变镜像制品摘要;复用对应的 355 项测试(55 类、零失败)及三后端和前端生产构建结果。本次生成唯一标签、镜像传输包并校验,未重复编译未变化输入。远程发布器 14 项测试通过;新增/修改部署脚本通过显式文件检查。
|
||||
- 远程部署:PASS。只更新 integration、dataops、governance、frontend;九个应用健康通过,八个 Nacos 服务各有一个健康实例。镜像 ID、制品与传输包 SHA-256 见同目录 release.json。未部署或重启本地应用。
|
||||
- 最小业务验证:PASS_WITH_LIMITATION。有效 HTTPS 登录、匿名拒绝、身份/菜单/业务列表、目录分页及详情、ENTITY 37/FIELD 17 类型、血缘候选接口通过。发布前后及停用旧组件后,5 项资产完整详情、1 项数据集完整详情、6 张目录表的 ID 完全一致。浏览器登录页正常呈现。
|
||||
- 人工业务验收:NOT_RUN。未做全页/双视口、普通角色权限矩阵、真实采集/定时扫描/SQL/DAG、真实血缘刷新与路径、AI 调用和全部配置功能验收。没有把接口读取或容器健康视为上述验收通过。
|
||||
|
||||
## 数据与配置
|
||||
|
||||
按远程现有数据执行迁移 20261011.211–217,各一次、逐项校验 SHA 并登记。历史共 213 条,最新 217,无失败记录。元数据导入 312 实体、2 关系、6 成功绑定,保留远程原 ID、组织、来源与载荷;没有用本地数据库覆盖远程。迁移时备份四张受约束调整影响的业务表及其 DDL,原有行数未变;新增表采用前向迁移,没有清空旧数据。
|
||||
|
||||
当前 `md_native_cutover` 为 `NATIVE / write_enabled=1 / epoch=1`。开启写入前完成旧数据全量导入核验和业务 API 对比,最后核验时原生 revision/job 均为 0;该观测不保证之后没有新写入。
|
||||
|
||||
移除远程 Nacos integration 配置的三处旧元数据分支及 Compose integration 的三个旧环境变量,其他语义配置保留。旧 m2-openmetadata、m2-om-ingestion、m2-om-mysql、m2-om-airflow-mysql、m2-om-elasticsearch 已停止;其数据卷与镜像保留,相关定义标为 legacy-metadata-recovery profile。原有 19 个 Airflow DAG 在切换前均为暂停状态。
|
||||
|
||||
发布中发现维护停机后 Docker inspect 的 IP 为空,导致首次应用重建分配了不同 IP。立即核实后,仅重建这四个应用,依据同一旧容器停机时的 Nacos 注销记录恢复 integration .9、dataops .10、governance .11;integration 第二网络与 frontend 地址也恢复并校验。最终网络 ID/IP、端口、挂载保持原值,未重放迁移。发布器现已要求停机前绑定容器/镜像/网络的地址快照,并规范化挂载顺序,防止同类问题。
|
||||
|
||||
其他项目 58 个容器的 ID、镜像及运行状态与发布前一致。未重建数据库、网络、数据卷,未升级无关组件。当前及上一可用四应用镜像均保留;本地和远程临时镜像 tar 已删除。保护 ZIP 未读写。
|
||||
|
||||
## 复用入口
|
||||
|
||||
目标配置仅一份:`script/datagov/remote/test-v.json`;说明:同目录 README.md。后续从项目根目录运行,唯一版本号及服务列表按实际改动填写:
|
||||
|
||||
```bash
|
||||
./script/datagov/deploy-remote.sh inspect
|
||||
./script/datagov/deploy-remote.sh prepare remote-YYYYMMDD-NN --services governance --image governance=aixun-datagov/governance:remote-YYYYMMDD-NN
|
||||
./script/datagov/deploy-remote.sh transfer remote-YYYYMMDD-NN
|
||||
./script/datagov/deploy-remote.sh apply remote-YYYYMMDD-NN
|
||||
./script/datagov/deploy-remote.sh verify remote-YYYYMMDD-NN
|
||||
```
|
||||
|
||||
先按改动范围检查和构建。省略 --image 只取当前已在本地发布的镜像,不代表自动构建最新源码。不得对本目标重放首次导入、bootstrap 或本次元数据迁移。服务器不编译源码,日常发布不启动旧组件。
|
||||
|
||||
## 恢复方法与边界
|
||||
|
||||
本次同时改变数据库和配置,**不能执行普通 rollback 或只切回旧镜像**。旧系统不包含开启原生写入之后的数据。发布前的恢复窗口工具为:
|
||||
|
||||
```bash
|
||||
ssh root@43.249.195.133 'python3 /opt/aixun-datagov/releases/remote-20261012-01/native-metadata-release.py recover-before-writes /opt/aixun-datagov/releases/remote-20261012-01'
|
||||
```
|
||||
|
||||
此命令只允许尚未 finalize 且无原生写入的窗口;本次已 finalize,命令会拒绝,不能删标记绕过。若现在发现问题,先定点止损,保留全部数据和容器:
|
||||
|
||||
```bash
|
||||
ssh root@43.249.195.133 'flock -n /opt/aixun-datagov/release.lock docker stop -t 30 aixun-datagov-integration aixun-datagov-dataops aixun-datagov-governance aixun-datagov-frontend'
|
||||
```
|
||||
|
||||
若只是临时停止且四个当前容器仍在,可原样恢复当前版本,再做健康及业务验证:
|
||||
|
||||
```bash
|
||||
ssh root@43.249.195.133 'flock -n /opt/aixun-datagov/release.lock docker start aixun-datagov-integration aixun-datagov-dataops aixun-datagov-governance aixun-datagov-frontend'
|
||||
./script/datagov/deploy-remote.sh verify remote-20261012-01
|
||||
```
|
||||
|
||||
代码问题优先通过下一唯一版本前向修复。若必须回到旧后端,需要先保全并对账原生新增/修改/删除及其他业务写入,确定数据兼容后制定恢复;本次没有验证切换后写入到旧后端的逆向转换,不提供有数据损失风险的一键回退。
|
||||
|
||||
恢复材料仅在服务器本次 release 目录:`native-recovery/compose.json`、`integration.yml`、`before.json`、`altered-tables.sql.gz` 与 DDL/行数/校验值;`metadata-migration/remote-final-01/` 保留迁入载荷和对账报告;旧五组件卷保留。文件含配置或业务载荷,不复制到本地记录。不得直接导入旧表备份覆盖后续写入。执行结果未知时先核对 attempt/result 和当前状态,不循环重试。
|
||||
|
||||
同目录 final-verification.json、native-final-verification.json、native-final-result.json、result.json 为本次小型验证记录;未记录凭据、token、私钥或真实 .env。
|
||||
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"source_record": "docs/research/openmetadata-replacement-20261011/implementation-result.json",
|
||||
"source_files_manifest_sha256": "a9b3aff09f821d2720c8207e2f604c3ee838274df9c9de5d8cf7b2c06c87c91a",
|
||||
"unchanged_documented_inputs": 73,
|
||||
"exception": "native-metadata-migrate.py: add explicit remote context; application inputs unchanged",
|
||||
"reused_validation": {
|
||||
"affected_tests": 355,
|
||||
"failures": 0,
|
||||
"classes": 55,
|
||||
"backend_builds": [
|
||||
"integration",
|
||||
"dataops",
|
||||
"governance"
|
||||
],
|
||||
"frontend_production_build": "PASS, unchanged inputs and matching dist digest"
|
||||
},
|
||||
"local_runtime_updated": false,
|
||||
"new_app_builds": false,
|
||||
"reason": "Previously verified linux/amd64 JARs/dist and immutable images match; unique release tags and exported image archive generated."
|
||||
}
|
||||
@@ -0,0 +1,81 @@
|
||||
{
|
||||
"version": "remote-20261012-01",
|
||||
"health": {
|
||||
"gateway": "PASS",
|
||||
"auth": "PASS",
|
||||
"system": "PASS",
|
||||
"resource": "PASS",
|
||||
"integration": "PASS",
|
||||
"dataops": "PASS",
|
||||
"governance": "PASS",
|
||||
"dataproduct": "PASS",
|
||||
"frontend": "PASS"
|
||||
},
|
||||
"unrelated_projects": {
|
||||
"containers": 58,
|
||||
"unchanged": true
|
||||
},
|
||||
"discovery": {
|
||||
"aixun-datagov-gateway": 1,
|
||||
"aixun-datagov-auth": 1,
|
||||
"aixun-datagov-system": 1,
|
||||
"aixun-datagov-resource": 1,
|
||||
"aixun-integration": 1,
|
||||
"aixun-dataops": 1,
|
||||
"aixun-governance": 1,
|
||||
"aixun-dataproduct": 1
|
||||
},
|
||||
"schema": [
|
||||
"213",
|
||||
"20261011.217",
|
||||
"0"
|
||||
],
|
||||
"native_state": [
|
||||
"NATIVE",
|
||||
"1",
|
||||
"1"
|
||||
],
|
||||
"native_counts": {
|
||||
"md_native_entity": 312,
|
||||
"md_native_relation": 2,
|
||||
"md_native_revision": 0,
|
||||
"md_native_job": 0
|
||||
},
|
||||
"legacy_stopped": {
|
||||
"m2-om-ingestion": true,
|
||||
"m2-openmetadata": true,
|
||||
"m2-om-mysql": true,
|
||||
"m2-om-airflow-mysql": true,
|
||||
"m2-om-elasticsearch": true
|
||||
},
|
||||
"previous_images_retained": {
|
||||
"integration": true,
|
||||
"dataops": true,
|
||||
"governance": true,
|
||||
"frontend": true
|
||||
},
|
||||
"lineage_candidates": {
|
||||
"http": 200,
|
||||
"code": 200,
|
||||
"items": 100
|
||||
},
|
||||
"browser": {
|
||||
"login_page": "PASS",
|
||||
"authenticated_ui": "NOT_RUN",
|
||||
"full_uat": "NOT_RUN"
|
||||
},
|
||||
"image_transfer_archive_removed": true,
|
||||
"status": "PASS",
|
||||
"verified_api_payload_sha256": {
|
||||
"before.json": "cc398aa5b3cbbc147ef7efb98fa5edcb6bf6be6f609dd1d02cc412b4544b31cd",
|
||||
"after.json": "5e091267b503c78159bbcddd7f627a740e3f8488ac35a08ecd13331891a2edc3",
|
||||
"final.json": "45516bd180033f60de9286c1fd1aecd6a568911ae96b42fcbac5127a32746d87"
|
||||
},
|
||||
"deployment_tools_sha256": {
|
||||
"runner.py": "740b26304ea1eb6d3e61fd700c322003f3effd311c6ba263d59ce24f452b3446",
|
||||
"native-metadata-release.py": "2b741396a1ea4f872951084a179c73318d4e203d98cb8f3be356a169cf2d2b0d",
|
||||
"native-metadata-migrate.py": "2d878c3587a025ec2c3d1fd5344b21fc6bf0ca27c600a07435338fda743eab05",
|
||||
"native-release-smoke.py": "6e5218b80f811efe9d420fdaf57267e68d2740b6899eddf4adaa9617dfc8b97b"
|
||||
},
|
||||
"cleanup": "transfer image archive removed; duplicate after/final private API payloads removed; one baseline and required recovery retained"
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
[
|
||||
{
|
||||
"version": "20261011.211",
|
||||
"path": "db/migration/governance/V20261011.211__create_native_metadata.sql",
|
||||
"ownerUnit": "governance",
|
||||
"sha256": "ef1de4ed5108935e06c91582482be0e1d6129072dad549b1da8874d4e77838c4"
|
||||
},
|
||||
{
|
||||
"version": "20261011.212",
|
||||
"path": "db/migration/governance/V20261011.212__create_native_metadata_jobs.sql",
|
||||
"ownerUnit": "governance",
|
||||
"sha256": "e6470aa7ffa8dbfca62747f9aa030ecac897eace44711d76e9c27a59b6b40d90"
|
||||
},
|
||||
{
|
||||
"version": "20261011.213",
|
||||
"path": "db/migration/integration/V20261011.213__support_native_metadata_component.sql",
|
||||
"ownerUnit": "integration",
|
||||
"sha256": "dc59aa2ab33167b902d5e921e851b88e3ddd7d9cb35a71d47e59913107a1fdcb"
|
||||
},
|
||||
{
|
||||
"version": "20261011.214",
|
||||
"path": "db/migration/dataops/V20261011.214__support_native_metadata_event.sql",
|
||||
"ownerUnit": "dataops",
|
||||
"sha256": "5dc2d2ffb4feb28bb492c200366a4e607965f77f9a387b5a8a1a5e032f8e40ca"
|
||||
},
|
||||
{
|
||||
"version": "20261011.215",
|
||||
"path": "db/migration/governance/V20261011.215__support_native_asset_identity.sql",
|
||||
"ownerUnit": "governance",
|
||||
"sha256": "ac4b1cf6114ae8145b9eb1f9798d8f0cb62146fb9d147ba039f7b6dc55e004de"
|
||||
},
|
||||
{
|
||||
"version": "20261011.216",
|
||||
"path": "db/migration/governance/V20261011.216__track_native_metadata_observations.sql",
|
||||
"ownerUnit": "governance",
|
||||
"sha256": "10c20fe35e99ecbc50c29251302dff1c3e54843c5df34e3c780e1312c37eacce"
|
||||
},
|
||||
{
|
||||
"version": "20261011.217",
|
||||
"path": "db/migration/governance/V20261011.217__seed_native_metadata_types.sql",
|
||||
"ownerUnit": "governance",
|
||||
"sha256": "14e525ebcf95a9de569350ee93483a22ef1f493b0a0d2b029d6541dfe343f3fa"
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"status": "PASS",
|
||||
"backend": "NATIVE",
|
||||
"writes_enabled": true,
|
||||
"legacy_stopped": [
|
||||
"m2-om-ingestion",
|
||||
"m2-openmetadata",
|
||||
"m2-om-mysql",
|
||||
"m2-om-airflow-mysql",
|
||||
"m2-om-elasticsearch"
|
||||
],
|
||||
"legacy_volumes": "RETAINED",
|
||||
"at": 1791770561.61219
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"status": "PASS",
|
||||
"phase": "final",
|
||||
"https_login": "PASS",
|
||||
"anonymous_denied": true,
|
||||
"assets": 5,
|
||||
"datasets": 1,
|
||||
"catalog_sources": 1,
|
||||
"catalog_tables": 6,
|
||||
"pagination_unique": true,
|
||||
"types": {
|
||||
"ENTITY": 37,
|
||||
"FIELD": 17
|
||||
},
|
||||
"business_lists": "PASS",
|
||||
"assets_preserved": true,
|
||||
"datasets_preserved": true,
|
||||
"catalog_preserved": true,
|
||||
"baseline_assets_sha256": "1d3bbe83ea6584f2713a6dbe11ad2be3adbaff701432ff1f807cedfef3eb25f1",
|
||||
"baseline_datasets_sha256": "e782b1020370b7ec9e18b5100d3c54131811d43775f4422d11f1336ff549d26b"
|
||||
}
|
||||
@@ -0,0 +1,57 @@
|
||||
{
|
||||
"version": "remote-20261012-01",
|
||||
"target": "test-v",
|
||||
"services": {
|
||||
"integration": {
|
||||
"tag": "aixun-datagov/integration:remote-20261012-01",
|
||||
"id": "sha256:794f451873d807864979a28a09186a63123d8ce5b843cfffa79bd38b662b0b32",
|
||||
"artifact_sha256": "1184aa19c8ee1addc6181f35e24bec4abad8b5835b988734afb56256ad3a9c93",
|
||||
"platform": "linux/amd64",
|
||||
"source": "sha256:794f451873d807864979a28a09186a63123d8ce5b843cfffa79bd38b662b0b32"
|
||||
},
|
||||
"dataops": {
|
||||
"tag": "aixun-datagov/dataops:remote-20261012-01",
|
||||
"id": "sha256:23770f320eec9b08be83a53fefb0c61c67a969b4790cb61a72f8849534b61dbb",
|
||||
"artifact_sha256": "de948481f37284321b651008ded2e7ff6431e868547b98c0c8154fd2d14b0493",
|
||||
"platform": "linux/amd64",
|
||||
"source": "sha256:23770f320eec9b08be83a53fefb0c61c67a969b4790cb61a72f8849534b61dbb"
|
||||
},
|
||||
"governance": {
|
||||
"tag": "aixun-datagov/governance:remote-20261012-01",
|
||||
"id": "sha256:082c72fe674ca498155b446cff135cdc141325a5b965eae6dd31539ba98d3797",
|
||||
"artifact_sha256": "0f6dff0a61f3b17457f1e20e4a5e15bdfbab05273afaa61cf3abe01ee019a8cc",
|
||||
"platform": "linux/amd64",
|
||||
"source": "sha256:082c72fe674ca498155b446cff135cdc141325a5b965eae6dd31539ba98d3797"
|
||||
},
|
||||
"frontend": {
|
||||
"tag": "aixun-datagov/frontend:remote-20261012-01",
|
||||
"id": "sha256:ded8f1a5af1c25e838795157459c00c983b7a81296736b446ff2c8f081c9a9ee",
|
||||
"artifact_sha256": "990ff9979b86910c7eae266b1f4c138823788bf4364088c91841f4e75657bbf8",
|
||||
"platform": "linux/amd64",
|
||||
"source": "sha256:ded8f1a5af1c25e838795157459c00c983b7a81296736b446ff2c8f081c9a9ee",
|
||||
"artifact_path": "/opt/aixun-datagov/frontend-current"
|
||||
}
|
||||
},
|
||||
"expected_remote": {
|
||||
"integration": {
|
||||
"container": "4767489bfe2092c3102288c6c4c7f4d747ed4af99f914e7ded89dd32d608ae30",
|
||||
"image": "sha256:553d05e2da41ef9b90029c771bf3f44fcc99dfa52dd1705c5f90ed5213b70db7"
|
||||
},
|
||||
"dataops": {
|
||||
"container": "f56b196516b773b92134071a47f8fb8a5077ccef5f2b156503aa8d3b7040efb3",
|
||||
"image": "sha256:7359df0d2ef67feeca94263696565de0edef8f18dae2ae49e10bcfcc9e098afb"
|
||||
},
|
||||
"governance": {
|
||||
"container": "4495d14e8270180834501b5d12639680837516b5efc9e47cd32a195a5a9e3a0f",
|
||||
"image": "sha256:03b84a618107d9246569e9c733f04903bb7787a156ddd3246c20526d51a105ab"
|
||||
},
|
||||
"frontend": {
|
||||
"container": "89b1d9e7bfe3e3c646a45fb4b7969932897478f2af072515805b264037c5ef13",
|
||||
"image": "sha256:9c501b9d535742d6ff26a8d91327bd31daf2a609891bab2df5ffb712fbfcfacf"
|
||||
}
|
||||
},
|
||||
"database_change": true,
|
||||
"config_change": true,
|
||||
"authorization": "2026-10-12 current user: package and deploy substantial project changes to existing remote server",
|
||||
"transfer_sha256": "6ed8cc614ea64329af63cd37fd3a85586db68a4c4bc9843cdc6f34550bed3e04"
|
||||
}
|
||||
@@ -0,0 +1,160 @@
|
||||
{
|
||||
"version": "remote-20261012-01",
|
||||
"status": "PASS",
|
||||
"action": "apply-reconciled",
|
||||
"health": {
|
||||
"integration": "PASS",
|
||||
"dataops": "PASS",
|
||||
"governance": "PASS",
|
||||
"frontend": "PASS"
|
||||
},
|
||||
"after": {
|
||||
"integration": {
|
||||
"container": "2c014c405f539418b0bd54c677ee66e61b7bbf0144fd1cff173cb9d2de1feb26",
|
||||
"image": "sha256:794f451873d807864979a28a09186a63123d8ce5b843cfffa79bd38b662b0b32",
|
||||
"networks": {
|
||||
"aixun-datagov-local-backend": {
|
||||
"id": "5be135116e5af13c6c22b742f9eb7e8ca928bf238f91e9dd6966fd7f51ce1108",
|
||||
"ip": "192.168.16.9"
|
||||
},
|
||||
"aixun-datagov-local-m2-integration": {
|
||||
"id": "452d6bfe8d99d954c328e94e5515d3459aa02c8b0555028508bb97a101dd3b60",
|
||||
"ip": "192.168.48.5"
|
||||
}
|
||||
},
|
||||
"mounts": [
|
||||
{
|
||||
"Type": "bind",
|
||||
"Source": "/opt/aixun-datagov/m2/local/secrets",
|
||||
"Destination": "/run/secrets/aixun-datagov/m2",
|
||||
"Mode": "ro",
|
||||
"RW": false,
|
||||
"Propagation": "rprivate"
|
||||
},
|
||||
{
|
||||
"Type": "volume",
|
||||
"Name": "aixun-datagov-local-managed-credential-data",
|
||||
"Source": "/var/lib/docker/volumes/aixun-datagov-local-managed-credential-data/_data",
|
||||
"Destination": "/run/secrets/aixun-datagov/managed",
|
||||
"Driver": "local",
|
||||
"Mode": "rw",
|
||||
"RW": true,
|
||||
"Propagation": ""
|
||||
},
|
||||
{
|
||||
"Type": "volume",
|
||||
"Name": "aixun-datagov-local-file-ingestion-data",
|
||||
"Source": "/var/lib/docker/volumes/aixun-datagov-local-file-ingestion-data/_data",
|
||||
"Destination": "/var/lib/aixun-datagov/ingestion",
|
||||
"Driver": "local",
|
||||
"Mode": "rw",
|
||||
"RW": true,
|
||||
"Propagation": ""
|
||||
}
|
||||
],
|
||||
"ports": {
|
||||
"9310/tcp": [
|
||||
{
|
||||
"HostIp": "127.0.0.1",
|
||||
"HostPort": "29310"
|
||||
}
|
||||
]
|
||||
},
|
||||
"config_sha256": "fb6f9265ce0acd34e04a467da636ce55d00e1326a88aec29267d5145e7629ec4"
|
||||
},
|
||||
"dataops": {
|
||||
"container": "f1b0804a0b4d5c73283de42177c360825802a241d8c640560e9b7d48983ebb2a",
|
||||
"image": "sha256:23770f320eec9b08be83a53fefb0c61c67a969b4790cb61a72f8849534b61dbb",
|
||||
"networks": {
|
||||
"aixun-datagov-local-backend": {
|
||||
"id": "5be135116e5af13c6c22b742f9eb7e8ca928bf238f91e9dd6966fd7f51ce1108",
|
||||
"ip": "192.168.16.10"
|
||||
}
|
||||
},
|
||||
"mounts": [],
|
||||
"ports": {
|
||||
"9320/tcp": [
|
||||
{
|
||||
"HostIp": "127.0.0.1",
|
||||
"HostPort": "29320"
|
||||
}
|
||||
]
|
||||
},
|
||||
"config_sha256": "9ffa066099cb1c342720b35cda2a62a17f50e50e3ce1abcec37d1abff0fb9f8a"
|
||||
},
|
||||
"governance": {
|
||||
"container": "a36e39c4df0970cfe2bfe9021bd7e44484e636dec9cff6ecdd3d6dc99865d38e",
|
||||
"image": "sha256:082c72fe674ca498155b446cff135cdc141325a5b965eae6dd31539ba98d3797",
|
||||
"networks": {
|
||||
"aixun-datagov-local-backend": {
|
||||
"id": "5be135116e5af13c6c22b742f9eb7e8ca928bf238f91e9dd6966fd7f51ce1108",
|
||||
"ip": "192.168.16.11"
|
||||
}
|
||||
},
|
||||
"mounts": [],
|
||||
"ports": {
|
||||
"9330/tcp": [
|
||||
{
|
||||
"HostIp": "127.0.0.1",
|
||||
"HostPort": "29330"
|
||||
}
|
||||
]
|
||||
},
|
||||
"config_sha256": "7284cee9687d188e377152d1de20565fee2faa77f71dffb965a3b2c1f7e6999e"
|
||||
},
|
||||
"frontend": {
|
||||
"container": "f1e51d0c43ecee433e948844afbc63458d013e16f1f0e006717734e7fd537fef",
|
||||
"image": "sha256:ded8f1a5af1c25e838795157459c00c983b7a81296736b446ff2c8f081c9a9ee",
|
||||
"networks": {
|
||||
"aixun-datagov-local-frontend": {
|
||||
"id": "0d9799886f3213246d96981c9d57a469b38512ea7321cb138fe6148e43c52914",
|
||||
"ip": "192.168.32.3"
|
||||
}
|
||||
},
|
||||
"mounts": [
|
||||
{
|
||||
"Type": "bind",
|
||||
"Source": "/opt/aixun-datagov/nginx/frontend.conf",
|
||||
"Destination": "/etc/nginx/conf.d/default.conf",
|
||||
"Mode": "ro",
|
||||
"RW": false,
|
||||
"Propagation": "rprivate"
|
||||
},
|
||||
{
|
||||
"Type": "volume",
|
||||
"Name": "aixun-datagov-local-frontend-assets",
|
||||
"Source": "/var/lib/docker/volumes/aixun-datagov-local-frontend-assets/_data",
|
||||
"Destination": "/usr/share/nginx/html",
|
||||
"Driver": "local",
|
||||
"Mode": "rw",
|
||||
"RW": true,
|
||||
"Propagation": ""
|
||||
}
|
||||
],
|
||||
"ports": {
|
||||
"80/tcp": [
|
||||
{
|
||||
"HostIp": "127.0.0.1",
|
||||
"HostPort": "28000"
|
||||
}
|
||||
]
|
||||
},
|
||||
"config_sha256": "891e8f94ba614b05e9ed567001a5aa311f03ac39857fa7d3f3ef152bded71c82"
|
||||
}
|
||||
},
|
||||
"business_uat": "NOT_RUN",
|
||||
"network_reconciliation": "exact pre-stop IPs recovered from Nacos events and restored; mounts compared by destination",
|
||||
"initial_health": {
|
||||
"integration": "PASS",
|
||||
"dataops": "PASS",
|
||||
"governance": "PASS",
|
||||
"frontend": "PASS"
|
||||
},
|
||||
"image_identity": {
|
||||
"integration": true,
|
||||
"dataops": true,
|
||||
"governance": true,
|
||||
"frontend": true
|
||||
},
|
||||
"health_authentication": "existing RCP6 monitor Basic Auth"
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
# remote-20261014-01 远程发布记录
|
||||
|
||||
2026-10-14,用户要求“修改了内容,再远程发布一下”。目标 `test-v`,43.249.195.133,linux/amd64,目录 `/opt/aixun-datagov`,访问 https://v.aixunkeji.cn 。
|
||||
|
||||
## 本次范围与结果
|
||||
|
||||
发布已封存的 wave25:system、integration、dataops、governance、dataproduct、frontend,以及其依赖的 Resource wave10 更新。七个镜像及制品 SHA 与原封存记录逐项一致,唯一远程版本标签及传输校验值见 release.json。未重新构建当前工作目录,未启动或重启本地应用。
|
||||
|
||||
当前源码包含尚未封存的 wave26、尚未登记的迁移248,以及当天 DataSourceRegistry.java 修改。已提出范围问题,未收到回复后,依据用户原有“不带入其他窗口未完成修改”的要求,明确宣布采用已封存版本;这些未封存内容**未发布**,未宣称当前全部源码已上线。
|
||||
|
||||
- 源码/制品:PASS_WITH_LIMITATION。复用 wave25 已完成的后端、前端生产构建与定向检查:48 类327项,其中323实际通过、4项 macOS 平台检查跳过。完整前端类型检查历史存在其他模块问题,不写成全平台通过。本次封存镜像、JAR/dist 一致性核验通过;部署器14项及新增迁移安全6项测试通过;显式文件检查、243项登记迁移目录检查通过。
|
||||
- 远程部署:PASS。七个目标服务更新成功;九应用健康、八个 Nacos 服务各一健康实例;更新前后网络 ID/IP、挂载和端口一致。其余78个容器的 ID、镜像和运行状态保持不变,包含其他项目及未更新的本项目组件。未修改 Nacos、真实 .env、基础组件版本、网络或数据卷。
|
||||
- 最小业务验证:PASS。HTTPS 登录、匿名拒绝、身份/菜单、四业务列表、类型目录通过。发布前后5项资产完整详情、1项数据集完整详情、1张当前可见目录表 ID 一致。目录数量来自本次发布前实测,不沿用10月12日的旧数量。
|
||||
- Resource:合成文件上传、下载内容 SHA 校验、API 删除及两条成功审计通过;合成文件已清理。
|
||||
- 新工作台:会话/能力、定时计划/运行列表、知识文档、BI对象、人工关系候选七个入口通过。合成手工 SQL 草稿创建→保存→同ID/版本回读→归档通过,三条成功审计;未调用模型、未执行SQL、未创建原业务代码对象。验证会话 `5f21c4fd-e76d-4cdd-9e51-bcd1fe54158c` 已归档,版本2。
|
||||
- 浏览器:实际登录、新菜单、对话任务、知识与口径、分析数据集页面加载通过;随后退出验证登录并关闭临时页。
|
||||
- 完整业务验收:NOT_RUN。未验证真实模型、真实采集/SQL/DAG、定时触发、完整 BI 查询/发布/导出、普通角色权限矩阵、全部页面和双视口。空的新功能列表只是本次首次启用的真实状态;没有额外复制本地业务数据覆盖远程。
|
||||
|
||||
## 数据迁移和部署改动
|
||||
|
||||
显式执行 218–247 共30项迁移,每项核对登记 SHA、仅执行一次、读回成功历史。历史从213条/217升级为243条/247;248未应用。新增36张功能表、26个菜单/权限项;菜单693条、角色菜单513条。八张既有业务表扩字段、调整索引或放宽连接器约束,原列值逐表 SHA 保持;旧菜单与授权排除精确新增ID后也保持一致。
|
||||
|
||||
仅备份上述八张业务表与 sys_menu/sys_role_menu 共10张表的一份数据、DDL、行数及校验值,未备份全库。原生元数据仍为 `NATIVE / write_enabled=1 / epoch=1`,旧 OpenMetadata 组件继续停用,其卷保留。
|
||||
|
||||
新增 `script/datagov/remote/migrate-release.py`:独立显式迁移,执行前核历史/SQL/运行归属,短时锁内记录停机前IP、定点停止应用、备份受影响表、逐项登记并核原值;未知结果保留现场,拒绝重复 attempt。配套6项安全测试在 `test_migrate_release.py`。新增 `workbench-smoke.py` 记录合成草稿ID和写入阶段,避免失败时重复造数据。更新同目录 README.md,目标配置仍只有 test-v.json;本地 deploy.sh 保持原用途。
|
||||
|
||||
## 命令与后续入口
|
||||
|
||||
入口为 `./script/datagov/deploy-remote.sh`,一般按 `inspect → prepare VERSION --services ... → transfer VERSION → apply VERSION → verify VERSION` 连续执行,具体参数见同目录 README.md。需要发布未部署源码时应先完成对应检查和构建,不能以 prepare 代替编译。
|
||||
|
||||
本次镜像 transfer 校验成功后,显式执行:
|
||||
|
||||
```bash
|
||||
ssh root@43.249.195.133 'python3 /opt/aixun-datagov/releases/remote-20261014-01/migrate-release.py preflight /opt/aixun-datagov/releases/remote-20261014-01'
|
||||
ssh root@43.249.195.133 'python3 /opt/aixun-datagov/releases/remote-20261014-01/migrate-release.py apply /opt/aixun-datagov/releases/remote-20261014-01'
|
||||
./script/datagov/deploy-remote.sh apply remote-20261014-01
|
||||
./script/datagov/deploy-remote.sh verify remote-20261014-01
|
||||
```
|
||||
|
||||
以上是已执行记录,**不要重跑本次 apply 或迁移**。两项只读冒烟及文件/工作台合成场景分别保存小型结果。镜像流全量读取较慢时,在没有 release.json、未改变远程运行状态的情况下中止了只读绑定,随后使用既有容器制品只读回读、写层检查和封存 SHA 完成绑定;没有重复远程发布。
|
||||
|
||||
## 准确恢复方法
|
||||
|
||||
本次 `database_change=true`,普通 `rollback remote-20261014-01` 会拒绝。新增功能已可产生业务写入,唯一键也有调整,不能只切回旧镜像或直接导入旧表备份覆盖后续数据。优先在现有数据库上以前向修复版本恢复功能。
|
||||
|
||||
若需立即止损,只停止这七个应用,保留数据库、网络、卷及未更新服务:
|
||||
|
||||
```bash
|
||||
ssh root@43.249.195.133 'flock -n /opt/aixun-datagov/release.lock docker stop -t 30 aixun-datagov-system aixun-datagov-resource aixun-datagov-integration aixun-datagov-dataops aixun-datagov-governance aixun-datagov-dataproduct aixun-datagov-frontend'
|
||||
```
|
||||
|
||||
若只是上述临时停机、七个容器未被改写/删除,恢复当前版本:
|
||||
|
||||
```bash
|
||||
ssh root@43.249.195.133 'flock -n /opt/aixun-datagov/release.lock docker start aixun-datagov-system aixun-datagov-resource aixun-datagov-integration aixun-datagov-dataops aixun-datagov-governance aixun-datagov-dataproduct aixun-datagov-frontend'
|
||||
./script/datagov/deploy-remote.sh verify remote-20261014-01
|
||||
```
|
||||
|
||||
上一版本七个镜像仍保留,具体身份在 release.json 的 expected_remote;原配置、运行身份、数据恢复材料在服务器本次 release 的 `migration-recovery/compose.json`、`before.json`、`affected-tables.sql.gz`、`tables.json`。若必须退回上一应用版本,先保全并对账发布后新增功能数据、连接器类型及放宽唯一键产生的新记录,明确数据库兼容方案后再实施;本次未验证逆向迁移,不提供会丢数据的一键回退。
|
||||
|
||||
本地/远程临时 images.tar.gz 已删除,只保留当前与必要上一镜像、小型发布结果及服务器一份必要恢复材料。未全局 prune、未删除数据卷、未读写保护 ZIP;密码、token、私钥及真实 .env 未保存到本地发布记录。
|
||||
@@ -0,0 +1,38 @@
|
||||
{
|
||||
"selection": "sealed wave25 applications and required resource wave10",
|
||||
"excluded": [
|
||||
"unsealed wave26",
|
||||
"unregistered migration248",
|
||||
"2026-10-14 DataSourceRegistry.java modification"
|
||||
],
|
||||
"basis": "Existing user instruction excludes unfinished modifications; clarification had no reply, announced stable-release assumption before binding images",
|
||||
"image_and_artifact_match": {
|
||||
"system": true,
|
||||
"resource": true,
|
||||
"integration": true,
|
||||
"dataops": true,
|
||||
"governance": true,
|
||||
"dataproduct": true,
|
||||
"frontend": true
|
||||
},
|
||||
"prior_validation": {
|
||||
"wave25": {
|
||||
"tests": 327,
|
||||
"failures": 0,
|
||||
"errors": 0,
|
||||
"skipped": 4,
|
||||
"executed": 323
|
||||
},
|
||||
"wave25_classes": 48,
|
||||
"frontend_production_build": "PASS from sealed wave25 delivery, image dist hash rechecked"
|
||||
},
|
||||
"new_checks": {
|
||||
"migration_safety_tests": 6,
|
||||
"failures": 0,
|
||||
"catalog_registered_migrations": 243,
|
||||
"existing_release_safety_tests": 14
|
||||
},
|
||||
"local_runtime_changed": false,
|
||||
"source_rebuilt": false,
|
||||
"reason": "Sealed immutable images and their artifacts reused; current unsealed source intentionally excluded"
|
||||
}
|
||||
@@ -0,0 +1,71 @@
|
||||
{
|
||||
"version": "remote-20261014-01",
|
||||
"health": {
|
||||
"gateway": "PASS",
|
||||
"auth": "PASS",
|
||||
"system": "PASS",
|
||||
"resource": "PASS",
|
||||
"integration": "PASS",
|
||||
"dataops": "PASS",
|
||||
"governance": "PASS",
|
||||
"dataproduct": "PASS",
|
||||
"frontend": "PASS"
|
||||
},
|
||||
"image_identity": {
|
||||
"system": true,
|
||||
"resource": true,
|
||||
"integration": true,
|
||||
"dataops": true,
|
||||
"governance": true,
|
||||
"dataproduct": true,
|
||||
"frontend": true
|
||||
},
|
||||
"unaffected_containers": {
|
||||
"count": 78,
|
||||
"unchanged": true
|
||||
},
|
||||
"schema": [
|
||||
"243",
|
||||
"20261013.247",
|
||||
"0"
|
||||
],
|
||||
"native_state": [
|
||||
"NATIVE",
|
||||
"1",
|
||||
"1"
|
||||
],
|
||||
"migration_248_absent": true,
|
||||
"menu_counts": [
|
||||
"693",
|
||||
"513"
|
||||
],
|
||||
"old_images_retained": true,
|
||||
"transfer_archive_removed": true,
|
||||
"migration": "PASS",
|
||||
"data_preservation": "PASS",
|
||||
"core_smoke": "PASS",
|
||||
"workbench_smoke": "PASS",
|
||||
"status": "PASS",
|
||||
"tools_sha256": {
|
||||
"runner.py": "740b26304ea1eb6d3e61fd700c322003f3effd311c6ba263d59ce24f452b3446",
|
||||
"migrate-release.py": "e23c311c23b8e65660e1239f808ddc97355f50c2d0c47f8b62f5b1466894c9bf",
|
||||
"workbench-smoke.py": "d0ecb84929711eb42f2400a0c73c20b21ab9d5bf75bcee2dafa0ca5606c78a94",
|
||||
"data-transfer.py": "62103bf8d97d120b97272dcdd42b9646acd79e3937c102fa63fd067f11a64595"
|
||||
},
|
||||
"browser": {
|
||||
"authenticated_login": "PASS",
|
||||
"pages": [
|
||||
"ai-workbench",
|
||||
"workbench-knowledge",
|
||||
"bi-datasets"
|
||||
],
|
||||
"page_loading": "PASS",
|
||||
"full_ui_uat": "NOT_RUN",
|
||||
"logged_out": true
|
||||
},
|
||||
"api_payload_sha256": {
|
||||
"before.json": "bc0120aeea27029d2eccaa5d5d592f4f88878d337cb544960ae51d5a572dca94",
|
||||
"after.json": "347b94f6bbe935342d9df3df6807921e38c3f2d9c5f58e67cdac6b6d5dd0dba4"
|
||||
},
|
||||
"duplicate_after_payload_removed": true
|
||||
}
|
||||
@@ -0,0 +1,293 @@
|
||||
{
|
||||
"before_history_sha256": "521c9d5f0d44b7d7eead48e6ac173a75e429f5042e7aea516e1d11b8ee6291f1",
|
||||
"migrations": [
|
||||
{
|
||||
"version": "20261012.218",
|
||||
"ownerUnit": "integration",
|
||||
"path": "db/migration/integration/V20261012.218__create_ai_workbench_sessions.sql",
|
||||
"sha256": "44f98a464cf8c0d795ba88860b1fefd9005ed6c516238e7a083dc79163c95182"
|
||||
},
|
||||
{
|
||||
"version": "20261012.219",
|
||||
"ownerUnit": "system",
|
||||
"path": "db/migration/system/V20261012.219__register_ai_workbench_menu.sql",
|
||||
"sha256": "cc3b9fe6928b39715df5535ce688edf4861c9a411fb173e0703bfc718dc123f8"
|
||||
},
|
||||
{
|
||||
"version": "20261012.220",
|
||||
"ownerUnit": "dataproduct",
|
||||
"path": "db/migration/dataproduct/V20261012.220__create_bi_objects.sql",
|
||||
"sha256": "c70247f2eb82cacee7a3bebefe602b3352d8e80aea965948aea011dc4365d579"
|
||||
},
|
||||
{
|
||||
"version": "20261012.221",
|
||||
"ownerUnit": "integration",
|
||||
"path": "db/migration/integration/V20261012.221__create_ai_business_drafts.sql",
|
||||
"sha256": "e2de38464b4cf225c1c4ed14cf59ce3a252bf81396eda794bbeebbe506beaf2a"
|
||||
},
|
||||
{
|
||||
"version": "20261012.222",
|
||||
"ownerUnit": "governance",
|
||||
"path": "db/migration/governance/V20261012.222__create_workbench_knowledge.sql",
|
||||
"sha256": "e5f0c6eb361e0ed1565603e2940c3c4c5a4e6ea62785cb27c686d0c0b643c414"
|
||||
},
|
||||
{
|
||||
"version": "20261012.223",
|
||||
"ownerUnit": "integration",
|
||||
"path": "db/migration/integration/V20261012.223__create_assistant_schedules.sql",
|
||||
"sha256": "86ce1caebe933fe3cfa31bbc1f35d6e5c673277ba675c67c52534d06e59dedba"
|
||||
},
|
||||
{
|
||||
"version": "20261012.224",
|
||||
"ownerUnit": "system",
|
||||
"path": "db/migration/system/V20261012.224__register_bi_knowledge_schedule_menus.sql",
|
||||
"sha256": "8cea962a5465552be8b6a3733ede0c2f51877b836cb9c3d354f63f3459b80ce3"
|
||||
},
|
||||
{
|
||||
"version": "20261012.225",
|
||||
"ownerUnit": "integration",
|
||||
"path": "db/migration/integration/V20261012.225__create_workbench_task_plans.sql",
|
||||
"sha256": "562020d811da2762e5d8c32614f83feb4e31c36a0910e79b1b92542c80906746"
|
||||
},
|
||||
{
|
||||
"version": "20261012.226",
|
||||
"ownerUnit": "dataops",
|
||||
"path": "db/migration/dataops/V20261012.226__create_engineering_owner_drafts.sql",
|
||||
"sha256": "893b44d9349e38cfd826d8dadf68a036fac3e99497731d43514329a2f77e5043"
|
||||
},
|
||||
{
|
||||
"version": "20261012.227",
|
||||
"ownerUnit": "governance",
|
||||
"path": "db/migration/governance/V20261012.227__create_knowledge_attachments.sql",
|
||||
"sha256": "001142d566790cdc1048f05f7633ebe9ec8f67d945b3e42a787fb81e8f501c6a"
|
||||
},
|
||||
{
|
||||
"version": "20261012.228",
|
||||
"ownerUnit": "integration",
|
||||
"path": "db/migration/integration/V20261012.228__assistant_schedule_business_inputs.sql",
|
||||
"sha256": "f3332d3d29608d34a1509107a2f716553ebee7376f019d29cfb1b5d3b17ac42d"
|
||||
},
|
||||
{
|
||||
"version": "20261012.229",
|
||||
"ownerUnit": "governance",
|
||||
"path": "db/migration/governance/V20261012.229__session_attachment_lifecycle.sql",
|
||||
"sha256": "8793a63e21277dc14a30862c63ce303dceb2cb9c172655095f855d3b41a5e74d"
|
||||
},
|
||||
{
|
||||
"version": "20261012.230",
|
||||
"ownerUnit": "integration",
|
||||
"path": "db/migration/integration/V20261012.230__create_workbench_personal_memory.sql",
|
||||
"sha256": "9b6ee5c46af2e649ff3fabe7c6976605476932770d80eac23f00400d4d26197d"
|
||||
},
|
||||
{
|
||||
"version": "20261012.231",
|
||||
"ownerUnit": "governance",
|
||||
"path": "db/migration/governance/V20261012.231__version_reviewed_model_proposals.sql",
|
||||
"sha256": "7028e186c111f8a7f4a76e977e4f443e63d761829e51ef5fbeb625c78d903822"
|
||||
},
|
||||
{
|
||||
"version": "20261012.232",
|
||||
"ownerUnit": "integration",
|
||||
"path": "db/migration/integration/V20261012.232__create_workbench_suggestion_batches.sql",
|
||||
"sha256": "264f0105b870c04d9a212cb6560fac8f7cde7c267720672e687c741501327f82"
|
||||
},
|
||||
{
|
||||
"version": "20261012.233",
|
||||
"ownerUnit": "governance",
|
||||
"path": "db/migration/governance/V20261012.233__enable_registered_native_jdbc_connectors.sql",
|
||||
"sha256": "b3d25cd84f02d49bcaf4370bd382c712c13ee6ddba483df9e9aba474123efac8"
|
||||
},
|
||||
{
|
||||
"version": "20261012.234",
|
||||
"ownerUnit": "governance",
|
||||
"path": "db/migration/governance/V20261012.234__create_knowledge_candidates.sql",
|
||||
"sha256": "6a9fe0cc30a1553737e1e48e7a475397f1151527ec3661f366fb25c3152ea5ab"
|
||||
},
|
||||
{
|
||||
"version": "20261012.235",
|
||||
"ownerUnit": "dataproduct",
|
||||
"path": "db/migration/dataproduct/V20261012.235__complete_metric_history_export.sql",
|
||||
"sha256": "0443a4058010a7bac823a5b696f6a4e02d4ee2575f5107e214654516ec867989"
|
||||
},
|
||||
{
|
||||
"version": "20261012.236",
|
||||
"ownerUnit": "governance",
|
||||
"path": "db/migration/governance/V20261012.236__bind_data_profile_observations.sql",
|
||||
"sha256": "c9825710fb910dd331d431a9db7cba4b37164e137e437b511574994b917dd95b"
|
||||
},
|
||||
{
|
||||
"version": "20261012.237",
|
||||
"ownerUnit": "integration",
|
||||
"path": "db/migration/integration/V20261012.237__record_assistant_schedule_model_usage.sql",
|
||||
"sha256": "a8715ad8e784ccdb32002aad43c846c79c29a6f94a3fd68e009079741c7d6064"
|
||||
},
|
||||
{
|
||||
"version": "20261012.238",
|
||||
"ownerUnit": "governance",
|
||||
"path": "db/migration/governance/V20261012.238__create_root_cause_source_binding.sql",
|
||||
"sha256": "790e3f9037329a3d52f705fa1bb49c08bdf31d0e4376ad7ea5f78b4e348907e4"
|
||||
},
|
||||
{
|
||||
"version": "20261012.239",
|
||||
"ownerUnit": "dataproduct",
|
||||
"path": "db/migration/dataproduct/V20261012.239__create_bi_export_jobs.sql",
|
||||
"sha256": "1ce82f8ac462edcd7b5590256cc2f946f7b1d500c54ba3d409397a1d2b915cbc"
|
||||
},
|
||||
{
|
||||
"version": "20261013.240",
|
||||
"ownerUnit": "governance",
|
||||
"path": "db/migration/governance/V20261013.240__bind_data_element_native_mapping.sql",
|
||||
"sha256": "3a000cd37663cc891974adf30ce1a94b23a283dc2d582cced90a24a32940ad9f"
|
||||
},
|
||||
{
|
||||
"version": "20261013.241",
|
||||
"ownerUnit": "dataops",
|
||||
"path": "db/migration/dataops/V20261013.241__bind_alert_occurrence_evidence.sql",
|
||||
"sha256": "f7f37b51b9cc2ce7aaf602c0c044e2517ee498bd1c98211543403616e547e06d"
|
||||
},
|
||||
{
|
||||
"version": "20261013.242",
|
||||
"ownerUnit": "dataproduct",
|
||||
"path": "db/migration/dataproduct/V20261013.242__extend_semantic_model_synonyms.sql",
|
||||
"sha256": "9c96e1d0f296322aeaedf0f33258993ab8e100d7c62d0a67f6596b41701394f4"
|
||||
},
|
||||
{
|
||||
"version": "20261013.243",
|
||||
"ownerUnit": "dataproduct",
|
||||
"path": "db/migration/dataproduct/V20261013.243__bind_metric_formula_references.sql",
|
||||
"sha256": "33d44db12fd5fb8d7b81b7a407096b0e4d773d4fd94196345ebccf276a606bb0"
|
||||
},
|
||||
{
|
||||
"version": "20261013.244",
|
||||
"ownerUnit": "governance",
|
||||
"path": "db/migration/governance/V20261013.244__extend_model_design_source_evidence.sql",
|
||||
"sha256": "4023b32f56f00728ae117432d4bf3a0c315e8b65050649a8d701605384e39b33"
|
||||
},
|
||||
{
|
||||
"version": "20261013.245",
|
||||
"ownerUnit": "governance",
|
||||
"path": "db/migration/governance/V20261013.245__create_metadata_relation_declarations.sql",
|
||||
"sha256": "98546125f80379c67134aa59cab48c4f6d675818f3adcd6f1590c3cf87e49c8e"
|
||||
},
|
||||
{
|
||||
"version": "20261013.246",
|
||||
"ownerUnit": "system",
|
||||
"path": "db/migration/system/V20261013.246__register_metadata_relation_declaration_permissions.sql",
|
||||
"sha256": "fd2bf4c816bc7a2d40f778fbc0feb278df76a3dfc2d79e6c369c9caf1f9c0fa5"
|
||||
},
|
||||
{
|
||||
"version": "20261013.247",
|
||||
"ownerUnit": "system",
|
||||
"path": "db/migration/system/V20261013.247__register_file_preview_permission.sql",
|
||||
"sha256": "d2adc148063440bdc7c03484661c13dabf80e902cd88e15fa306330540816b8b"
|
||||
}
|
||||
],
|
||||
"new_tables": [
|
||||
"dev_engineering_draft",
|
||||
"dg_ai_business_draft",
|
||||
"dg_ai_suggestion_batch",
|
||||
"dg_ai_task_plan",
|
||||
"dg_ai_task_plan_request",
|
||||
"dg_ai_workbench_memory",
|
||||
"dg_ai_workbench_memory_request",
|
||||
"dg_ai_workbench_memory_settings",
|
||||
"dg_ai_workbench_session",
|
||||
"dg_assistant_schedule",
|
||||
"dg_assistant_schedule_mutex",
|
||||
"dg_assistant_schedule_request",
|
||||
"dg_assistant_schedule_run",
|
||||
"dq_profile_observation_binding",
|
||||
"dq_root_cause_source_binding",
|
||||
"md_relation_declaration",
|
||||
"md_relation_declaration_request",
|
||||
"metric_formula_graph_guard",
|
||||
"metric_formula_reference_binding",
|
||||
"ops_alert_occurrence_binding",
|
||||
"std_adoption_native_binding",
|
||||
"svc_bi_export_admission",
|
||||
"svc_bi_export_event",
|
||||
"svc_bi_export_job",
|
||||
"svc_bi_export_mutation",
|
||||
"svc_bi_object",
|
||||
"svc_bi_request",
|
||||
"svc_bi_share",
|
||||
"svc_bi_version",
|
||||
"wb_attachment_maintenance_lock",
|
||||
"wb_knowledge_attachment",
|
||||
"wb_knowledge_candidate",
|
||||
"wb_knowledge_document",
|
||||
"wb_knowledge_document_version",
|
||||
"wb_knowledge_fragment",
|
||||
"wb_knowledge_request"
|
||||
],
|
||||
"backup_tables": [
|
||||
"da_model_design",
|
||||
"da_model_design_version",
|
||||
"da_model_engineering_proposal",
|
||||
"md_ingestion_connector",
|
||||
"metric_self_service_export_request",
|
||||
"metric_semantic_model",
|
||||
"metric_semantic_snapshot",
|
||||
"std_adoption_mapping",
|
||||
"sys_menu",
|
||||
"sys_role_menu"
|
||||
],
|
||||
"preserve_predicates": {
|
||||
"sys_menu": "menu_id NOT IN(1761700000000000600,1761700000000000601,1761700000000000602,1761700000000000603,1761700000000000604,1761700000000000610,1761700000000000611,1761700000000000612,1761700000000000613,1761700000000000614,1761700000000000615,1761700000000000616,1761700000000000617,1761700000000000618,1761700000000000619,1761700000000000620,1761700000000000621,1761700000000000622,1761700000000000623,1761700000000000624,1761700000000000625,1761700000000000626,1761490000000000244,1761490000000000245,1761490000000000246,1761490000000000097)",
|
||||
"sys_role_menu": "menu_id NOT IN(1761700000000000600,1761700000000000601,1761700000000000602,1761700000000000603,1761700000000000604,1761700000000000610,1761700000000000611,1761700000000000612,1761700000000000613,1761700000000000614,1761700000000000615,1761700000000000616,1761700000000000617,1761700000000000618,1761700000000000619,1761700000000000620,1761700000000000621,1761700000000000622,1761700000000000623,1761700000000000624,1761700000000000625,1761700000000000626,1761490000000000244,1761490000000000245,1761490000000000246,1761490000000000097)"
|
||||
},
|
||||
"checks": [
|
||||
{
|
||||
"name": "native backend retained",
|
||||
"sql": "SELECT backend,write_enabled,epoch FROM md_native_cutover WHERE domain_key='metadata'",
|
||||
"expected": "NATIVE\t1\t1"
|
||||
},
|
||||
{
|
||||
"name": "superadmin seed",
|
||||
"sql": "SELECT COUNT(*) FROM sys_role WHERE role_id=1761300000000000001 AND BINARY role_key=BINARY 'superadmin' AND status='0' AND del_flag='0'",
|
||||
"expected": "1"
|
||||
},
|
||||
{
|
||||
"name": "menu IDs unoccupied",
|
||||
"sql": "SELECT COUNT(*) FROM sys_menu WHERE NOT(menu_id NOT IN(1761700000000000600,1761700000000000601,1761700000000000602,1761700000000000603,1761700000000000604,1761700000000000610,1761700000000000611,1761700000000000612,1761700000000000613,1761700000000000614,1761700000000000615,1761700000000000616,1761700000000000617,1761700000000000618,1761700000000000619,1761700000000000620,1761700000000000621,1761700000000000622,1761700000000000623,1761700000000000624,1761700000000000625,1761700000000000626,1761490000000000244,1761490000000000245,1761490000000000246,1761490000000000097))",
|
||||
"expected": "0"
|
||||
},
|
||||
{
|
||||
"name": "menu grants unoccupied",
|
||||
"sql": "SELECT COUNT(*) FROM sys_role_menu WHERE NOT(menu_id NOT IN(1761700000000000600,1761700000000000601,1761700000000000602,1761700000000000603,1761700000000000604,1761700000000000610,1761700000000000611,1761700000000000612,1761700000000000613,1761700000000000614,1761700000000000615,1761700000000000616,1761700000000000617,1761700000000000618,1761700000000000619,1761700000000000620,1761700000000000621,1761700000000000622,1761700000000000623,1761700000000000624,1761700000000000625,1761700000000000626,1761490000000000244,1761490000000000245,1761490000000000246,1761490000000000097))",
|
||||
"expected": "0"
|
||||
},
|
||||
{
|
||||
"name": "no active native scans",
|
||||
"sql": "SELECT COUNT(*) FROM md_native_job WHERE state IN('PREPARED','SUBMITTED','PENDING','RUNNING')",
|
||||
"expected": "0"
|
||||
}
|
||||
],
|
||||
"after_checks": [
|
||||
{
|
||||
"name": "history receipt",
|
||||
"sql": "SELECT COUNT(*),MAX(version),SUM(success<>1) FROM dg_schema_history",
|
||||
"expected": "243\t20261013.247\t0"
|
||||
},
|
||||
{
|
||||
"name": "menus added only",
|
||||
"sql": "SELECT COUNT(*) FROM sys_menu",
|
||||
"expected": "693"
|
||||
},
|
||||
{
|
||||
"name": "grants added only",
|
||||
"sql": "SELECT COUNT(*) FROM sys_role_menu",
|
||||
"expected": "513"
|
||||
},
|
||||
{
|
||||
"name": "new menus",
|
||||
"sql": "SELECT COUNT(*) FROM sys_menu WHERE NOT(menu_id NOT IN(1761700000000000600,1761700000000000601,1761700000000000602,1761700000000000603,1761700000000000604,1761700000000000610,1761700000000000611,1761700000000000612,1761700000000000613,1761700000000000614,1761700000000000615,1761700000000000616,1761700000000000617,1761700000000000618,1761700000000000619,1761700000000000620,1761700000000000621,1761700000000000622,1761700000000000623,1761700000000000624,1761700000000000625,1761700000000000626,1761490000000000244,1761490000000000245,1761490000000000246,1761490000000000097))",
|
||||
"expected": "26"
|
||||
},
|
||||
{
|
||||
"name": "superadmin grants only",
|
||||
"sql": "SELECT COUNT(*) FROM sys_role_menu WHERE NOT(menu_id NOT IN(1761700000000000600,1761700000000000601,1761700000000000602,1761700000000000603,1761700000000000604,1761700000000000610,1761700000000000611,1761700000000000612,1761700000000000613,1761700000000000614,1761700000000000615,1761700000000000616,1761700000000000617,1761700000000000618,1761700000000000619,1761700000000000620,1761700000000000621,1761700000000000622,1761700000000000623,1761700000000000624,1761700000000000625,1761700000000000626,1761490000000000244,1761490000000000245,1761490000000000246,1761490000000000097)) AND role_id=1761300000000000001",
|
||||
"expected": "26"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
{
|
||||
"status": "PASS",
|
||||
"versions": [
|
||||
"20261012.218",
|
||||
"20261012.219",
|
||||
"20261012.220",
|
||||
"20261012.221",
|
||||
"20261012.222",
|
||||
"20261012.223",
|
||||
"20261012.224",
|
||||
"20261012.225",
|
||||
"20261012.226",
|
||||
"20261012.227",
|
||||
"20261012.228",
|
||||
"20261012.229",
|
||||
"20261012.230",
|
||||
"20261012.231",
|
||||
"20261012.232",
|
||||
"20261012.233",
|
||||
"20261012.234",
|
||||
"20261012.235",
|
||||
"20261012.236",
|
||||
"20261012.237",
|
||||
"20261012.238",
|
||||
"20261012.239",
|
||||
"20261013.240",
|
||||
"20261013.241",
|
||||
"20261013.242",
|
||||
"20261013.243",
|
||||
"20261013.244",
|
||||
"20261013.245",
|
||||
"20261013.246",
|
||||
"20261013.247"
|
||||
],
|
||||
"history_sha256": "963a98992e4b0faa8687c13580238ac37c2ba65e4c2005d2d05758c9193869fe",
|
||||
"existing_rows_preserved": {
|
||||
"da_model_design": true,
|
||||
"da_model_design_version": true,
|
||||
"da_model_engineering_proposal": true,
|
||||
"md_ingestion_connector": true,
|
||||
"metric_self_service_export_request": true,
|
||||
"metric_semantic_model": true,
|
||||
"metric_semantic_snapshot": true,
|
||||
"std_adoption_mapping": true,
|
||||
"sys_menu": true,
|
||||
"sys_role_menu": true
|
||||
},
|
||||
"new_tables": 36,
|
||||
"backup_tables": {
|
||||
"da_model_design": 1,
|
||||
"da_model_design_version": 2,
|
||||
"da_model_engineering_proposal": 0,
|
||||
"md_ingestion_connector": 8,
|
||||
"metric_self_service_export_request": 0,
|
||||
"metric_semantic_model": 0,
|
||||
"metric_semantic_snapshot": 0,
|
||||
"std_adoption_mapping": 7,
|
||||
"sys_menu": 667,
|
||||
"sys_role_menu": 487
|
||||
},
|
||||
"applications": "STOPPED_FOR_IMAGE_APPLY"
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"status": "PASS",
|
||||
"phase": "after",
|
||||
"https_login": "PASS",
|
||||
"anonymous_denied": true,
|
||||
"assets": 5,
|
||||
"datasets": 1,
|
||||
"catalog_sources": 1,
|
||||
"catalog_tables": 1,
|
||||
"pagination_unique": true,
|
||||
"types": {
|
||||
"ENTITY": 37,
|
||||
"FIELD": 17
|
||||
},
|
||||
"business_lists": "PASS",
|
||||
"assets_preserved": true,
|
||||
"datasets_preserved": true,
|
||||
"catalog_preserved": true,
|
||||
"baseline_assets_sha256": "1d3bbe83ea6584f2713a6dbe11ad2be3adbaff701432ff1f807cedfef3eb25f1",
|
||||
"baseline_datasets_sha256": "e782b1020370b7ec9e18b5100d3c54131811d43775f4422d11f1336ff549d26b"
|
||||
}
|
||||
@@ -0,0 +1,296 @@
|
||||
{
|
||||
"version": "remote-20261014-01",
|
||||
"target": "test-v",
|
||||
"services": {
|
||||
"system": {
|
||||
"tag": "aixun-datagov/system:remote-20261014-01",
|
||||
"id": "sha256:96670b3518d641c83c6acf30f760e2c75eaf05f4ffdd538ee5c2d80670ee710c",
|
||||
"artifact_sha256": "61631c4862d89279272b5c104d144113ae3523b79e8bda9168b7e77a36be7717",
|
||||
"platform": "linux/amd64",
|
||||
"source": "sha256:96670b3518d641c83c6acf30f760e2c75eaf05f4ffdd538ee5c2d80670ee710c"
|
||||
},
|
||||
"resource": {
|
||||
"tag": "aixun-datagov/resource:remote-20261014-01",
|
||||
"id": "sha256:715d35aca9f1ce3040e7ea0de24f66eadcff47e77980dacf0fce2622ff3e6dff",
|
||||
"artifact_sha256": "0ab4160c605ab9abb5a34a2cf3cbe8c430bb88232ccc698a61ac0a64fbebdb9e",
|
||||
"platform": "linux/amd64",
|
||||
"source": "sha256:715d35aca9f1ce3040e7ea0de24f66eadcff47e77980dacf0fce2622ff3e6dff"
|
||||
},
|
||||
"integration": {
|
||||
"tag": "aixun-datagov/integration:remote-20261014-01",
|
||||
"id": "sha256:d14f5128d463d418d088bd6a24580a41cade8ba7bb723f80a9b97338b8da0ba2",
|
||||
"artifact_sha256": "e597aa0e392d7bfc2eadf142604cf782bb558e652a6d9fa9b4b2441159e1484b",
|
||||
"platform": "linux/amd64",
|
||||
"source": "sha256:d14f5128d463d418d088bd6a24580a41cade8ba7bb723f80a9b97338b8da0ba2"
|
||||
},
|
||||
"dataops": {
|
||||
"tag": "aixun-datagov/dataops:remote-20261014-01",
|
||||
"id": "sha256:2d1d1ee736adceb4ab6bfa5c20c9986b065b1adf5b304fde3bcd8f717520d996",
|
||||
"artifact_sha256": "45078221c669556ee2a0f33df09b234ae4b98dc329048bb3bd87a010735f0696",
|
||||
"platform": "linux/amd64",
|
||||
"source": "sha256:2d1d1ee736adceb4ab6bfa5c20c9986b065b1adf5b304fde3bcd8f717520d996"
|
||||
},
|
||||
"governance": {
|
||||
"tag": "aixun-datagov/governance:remote-20261014-01",
|
||||
"id": "sha256:aa918c04f08879c4b492a034002577a22d49980ce96d6fd00c1c593ecbefc5bd",
|
||||
"artifact_sha256": "554566b63a568c7a552b9027a05baa60ed684c0027e0eeb9a0de09530faa6d2d",
|
||||
"platform": "linux/amd64",
|
||||
"source": "sha256:aa918c04f08879c4b492a034002577a22d49980ce96d6fd00c1c593ecbefc5bd"
|
||||
},
|
||||
"dataproduct": {
|
||||
"tag": "aixun-datagov/dataproduct:remote-20261014-01",
|
||||
"id": "sha256:d29ac14768ed556f9717ef0148deb56f7f726fbe3bd3a847179e7d5a2e5a8c47",
|
||||
"artifact_sha256": "59e94280c7bb7ca234229619a7079adcecc6f40b62ec89117bf3c9d4dc90c3e1",
|
||||
"platform": "linux/amd64",
|
||||
"source": "sha256:d29ac14768ed556f9717ef0148deb56f7f726fbe3bd3a847179e7d5a2e5a8c47"
|
||||
},
|
||||
"frontend": {
|
||||
"tag": "aixun-datagov/frontend:remote-20261014-01",
|
||||
"id": "sha256:2a03c01aee34bb2430bf4294d106f90bbe63e63e930aeae21588c5146008e15e",
|
||||
"artifact_sha256": "63da5d3624debdedea15be33ed74eb44e95eea151bb07aaed8ec86e69425c1bf",
|
||||
"platform": "linux/amd64",
|
||||
"source": "sha256:2a03c01aee34bb2430bf4294d106f90bbe63e63e930aeae21588c5146008e15e",
|
||||
"artifact_path": "/opt/aixun-datagov/frontend-current"
|
||||
}
|
||||
},
|
||||
"expected_remote": {
|
||||
"system": {
|
||||
"container": "7bc927cd125c481954e9898a606bb498b32e9f51f30ddde943b748ca607c3c58",
|
||||
"image": "sha256:51cc508e90d343ec33ca43bbf3027041995df9f53c99f9247daca7ce3038b2bd"
|
||||
},
|
||||
"resource": {
|
||||
"container": "d1e4b19bdabd1fd898531b0b68947c435ca2fa0110a52392aca1e8ae18132e7c",
|
||||
"image": "sha256:bcc8a5d1551d0c0f96502eed4dff8cb6fd7867480d587d940003522429a12729"
|
||||
},
|
||||
"integration": {
|
||||
"container": "2c014c405f539418b0bd54c677ee66e61b7bbf0144fd1cff173cb9d2de1feb26",
|
||||
"image": "sha256:794f451873d807864979a28a09186a63123d8ce5b843cfffa79bd38b662b0b32"
|
||||
},
|
||||
"dataops": {
|
||||
"container": "f1b0804a0b4d5c73283de42177c360825802a241d8c640560e9b7d48983ebb2a",
|
||||
"image": "sha256:23770f320eec9b08be83a53fefb0c61c67a969b4790cb61a72f8849534b61dbb"
|
||||
},
|
||||
"governance": {
|
||||
"container": "a36e39c4df0970cfe2bfe9021bd7e44484e636dec9cff6ecdd3d6dc99865d38e",
|
||||
"image": "sha256:082c72fe674ca498155b446cff135cdc141325a5b965eae6dd31539ba98d3797"
|
||||
},
|
||||
"dataproduct": {
|
||||
"container": "068dbb30497d0538842c36285c65ccdd790d6a07d9dad463ec9a06405c9849c9",
|
||||
"image": "sha256:67e459cef0cb972da8442eb5d9e433fb8e4f989882677db0b16fb422f4443dcf"
|
||||
},
|
||||
"frontend": {
|
||||
"container": "f1e51d0c43ecee433e948844afbc63458d013e16f1f0e006717734e7fd537fef",
|
||||
"image": "sha256:ded8f1a5af1c25e838795157459c00c983b7a81296736b446ff2c8f081c9a9ee"
|
||||
}
|
||||
},
|
||||
"database_change": true,
|
||||
"config_change": false,
|
||||
"authorization": "2026-10-14 user requested another remote release; existing instruction excludes unfinished modifications",
|
||||
"scope": "sealed wave25 plus required resource wave10; unsealed wave26/248 and current DataSourceRegistry excluded",
|
||||
"transfer_sha256": "e2bf677d2e08463332dfcac6dd6df01944a1aa8823e05df3a96cfee471138d6f",
|
||||
"pre_stop_runtime": {
|
||||
"system": {
|
||||
"container": "7bc927cd125c481954e9898a606bb498b32e9f51f30ddde943b748ca607c3c58",
|
||||
"image": "sha256:51cc508e90d343ec33ca43bbf3027041995df9f53c99f9247daca7ce3038b2bd",
|
||||
"networks": {
|
||||
"aixun-datagov-local-backend": {
|
||||
"id": "5be135116e5af13c6c22b742f9eb7e8ca928bf238f91e9dd6966fd7f51ce1108",
|
||||
"ip": "192.168.16.7"
|
||||
}
|
||||
},
|
||||
"mounts": [],
|
||||
"ports": {
|
||||
"9201/tcp": [
|
||||
{
|
||||
"HostIp": "127.0.0.1",
|
||||
"HostPort": "29201"
|
||||
}
|
||||
]
|
||||
},
|
||||
"config_sha256": "d12f3e7c55aea440c6a0c7ab77c5efedd6938be9bf564286ad3a4de063060959"
|
||||
},
|
||||
"resource": {
|
||||
"container": "d1e4b19bdabd1fd898531b0b68947c435ca2fa0110a52392aca1e8ae18132e7c",
|
||||
"image": "sha256:bcc8a5d1551d0c0f96502eed4dff8cb6fd7867480d587d940003522429a12729",
|
||||
"networks": {
|
||||
"aixun-datagov-local-backend": {
|
||||
"id": "5be135116e5af13c6c22b742f9eb7e8ca928bf238f91e9dd6966fd7f51ce1108",
|
||||
"ip": "192.168.16.8"
|
||||
}
|
||||
},
|
||||
"mounts": [
|
||||
{
|
||||
"Type": "volume",
|
||||
"Name": "aixun-datagov-local-file-data",
|
||||
"Source": "/var/lib/docker/volumes/aixun-datagov-local-file-data/_data",
|
||||
"Destination": "/var/lib/aixun-datagov/files",
|
||||
"Driver": "local",
|
||||
"Mode": "rw",
|
||||
"RW": true,
|
||||
"Propagation": ""
|
||||
}
|
||||
],
|
||||
"ports": {
|
||||
"9204/tcp": [
|
||||
{
|
||||
"HostIp": "127.0.0.1",
|
||||
"HostPort": "29204"
|
||||
}
|
||||
]
|
||||
},
|
||||
"config_sha256": "6dafa6e8fc8b127573ed5d7475487e2cadb0f6a390a254170b84f9c28e56bd90"
|
||||
},
|
||||
"integration": {
|
||||
"container": "2c014c405f539418b0bd54c677ee66e61b7bbf0144fd1cff173cb9d2de1feb26",
|
||||
"image": "sha256:794f451873d807864979a28a09186a63123d8ce5b843cfffa79bd38b662b0b32",
|
||||
"networks": {
|
||||
"aixun-datagov-local-backend": {
|
||||
"id": "5be135116e5af13c6c22b742f9eb7e8ca928bf238f91e9dd6966fd7f51ce1108",
|
||||
"ip": "192.168.16.9"
|
||||
},
|
||||
"aixun-datagov-local-m2-integration": {
|
||||
"id": "452d6bfe8d99d954c328e94e5515d3459aa02c8b0555028508bb97a101dd3b60",
|
||||
"ip": "192.168.48.5"
|
||||
}
|
||||
},
|
||||
"mounts": [
|
||||
{
|
||||
"Type": "bind",
|
||||
"Source": "/opt/aixun-datagov/m2/local/secrets",
|
||||
"Destination": "/run/secrets/aixun-datagov/m2",
|
||||
"Mode": "ro",
|
||||
"RW": false,
|
||||
"Propagation": "rprivate"
|
||||
},
|
||||
{
|
||||
"Type": "volume",
|
||||
"Name": "aixun-datagov-local-managed-credential-data",
|
||||
"Source": "/var/lib/docker/volumes/aixun-datagov-local-managed-credential-data/_data",
|
||||
"Destination": "/run/secrets/aixun-datagov/managed",
|
||||
"Driver": "local",
|
||||
"Mode": "rw",
|
||||
"RW": true,
|
||||
"Propagation": ""
|
||||
},
|
||||
{
|
||||
"Type": "volume",
|
||||
"Name": "aixun-datagov-local-file-ingestion-data",
|
||||
"Source": "/var/lib/docker/volumes/aixun-datagov-local-file-ingestion-data/_data",
|
||||
"Destination": "/var/lib/aixun-datagov/ingestion",
|
||||
"Driver": "local",
|
||||
"Mode": "rw",
|
||||
"RW": true,
|
||||
"Propagation": ""
|
||||
}
|
||||
],
|
||||
"ports": {
|
||||
"9310/tcp": [
|
||||
{
|
||||
"HostIp": "127.0.0.1",
|
||||
"HostPort": "29310"
|
||||
}
|
||||
]
|
||||
},
|
||||
"config_sha256": "fb6f9265ce0acd34e04a467da636ce55d00e1326a88aec29267d5145e7629ec4"
|
||||
},
|
||||
"dataops": {
|
||||
"container": "f1b0804a0b4d5c73283de42177c360825802a241d8c640560e9b7d48983ebb2a",
|
||||
"image": "sha256:23770f320eec9b08be83a53fefb0c61c67a969b4790cb61a72f8849534b61dbb",
|
||||
"networks": {
|
||||
"aixun-datagov-local-backend": {
|
||||
"id": "5be135116e5af13c6c22b742f9eb7e8ca928bf238f91e9dd6966fd7f51ce1108",
|
||||
"ip": "192.168.16.10"
|
||||
}
|
||||
},
|
||||
"mounts": [],
|
||||
"ports": {
|
||||
"9320/tcp": [
|
||||
{
|
||||
"HostIp": "127.0.0.1",
|
||||
"HostPort": "29320"
|
||||
}
|
||||
]
|
||||
},
|
||||
"config_sha256": "9ffa066099cb1c342720b35cda2a62a17f50e50e3ce1abcec37d1abff0fb9f8a"
|
||||
},
|
||||
"governance": {
|
||||
"container": "a36e39c4df0970cfe2bfe9021bd7e44484e636dec9cff6ecdd3d6dc99865d38e",
|
||||
"image": "sha256:082c72fe674ca498155b446cff135cdc141325a5b965eae6dd31539ba98d3797",
|
||||
"networks": {
|
||||
"aixun-datagov-local-backend": {
|
||||
"id": "5be135116e5af13c6c22b742f9eb7e8ca928bf238f91e9dd6966fd7f51ce1108",
|
||||
"ip": "192.168.16.11"
|
||||
}
|
||||
},
|
||||
"mounts": [],
|
||||
"ports": {
|
||||
"9330/tcp": [
|
||||
{
|
||||
"HostIp": "127.0.0.1",
|
||||
"HostPort": "29330"
|
||||
}
|
||||
]
|
||||
},
|
||||
"config_sha256": "7284cee9687d188e377152d1de20565fee2faa77f71dffb965a3b2c1f7e6999e"
|
||||
},
|
||||
"dataproduct": {
|
||||
"container": "068dbb30497d0538842c36285c65ccdd790d6a07d9dad463ec9a06405c9849c9",
|
||||
"image": "sha256:67e459cef0cb972da8442eb5d9e433fb8e4f989882677db0b16fb422f4443dcf",
|
||||
"networks": {
|
||||
"aixun-datagov-local-backend": {
|
||||
"id": "5be135116e5af13c6c22b742f9eb7e8ca928bf238f91e9dd6966fd7f51ce1108",
|
||||
"ip": "192.168.16.12"
|
||||
}
|
||||
},
|
||||
"mounts": [],
|
||||
"ports": {
|
||||
"9340/tcp": [
|
||||
{
|
||||
"HostIp": "127.0.0.1",
|
||||
"HostPort": "29340"
|
||||
}
|
||||
]
|
||||
},
|
||||
"config_sha256": "223608de7381e5b0fd6a422041ebcbb752e393c081685174d14f6c393e969f98"
|
||||
},
|
||||
"frontend": {
|
||||
"container": "f1e51d0c43ecee433e948844afbc63458d013e16f1f0e006717734e7fd537fef",
|
||||
"image": "sha256:ded8f1a5af1c25e838795157459c00c983b7a81296736b446ff2c8f081c9a9ee",
|
||||
"networks": {
|
||||
"aixun-datagov-local-frontend": {
|
||||
"id": "0d9799886f3213246d96981c9d57a469b38512ea7321cb138fe6148e43c52914",
|
||||
"ip": "192.168.32.3"
|
||||
}
|
||||
},
|
||||
"mounts": [
|
||||
{
|
||||
"Type": "bind",
|
||||
"Source": "/opt/aixun-datagov/nginx/frontend.conf",
|
||||
"Destination": "/etc/nginx/conf.d/default.conf",
|
||||
"Mode": "ro",
|
||||
"RW": false,
|
||||
"Propagation": "rprivate"
|
||||
},
|
||||
{
|
||||
"Type": "volume",
|
||||
"Name": "aixun-datagov-local-frontend-assets",
|
||||
"Source": "/var/lib/docker/volumes/aixun-datagov-local-frontend-assets/_data",
|
||||
"Destination": "/usr/share/nginx/html",
|
||||
"Driver": "local",
|
||||
"Mode": "rw",
|
||||
"RW": true,
|
||||
"Propagation": ""
|
||||
}
|
||||
],
|
||||
"ports": {
|
||||
"80/tcp": [
|
||||
{
|
||||
"HostIp": "127.0.0.1",
|
||||
"HostPort": "28000"
|
||||
}
|
||||
]
|
||||
},
|
||||
"config_sha256": "891e8f94ba614b05e9ed567001a5aa311f03ac39857fa7d3f3ef152bded71c82"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,239 @@
|
||||
{
|
||||
"version": "remote-20261014-01",
|
||||
"action": "apply",
|
||||
"health": {
|
||||
"system": "PASS",
|
||||
"resource": "PASS",
|
||||
"integration": "PASS",
|
||||
"dataops": "PASS",
|
||||
"governance": "PASS",
|
||||
"dataproduct": "PASS",
|
||||
"frontend": "PASS"
|
||||
},
|
||||
"after": {
|
||||
"system": {
|
||||
"container": "84c54fb8ab8e3a7a9f168346bc66dcdc062ef2ba77658862b83ab43549a71128",
|
||||
"image": "sha256:96670b3518d641c83c6acf30f760e2c75eaf05f4ffdd538ee5c2d80670ee710c",
|
||||
"networks": {
|
||||
"aixun-datagov-local-backend": {
|
||||
"id": "5be135116e5af13c6c22b742f9eb7e8ca928bf238f91e9dd6966fd7f51ce1108",
|
||||
"ip": "192.168.16.7"
|
||||
}
|
||||
},
|
||||
"mounts": [],
|
||||
"ports": {
|
||||
"9201/tcp": [
|
||||
{
|
||||
"HostIp": "127.0.0.1",
|
||||
"HostPort": "29201"
|
||||
}
|
||||
]
|
||||
},
|
||||
"config_sha256": "583c6b366ab71554ebb3f36adba37929883712bc81977ee0cf2ec2adc16dc7cd"
|
||||
},
|
||||
"resource": {
|
||||
"container": "857e4164b4a973e38ec3bf69fe5102fa68c3d1049991850d31dd9db956bb503d",
|
||||
"image": "sha256:715d35aca9f1ce3040e7ea0de24f66eadcff47e77980dacf0fce2622ff3e6dff",
|
||||
"networks": {
|
||||
"aixun-datagov-local-backend": {
|
||||
"id": "5be135116e5af13c6c22b742f9eb7e8ca928bf238f91e9dd6966fd7f51ce1108",
|
||||
"ip": "192.168.16.8"
|
||||
}
|
||||
},
|
||||
"mounts": [
|
||||
{
|
||||
"Type": "volume",
|
||||
"Name": "aixun-datagov-local-file-data",
|
||||
"Source": "/var/lib/docker/volumes/aixun-datagov-local-file-data/_data",
|
||||
"Destination": "/var/lib/aixun-datagov/files",
|
||||
"Driver": "local",
|
||||
"Mode": "rw",
|
||||
"RW": true,
|
||||
"Propagation": ""
|
||||
}
|
||||
],
|
||||
"ports": {
|
||||
"9204/tcp": [
|
||||
{
|
||||
"HostIp": "127.0.0.1",
|
||||
"HostPort": "29204"
|
||||
}
|
||||
]
|
||||
},
|
||||
"config_sha256": "557ad212de3440fd784c9574d195b2af6cfa2e18268aa3c51044da15e3733eb9"
|
||||
},
|
||||
"integration": {
|
||||
"container": "c5422694340df953699d4c25d534df761e1b2ec775c4040a96af70705aa9ab7e",
|
||||
"image": "sha256:d14f5128d463d418d088bd6a24580a41cade8ba7bb723f80a9b97338b8da0ba2",
|
||||
"networks": {
|
||||
"aixun-datagov-local-backend": {
|
||||
"id": "5be135116e5af13c6c22b742f9eb7e8ca928bf238f91e9dd6966fd7f51ce1108",
|
||||
"ip": "192.168.16.9"
|
||||
},
|
||||
"aixun-datagov-local-m2-integration": {
|
||||
"id": "452d6bfe8d99d954c328e94e5515d3459aa02c8b0555028508bb97a101dd3b60",
|
||||
"ip": "192.168.48.5"
|
||||
}
|
||||
},
|
||||
"mounts": [
|
||||
{
|
||||
"Type": "bind",
|
||||
"Source": "/opt/aixun-datagov/m2/local/secrets",
|
||||
"Destination": "/run/secrets/aixun-datagov/m2",
|
||||
"Mode": "ro",
|
||||
"RW": false,
|
||||
"Propagation": "rprivate"
|
||||
},
|
||||
{
|
||||
"Type": "volume",
|
||||
"Name": "aixun-datagov-local-managed-credential-data",
|
||||
"Source": "/var/lib/docker/volumes/aixun-datagov-local-managed-credential-data/_data",
|
||||
"Destination": "/run/secrets/aixun-datagov/managed",
|
||||
"Driver": "local",
|
||||
"Mode": "rw",
|
||||
"RW": true,
|
||||
"Propagation": ""
|
||||
},
|
||||
{
|
||||
"Type": "volume",
|
||||
"Name": "aixun-datagov-local-file-ingestion-data",
|
||||
"Source": "/var/lib/docker/volumes/aixun-datagov-local-file-ingestion-data/_data",
|
||||
"Destination": "/var/lib/aixun-datagov/ingestion",
|
||||
"Driver": "local",
|
||||
"Mode": "rw",
|
||||
"RW": true,
|
||||
"Propagation": ""
|
||||
}
|
||||
],
|
||||
"ports": {
|
||||
"9310/tcp": [
|
||||
{
|
||||
"HostIp": "127.0.0.1",
|
||||
"HostPort": "29310"
|
||||
}
|
||||
]
|
||||
},
|
||||
"config_sha256": "9b3bddea2f5f98bef017a1d91a926f0d85f526cd6cfccb886768f53467904a03"
|
||||
},
|
||||
"dataops": {
|
||||
"container": "548e253339389689c3dbf2c8b1c73420e114ef03d4f8e8b5ca44eff431d0880f",
|
||||
"image": "sha256:2d1d1ee736adceb4ab6bfa5c20c9986b065b1adf5b304fde3bcd8f717520d996",
|
||||
"networks": {
|
||||
"aixun-datagov-local-backend": {
|
||||
"id": "5be135116e5af13c6c22b742f9eb7e8ca928bf238f91e9dd6966fd7f51ce1108",
|
||||
"ip": "192.168.16.10"
|
||||
}
|
||||
},
|
||||
"mounts": [],
|
||||
"ports": {
|
||||
"9320/tcp": [
|
||||
{
|
||||
"HostIp": "127.0.0.1",
|
||||
"HostPort": "29320"
|
||||
}
|
||||
]
|
||||
},
|
||||
"config_sha256": "33529e67a7383571884633b6f075084a4c950603c572727d4975e8bd0a034845"
|
||||
},
|
||||
"governance": {
|
||||
"container": "9a57e44fb2301ea0f581ff77d155409b4341df6ee74e696ab3f0ea6ad640a949",
|
||||
"image": "sha256:aa918c04f08879c4b492a034002577a22d49980ce96d6fd00c1c593ecbefc5bd",
|
||||
"networks": {
|
||||
"aixun-datagov-local-backend": {
|
||||
"id": "5be135116e5af13c6c22b742f9eb7e8ca928bf238f91e9dd6966fd7f51ce1108",
|
||||
"ip": "192.168.16.11"
|
||||
}
|
||||
},
|
||||
"mounts": [],
|
||||
"ports": {
|
||||
"9330/tcp": [
|
||||
{
|
||||
"HostIp": "127.0.0.1",
|
||||
"HostPort": "29330"
|
||||
}
|
||||
]
|
||||
},
|
||||
"config_sha256": "c55f5bdcc44e8e62fc86dd2395022a93ce7c738c2748f11f0bf35c7b06ec5101"
|
||||
},
|
||||
"dataproduct": {
|
||||
"container": "e6d61127099298ee8958a5b8c5ff84a5652d833a9b859e176ad0dfef8a0da5fa",
|
||||
"image": "sha256:d29ac14768ed556f9717ef0148deb56f7f726fbe3bd3a847179e7d5a2e5a8c47",
|
||||
"networks": {
|
||||
"aixun-datagov-local-backend": {
|
||||
"id": "5be135116e5af13c6c22b742f9eb7e8ca928bf238f91e9dd6966fd7f51ce1108",
|
||||
"ip": "192.168.16.12"
|
||||
}
|
||||
},
|
||||
"mounts": [],
|
||||
"ports": {
|
||||
"9340/tcp": [
|
||||
{
|
||||
"HostIp": "127.0.0.1",
|
||||
"HostPort": "29340"
|
||||
}
|
||||
]
|
||||
},
|
||||
"config_sha256": "c31f952a27950fcd49695583e0ca2f92c6351c077a96c3331333a49f320552e0"
|
||||
},
|
||||
"frontend": {
|
||||
"container": "4cd3fe806605c1951db34e356dcc55f20aba656a199299fb8027fb7bc909393f",
|
||||
"image": "sha256:2a03c01aee34bb2430bf4294d106f90bbe63e63e930aeae21588c5146008e15e",
|
||||
"networks": {
|
||||
"aixun-datagov-local-frontend": {
|
||||
"id": "0d9799886f3213246d96981c9d57a469b38512ea7321cb138fe6148e43c52914",
|
||||
"ip": "192.168.32.3"
|
||||
}
|
||||
},
|
||||
"mounts": [
|
||||
{
|
||||
"Type": "bind",
|
||||
"Source": "/opt/aixun-datagov/nginx/frontend.conf",
|
||||
"Destination": "/etc/nginx/conf.d/default.conf",
|
||||
"Mode": "ro",
|
||||
"RW": false,
|
||||
"Propagation": "rprivate"
|
||||
},
|
||||
{
|
||||
"Type": "volume",
|
||||
"Name": "aixun-datagov-local-frontend-assets",
|
||||
"Source": "/var/lib/docker/volumes/aixun-datagov-local-frontend-assets/_data",
|
||||
"Destination": "/usr/share/nginx/html",
|
||||
"Driver": "local",
|
||||
"Mode": "rw",
|
||||
"RW": true,
|
||||
"Propagation": ""
|
||||
}
|
||||
],
|
||||
"ports": {
|
||||
"80/tcp": [
|
||||
{
|
||||
"HostIp": "127.0.0.1",
|
||||
"HostPort": "28000"
|
||||
}
|
||||
]
|
||||
},
|
||||
"config_sha256": "f11de299d6dcbe4d542d415e680d1f4b3156ecc18a8f5234f70ebca562b5d9b0"
|
||||
}
|
||||
},
|
||||
"status": "PASS",
|
||||
"business_uat": "NOT_RUN",
|
||||
"initial_health": {
|
||||
"system": "PASS",
|
||||
"resource": "PASS",
|
||||
"integration": "PASS",
|
||||
"dataops": "PASS",
|
||||
"governance": "PASS",
|
||||
"dataproduct": "PASS",
|
||||
"frontend": "PASS"
|
||||
},
|
||||
"image_identity": {
|
||||
"system": true,
|
||||
"resource": true,
|
||||
"integration": true,
|
||||
"dataops": true,
|
||||
"governance": true,
|
||||
"dataproduct": true,
|
||||
"frontend": true
|
||||
},
|
||||
"health_authentication": "existing RCP6 monitor Basic Auth"
|
||||
}
|
||||
@@ -0,0 +1,65 @@
|
||||
{
|
||||
"discovery": {
|
||||
"aixun-datagov-gateway": 1,
|
||||
"aixun-datagov-auth": 1,
|
||||
"aixun-datagov-system": 1,
|
||||
"aixun-datagov-resource": 1,
|
||||
"aixun-integration": 1,
|
||||
"aixun-dataops": 1,
|
||||
"aixun-governance": 1,
|
||||
"aixun-dataproduct": 1
|
||||
},
|
||||
"unauthenticated_denied": true,
|
||||
"login": {
|
||||
"http": 200,
|
||||
"code": 200
|
||||
},
|
||||
"identity": {
|
||||
"http": 200,
|
||||
"code": 200,
|
||||
"pass": true
|
||||
},
|
||||
"menus": {
|
||||
"http": 200,
|
||||
"code": 200,
|
||||
"pass": true
|
||||
},
|
||||
"integration_list": {
|
||||
"http": 200,
|
||||
"code": 200,
|
||||
"pass": true
|
||||
},
|
||||
"dataops_list": {
|
||||
"http": 200,
|
||||
"code": 200,
|
||||
"pass": true
|
||||
},
|
||||
"governance_list": {
|
||||
"http": 200,
|
||||
"code": 200,
|
||||
"pass": true
|
||||
},
|
||||
"dataproduct_list": {
|
||||
"http": 200,
|
||||
"code": 200,
|
||||
"pass": true
|
||||
},
|
||||
"file_upload": {
|
||||
"http": 200,
|
||||
"code": 200
|
||||
},
|
||||
"smoke_file_id": "2110223616563240962",
|
||||
"file_download": {
|
||||
"http": 200,
|
||||
"sha256_matches": true
|
||||
},
|
||||
"file_cleanup": {
|
||||
"http": 200,
|
||||
"code": 200
|
||||
},
|
||||
"file_operation_audit": {
|
||||
"successful_records": 2,
|
||||
"pass": true
|
||||
},
|
||||
"status": "PASS"
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"status": "PASS",
|
||||
"version": "remote-20261014-01",
|
||||
"stage": "COMPLETE",
|
||||
"checks": {
|
||||
"workbench_sessions": "PASS",
|
||||
"workbench_capability": "PASS",
|
||||
"assistant_plans": "PASS",
|
||||
"assistant_runs": "PASS",
|
||||
"knowledge_documents": "PASS",
|
||||
"bi_objects": "PASS",
|
||||
"relation_candidates": "PASS"
|
||||
},
|
||||
"anonymous_denied": true,
|
||||
"synthetic_session_id": "5f21c4fd-e76d-4cdd-9e51-bcd1fe54158c",
|
||||
"manual_draft": {
|
||||
"status": "PASS",
|
||||
"version": 2,
|
||||
"archived": true,
|
||||
"model_called": false,
|
||||
"sql_executed": false,
|
||||
"business_object_created": false
|
||||
},
|
||||
"successful_audit_records": 3
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
# remote-20261014-02
|
||||
|
||||
2026-10-14。用户要求“再远程部署一次,只更新和部署程序,不要做过多的检查”。目标 `test-v`,43.249.195.133,linux/amd64,`/opt/aixun-datagov`;入口 https://v.aixunkeji.cn 。
|
||||
|
||||
- 源码/制品:PASS(本次限定范围)。未修改业务源码。使用 Maven Wrapper 经 `check.sh --backend aixun-modules/aixun-integration DataSourceRegistryConnectionReadinessTest` 编译当前 Integration,4项相关测试通过。以已发布 wave25 JAR 为基准,仅替换今天修改的 DataSourceRegistry 及其生成类,公开接口一致;其他 JAR 条目保持原值。打包方法见 package.py,源文件和产物 SHA、变更条目见 build.json。
|
||||
- 远程发布:PASS。只更新 `integration`,新镜像 `sha256:f43e8ad2509c8ef72949420ef517bf0124df3745f38df60ff49d6d2e0eec4cf7`;旧镜像 `sha256:d14f5128d463d418d088bd6a24580a41cade8ba7bb723f80a9b97338b8da0ba2`。镜像与传输包校验值见 release.json。发布器持短时锁、保存旧配置,使用 `up --no-deps --no-build --pull never`;网络/IP、挂载及端口保持。未操作本地应用运行状态。
|
||||
- 必要验证:PASS。远程镜像身份一致,Integration 鉴权健康接口 UP,HTTPS 首页 200。
|
||||
- 业务验收:NOT_RUN。按本次要求未展开浏览器、数据库连接、SeaTunnel 或完整业务回归;此前连接测试 HTTP_500 是否解决未验证,不据此宣称修复。
|
||||
- 不在本次范围:其他窗口未封包的 wave26、迁移248、前端更新。未执行数据库迁移、数据复制、缓存覆盖、配置调整或中间件升级。
|
||||
|
||||
发布入口:`./script/datagov/deploy-remote.sh`。本次已完成 prepare / transfer / apply / verify,勿重复 apply。目标配置仍使用 `script/datagov/remote/test-v.json`。
|
||||
|
||||
恢复命令(从项目根目录执行,使用已有 SSH 认证):
|
||||
|
||||
```bash
|
||||
./script/datagov/deploy-remote.sh rollback remote-20261014-02
|
||||
```
|
||||
|
||||
只恢复 Integration 到本次前镜像。此次无数据库/配置变化,发布器会再次核对迁移历史与配置;若其后发生变化,拒绝覆盖并须重新判断兼容性。旧镜像与服务器 `releases/remote-20261014-02/before.json`、`before-compose.json` 已保留;后者包含服务器配置,仅留远程私有目录。
|
||||
|
||||
临时传输包由发布器校验后删除,局部打包临时 JAR 随后清理;保留当前镜像、必要上一版本与小型记录。未执行全局 prune、删除数据卷或读写保护 ZIP。
|
||||
@@ -0,0 +1,26 @@
|
||||
{
|
||||
"version": "remote-20261014-02",
|
||||
"base_image": "sha256:d14f5128d463d418d088bd6a24580a41cade8ba7bb723f80a9b97338b8da0ba2",
|
||||
"base_artifact_sha256": "e597aa0e392d7bfc2eadf142604cf782bb558e652a6d9fa9b4b2441159e1484b",
|
||||
"source_file": "aixun-modules/aixun-integration/src/main/java/cn/aixunkeji/datagov/integration/m2/DataSourceRegistry.java",
|
||||
"source_sha256": "01cef9645d998c4fd5717566934aedfc31720e96e2cd0ab414228d36c201d359",
|
||||
"artifact_sha256": "a83bb81d7b153588922bfdacd75590e2d4fddd7eeeb6b0ea43b87a2d8997b99c",
|
||||
"changed_entries": [
|
||||
"BOOT-INF/classes/cn/aixunkeji/datagov/integration/m2/DataSourceRegistry.class",
|
||||
"BOOT-INF/classes/cn/aixunkeji/datagov/integration/m2/DataSourceRegistry$StoredRequest.class",
|
||||
"BOOT-INF/classes/cn/aixunkeji/datagov/integration/m2/DataSourceRegistry$UpdateResult.class",
|
||||
"BOOT-INF/classes/cn/aixunkeji/datagov/integration/m2/DataSourceRegistry$RegistrationResult.class",
|
||||
"BOOT-INF/classes/cn/aixunkeji/datagov/integration/m2/DataSourceRegistry$1.class",
|
||||
"BOOT-INF/classes/cn/aixunkeji/datagov/integration/m2/DataSourceRegistry$ConnectionTestStart.class",
|
||||
"BOOT-INF/classes/cn/aixunkeji/datagov/integration/m2/DataSourceRegistry__Javadoc.json"
|
||||
],
|
||||
"public_abi": "UNCHANGED",
|
||||
"scope": "Existing sealed integration JAR with only compiled DataSourceRegistry family replaced; unfinished wave26 excluded",
|
||||
"build_command": "./script/quality/check.sh --backend aixun-modules/aixun-integration DataSourceRegistryConnectionReadinessTest",
|
||||
"tests": {
|
||||
"run": 4,
|
||||
"failures": 0,
|
||||
"errors": 0,
|
||||
"skipped": 0
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
import hashlib
|
||||
import json
|
||||
import subprocess
|
||||
import zipfile
|
||||
from pathlib import Path
|
||||
|
||||
root = Path(__file__).resolve().parents[5]
|
||||
version = 'remote-20261014-02'
|
||||
module = root / 'aixun-modules/aixun-integration'
|
||||
base = module / 'target/aixun-integration.jar'
|
||||
output = module / ('target/aixun-integration-' + version + '.jar')
|
||||
prefix = 'cn/aixunkeji/datagov/integration/m2/'
|
||||
source = module / ('src/main/java/' + prefix + 'DataSourceRegistry.java')
|
||||
previous = json.loads((root / 'script/datagov/remote/releases/remote-20261014-01/release.json').read_text())
|
||||
sha = lambda data: hashlib.sha256(data).hexdigest()
|
||||
assert sha(base.read_bytes()) == previous['services']['integration']['artifact_sha256']
|
||||
classes = module / ('target/classes/' + prefix)
|
||||
patch = {'BOOT-INF/classes/' + prefix + p.name: p.read_bytes()
|
||||
for p in classes.glob('DataSourceRegistry*') if p.suffix in ('.class', '.json')}
|
||||
assert patch
|
||||
old_class = root / '.cache/remote-20261014-02-original.class'
|
||||
with zipfile.ZipFile(base) as original:
|
||||
old_class.write_bytes(original.read('BOOT-INF/classes/' + prefix + 'DataSourceRegistry.class'))
|
||||
java = subprocess.check_output(['/usr/libexec/java_home', '-v', '21'], text=True).strip()
|
||||
def api(path):
|
||||
return subprocess.check_output([java + '/bin/javap', '-public', str(path)], text=True)
|
||||
assert api(old_class) == api(classes / 'DataSourceRegistry.class'), 'Public ABI changed'
|
||||
original_names = set(original.namelist())
|
||||
assert set(patch) <= original_names, 'Unexpected additional generated class'
|
||||
changed = []
|
||||
with zipfile.ZipFile(output, 'w') as packaged:
|
||||
for entry in original.infolist():
|
||||
data = original.read(entry.filename)
|
||||
replacement = patch.get(entry.filename, data)
|
||||
if replacement != data:
|
||||
changed.append(entry.filename)
|
||||
packaged.writestr(entry, replacement)
|
||||
assert changed, 'No new artifact content'
|
||||
old_class.unlink()
|
||||
record = {
|
||||
'version': version,
|
||||
'base_image': previous['services']['integration']['id'],
|
||||
'base_artifact_sha256': previous['services']['integration']['artifact_sha256'],
|
||||
'source_file': str(source.relative_to(root)),
|
||||
'source_sha256': sha(source.read_bytes()),
|
||||
'artifact_sha256': sha(output.read_bytes()),
|
||||
'changed_entries': changed,
|
||||
'public_abi': 'UNCHANGED',
|
||||
'scope': 'Existing sealed integration JAR with only compiled DataSourceRegistry family replaced; unfinished wave26 excluded',
|
||||
'build_command': './script/quality/check.sh --backend aixun-modules/aixun-integration DataSourceRegistryConnectionReadinessTest'
|
||||
}
|
||||
(root / '.cache/remote-20261014-02-build.json').write_text(json.dumps(record, indent=2) + '\n')
|
||||
print(json.dumps(record, indent=2))
|
||||
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"version": "remote-20261014-02",
|
||||
"target": "test-v",
|
||||
"services": {
|
||||
"integration": {
|
||||
"tag": "aixun-datagov/integration:remote-20261014-02",
|
||||
"id": "sha256:f43e8ad2509c8ef72949420ef517bf0124df3745f38df60ff49d6d2e0eec4cf7",
|
||||
"artifact_sha256": "a83bb81d7b153588922bfdacd75590e2d4fddd7eeeb6b0ea43b87a2d8997b99c",
|
||||
"platform": "linux/amd64",
|
||||
"source": "aixun-datagov/integration:remote-20261014-02"
|
||||
}
|
||||
},
|
||||
"expected_remote": {
|
||||
"integration": {
|
||||
"container": "c5422694340df953699d4c25d534df761e1b2ec775c4040a96af70705aa9ab7e",
|
||||
"image": "sha256:d14f5128d463d418d088bd6a24580a41cade8ba7bb723f80a9b97338b8da0ba2"
|
||||
}
|
||||
},
|
||||
"database_change": false,
|
||||
"config_change": false,
|
||||
"transfer_sha256": "ee3a6198fbdce41aaff08fb3d03790ee386021ce3d1793ea2e003d5719beace0"
|
||||
}
|
||||
@@ -0,0 +1,71 @@
|
||||
{
|
||||
"version": "remote-20261014-02",
|
||||
"action": "apply",
|
||||
"health": {
|
||||
"integration": "PASS"
|
||||
},
|
||||
"after": {
|
||||
"integration": {
|
||||
"container": "2bde2dd6b348db432e09ad33d983e866d961af19aa8a642c8452b89888903586",
|
||||
"image": "sha256:f43e8ad2509c8ef72949420ef517bf0124df3745f38df60ff49d6d2e0eec4cf7",
|
||||
"networks": {
|
||||
"aixun-datagov-local-backend": {
|
||||
"id": "5be135116e5af13c6c22b742f9eb7e8ca928bf238f91e9dd6966fd7f51ce1108",
|
||||
"ip": "192.168.16.9"
|
||||
},
|
||||
"aixun-datagov-local-m2-integration": {
|
||||
"id": "452d6bfe8d99d954c328e94e5515d3459aa02c8b0555028508bb97a101dd3b60",
|
||||
"ip": "192.168.48.5"
|
||||
}
|
||||
},
|
||||
"mounts": [
|
||||
{
|
||||
"Type": "bind",
|
||||
"Source": "/opt/aixun-datagov/m2/local/secrets",
|
||||
"Destination": "/run/secrets/aixun-datagov/m2",
|
||||
"Mode": "ro",
|
||||
"RW": false,
|
||||
"Propagation": "rprivate"
|
||||
},
|
||||
{
|
||||
"Type": "volume",
|
||||
"Name": "aixun-datagov-local-managed-credential-data",
|
||||
"Source": "/var/lib/docker/volumes/aixun-datagov-local-managed-credential-data/_data",
|
||||
"Destination": "/run/secrets/aixun-datagov/managed",
|
||||
"Driver": "local",
|
||||
"Mode": "rw",
|
||||
"RW": true,
|
||||
"Propagation": ""
|
||||
},
|
||||
{
|
||||
"Type": "volume",
|
||||
"Name": "aixun-datagov-local-file-ingestion-data",
|
||||
"Source": "/var/lib/docker/volumes/aixun-datagov-local-file-ingestion-data/_data",
|
||||
"Destination": "/var/lib/aixun-datagov/ingestion",
|
||||
"Driver": "local",
|
||||
"Mode": "rw",
|
||||
"RW": true,
|
||||
"Propagation": ""
|
||||
}
|
||||
],
|
||||
"ports": {
|
||||
"9310/tcp": [
|
||||
{
|
||||
"HostIp": "127.0.0.1",
|
||||
"HostPort": "29310"
|
||||
}
|
||||
]
|
||||
},
|
||||
"config_sha256": "a0aa66e216fdf1868f5b41230c5640a55aa44ac031d754b35805ccc60c1b6c6c"
|
||||
}
|
||||
},
|
||||
"status": "PASS",
|
||||
"business_uat": "NOT_RUN",
|
||||
"initial_health": {
|
||||
"integration": "PASS"
|
||||
},
|
||||
"image_identity": {
|
||||
"integration": true
|
||||
},
|
||||
"health_authentication": "existing RCP6 monitor Basic Auth"
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"version": "remote-20261014-03",
|
||||
"target": "test-v",
|
||||
"services": {
|
||||
"integration": {
|
||||
"tag": "aixun-datagov/integration:remote-20261014-03",
|
||||
"id": "sha256:94de6bcf5c0b211cdb6ff4277821d41484610c2ef54ad59ae07d9245e9ad7e82",
|
||||
"artifact_sha256": "8a55314cd5ccc9486f210b5e6703904ed6cf8ca30845d459ec9edc854daaefd4",
|
||||
"platform": "linux/amd64",
|
||||
"source": "aixun-datagov/integration:remote-20261014-03"
|
||||
}
|
||||
},
|
||||
"expected_remote": {
|
||||
"integration": {
|
||||
"container": "2bde2dd6b348db432e09ad33d983e866d961af19aa8a642c8452b89888903586",
|
||||
"image": "sha256:f43e8ad2509c8ef72949420ef517bf0124df3745f38df60ff49d6d2e0eec4cf7"
|
||||
}
|
||||
},
|
||||
"database_change": false,
|
||||
"config_change": false,
|
||||
"transfer_sha256": "f02fd6d06e4daa4254ba807e9dba48236d5f19cad8cb8cc7ec6ca45b8728851c"
|
||||
}
|
||||
@@ -0,0 +1,71 @@
|
||||
{
|
||||
"version": "remote-20261014-03",
|
||||
"action": "apply",
|
||||
"health": {
|
||||
"integration": "PASS"
|
||||
},
|
||||
"after": {
|
||||
"integration": {
|
||||
"container": "2f11fdd11f09d738c2963f864373ff585245d2fc538230d517de8d57936d5577",
|
||||
"image": "sha256:94de6bcf5c0b211cdb6ff4277821d41484610c2ef54ad59ae07d9245e9ad7e82",
|
||||
"networks": {
|
||||
"aixun-datagov-local-backend": {
|
||||
"id": "5be135116e5af13c6c22b742f9eb7e8ca928bf238f91e9dd6966fd7f51ce1108",
|
||||
"ip": "192.168.16.9"
|
||||
},
|
||||
"aixun-datagov-local-m2-integration": {
|
||||
"id": "452d6bfe8d99d954c328e94e5515d3459aa02c8b0555028508bb97a101dd3b60",
|
||||
"ip": "192.168.48.5"
|
||||
}
|
||||
},
|
||||
"mounts": [
|
||||
{
|
||||
"Type": "bind",
|
||||
"Source": "/opt/aixun-datagov/m2/local/secrets",
|
||||
"Destination": "/run/secrets/aixun-datagov/m2",
|
||||
"Mode": "ro",
|
||||
"RW": false,
|
||||
"Propagation": "rprivate"
|
||||
},
|
||||
{
|
||||
"Type": "volume",
|
||||
"Name": "aixun-datagov-local-managed-credential-data",
|
||||
"Source": "/var/lib/docker/volumes/aixun-datagov-local-managed-credential-data/_data",
|
||||
"Destination": "/run/secrets/aixun-datagov/managed",
|
||||
"Driver": "local",
|
||||
"Mode": "rw",
|
||||
"RW": true,
|
||||
"Propagation": ""
|
||||
},
|
||||
{
|
||||
"Type": "volume",
|
||||
"Name": "aixun-datagov-local-file-ingestion-data",
|
||||
"Source": "/var/lib/docker/volumes/aixun-datagov-local-file-ingestion-data/_data",
|
||||
"Destination": "/var/lib/aixun-datagov/ingestion",
|
||||
"Driver": "local",
|
||||
"Mode": "rw",
|
||||
"RW": true,
|
||||
"Propagation": ""
|
||||
}
|
||||
],
|
||||
"ports": {
|
||||
"9310/tcp": [
|
||||
{
|
||||
"HostIp": "127.0.0.1",
|
||||
"HostPort": "29310"
|
||||
}
|
||||
]
|
||||
},
|
||||
"config_sha256": "9eb67139b8bb4a69ae9a1d8ca6b6ca5587af764ae727416c208b3c4b7127184e"
|
||||
}
|
||||
},
|
||||
"status": "PASS",
|
||||
"business_uat": "NOT_RUN",
|
||||
"initial_health": {
|
||||
"integration": "PASS"
|
||||
},
|
||||
"image_identity": {
|
||||
"integration": true
|
||||
},
|
||||
"health_authentication": "existing RCP6 monitor Basic Auth"
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
# remote-20261104-01 发布记录
|
||||
|
||||
2026-11-04,用户要求发布当前本地更新到 `test-v`,并合并本地业务数据,冲突以本地为准、保留远程独有数据。目标 `43.249.195.133`、`/opt/aixun-datagov`、linux/amd64,访问 https://v.aixunkeji.cn 。
|
||||
|
||||
- 程序:复用本地已发布并完成对应定向检查和生产构建的 gateway、integration、dataops、frontend 镜像;唯一镜像身份、制品和传输 SHA 在 release.json。仅此四服务 apply,远程应用制品身份及健康 PASS,HTTPS 首页 200;三个后端在 Nacos 各有1个健康实例,管理员登录、数据源和存储列表读取 PASS。没有启动或重启本地应用。
|
||||
- 数据库:显式执行 `20261103.270` 以扩展数据源类型约束;原表与配置恢复材料在服务器本版本的 `migration-recovery/`,逐项回执和数据校验见 migration-result.json。远程原有 `20261028.270` 是另一完整版本,保留且未重复执行。
|
||||
- 兼容差异:此前远程 Integration 含本地源码没有的 MySQL 数据剖析实现。本次按用户“冲突以本地为准”发布本地镜像,该远程独有实现未包含在新镜像。远程 SeaTunnel 仍是 connector-5,本地 Kingbase 采集驱动镜像未发布,金仓采集不能据此视为可用;完整业务验收 NOT_RUN。
|
||||
- 数据合并:尚未完成;两端共同623张表,远程另有16张表。曾误判两条数据源同名,按实际索引排序规则复核后并无此冲突。逐项核查590个唯一索引,发现容量快照和幂等记录各2653组业务键相同而ID不同的冲突,另有 Seata undo_log 索引待专项处理;已向用户请求选择。远程一条采集任务状态为 SUBMITTED、三条调度请求为 UNKNOWN;采集运行无外部ID,本地同一运行记为 FAILED/NOT_SUBMITTED,不能直接据此认定远程终态。SeaTunnel 当前 running/pending 均0,不代表历史终态已确认。尚未执行数据导入或覆盖,账号、业务记录及秘密未因数据同步改变。
|
||||
- 恢复:本次迁移改变数据库,普通 rollback 会拒绝;优先前向修复。四个旧镜像均已确认仍在服务器,旧镜像/配置身份见服务器本版本 before.json、before-compose.json,受影响表备份位于 migration-recovery/。若必须退回旧应用,先确认新数据源类型、其他写入及旧应用数据库兼容性,保全并对账后再制定恢复;不要直接导入旧表覆盖后续数据。
|
||||
|
||||
无全局 prune、数据库重建或数据卷删除;镜像传输包校验后已清理。受控凭据、真实配置及私有恢复材料仅留服务器。
|
||||
@@ -0,0 +1,34 @@
|
||||
{
|
||||
"before_history_sha256": "20c8d00fa5de79acf95c77a1c8fe0b1b6442ed9c9776ff100a9cf907e4c589f2",
|
||||
"migrations": [
|
||||
{
|
||||
"version": "20261103.270",
|
||||
"ownerUnit": "integration",
|
||||
"path": "db/migration/integration/V20261103.270__enable_kingbase_data_source.sql",
|
||||
"sha256": "f9148d5599e35d16948090c255a525da85d2de2dd9680b885f20001a8d087006"
|
||||
}
|
||||
],
|
||||
"new_tables": [],
|
||||
"backup_tables": [
|
||||
"dg_data_source"
|
||||
],
|
||||
"checks": [
|
||||
{
|
||||
"name": "native backend retained",
|
||||
"sql": "SELECT backend,write_enabled,epoch FROM md_native_cutover WHERE domain_key='metadata'",
|
||||
"expected": "NATIVE\t1\t1"
|
||||
},
|
||||
{
|
||||
"name": "version not applied",
|
||||
"sql": "SELECT COUNT(*) FROM dg_schema_history WHERE version='20261103.270'",
|
||||
"expected": "0"
|
||||
}
|
||||
],
|
||||
"after_checks": [
|
||||
{
|
||||
"name": "new version",
|
||||
"sql": "SELECT COUNT(*) FROM dg_schema_history WHERE version='20261103.270' AND success=1",
|
||||
"expected": "1"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"status": "PASS",
|
||||
"versions": [
|
||||
"20261103.270"
|
||||
],
|
||||
"history_sha256": "5d3224953c62211820eed5b34265c0b671b5ea948b647d53a73c9c3ac95c90dc",
|
||||
"existing_rows_preserved": {
|
||||
"dg_data_source": true
|
||||
},
|
||||
"new_tables": 0,
|
||||
"backup_tables": {
|
||||
"dg_data_source": 8
|
||||
},
|
||||
"applications": "STOPPED_FOR_IMAGE_APPLY"
|
||||
}
|
||||
@@ -0,0 +1,198 @@
|
||||
{
|
||||
"version": "remote-20261104-01",
|
||||
"target": "test-v",
|
||||
"services": {
|
||||
"gateway": {
|
||||
"tag": "aixun-datagov/gateway:remote-20261104-01",
|
||||
"id": "sha256:32eb16521791cd26d0e27a2118f55c676ed88ad4fbc0330fa615c3860693a157",
|
||||
"artifact_sha256": "88b9ca5955d5f8035be9a7838919444c00ff0b722a53b2a0f5b47fcefd2560d4",
|
||||
"platform": "linux/amd64",
|
||||
"source": "sha256:32eb16521791cd26d0e27a2118f55c676ed88ad4fbc0330fa615c3860693a157"
|
||||
},
|
||||
"integration": {
|
||||
"tag": "aixun-datagov/integration:remote-20261104-01",
|
||||
"id": "sha256:13bf01f3c3fda71f4190030af544cf3a83db1e09945ab9733d8f2a78de3dfb69",
|
||||
"artifact_sha256": "a35594acc838c294970b579cf59dd807ffe5c9b217a1022d2e8d38971756b331",
|
||||
"platform": "linux/amd64",
|
||||
"source": "sha256:13bf01f3c3fda71f4190030af544cf3a83db1e09945ab9733d8f2a78de3dfb69"
|
||||
},
|
||||
"dataops": {
|
||||
"tag": "aixun-datagov/dataops:remote-20261104-01",
|
||||
"id": "sha256:9e597e0f2c94d1155313f2013ba838e825932526e6133c4a08ae135096b312a4",
|
||||
"artifact_sha256": "5af0248f173d38d5df5e71d98bad7a1e759e66e3241f428262cfeab28fe1485f",
|
||||
"platform": "linux/amd64",
|
||||
"source": "sha256:9e597e0f2c94d1155313f2013ba838e825932526e6133c4a08ae135096b312a4"
|
||||
},
|
||||
"frontend": {
|
||||
"tag": "aixun-datagov/frontend:remote-20261104-01",
|
||||
"id": "sha256:6468f5d79d42fae2c9397c3e2904d832facff99a6b168b11a0bf6cb8c4fb21a6",
|
||||
"artifact_sha256": "5d2b552c1eec1c6d7ca0c8514ac18e056d8844af7a18648ff8fc94765cfb984f",
|
||||
"platform": "linux/amd64",
|
||||
"source": "sha256:6468f5d79d42fae2c9397c3e2904d832facff99a6b168b11a0bf6cb8c4fb21a6",
|
||||
"artifact_path": "/opt/aixun-datagov/frontend-current"
|
||||
}
|
||||
},
|
||||
"expected_remote": {
|
||||
"gateway": {
|
||||
"container": "41f4715df87fb4d89a8972e5eed46248ff0091b8fbb9c869cc41142dbd25f149",
|
||||
"image": "sha256:fe728b7a3406c9673969ce5ad8a1fedf3c7be647d9edaea3b676c6dd591ae23c"
|
||||
},
|
||||
"integration": {
|
||||
"container": "7847a1919fdc4706d3d2cc092e66e28f812c23ea4d87464724da2dfa3ac848bf",
|
||||
"image": "sha256:65612d8c58b8e63824b6534a8c543c0b2c330a5c5d144b0a8bc0b4cf01be0ca2"
|
||||
},
|
||||
"dataops": {
|
||||
"container": "c1b089a045196cd1806b9b9edf6c9c2fafe1c73ac3c06de2e8871f5cbe5012d1",
|
||||
"image": "sha256:e8193000875bdbbe3e803b3a2e050700adb7fdd1cd8ae4fadac82232f3d0f835"
|
||||
},
|
||||
"frontend": {
|
||||
"container": "7fc07a293669e87e450e7fce2b5aa50eecf7a768822b203be76f411d32dcbc26",
|
||||
"image": "sha256:12912f4a80cb986554ad7bcba8f15368c4a0204d492316d5230d65049d2bb1cb"
|
||||
}
|
||||
},
|
||||
"database_change": true,
|
||||
"config_change": false,
|
||||
"transfer_sha256": "82cd34e381b40e8cb3d308cb9913cf18a8d9137f07fe057f971adcad3e4e8965",
|
||||
"pre_stop_runtime": {
|
||||
"gateway": {
|
||||
"container": "41f4715df87fb4d89a8972e5eed46248ff0091b8fbb9c869cc41142dbd25f149",
|
||||
"image": "sha256:fe728b7a3406c9673969ce5ad8a1fedf3c7be647d9edaea3b676c6dd591ae23c",
|
||||
"networks": {
|
||||
"aixun-datagov-local-backend": {
|
||||
"id": "5be135116e5af13c6c22b742f9eb7e8ca928bf238f91e9dd6966fd7f51ce1108",
|
||||
"ip": "192.168.16.5"
|
||||
},
|
||||
"aixun-datagov-local-frontend": {
|
||||
"id": "0d9799886f3213246d96981c9d57a469b38512ea7321cb138fe6148e43c52914",
|
||||
"ip": "192.168.32.2"
|
||||
},
|
||||
"aixun-datagov-local-m2-integration": {
|
||||
"id": "452d6bfe8d99d954c328e94e5515d3459aa02c8b0555028508bb97a101dd3b60",
|
||||
"ip": "192.168.48.4"
|
||||
}
|
||||
},
|
||||
"mounts": [],
|
||||
"ports": {
|
||||
"8080/tcp": [
|
||||
{
|
||||
"HostIp": "127.0.0.1",
|
||||
"HostPort": "28080"
|
||||
}
|
||||
]
|
||||
},
|
||||
"config_sha256": "f2f751a69369c7225791d8e34cc2e0f6e05909bc5f3bfc0224d44672df005545"
|
||||
},
|
||||
"integration": {
|
||||
"container": "7847a1919fdc4706d3d2cc092e66e28f812c23ea4d87464724da2dfa3ac848bf",
|
||||
"image": "sha256:65612d8c58b8e63824b6534a8c543c0b2c330a5c5d144b0a8bc0b4cf01be0ca2",
|
||||
"networks": {
|
||||
"aixun-datagov-local-backend": {
|
||||
"id": "5be135116e5af13c6c22b742f9eb7e8ca928bf238f91e9dd6966fd7f51ce1108",
|
||||
"ip": "192.168.16.9"
|
||||
},
|
||||
"aixun-datagov-local-m2-integration": {
|
||||
"id": "452d6bfe8d99d954c328e94e5515d3459aa02c8b0555028508bb97a101dd3b60",
|
||||
"ip": "192.168.48.5"
|
||||
}
|
||||
},
|
||||
"mounts": [
|
||||
{
|
||||
"Type": "bind",
|
||||
"Source": "/opt/aixun-datagov/m2/local/secrets",
|
||||
"Destination": "/run/secrets/aixun-datagov/m2",
|
||||
"Mode": "ro",
|
||||
"RW": false,
|
||||
"Propagation": "rprivate"
|
||||
},
|
||||
{
|
||||
"Type": "volume",
|
||||
"Name": "aixun-datagov-local-managed-credential-data",
|
||||
"Source": "/var/lib/docker/volumes/aixun-datagov-local-managed-credential-data/_data",
|
||||
"Destination": "/run/secrets/aixun-datagov/managed",
|
||||
"Driver": "local",
|
||||
"Mode": "rw",
|
||||
"RW": true,
|
||||
"Propagation": ""
|
||||
},
|
||||
{
|
||||
"Type": "volume",
|
||||
"Name": "aixun-datagov-local-file-ingestion-data",
|
||||
"Source": "/var/lib/docker/volumes/aixun-datagov-local-file-ingestion-data/_data",
|
||||
"Destination": "/var/lib/aixun-datagov/ingestion",
|
||||
"Driver": "local",
|
||||
"Mode": "rw",
|
||||
"RW": true,
|
||||
"Propagation": ""
|
||||
}
|
||||
],
|
||||
"ports": {
|
||||
"9310/tcp": [
|
||||
{
|
||||
"HostIp": "127.0.0.1",
|
||||
"HostPort": "29310"
|
||||
}
|
||||
]
|
||||
},
|
||||
"config_sha256": "60a47eb9063d6441e5463424ff01f2bfd10fdff9c5b21dd6f94e48177aceffbb"
|
||||
},
|
||||
"dataops": {
|
||||
"container": "c1b089a045196cd1806b9b9edf6c9c2fafe1c73ac3c06de2e8871f5cbe5012d1",
|
||||
"image": "sha256:e8193000875bdbbe3e803b3a2e050700adb7fdd1cd8ae4fadac82232f3d0f835",
|
||||
"networks": {
|
||||
"aixun-datagov-local-backend": {
|
||||
"id": "5be135116e5af13c6c22b742f9eb7e8ca928bf238f91e9dd6966fd7f51ce1108",
|
||||
"ip": "192.168.16.10"
|
||||
}
|
||||
},
|
||||
"mounts": [],
|
||||
"ports": {
|
||||
"9320/tcp": [
|
||||
{
|
||||
"HostIp": "127.0.0.1",
|
||||
"HostPort": "29320"
|
||||
}
|
||||
]
|
||||
},
|
||||
"config_sha256": "6c5e3b475518509feb78daa9cb9c2f4828a971e61c9b7a1d0b2d8a2a19fa62ab"
|
||||
},
|
||||
"frontend": {
|
||||
"container": "7fc07a293669e87e450e7fce2b5aa50eecf7a768822b203be76f411d32dcbc26",
|
||||
"image": "sha256:12912f4a80cb986554ad7bcba8f15368c4a0204d492316d5230d65049d2bb1cb",
|
||||
"networks": {
|
||||
"aixun-datagov-local-frontend": {
|
||||
"id": "0d9799886f3213246d96981c9d57a469b38512ea7321cb138fe6148e43c52914",
|
||||
"ip": "192.168.32.3"
|
||||
}
|
||||
},
|
||||
"mounts": [
|
||||
{
|
||||
"Type": "bind",
|
||||
"Source": "/opt/aixun-datagov/nginx/frontend.conf",
|
||||
"Destination": "/etc/nginx/conf.d/default.conf",
|
||||
"Mode": "ro",
|
||||
"RW": false,
|
||||
"Propagation": "rprivate"
|
||||
},
|
||||
{
|
||||
"Type": "volume",
|
||||
"Name": "aixun-datagov-local-frontend-assets",
|
||||
"Source": "/var/lib/docker/volumes/aixun-datagov-local-frontend-assets/_data",
|
||||
"Destination": "/usr/share/nginx/html",
|
||||
"Driver": "local",
|
||||
"Mode": "rw",
|
||||
"RW": true,
|
||||
"Propagation": ""
|
||||
}
|
||||
],
|
||||
"ports": {
|
||||
"80/tcp": [
|
||||
{
|
||||
"HostIp": "127.0.0.1",
|
||||
"HostPort": "28000"
|
||||
}
|
||||
]
|
||||
},
|
||||
"config_sha256": "9f1242180ffd903b432f390dd7b8922433794affd82ed1a42356789a5e2592f3"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,167 @@
|
||||
{
|
||||
"version": "remote-20261104-01",
|
||||
"action": "apply",
|
||||
"health": {
|
||||
"gateway": "PASS",
|
||||
"integration": "PASS",
|
||||
"dataops": "PASS",
|
||||
"frontend": "PASS"
|
||||
},
|
||||
"after": {
|
||||
"gateway": {
|
||||
"container": "b5eb61c61cd6f53b46d2153ea3d5c266f0d489776fce3561a4cfea2536d0de8e",
|
||||
"image": "sha256:32eb16521791cd26d0e27a2118f55c676ed88ad4fbc0330fa615c3860693a157",
|
||||
"networks": {
|
||||
"aixun-datagov-local-backend": {
|
||||
"id": "5be135116e5af13c6c22b742f9eb7e8ca928bf238f91e9dd6966fd7f51ce1108",
|
||||
"ip": "192.168.16.5"
|
||||
},
|
||||
"aixun-datagov-local-frontend": {
|
||||
"id": "0d9799886f3213246d96981c9d57a469b38512ea7321cb138fe6148e43c52914",
|
||||
"ip": "192.168.32.2"
|
||||
},
|
||||
"aixun-datagov-local-m2-integration": {
|
||||
"id": "452d6bfe8d99d954c328e94e5515d3459aa02c8b0555028508bb97a101dd3b60",
|
||||
"ip": "192.168.48.4"
|
||||
}
|
||||
},
|
||||
"mounts": [],
|
||||
"ports": {
|
||||
"8080/tcp": [
|
||||
{
|
||||
"HostIp": "127.0.0.1",
|
||||
"HostPort": "28080"
|
||||
}
|
||||
]
|
||||
},
|
||||
"config_sha256": "08e3ef48bfde1ef5b22a84efd4478f40ff87e45679dfd2deae86dff6d14addd7"
|
||||
},
|
||||
"integration": {
|
||||
"container": "b96212c1658ba1a7444a3e409ac07b921b345e49f90802d36c67e04f14f8222c",
|
||||
"image": "sha256:13bf01f3c3fda71f4190030af544cf3a83db1e09945ab9733d8f2a78de3dfb69",
|
||||
"networks": {
|
||||
"aixun-datagov-local-backend": {
|
||||
"id": "5be135116e5af13c6c22b742f9eb7e8ca928bf238f91e9dd6966fd7f51ce1108",
|
||||
"ip": "192.168.16.9"
|
||||
},
|
||||
"aixun-datagov-local-m2-integration": {
|
||||
"id": "452d6bfe8d99d954c328e94e5515d3459aa02c8b0555028508bb97a101dd3b60",
|
||||
"ip": "192.168.48.5"
|
||||
}
|
||||
},
|
||||
"mounts": [
|
||||
{
|
||||
"Type": "bind",
|
||||
"Source": "/opt/aixun-datagov/m2/local/secrets",
|
||||
"Destination": "/run/secrets/aixun-datagov/m2",
|
||||
"Mode": "ro",
|
||||
"RW": false,
|
||||
"Propagation": "rprivate"
|
||||
},
|
||||
{
|
||||
"Type": "volume",
|
||||
"Name": "aixun-datagov-local-managed-credential-data",
|
||||
"Source": "/var/lib/docker/volumes/aixun-datagov-local-managed-credential-data/_data",
|
||||
"Destination": "/run/secrets/aixun-datagov/managed",
|
||||
"Driver": "local",
|
||||
"Mode": "rw",
|
||||
"RW": true,
|
||||
"Propagation": ""
|
||||
},
|
||||
{
|
||||
"Type": "volume",
|
||||
"Name": "aixun-datagov-local-file-ingestion-data",
|
||||
"Source": "/var/lib/docker/volumes/aixun-datagov-local-file-ingestion-data/_data",
|
||||
"Destination": "/var/lib/aixun-datagov/ingestion",
|
||||
"Driver": "local",
|
||||
"Mode": "rw",
|
||||
"RW": true,
|
||||
"Propagation": ""
|
||||
}
|
||||
],
|
||||
"ports": {
|
||||
"9310/tcp": [
|
||||
{
|
||||
"HostIp": "127.0.0.1",
|
||||
"HostPort": "29310"
|
||||
}
|
||||
]
|
||||
},
|
||||
"config_sha256": "b44d5e8c1c7cc79911a51df5b568b6e2780e5e2c1bc1bc576c66a63adcc5face"
|
||||
},
|
||||
"dataops": {
|
||||
"container": "fde5b94ac08faefaaf50b2164421fae2dce5d16e7c2779007b343ca8fa8b9453",
|
||||
"image": "sha256:9e597e0f2c94d1155313f2013ba838e825932526e6133c4a08ae135096b312a4",
|
||||
"networks": {
|
||||
"aixun-datagov-local-backend": {
|
||||
"id": "5be135116e5af13c6c22b742f9eb7e8ca928bf238f91e9dd6966fd7f51ce1108",
|
||||
"ip": "192.168.16.10"
|
||||
}
|
||||
},
|
||||
"mounts": [],
|
||||
"ports": {
|
||||
"9320/tcp": [
|
||||
{
|
||||
"HostIp": "127.0.0.1",
|
||||
"HostPort": "29320"
|
||||
}
|
||||
]
|
||||
},
|
||||
"config_sha256": "abef5cc87c4b05c7283b5acd6185bfbea750ce28d52373a1a78109c1d5d3a541"
|
||||
},
|
||||
"frontend": {
|
||||
"container": "66f9116c6aaa66038a3629e33425a2853c0e1d13c37aa267cffb1292e25ff1a5",
|
||||
"image": "sha256:6468f5d79d42fae2c9397c3e2904d832facff99a6b168b11a0bf6cb8c4fb21a6",
|
||||
"networks": {
|
||||
"aixun-datagov-local-frontend": {
|
||||
"id": "0d9799886f3213246d96981c9d57a469b38512ea7321cb138fe6148e43c52914",
|
||||
"ip": "192.168.32.3"
|
||||
}
|
||||
},
|
||||
"mounts": [
|
||||
{
|
||||
"Type": "bind",
|
||||
"Source": "/opt/aixun-datagov/nginx/frontend.conf",
|
||||
"Destination": "/etc/nginx/conf.d/default.conf",
|
||||
"Mode": "ro",
|
||||
"RW": false,
|
||||
"Propagation": "rprivate"
|
||||
},
|
||||
{
|
||||
"Type": "volume",
|
||||
"Name": "aixun-datagov-local-frontend-assets",
|
||||
"Source": "/var/lib/docker/volumes/aixun-datagov-local-frontend-assets/_data",
|
||||
"Destination": "/usr/share/nginx/html",
|
||||
"Driver": "local",
|
||||
"Mode": "rw",
|
||||
"RW": true,
|
||||
"Propagation": ""
|
||||
}
|
||||
],
|
||||
"ports": {
|
||||
"80/tcp": [
|
||||
{
|
||||
"HostIp": "127.0.0.1",
|
||||
"HostPort": "28000"
|
||||
}
|
||||
]
|
||||
},
|
||||
"config_sha256": "ca7392f8e3d64a22916f9688f12cb533b5cf66893e6fce85affa05f36385d169"
|
||||
}
|
||||
},
|
||||
"status": "PASS",
|
||||
"business_uat": "NOT_RUN",
|
||||
"initial_health": {
|
||||
"gateway": "PASS",
|
||||
"integration": "PASS",
|
||||
"dataops": "PASS",
|
||||
"frontend": "PASS"
|
||||
},
|
||||
"image_identity": {
|
||||
"gateway": true,
|
||||
"integration": true,
|
||||
"dataops": true,
|
||||
"frontend": true
|
||||
},
|
||||
"health_authentication": "existing RCP6 monitor Basic Auth"
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
# 远程发布 remote-20261112-01
|
||||
|
||||
- 目标:test-v,43.249.195.133,linux/amd64;应用入口 https://v.aixunkeji.cn。
|
||||
- 应用发布:PASS。更新 integration、dataops、governance、resource、dataproduct、frontend;复用本地已验证镜像。镜像、制品校验和及发布前身份见本目录 release.json,健康和实际镜像读回见 result.json。
|
||||
- 数据库迁移:PASS。显式执行 20261104.271、20261111.272、20261111.273、20261112.274–276,结果见 migration-result.json;受影响表的迁移前恢复材料位于服务器本版本目录下 migration-recovery/。
|
||||
- 验证:六服务健康及镜像身份、HTTPS、管理员登录、身份、菜单和数据源只读接口通过。人工业务验收 NOT_RUN。
|
||||
- 测试数据合并:BLOCKED / 未写入。快照包含 622 表,预演 621 表约 50.5 万行;存在跨 ID 的业务唯一键冲突及不可变快照引用,需要安全映射和引用校验;一条远程历史采集运行状态与本地冲突,处理选择待确认。业务缓存和受管凭据亦未导入。Nacos 配置语义一致,无需复制环境配置。
|
||||
- 临时数据:本地 .cache/remote-data-20261112-01 及服务器 /opt/aixun-datagov/data-transfers/remote-data-20261112-01 含敏感快照,限本次续作,完成后删除;不得纳入源码或证据。
|
||||
- 恢复:本次数据库迁移后不能直接假定旧镜像兼容。先保全迁移后写入,再核验迁移前表备份、迁移历史与旧版本兼容性,制定数据对账和恢复步骤;普通镜像回退入口受迁移历史保护,不能作为数据库恢复的替代。未验证自动回退。
|
||||
@@ -0,0 +1,101 @@
|
||||
{
|
||||
"before_history_sha256": "5d3224953c62211820eed5b34265c0b671b5ea948b647d53a73c9c3ac95c90dc",
|
||||
"migrations": [
|
||||
{
|
||||
"version": "20261104.271",
|
||||
"ownerUnit": "governance",
|
||||
"path": "db/migration/governance/V20261104.271__seed_private_metadata_tag.sql",
|
||||
"sha256": "f50a40393b6f5b86023c88dbd90e9e3d40bb78a5630b253f104e49c5ec506187"
|
||||
},
|
||||
{
|
||||
"version": "20261111.272",
|
||||
"ownerUnit": "system",
|
||||
"path": "db/migration/system/V20261111.272__expose_semantic_dimension_page.sql",
|
||||
"sha256": "d4f9ea7765c68fe020af1aa8b8581507ca9562a421cec583fbe4dd1de4663a11"
|
||||
},
|
||||
{
|
||||
"version": "20261111.273",
|
||||
"ownerUnit": "dataops",
|
||||
"path": "db/migration/dataops/V20261111.273__create_original_file_ingestion.sql",
|
||||
"sha256": "b90e8e252d1167bdc2bab56eb5b9b2d33ee1382489af42502f3cecfe73d19eaa"
|
||||
},
|
||||
{
|
||||
"version": "20261112.274",
|
||||
"ownerUnit": "system",
|
||||
"path": "db/migration/system/V20261112.274__register_metric_library.sql",
|
||||
"sha256": "ecfc06810d52d72bfa8c316b600cd22b5f60db1345de42b3f31e202ce21215c3"
|
||||
},
|
||||
{
|
||||
"version": "20261112.275",
|
||||
"ownerUnit": "system",
|
||||
"path": "db/migration/system/V20261112.275__register_model_algorithm_library.sql",
|
||||
"sha256": "6a929b5577dca2eac39cbdaf101119fc43071c9dba9dff55a2319c126710d3e2"
|
||||
},
|
||||
{
|
||||
"version": "20261112.276",
|
||||
"ownerUnit": "system",
|
||||
"path": "db/migration/system/V20261112.276__combine_log_management_tabs.sql",
|
||||
"sha256": "3df45717e655d1ed2e5795630b09feb9a3c805236a329c497f9965643288a8f0"
|
||||
}
|
||||
],
|
||||
"new_tables": [
|
||||
"ing_original_file"
|
||||
],
|
||||
"backup_tables": [
|
||||
"md_native_entity",
|
||||
"sys_menu",
|
||||
"sys_role_menu"
|
||||
],
|
||||
"before_preserve_predicates": {
|
||||
"sys_menu": "menu_id NOT IN (1761400000000000108,1761400000000000500,1761400000000000501,1761490000000000260,1761490000000000420,1761490000000000440,1761490000000000460,1761490000000000480,1761490000000000500,1761490000000000820,1761490000000000880,1761490000000000883,1761490000000001000,1761490000000001060,1761490000000001080,1761490000000001100)"
|
||||
},
|
||||
"preserve_predicates": {
|
||||
"sys_menu": "menu_id NOT IN (1761400000000000108,1761400000000000500,1761400000000000501,1761490000000000260,1761490000000000420,1761490000000000440,1761490000000000460,1761490000000000480,1761490000000000500,1761490000000000820,1761490000000000880,1761490000000000883,1761490000000001000,1761490000000001060,1761490000000001080,1761490000000001100,1761700000000000700,1761700000000000710)",
|
||||
"sys_role_menu": "menu_id NOT IN(1761700000000000700,1761700000000000710) AND NOT(menu_id=1761400000000000108 AND role_id IN(1761300000000000001))",
|
||||
"md_native_entity": "entity_id NOT IN('dc660967-6681-4a65-a426-dfc0f5e257c4','6c7ff4f9-cb73-48f8-8241-bcba3609f765')"
|
||||
},
|
||||
"checks": [
|
||||
{
|
||||
"name": "metadata backend",
|
||||
"sql": "SELECT backend,write_enabled,epoch FROM md_native_cutover WHERE domain_key='metadata'",
|
||||
"expected": "NATIVE\t1\t1"
|
||||
},
|
||||
{
|
||||
"name": "native jobs",
|
||||
"sql": "SELECT COUNT(*) FROM md_native_job WHERE state IN('PREPARED','SUBMITTED','PENDING','RUNNING')",
|
||||
"expected": "0"
|
||||
},
|
||||
{
|
||||
"name": "new tags absent",
|
||||
"sql": "SELECT COUNT(*) FROM md_native_entity WHERE entity_id IN('dc660967-6681-4a65-a426-dfc0f5e257c4','6c7ff4f9-cb73-48f8-8241-bcba3609f765')",
|
||||
"expected": "0"
|
||||
},
|
||||
{
|
||||
"name": "new menu paths absent",
|
||||
"sql": "SELECT COUNT(*) FROM sys_menu WHERE menu_id IN(1761700000000000700,1761700000000000710) OR path IN('/metric-library','/model-algorithm','/system/log/operlog','/system/log/logininfo')",
|
||||
"expected": "0"
|
||||
},
|
||||
{
|
||||
"name": "new migration versions absent",
|
||||
"sql": "SELECT COUNT(*) FROM dg_schema_history WHERE version IN ('20261104.271','20261111.272','20261111.273','20261112.274','20261112.275','20261112.276')",
|
||||
"expected": "0"
|
||||
}
|
||||
],
|
||||
"after_checks": [
|
||||
{
|
||||
"name": "migration receipts",
|
||||
"sql": "SELECT COUNT(*) FROM dg_schema_history WHERE version IN ('20261104.271','20261111.272','20261111.273','20261112.274','20261112.275','20261112.276') AND success=1",
|
||||
"expected": "6"
|
||||
},
|
||||
{
|
||||
"name": "new menus",
|
||||
"sql": "SELECT COUNT(*) FROM sys_menu WHERE menu_id IN(1761700000000000700,1761700000000000710)",
|
||||
"expected": "2"
|
||||
},
|
||||
{
|
||||
"name": "new tags",
|
||||
"sql": "SELECT COUNT(*) FROM md_native_entity WHERE entity_id IN('dc660967-6681-4a65-a426-dfc0f5e257c4','6c7ff4f9-cb73-48f8-8241-bcba3609f765')",
|
||||
"expected": "2"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"status": "PASS",
|
||||
"versions": [
|
||||
"20261104.271",
|
||||
"20261111.272",
|
||||
"20261111.273",
|
||||
"20261112.274",
|
||||
"20261112.275",
|
||||
"20261112.276"
|
||||
],
|
||||
"history_sha256": "8650a0915f75679cbaf2fb850a6bf79fd28e2c947a0af58eeeb9524c82f14750",
|
||||
"existing_rows_preserved": {
|
||||
"md_native_entity": true,
|
||||
"sys_menu": true,
|
||||
"sys_role_menu": true
|
||||
},
|
||||
"new_tables": 1,
|
||||
"backup_tables": {
|
||||
"md_native_entity": 320,
|
||||
"sys_menu": 695,
|
||||
"sys_role_menu": 514
|
||||
},
|
||||
"applications": "STOPPED_FOR_IMAGE_APPLY"
|
||||
}
|
||||
@@ -0,0 +1,263 @@
|
||||
{
|
||||
"version": "remote-20261112-01",
|
||||
"target": "test-v",
|
||||
"services": {
|
||||
"integration": {
|
||||
"tag": "aixun-datagov/integration:remote-20261112-01",
|
||||
"id": "sha256:a1625508de9327c68be9415ef35f537e0b5024749e88b45eff929a470becedde",
|
||||
"artifact_sha256": "4aec2ac14e42e9eea6fcdaa843dfb948cbb519906e41c2bc45b8f3d1ad8b9d78",
|
||||
"platform": "linux/amd64",
|
||||
"source": "sha256:a1625508de9327c68be9415ef35f537e0b5024749e88b45eff929a470becedde"
|
||||
},
|
||||
"dataops": {
|
||||
"tag": "aixun-datagov/dataops:remote-20261112-01",
|
||||
"id": "sha256:639f1f4262a072c6580276a23274f28cfcb7b137f5d12653e628412fc27b3aa1",
|
||||
"artifact_sha256": "12f34df8ef63429e8584c70b3e3d74eeb3a7b8a5759283e28c74026687614e0e",
|
||||
"platform": "linux/amd64",
|
||||
"source": "sha256:639f1f4262a072c6580276a23274f28cfcb7b137f5d12653e628412fc27b3aa1"
|
||||
},
|
||||
"governance": {
|
||||
"tag": "aixun-datagov/governance:remote-20261112-01",
|
||||
"id": "sha256:bf95e1899a18fc9b7ede608aba21eff0de9b3e5e0307f814fa3421a7de33be13",
|
||||
"artifact_sha256": "842d54a726a19de78a51b8be570247479cbeca11b9154cf49ce233802a4a5f42",
|
||||
"platform": "linux/amd64",
|
||||
"source": "sha256:bf95e1899a18fc9b7ede608aba21eff0de9b3e5e0307f814fa3421a7de33be13"
|
||||
},
|
||||
"resource": {
|
||||
"tag": "aixun-datagov/resource:remote-20261112-01",
|
||||
"id": "sha256:65bc9a6efa9ed5d988cbac9ca7a848ca3ace2b6e03a403fc5592bc030092ef06",
|
||||
"artifact_sha256": "4d6733e1d234d35693f25b57f68c09a528595b7be5388368b5de46d13e589ba4",
|
||||
"platform": "linux/amd64",
|
||||
"source": "sha256:65bc9a6efa9ed5d988cbac9ca7a848ca3ace2b6e03a403fc5592bc030092ef06"
|
||||
},
|
||||
"dataproduct": {
|
||||
"tag": "aixun-datagov/dataproduct:remote-20261112-01",
|
||||
"id": "sha256:8b04895ca54aed3c9a93b77a61dff470952331e57526a99a59a2b392d8634512",
|
||||
"artifact_sha256": "238d7e79fb3ca00093ad2cac085b5a1aa0a7cc8d37d583317e9bb40e2d98b36d",
|
||||
"platform": "linux/amd64",
|
||||
"source": "sha256:8b04895ca54aed3c9a93b77a61dff470952331e57526a99a59a2b392d8634512"
|
||||
},
|
||||
"frontend": {
|
||||
"tag": "aixun-datagov/frontend:remote-20261112-01",
|
||||
"id": "sha256:191622b87dee04354c2b052c5a4522f6fd11bb83f8516ef3e5727a245f9c492c",
|
||||
"artifact_sha256": "d1ce977e05204edb8f8abaee1c5a70015186cf50dd2e29b50f6c68f0df2f4eec",
|
||||
"platform": "linux/amd64",
|
||||
"source": "sha256:191622b87dee04354c2b052c5a4522f6fd11bb83f8516ef3e5727a245f9c492c",
|
||||
"artifact_path": "/opt/aixun-datagov/frontend-current"
|
||||
}
|
||||
},
|
||||
"expected_remote": {
|
||||
"integration": {
|
||||
"container": "b96212c1658ba1a7444a3e409ac07b921b345e49f90802d36c67e04f14f8222c",
|
||||
"image": "sha256:13bf01f3c3fda71f4190030af544cf3a83db1e09945ab9733d8f2a78de3dfb69"
|
||||
},
|
||||
"dataops": {
|
||||
"container": "fde5b94ac08faefaaf50b2164421fae2dce5d16e7c2779007b343ca8fa8b9453",
|
||||
"image": "sha256:9e597e0f2c94d1155313f2013ba838e825932526e6133c4a08ae135096b312a4"
|
||||
},
|
||||
"governance": {
|
||||
"container": "04eec72db7423465b76ea6208bf768ec2c77a9e67935922fec2a76ee481c03ef",
|
||||
"image": "sha256:0e7af63c5c311cb0a9257cd3a46527d3ae9db3703ac575942f7f97eea1dd4eea"
|
||||
},
|
||||
"resource": {
|
||||
"container": "1e1b5d1cafb7b05a043cb350c3b92f7af97b2e79916658160c48257b14270ec7",
|
||||
"image": "sha256:60c685bd7fa73339cadd8639e8290765ab33b4af91d3fca5e54b2e99e42010ea"
|
||||
},
|
||||
"dataproduct": {
|
||||
"container": "36a34b4bffbb12ce55ba3d946ab905f1be86763dc54231c48e653ee3a75b9770",
|
||||
"image": "sha256:5d9ac3a79aa12658dea07a32d5f16f2ceea9f36ec6953c40067bb5016b96257c"
|
||||
},
|
||||
"frontend": {
|
||||
"container": "66f9116c6aaa66038a3629e33425a2853c0e1d13c37aa267cffb1292e25ff1a5",
|
||||
"image": "sha256:6468f5d79d42fae2c9397c3e2904d832facff99a6b168b11a0bf6cb8c4fb21a6"
|
||||
}
|
||||
},
|
||||
"database_change": true,
|
||||
"config_change": false,
|
||||
"transfer_sha256": "3dfd535cef6d8eaef00fa3f35f0ebde2803280c13d4a665bae026bd297c1876e",
|
||||
"pre_stop_runtime": {
|
||||
"integration": {
|
||||
"container": "b96212c1658ba1a7444a3e409ac07b921b345e49f90802d36c67e04f14f8222c",
|
||||
"image": "sha256:13bf01f3c3fda71f4190030af544cf3a83db1e09945ab9733d8f2a78de3dfb69",
|
||||
"networks": {
|
||||
"aixun-datagov-local-backend": {
|
||||
"id": "5be135116e5af13c6c22b742f9eb7e8ca928bf238f91e9dd6966fd7f51ce1108",
|
||||
"ip": "192.168.16.9"
|
||||
},
|
||||
"aixun-datagov-local-m2-integration": {
|
||||
"id": "452d6bfe8d99d954c328e94e5515d3459aa02c8b0555028508bb97a101dd3b60",
|
||||
"ip": "192.168.48.5"
|
||||
}
|
||||
},
|
||||
"mounts": [
|
||||
{
|
||||
"Type": "bind",
|
||||
"Source": "/opt/aixun-datagov/m2/local/secrets",
|
||||
"Destination": "/run/secrets/aixun-datagov/m2",
|
||||
"Mode": "ro",
|
||||
"RW": false,
|
||||
"Propagation": "rprivate"
|
||||
},
|
||||
{
|
||||
"Type": "volume",
|
||||
"Name": "aixun-datagov-local-managed-credential-data",
|
||||
"Source": "/var/lib/docker/volumes/aixun-datagov-local-managed-credential-data/_data",
|
||||
"Destination": "/run/secrets/aixun-datagov/managed",
|
||||
"Driver": "local",
|
||||
"Mode": "rw",
|
||||
"RW": true,
|
||||
"Propagation": ""
|
||||
},
|
||||
{
|
||||
"Type": "volume",
|
||||
"Name": "aixun-datagov-local-file-ingestion-data",
|
||||
"Source": "/var/lib/docker/volumes/aixun-datagov-local-file-ingestion-data/_data",
|
||||
"Destination": "/var/lib/aixun-datagov/ingestion",
|
||||
"Driver": "local",
|
||||
"Mode": "rw",
|
||||
"RW": true,
|
||||
"Propagation": ""
|
||||
}
|
||||
],
|
||||
"ports": {
|
||||
"9310/tcp": [
|
||||
{
|
||||
"HostIp": "127.0.0.1",
|
||||
"HostPort": "29310"
|
||||
}
|
||||
]
|
||||
},
|
||||
"config_sha256": "b44d5e8c1c7cc79911a51df5b568b6e2780e5e2c1bc1bc576c66a63adcc5face"
|
||||
},
|
||||
"dataops": {
|
||||
"container": "fde5b94ac08faefaaf50b2164421fae2dce5d16e7c2779007b343ca8fa8b9453",
|
||||
"image": "sha256:9e597e0f2c94d1155313f2013ba838e825932526e6133c4a08ae135096b312a4",
|
||||
"networks": {
|
||||
"aixun-datagov-local-backend": {
|
||||
"id": "5be135116e5af13c6c22b742f9eb7e8ca928bf238f91e9dd6966fd7f51ce1108",
|
||||
"ip": "192.168.16.10"
|
||||
}
|
||||
},
|
||||
"mounts": [],
|
||||
"ports": {
|
||||
"9320/tcp": [
|
||||
{
|
||||
"HostIp": "127.0.0.1",
|
||||
"HostPort": "29320"
|
||||
}
|
||||
]
|
||||
},
|
||||
"config_sha256": "abef5cc87c4b05c7283b5acd6185bfbea750ce28d52373a1a78109c1d5d3a541"
|
||||
},
|
||||
"governance": {
|
||||
"container": "04eec72db7423465b76ea6208bf768ec2c77a9e67935922fec2a76ee481c03ef",
|
||||
"image": "sha256:0e7af63c5c311cb0a9257cd3a46527d3ae9db3703ac575942f7f97eea1dd4eea",
|
||||
"networks": {
|
||||
"aixun-datagov-local-backend": {
|
||||
"id": "5be135116e5af13c6c22b742f9eb7e8ca928bf238f91e9dd6966fd7f51ce1108",
|
||||
"ip": "192.168.16.11"
|
||||
}
|
||||
},
|
||||
"mounts": [],
|
||||
"ports": {
|
||||
"9330/tcp": [
|
||||
{
|
||||
"HostIp": "127.0.0.1",
|
||||
"HostPort": "29330"
|
||||
}
|
||||
]
|
||||
},
|
||||
"config_sha256": "fcefd9119f71820372e529d7f3a93a9698bddd18b5dd3c5d3658168764d8c65e"
|
||||
},
|
||||
"resource": {
|
||||
"container": "1e1b5d1cafb7b05a043cb350c3b92f7af97b2e79916658160c48257b14270ec7",
|
||||
"image": "sha256:60c685bd7fa73339cadd8639e8290765ab33b4af91d3fca5e54b2e99e42010ea",
|
||||
"networks": {
|
||||
"aixun-datagov-local-backend": {
|
||||
"id": "5be135116e5af13c6c22b742f9eb7e8ca928bf238f91e9dd6966fd7f51ce1108",
|
||||
"ip": "192.168.16.8"
|
||||
}
|
||||
},
|
||||
"mounts": [
|
||||
{
|
||||
"Type": "volume",
|
||||
"Name": "aixun-datagov-local-file-data",
|
||||
"Source": "/var/lib/docker/volumes/aixun-datagov-local-file-data/_data",
|
||||
"Destination": "/var/lib/aixun-datagov/files",
|
||||
"Driver": "local",
|
||||
"Mode": "rw",
|
||||
"RW": true,
|
||||
"Propagation": ""
|
||||
}
|
||||
],
|
||||
"ports": {
|
||||
"9204/tcp": [
|
||||
{
|
||||
"HostIp": "127.0.0.1",
|
||||
"HostPort": "29204"
|
||||
}
|
||||
]
|
||||
},
|
||||
"config_sha256": "f0740c43b6d8f1f602c5512aaece52cd6a2de5ca97c175354affe7e29350c6bb"
|
||||
},
|
||||
"dataproduct": {
|
||||
"container": "36a34b4bffbb12ce55ba3d946ab905f1be86763dc54231c48e653ee3a75b9770",
|
||||
"image": "sha256:5d9ac3a79aa12658dea07a32d5f16f2ceea9f36ec6953c40067bb5016b96257c",
|
||||
"networks": {
|
||||
"aixun-datagov-local-backend": {
|
||||
"id": "5be135116e5af13c6c22b742f9eb7e8ca928bf238f91e9dd6966fd7f51ce1108",
|
||||
"ip": "192.168.16.12"
|
||||
}
|
||||
},
|
||||
"mounts": [],
|
||||
"ports": {
|
||||
"9340/tcp": [
|
||||
{
|
||||
"HostIp": "127.0.0.1",
|
||||
"HostPort": "29340"
|
||||
}
|
||||
]
|
||||
},
|
||||
"config_sha256": "48f0e28596ff7043c2f923192698a2df330f2e14a353d39ecd94104ae5501882"
|
||||
},
|
||||
"frontend": {
|
||||
"container": "66f9116c6aaa66038a3629e33425a2853c0e1d13c37aa267cffb1292e25ff1a5",
|
||||
"image": "sha256:6468f5d79d42fae2c9397c3e2904d832facff99a6b168b11a0bf6cb8c4fb21a6",
|
||||
"networks": {
|
||||
"aixun-datagov-local-frontend": {
|
||||
"id": "0d9799886f3213246d96981c9d57a469b38512ea7321cb138fe6148e43c52914",
|
||||
"ip": "192.168.32.3"
|
||||
}
|
||||
},
|
||||
"mounts": [
|
||||
{
|
||||
"Type": "bind",
|
||||
"Source": "/opt/aixun-datagov/nginx/frontend.conf",
|
||||
"Destination": "/etc/nginx/conf.d/default.conf",
|
||||
"Mode": "ro",
|
||||
"RW": false,
|
||||
"Propagation": "rprivate"
|
||||
},
|
||||
{
|
||||
"Type": "volume",
|
||||
"Name": "aixun-datagov-local-frontend-assets",
|
||||
"Source": "/var/lib/docker/volumes/aixun-datagov-local-frontend-assets/_data",
|
||||
"Destination": "/usr/share/nginx/html",
|
||||
"Driver": "local",
|
||||
"Mode": "rw",
|
||||
"RW": true,
|
||||
"Propagation": ""
|
||||
}
|
||||
],
|
||||
"ports": {
|
||||
"80/tcp": [
|
||||
{
|
||||
"HostIp": "127.0.0.1",
|
||||
"HostPort": "28000"
|
||||
}
|
||||
]
|
||||
},
|
||||
"config_sha256": "ca7392f8e3d64a22916f9688f12cb533b5cf66893e6fce85affa05f36385d169"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,216 @@
|
||||
{
|
||||
"version": "remote-20261112-01",
|
||||
"action": "apply",
|
||||
"health": {
|
||||
"integration": "PASS",
|
||||
"dataops": "PASS",
|
||||
"governance": "PASS",
|
||||
"resource": "PASS",
|
||||
"dataproduct": "PASS",
|
||||
"frontend": "PASS"
|
||||
},
|
||||
"after": {
|
||||
"integration": {
|
||||
"container": "2a2032f46a5fb97136d0b626181342c1c420beae9b4374b7418361099990e13d",
|
||||
"image": "sha256:a1625508de9327c68be9415ef35f537e0b5024749e88b45eff929a470becedde",
|
||||
"networks": {
|
||||
"aixun-datagov-local-backend": {
|
||||
"id": "5be135116e5af13c6c22b742f9eb7e8ca928bf238f91e9dd6966fd7f51ce1108",
|
||||
"ip": "192.168.16.9"
|
||||
},
|
||||
"aixun-datagov-local-m2-integration": {
|
||||
"id": "452d6bfe8d99d954c328e94e5515d3459aa02c8b0555028508bb97a101dd3b60",
|
||||
"ip": "192.168.48.5"
|
||||
}
|
||||
},
|
||||
"mounts": [
|
||||
{
|
||||
"Type": "bind",
|
||||
"Source": "/opt/aixun-datagov/m2/local/secrets",
|
||||
"Destination": "/run/secrets/aixun-datagov/m2",
|
||||
"Mode": "ro",
|
||||
"RW": false,
|
||||
"Propagation": "rprivate"
|
||||
},
|
||||
{
|
||||
"Type": "volume",
|
||||
"Name": "aixun-datagov-local-managed-credential-data",
|
||||
"Source": "/var/lib/docker/volumes/aixun-datagov-local-managed-credential-data/_data",
|
||||
"Destination": "/run/secrets/aixun-datagov/managed",
|
||||
"Driver": "local",
|
||||
"Mode": "rw",
|
||||
"RW": true,
|
||||
"Propagation": ""
|
||||
},
|
||||
{
|
||||
"Type": "volume",
|
||||
"Name": "aixun-datagov-local-file-ingestion-data",
|
||||
"Source": "/var/lib/docker/volumes/aixun-datagov-local-file-ingestion-data/_data",
|
||||
"Destination": "/var/lib/aixun-datagov/ingestion",
|
||||
"Driver": "local",
|
||||
"Mode": "rw",
|
||||
"RW": true,
|
||||
"Propagation": ""
|
||||
}
|
||||
],
|
||||
"ports": {
|
||||
"9310/tcp": [
|
||||
{
|
||||
"HostIp": "127.0.0.1",
|
||||
"HostPort": "29310"
|
||||
}
|
||||
]
|
||||
},
|
||||
"config_sha256": "c23405a87befb5b2d729c20da963474dca5f7629e07a70e676d6c263408f1c2b"
|
||||
},
|
||||
"dataops": {
|
||||
"container": "38c0a2e99e1f4fbe9589d9ce871814569d7bd08d07143099b45ba25e2b252356",
|
||||
"image": "sha256:639f1f4262a072c6580276a23274f28cfcb7b137f5d12653e628412fc27b3aa1",
|
||||
"networks": {
|
||||
"aixun-datagov-local-backend": {
|
||||
"id": "5be135116e5af13c6c22b742f9eb7e8ca928bf238f91e9dd6966fd7f51ce1108",
|
||||
"ip": "192.168.16.10"
|
||||
}
|
||||
},
|
||||
"mounts": [],
|
||||
"ports": {
|
||||
"9320/tcp": [
|
||||
{
|
||||
"HostIp": "127.0.0.1",
|
||||
"HostPort": "29320"
|
||||
}
|
||||
]
|
||||
},
|
||||
"config_sha256": "55b0da22dadbc8ebc265c69c30b4d6bd3ea3153be598cd271ce5e73bb2932e07"
|
||||
},
|
||||
"governance": {
|
||||
"container": "44c1041a73005e6bb92f83c1703e7e8729f826566f626004a1cca0acc8f22c2a",
|
||||
"image": "sha256:bf95e1899a18fc9b7ede608aba21eff0de9b3e5e0307f814fa3421a7de33be13",
|
||||
"networks": {
|
||||
"aixun-datagov-local-backend": {
|
||||
"id": "5be135116e5af13c6c22b742f9eb7e8ca928bf238f91e9dd6966fd7f51ce1108",
|
||||
"ip": "192.168.16.11"
|
||||
}
|
||||
},
|
||||
"mounts": [],
|
||||
"ports": {
|
||||
"9330/tcp": [
|
||||
{
|
||||
"HostIp": "127.0.0.1",
|
||||
"HostPort": "29330"
|
||||
}
|
||||
]
|
||||
},
|
||||
"config_sha256": "3d04ce0a2d29dc790b39c94f00dd2543da5c788d599f2eed8f93cd462efac3ab"
|
||||
},
|
||||
"resource": {
|
||||
"container": "dfb6817bf34eea1464e67cedb1c3b04b6abe70047d666c06a738de153480b755",
|
||||
"image": "sha256:65bc9a6efa9ed5d988cbac9ca7a848ca3ace2b6e03a403fc5592bc030092ef06",
|
||||
"networks": {
|
||||
"aixun-datagov-local-backend": {
|
||||
"id": "5be135116e5af13c6c22b742f9eb7e8ca928bf238f91e9dd6966fd7f51ce1108",
|
||||
"ip": "192.168.16.8"
|
||||
}
|
||||
},
|
||||
"mounts": [
|
||||
{
|
||||
"Type": "volume",
|
||||
"Name": "aixun-datagov-local-file-data",
|
||||
"Source": "/var/lib/docker/volumes/aixun-datagov-local-file-data/_data",
|
||||
"Destination": "/var/lib/aixun-datagov/files",
|
||||
"Driver": "local",
|
||||
"Mode": "rw",
|
||||
"RW": true,
|
||||
"Propagation": ""
|
||||
}
|
||||
],
|
||||
"ports": {
|
||||
"9204/tcp": [
|
||||
{
|
||||
"HostIp": "127.0.0.1",
|
||||
"HostPort": "29204"
|
||||
}
|
||||
]
|
||||
},
|
||||
"config_sha256": "d41c9dfe2927c144bec3c097e007927790cfac5142fd4a408fc0aebfbd60cd77"
|
||||
},
|
||||
"dataproduct": {
|
||||
"container": "8498091a26d65a0fb14b54969fb494094b36797216d01fb9a885b25d69a8fdf7",
|
||||
"image": "sha256:8b04895ca54aed3c9a93b77a61dff470952331e57526a99a59a2b392d8634512",
|
||||
"networks": {
|
||||
"aixun-datagov-local-backend": {
|
||||
"id": "5be135116e5af13c6c22b742f9eb7e8ca928bf238f91e9dd6966fd7f51ce1108",
|
||||
"ip": "192.168.16.12"
|
||||
}
|
||||
},
|
||||
"mounts": [],
|
||||
"ports": {
|
||||
"9340/tcp": [
|
||||
{
|
||||
"HostIp": "127.0.0.1",
|
||||
"HostPort": "29340"
|
||||
}
|
||||
]
|
||||
},
|
||||
"config_sha256": "069a05d7d4d68dca8c176a10a255c2453546945f79f94f54d190e4bc47b7ed87"
|
||||
},
|
||||
"frontend": {
|
||||
"container": "1802d1985470a8611e62bf1735f242907f6694742ed89ad5f1b8a692edf87902",
|
||||
"image": "sha256:191622b87dee04354c2b052c5a4522f6fd11bb83f8516ef3e5727a245f9c492c",
|
||||
"networks": {
|
||||
"aixun-datagov-local-frontend": {
|
||||
"id": "0d9799886f3213246d96981c9d57a469b38512ea7321cb138fe6148e43c52914",
|
||||
"ip": "192.168.32.3"
|
||||
}
|
||||
},
|
||||
"mounts": [
|
||||
{
|
||||
"Type": "bind",
|
||||
"Source": "/opt/aixun-datagov/nginx/frontend.conf",
|
||||
"Destination": "/etc/nginx/conf.d/default.conf",
|
||||
"Mode": "ro",
|
||||
"RW": false,
|
||||
"Propagation": "rprivate"
|
||||
},
|
||||
{
|
||||
"Type": "volume",
|
||||
"Name": "aixun-datagov-local-frontend-assets",
|
||||
"Source": "/var/lib/docker/volumes/aixun-datagov-local-frontend-assets/_data",
|
||||
"Destination": "/usr/share/nginx/html",
|
||||
"Driver": "local",
|
||||
"Mode": "rw",
|
||||
"RW": true,
|
||||
"Propagation": ""
|
||||
}
|
||||
],
|
||||
"ports": {
|
||||
"80/tcp": [
|
||||
{
|
||||
"HostIp": "127.0.0.1",
|
||||
"HostPort": "28000"
|
||||
}
|
||||
]
|
||||
},
|
||||
"config_sha256": "9507d48b6d2033600b236511976d3bfe34e27fc8d6c212f3e6ab1f46e4c03d85"
|
||||
}
|
||||
},
|
||||
"status": "PASS",
|
||||
"business_uat": "NOT_RUN",
|
||||
"initial_health": {
|
||||
"integration": "PASS",
|
||||
"dataops": "PASS",
|
||||
"governance": "PASS",
|
||||
"resource": "PASS",
|
||||
"dataproduct": "PASS",
|
||||
"frontend": "PASS"
|
||||
},
|
||||
"image_identity": {
|
||||
"integration": true,
|
||||
"dataops": true,
|
||||
"governance": true,
|
||||
"resource": true,
|
||||
"dataproduct": true,
|
||||
"frontend": true
|
||||
},
|
||||
"health_authentication": "existing RCP6 monitor Basic Auth"
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
# 远程发布 remote-20261112-02
|
||||
|
||||
- 目标 test-v;仅更新 frontend,复用本地已发布的 linux/amd64 镜像。镜像和制品身份及旧版本见 release.json,健康检查和镜像读回见 result.json。
|
||||
- 未执行数据库迁移、数据或缓存导入,保留线上管理员密码和现有数据。上次测试数据合并仍未完成。
|
||||
- 验证:远程发布及 frontend 健康、镜像身份 PASS,HTTPS 入口 HTTP 200;浏览器交互和人工业务验收 NOT_RUN。
|
||||
- 恢复:若迁移历史及配置未变化,可执行 `./script/datagov/deploy-remote.sh rollback remote-20261112-02` 恢复本次 frontend 旧镜像;入口会检查恢复条件。
|
||||
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"version": "remote-20261112-02",
|
||||
"target": "test-v",
|
||||
"services": {
|
||||
"frontend": {
|
||||
"tag": "aixun-datagov/frontend:remote-20261112-02",
|
||||
"id": "sha256:d92ac99cbd9e3ea4b43dc6bd9246677e27f6535ffe5a0f5e8b8e0d5f3aeb9cc3",
|
||||
"artifact_sha256": "a9d465f11ed0f1a5c4687fec7bd94d85e73185d16b750fadf2cb792d4b8d7c54",
|
||||
"platform": "linux/amd64",
|
||||
"source": "sha256:d92ac99cbd9e3ea4b43dc6bd9246677e27f6535ffe5a0f5e8b8e0d5f3aeb9cc3",
|
||||
"artifact_path": "/opt/aixun-datagov/frontend-current"
|
||||
}
|
||||
},
|
||||
"expected_remote": {
|
||||
"frontend": {
|
||||
"container": "1802d1985470a8611e62bf1735f242907f6694742ed89ad5f1b8a692edf87902",
|
||||
"image": "sha256:191622b87dee04354c2b052c5a4522f6fd11bb83f8516ef3e5727a245f9c492c"
|
||||
}
|
||||
},
|
||||
"database_change": false,
|
||||
"config_change": false,
|
||||
"transfer_sha256": "6ab19c518c64662a9515b45773e6b58f75c7f682320c045f70d6e05eb69d0a52"
|
||||
}
|
||||
@@ -0,0 +1,57 @@
|
||||
{
|
||||
"version": "remote-20261112-02",
|
||||
"action": "apply",
|
||||
"health": {
|
||||
"frontend": "PASS"
|
||||
},
|
||||
"after": {
|
||||
"frontend": {
|
||||
"container": "9a3caeef271c8dfcb162b07ae791b873351123f6d803ca8fff4a9332b0a99d62",
|
||||
"image": "sha256:d92ac99cbd9e3ea4b43dc6bd9246677e27f6535ffe5a0f5e8b8e0d5f3aeb9cc3",
|
||||
"networks": {
|
||||
"aixun-datagov-local-frontend": {
|
||||
"id": "0d9799886f3213246d96981c9d57a469b38512ea7321cb138fe6148e43c52914",
|
||||
"ip": "192.168.32.3"
|
||||
}
|
||||
},
|
||||
"mounts": [
|
||||
{
|
||||
"Type": "bind",
|
||||
"Source": "/opt/aixun-datagov/nginx/frontend.conf",
|
||||
"Destination": "/etc/nginx/conf.d/default.conf",
|
||||
"Mode": "ro",
|
||||
"RW": false,
|
||||
"Propagation": "rprivate"
|
||||
},
|
||||
{
|
||||
"Type": "volume",
|
||||
"Name": "aixun-datagov-local-frontend-assets",
|
||||
"Source": "/var/lib/docker/volumes/aixun-datagov-local-frontend-assets/_data",
|
||||
"Destination": "/usr/share/nginx/html",
|
||||
"Driver": "local",
|
||||
"Mode": "rw",
|
||||
"RW": true,
|
||||
"Propagation": ""
|
||||
}
|
||||
],
|
||||
"ports": {
|
||||
"80/tcp": [
|
||||
{
|
||||
"HostIp": "127.0.0.1",
|
||||
"HostPort": "28000"
|
||||
}
|
||||
]
|
||||
},
|
||||
"config_sha256": "822eaaafafcd4bd9d3c34f1ba56bba7fbe9b5278fd0df7391cf17a3848e82c3d"
|
||||
}
|
||||
},
|
||||
"status": "PASS",
|
||||
"business_uat": "NOT_RUN",
|
||||
"initial_health": {
|
||||
"frontend": "PASS"
|
||||
},
|
||||
"image_identity": {
|
||||
"frontend": true
|
||||
},
|
||||
"health_authentication": "existing RCP6 monitor Basic Auth"
|
||||
}
|
||||
@@ -0,0 +1,56 @@
|
||||
# remote-data-20261010-01 测试数据补充
|
||||
|
||||
目标 `test-v`,服务器 `43.249.195.133`,项目 `/opt/aixun-datagov`,访问 https://v.aixunkeji.cn 。应用版本仍为 `remote-20261010-01`,本次没有源码业务变更或镜像更新。
|
||||
|
||||
用户在首次空环境发布后明确补充授权:迁移本地测试数据、缓存及业务配置。已迁移当前可读取的数据并验证;本地停用引擎数据仍待临时启动授权,因此整个“全部本地数据”请求为 **PASS_WITH_LIMITATION**,不能称全部迁完。
|
||||
|
||||
## 已完成
|
||||
|
||||
| 范围 | 实际结果 |
|
||||
|---|---|
|
||||
| 业务 MySQL | 551 张表、459314 行;一致性快照逐表计数匹配 |
|
||||
| 迁移与内部锁 | 保留远程 206 条迁移历史及其摘要;不导入本地历史/维护租约;远程额外 16 张新表保持 |
|
||||
| 业务缓存 | 9 个键,保留剩余 TTL;排除本地 217 个登录、锁、Dubbo 等运行键;未执行 FLUSHDB |
|
||||
| 受管凭据 | 9 个文件 SHA-256 匹配,12 个凭据引用可解析;真实内容仅位于私有传输区和目标凭据卷 |
|
||||
| 文件 | 本地资源文件卷与 ingestion 文件卷为空,sys_oss 为 0,无文件内容需要迁移 |
|
||||
| 配置 | 10 份 Nacos 配置语义一致,不覆盖;业务数据源、AI Provider 配置随业务库迁入;服务器基础密码、端口、网络及 JWT 签名密钥保留 |
|
||||
| OpenMetadata | 178 表、4201 行;15 个服务、15 个数据库、15 个 schema、163 张表、14 条采集管道的 ID/名称摘要与本地一致;搜索返回 163 张表 |
|
||||
| Airflow | 71 表、338 行;19 个 DAG、13 份生成配置、23 次成功运行历史;32 个文件;导入错误数 0 |
|
||||
| 调度适配 | 13 个原先启用的 DAG 改为暂停,全部 19 个 DAG 保持暂停,未触发新的采集 |
|
||||
| 账号 | 保留 DataGov 远程管理员密码;原生管理员和服务凭据适配为服务器秘密;服务账号 ID、非管理员属性、角色和团队保留 |
|
||||
|
||||
变更只短暂停止并启动本项目 9 个应用,以及 OpenMetadata/ingestion;容器和镜像身份保持。没有整栈 down/up、数据库/网络/卷重建或历史迁移重放。未启动、部署或重启本地应用/引擎,未连接其他项目数据库。
|
||||
|
||||
## 验证与异常对账
|
||||
|
||||
- 9 个应用健康及不可变镜像核验 PASS;HTTPS 登录、身份、菜单、四业务列表再次验证 PASS。数据列表读回:4 个数据源、1 个存储资源、5 个标准体系、1 个数据集发布、12 个采集任务。国家标准接口返回 48408 条可见记录,数据库原始记录包含删除/过滤项,不能混为一个口径。
|
||||
- OpenMetadata 服务 token 可读取 163 张表;搜索全量重建 success。Airflow 使用服务器原有专属凭据登录 201,19 个 DAG 均暂停,23 次历史运行仍为 success,无 DAG 导入错误。
|
||||
- 6 项迁移安全测试 PASS:运行缓存排除、二进制 Redis 恢复、路径逃逸/符号链接拒绝、过期缓存处理、生成列导出修复约束。显式文件检查 PASS;无业务源码变化,不重跑 Maven/前端构建。
|
||||
- 原生 mysqldump 对前置生成列产生无效空值分隔符,失败事务已核对完全回滚;仅在列清单与实时 schema 完全匹配时修正该分隔符,原始包 SHA 保留。随后两库逐表计数匹配。
|
||||
- 原生管理员改密成功但返回非 JSON,先以服务器密码登录核实,未重复改密。服务账号原为 JWT,普通密码接口不适用;官方用户更新清理旧机制、官方密码接口恢复远程密码、用户自身签发 JWT,保留 ID/权限。CLI 已自带 config 参数,移除重复参数后执行 bot token 更新;未重复导入数据库。所有未知状态先核实再定点继续。
|
||||
- 本次新增工具 `data-transfer.py`、`native-data-transfer.py`、`test_data_transfer.py`,并更新同一份 README。源传输包仅临时存在;最终小型校验摘要见 result.json,变更前恢复包只保留服务器一份。
|
||||
|
||||
## 尚未完成
|
||||
|
||||
本地 Doris、Hive/MinIO、M2 测试源 MySQL 自 2026-09-21/22 停用;原要求禁止重启本地应用,已集中询问是否允许临时启动必要组件进行一致性导出、完成后恢复停用状态,尚未收到答复。其实际表/对象数据 **NOT_RUN**,不能用已迁入的业务登记和元数据代替。旧 DolphinScheduler 使用内存 H2,停机前的原生内存状态不能靠重新启动恢复;业务库中的任务定义和记录已迁入。
|
||||
|
||||
真实外部数据源连通性、端到端采集/DAG 执行、AI Provider 付费调用、完整页面交互和人工 UAT **NOT_RUN**。本次未替用户执行外部采集或启用暂停 DAG。
|
||||
|
||||
交付口径:发布/迁移工具源码 PASS;已列明的远程数据迁移与接口冒烟 PASS;全量本地数据迁移 PASS_WITH_LIMITATION;完整业务验收 NOT_RUN。本次没有本地部署,不推导生产批准。
|
||||
|
||||
## 准确恢复方法
|
||||
|
||||
恢复材料仅在服务器 `/opt/aixun-datagov/data-transfers/remote-data-20261010-01/recovery/` 与 `native-recovery/`,包含迁入前逻辑数据及必要原生 token/DAG 文件。恢复会舍弃本次迁入及之后的业务写入;使用前须保全之后的新数据并明确恢复范围。不是镜像回退,也不撤销 schema 迁移。
|
||||
|
||||
通过受信任 SSH 登录服务器,在确认恢复范围后按顺序执行:
|
||||
|
||||
```bash
|
||||
cd /opt/aixun-datagov/data-transfers/remote-data-20261010-01
|
||||
python3 native-data-transfer.py restore /opt/aixun-datagov/data-transfers/remote-data-20261010-01
|
||||
python3 data-transfer.py restore /opt/aixun-datagov/data-transfers/remote-data-20261010-01
|
||||
python3 /opt/aixun-datagov/releases/remote-20261010-01/runner.py verify /opt/aixun-datagov/releases/remote-20261010-01
|
||||
```
|
||||
|
||||
两个 restore 均自动持短锁,并核验备份校验值和对象归属;core 另核验迁移历史和应用身份,拒绝未经对账的漂移。恢复后重新验证 HTTPS 登录、业务列表、原生搜索与采集健康。恢复命令未实际执行,以免撤销已迁入数据;备份完整性和前置条件已检查,恢复演练为 NOT_RUN。
|
||||
|
||||
域名/证书无需随数据恢复撤销;确需恢复官网入口时使用原首发记录的方法。保护 ZIP 未读取、复制、删除或改写。
|
||||
@@ -0,0 +1,206 @@
|
||||
{
|
||||
"version": "remote-data-20261010-01",
|
||||
"application_version": "remote-20261010-01",
|
||||
"target": "test-v",
|
||||
"status": "PASS_WITH_LIMITATION",
|
||||
"application_data": {
|
||||
"status": "PASS",
|
||||
"tables": 551,
|
||||
"rows": 459314,
|
||||
"row_counts_match": true,
|
||||
"history_preserved": true,
|
||||
"credential_files": 9,
|
||||
"cache": {
|
||||
"removed_cache_or_auth_keys": 8,
|
||||
"restored_business_cache_keys": 9
|
||||
},
|
||||
"administrator": "remote password preserved; local business identity and permissions imported",
|
||||
"completed_at": 1791625041.9444556,
|
||||
"health": {
|
||||
"gateway": "PASS",
|
||||
"auth": "PASS",
|
||||
"system": "PASS",
|
||||
"resource": "PASS",
|
||||
"integration": "PASS",
|
||||
"dataops": "PASS",
|
||||
"governance": "PASS",
|
||||
"dataproduct": "PASS",
|
||||
"frontend": "PASS"
|
||||
}
|
||||
},
|
||||
"business_smoke": {
|
||||
"https_login": "PASS",
|
||||
"identity": {
|
||||
"http": 200,
|
||||
"code": 200,
|
||||
"count": null
|
||||
},
|
||||
"menus": {
|
||||
"http": 200,
|
||||
"code": 200,
|
||||
"count": 17
|
||||
},
|
||||
"sources": {
|
||||
"http": 200,
|
||||
"code": 200,
|
||||
"count": 4
|
||||
},
|
||||
"storage": {
|
||||
"http": 200,
|
||||
"code": 200,
|
||||
"count": 1
|
||||
},
|
||||
"standard_systems": {
|
||||
"http": 200,
|
||||
"code": 200,
|
||||
"count": 5
|
||||
},
|
||||
"dataset_publications": {
|
||||
"http": 200,
|
||||
"code": 200,
|
||||
"count": 1
|
||||
},
|
||||
"anonymous_denied": true,
|
||||
"status": "PASS",
|
||||
"national_standards": {
|
||||
"http": 200,
|
||||
"code": 200,
|
||||
"count": 48408,
|
||||
"configuration_present": true
|
||||
},
|
||||
"ingestion_tasks": {
|
||||
"http": 200,
|
||||
"code": 200,
|
||||
"count": 12,
|
||||
"configuration_present": true
|
||||
},
|
||||
"ai_provider_configuration": {
|
||||
"http": 200,
|
||||
"code": 200,
|
||||
"count": null,
|
||||
"configuration_present": true
|
||||
}
|
||||
},
|
||||
"final_access": {
|
||||
"https_login": "PASS",
|
||||
"identity": "PASS",
|
||||
"menus": "PASS",
|
||||
"sources": "PASS",
|
||||
"storage": "PASS",
|
||||
"standards": "PASS",
|
||||
"publications": "PASS"
|
||||
},
|
||||
"native": {
|
||||
"status": "PASS",
|
||||
"native_counts": {
|
||||
"openmetadata": {
|
||||
"tables": 178,
|
||||
"rows": 4201
|
||||
},
|
||||
"airflow": {
|
||||
"tables": 71,
|
||||
"rows": 338
|
||||
}
|
||||
},
|
||||
"airflow_files": 32,
|
||||
"paused_imported_dags": 13,
|
||||
"total_paused_dags": 19,
|
||||
"jwt_expires_at": 1794218653440,
|
||||
"search_reindex": "PASS",
|
||||
"remote_native_passwords": "preserved via official APIs"
|
||||
},
|
||||
"native_verification": {
|
||||
"identities_match": true,
|
||||
"identities": {
|
||||
"services/databaseServices": {
|
||||
"count": 15,
|
||||
"identity_sha256": "52d0a979a3c051182c32a7cf3fd6b59a35c1e65c17b8d6998189f06f293d5cbf"
|
||||
},
|
||||
"databases": {
|
||||
"count": 15,
|
||||
"identity_sha256": "a1d2c924db5b92d2b02c7a3ba68cee58dc2f5bfc2413de9a452d85e34923798f"
|
||||
},
|
||||
"databaseSchemas": {
|
||||
"count": 15,
|
||||
"identity_sha256": "07e59da7de73dc762857d7aa56d8b16d75c4e8e11a6e915f080307ab32f68aff"
|
||||
},
|
||||
"tables": {
|
||||
"count": 163,
|
||||
"identity_sha256": "8b3b00fdcab6681a13d05a32b39c7663dccfeaff1c74a8f0d58614bc8500a333"
|
||||
},
|
||||
"services/ingestionPipelines": {
|
||||
"count": 14,
|
||||
"identity_sha256": "e31df71f879afa76fcae6db023f069d5e30127a9dc152cc862c6037004c64e82"
|
||||
}
|
||||
},
|
||||
"airflow_history": "success\t23"
|
||||
},
|
||||
"search_tables": 163,
|
||||
"dag_import_errors": 0,
|
||||
"paused_dags": 19,
|
||||
"successful_historical_runs": 23,
|
||||
"remote_airflow_login_http": 201,
|
||||
"application_health": {
|
||||
"gateway": "PASS",
|
||||
"auth": "PASS",
|
||||
"system": "PASS",
|
||||
"resource": "PASS",
|
||||
"integration": "PASS",
|
||||
"dataops": "PASS",
|
||||
"governance": "PASS",
|
||||
"dataproduct": "PASS",
|
||||
"frontend": "PASS"
|
||||
},
|
||||
"backup_checksums_match": {
|
||||
"recovery": {
|
||||
"application.sql.gz": true,
|
||||
"managed.tar": true,
|
||||
"cache.json": true
|
||||
},
|
||||
"native-recovery": {
|
||||
"openmetadata.sql.gz": true,
|
||||
"airflow.sql.gz": true,
|
||||
"dags.tar": true,
|
||||
"dag_generated_configs.tar": true,
|
||||
"openmetadata-token": true
|
||||
}
|
||||
},
|
||||
"remote_history_preserved": true,
|
||||
"managed_credentials_sha256_match": true,
|
||||
"native_service_permissions_preserved": true,
|
||||
"remaining": "Stopped local Doris, Hive/MinIO and M2 source MySQL data pending authorization; no local components started",
|
||||
"artifacts": {
|
||||
"application.sql.gz": "a56185878ee80c58daab6b6e088d7459e89cc887d5d7ea3335fe869606dd2ce7",
|
||||
"managed.tar": "885668389b7c5339bb11fb443d621a284eab7f977f3fa24815856da52b510f13",
|
||||
"cache.json": "3be75da5a6a8a9ff526961a58f9aa9fb4129838cb3ef3ff4e10ad7dfe8e7d021",
|
||||
"openmetadata.sql.gz": "589fef6062e0485ff8ef69e22386af21d96495d73b4b35d8d38bcdd0041b79ed",
|
||||
"airflow.sql.gz": "0653234003815d98ca47da5dedb7f75f901119003effd07114642516a11f5ffd",
|
||||
"dags.tar": "bcf7025e1c927a9241e8c9aaced55106001e60591f65a0ccdc60b22773b4faea",
|
||||
"dag_generated_configs.tar": "0e384e177982f27b3ea6b3eaa7953d892664e9112a9e559a2ba8adb81b4b68ee"
|
||||
},
|
||||
"source_tools_sha256": {
|
||||
"data-transfer.py": "62103bf8d97d120b97272dcdd42b9646acd79e3937c102fa63fd067f11a64595",
|
||||
"native-data-transfer.py": "d4eef9d79d95a135bea79d7d961943f03ad160fd4d488850b41f4b2218d3b5dc"
|
||||
},
|
||||
"search_job": {
|
||||
"totalRecords": 264,
|
||||
"successRecords": 264,
|
||||
"failedRecords": 0,
|
||||
"warningRecords": 0,
|
||||
"vectorSuccessRecords": 0,
|
||||
"vectorFailedRecords": 0,
|
||||
"totalTimeMs": 0,
|
||||
"readerTimeMs": 0,
|
||||
"processTimeMs": 0,
|
||||
"sinkTimeMs": 0,
|
||||
"vectorTimeMs": 0
|
||||
},
|
||||
"verified_at": "2026-10-10T10:10:04.644979+00:00",
|
||||
"cleanup": {
|
||||
"remote_source_archives": "REMOVED",
|
||||
"one_time_source_auth": "REMOVED",
|
||||
"private_diagnostic_log": "REMOVED",
|
||||
"pre_transfer_recovery": "RETAINED",
|
||||
"local_private_staging": "REMOVED"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,246 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Server-side bounded image-only release. No source builds, migrations or pruning."""
|
||||
import fcntl
|
||||
import base64
|
||||
import hashlib
|
||||
import json
|
||||
import os
|
||||
from pathlib import Path
|
||||
import subprocess
|
||||
import sys
|
||||
import time
|
||||
import urllib.request
|
||||
|
||||
PROJECT = 'aixun-datagov-local'
|
||||
OWNER = 'aixun-datagov'
|
||||
APPS = {'gateway':8080,'auth':9210,'system':9201,'resource':9204,'integration':9310,'dataops':9320,'governance':9330,'dataproduct':9340,'frontend':80}
|
||||
|
||||
def need(test, message):
|
||||
if not test: raise RuntimeError(message)
|
||||
|
||||
def run(args, data=None, timeout=180):
|
||||
p = subprocess.run(args,input=data,capture_output=True,timeout=timeout)
|
||||
need(p.returncode == 0, 'command failed: '+args[0]+'; reconcile before retry; output withheld')
|
||||
return p.stdout
|
||||
|
||||
def write(path, value):
|
||||
tmp = path.with_suffix('.tmp')
|
||||
tmp.write_text(json.dumps(value,indent=2)+'\n'); tmp.chmod(0o600); tmp.replace(path)
|
||||
|
||||
def sha(data): return hashlib.sha256(data).hexdigest()
|
||||
|
||||
def own(labels):
|
||||
need(labels.get('com.aixun.project') == OWNER and labels.get('com.docker.compose.project') == PROJECT,'foreign runtime object')
|
||||
|
||||
def current(name, optional=False):
|
||||
p = subprocess.run(['docker','inspect','aixun-datagov-'+name],capture_output=True)
|
||||
if p.returncode and optional: return None
|
||||
need(p.returncode == 0,'missing target '+name)
|
||||
c = json.loads(p.stdout)[0]; own(c['Config'].get('Labels',{})); return c
|
||||
|
||||
def identity(c):
|
||||
return {'container':c['Id'],'image':c['Image'],'networks':{k:{'id':v['NetworkID'],'ip':v['IPAddress']} for k,v in c['NetworkSettings']['Networks'].items()},'mounts':sorted(c['Mounts'],key=lambda m:m['Destination']),'ports':c['HostConfig'].get('PortBindings'),'config_sha256':sha(json.dumps(c['Config'],sort_keys=True).encode())}
|
||||
|
||||
def frozen_networks(c, recorded):
|
||||
actual=identity(c)['networks']
|
||||
if all(v['ip'] for v in actual.values()):return actual
|
||||
need(not c['State']['Running'] and recorded is not None,'stopped target requires a pre-stop network snapshot')
|
||||
need(recorded['container']==c['Id'] and recorded['image']==c['Image'],'pre-stop identity mismatch')
|
||||
expected=recorded['networks']
|
||||
need({k:v['id'] for k,v in expected.items()}=={k:v['id'] for k,v in actual.items()},'pre-stop network mismatch')
|
||||
need(all(v['ip'] for v in expected.values()),'pre-stop snapshot has empty IP')
|
||||
return expected
|
||||
|
||||
def resources(c):
|
||||
for name, net in c['NetworkSettings']['Networks'].items():
|
||||
actual = json.loads(run(['docker','network','inspect',name]))[0]
|
||||
own(actual.get('Labels',{})); need(actual['Id']==net['NetworkID'],'network replaced')
|
||||
for mount in c['Mounts']:
|
||||
if mount['Type']=='volume': own(json.loads(run(['docker','volume','inspect',mount['Name']]))[0].get('Labels',{}))
|
||||
|
||||
def unchanged_configuration(model, name, c):
|
||||
service=model['services'][name]
|
||||
actual=dict(item.split('=',1) for item in c['Config'].get('Env',[]) if '=' in item)
|
||||
need(all(actual.get(k)==str(v) for k,v in service.get('environment',{}).items()),'environment drift; explicit configuration release required')
|
||||
expected=[]
|
||||
for m in service.get('volumes',[]):
|
||||
source=model['volumes'][m['source']]['name'] if m['type']=='volume' else m['source']
|
||||
expected.append((m['type'],source,m['target'],not m.get('read_only',False)))
|
||||
observed=[(m['Type'],m.get('Name') if m['Type']=='volume' else m['Source'],m['Destination'],m['RW']) for m in c['Mounts']]
|
||||
need(sorted(expected)==sorted(observed),'mount drift; explicit configuration release required')
|
||||
expected_ports={}
|
||||
for port in service.get('ports',[]):
|
||||
expected_ports.setdefault(str(port['target'])+'/'+port.get('protocol','tcp'),[]).append((port.get('host_ip') or '0.0.0.0',str(port['published'])))
|
||||
observed_ports={k:sorted((p['HostIp'] or '0.0.0.0',p['HostPort']) for p in v) for k,v in (c['HostConfig'].get('PortBindings') or {}).items()}
|
||||
need({k:sorted(v) for k,v in expected_ports.items()}==observed_ports,'port drift')
|
||||
need(service.get('restart','no')==c['HostConfig']['RestartPolicy']['Name'],'restart policy drift')
|
||||
need({model['networks'][n]['name'] for n in service['networks']}==set(c['NetworkSettings']['Networks']),'network membership drift')
|
||||
|
||||
def escape(value):
|
||||
if isinstance(value,str): return value.replace('$','$$')
|
||||
if isinstance(value,list): return [escape(x) for x in value]
|
||||
if isinstance(value,dict): return {k:escape(v) for k,v in value.items()}
|
||||
return value
|
||||
|
||||
def configuration_without_images(model):
|
||||
result=json.loads(json.dumps(model))
|
||||
for service in result.get('services',{}).values(): service.pop('image',None)
|
||||
return result
|
||||
|
||||
def schema_state():
|
||||
c=current('mysql')
|
||||
data=run(['docker','exec',c['Id'],'sh','-c','MYSQL_PWD="$MYSQL_ROOT_PASSWORD" exec mysql -uroot -N -B aixun_datagov_system -e "SELECT version,checksum_sha256,success FROM dg_schema_history ORDER BY version"'])
|
||||
return sha(data)
|
||||
|
||||
def compose(base, model, names):
|
||||
# Only explicitly selected applications, never dependencies or middleware.
|
||||
need(set(names)<=set(APPS),'non-application update denied')
|
||||
return run(['docker','compose','--project-directory',str(base),'-p',PROJECT,'-f','-','up','-d','--no-deps','--no-build','--pull','never',*names],json.dumps(escape(model)).encode(),timeout=300)
|
||||
|
||||
def health(names):
|
||||
result = {}
|
||||
values=dict(line.split('=',1) for line in Path('/opt/aixun-datagov/.env').read_text().splitlines() if '=' in line)
|
||||
username=values.get('AIXUN_DATAGOV_MONITOR_USERNAME','datagov-monitor')
|
||||
password=values.get('AIXUN_DATAGOV_MONITOR_PASSWORD','disabled')
|
||||
authorization='Basic '+base64.b64encode((username+':'+password).encode()).decode()
|
||||
for name in names:
|
||||
try:
|
||||
c = current(name)
|
||||
need(c['State']['Running'],'not running')
|
||||
if name=='frontend':
|
||||
data = run(['docker','exec',c['Id'],'wget','-qO-','http://127.0.0.1/'],timeout=10)
|
||||
need(b'<html' in data.lower(),'frontend HTML missing')
|
||||
image_env=dict(item.split('=',1) for item in c['Config'].get('Env',[]) if '=' in item)
|
||||
source=image_env.get('AIXUN_DATAGOV_FRONTEND_SOURCE','/opt/aixun-datagov/frontend-current')
|
||||
need(source.startswith('/opt/aixun-datagov/frontend-') and '..' not in Path(source).parts,'unexpected frontend source')
|
||||
index=run(['docker','exec',c['Id'],'cat',source+'/index.html'])
|
||||
need(data==index,'served frontend does not match released image')
|
||||
else:
|
||||
port=c['HostConfig']['PortBindings'][str(APPS[name])+'/tcp'][0]['HostPort']
|
||||
request=urllib.request.Request('http://127.0.0.1:'+port+'/actuator/health',headers={'Authorization':authorization})
|
||||
with urllib.request.urlopen(request,timeout=5) as response: data=json.load(response)
|
||||
need(data.get('status')=='UP','actuator not UP')
|
||||
result[name] = 'PASS'
|
||||
except (RuntimeError,ValueError,OSError,subprocess.TimeoutExpired): result[name] = 'FAILED'
|
||||
return result
|
||||
|
||||
def main():
|
||||
action, directory = sys.argv[1:]
|
||||
record = Path(directory).resolve(); base=record.parents[1]
|
||||
need(base==Path('/opt/aixun-datagov') and record.parent.name=='releases','unexpected remote directory')
|
||||
manifest=json.loads((record/'release.json').read_text()); names=list(manifest['services'])
|
||||
need(set(names)<=set(APPS) and names,'invalid service scope')
|
||||
if action=='load':
|
||||
archive=record/'images.tar.gz'
|
||||
h=hashlib.sha256()
|
||||
with archive.open('rb') as f:
|
||||
for b in iter(lambda:f.read(1024*1024),b''): h.update(b)
|
||||
need(h.hexdigest()==manifest['transfer_sha256'],'archive checksum mismatch')
|
||||
run(['docker','load','-i',str(archive)],timeout=900)
|
||||
for name,image in manifest['services'].items():
|
||||
observed=json.loads(run(['docker','image','inspect',image['tag']]))[0]
|
||||
need(observed['Id']==image['id'],'image identity mismatch')
|
||||
need(observed['Os']+'/'+observed['Architecture']==image['platform'],'platform mismatch')
|
||||
print('PASS: archive checksum and immutable image identities'); return
|
||||
if action=='verify':
|
||||
result=json.loads((record/'result.json').read_text()) if (record/'result.json').exists() else {'version':manifest['version']}
|
||||
if 'health' in result: result.setdefault('initial_health',result['health'])
|
||||
result['health']=health(names)
|
||||
result['image_identity']={name:current(name)['Image']==manifest['services'][name]['id'] for name in names}
|
||||
result['status']='PASS' if all(v=='PASS' for v in result['health'].values()) and all(result['image_identity'].values()) else 'FAILED'
|
||||
result['health_authentication']='existing RCP6 monitor Basic Auth'
|
||||
write(record/'result.json',result)
|
||||
print(json.dumps({'status':result['status'],'health':result['health']}))
|
||||
need(result['status']=='PASS','authenticated health verification failed')
|
||||
return
|
||||
need(action in ('apply','rollback'),'invalid action')
|
||||
with (base/'release.lock').open('a') as lock:
|
||||
fcntl.flock(lock,fcntl.LOCK_EX|fcntl.LOCK_NB)
|
||||
config=base/'compose.json'; env=base/'.env'
|
||||
command=['docker','compose','--project-directory',str(base),'--env-file',str(env),'-p',PROJECT,'-f',str(config)]
|
||||
model=json.loads(run(command+['config','--format','json']))
|
||||
if action=='rollback':
|
||||
previous=json.loads((record/'before.json').read_text())
|
||||
need(not manifest.get('database_change') and not manifest.get('config_change'),'DB/config compatibility requires explicit reviewed recovery')
|
||||
need(all(previous.values()),'first installation has no previous image; do not delete data')
|
||||
attempt=json.loads((record/'attempt.json').read_text())
|
||||
need(attempt.get('schema_sha256')==schema_state(),'database migration history changed or was not captured; rollback refused')
|
||||
need(configuration_without_images(json.loads(config.read_text()))==configuration_without_images(json.loads((record/'before-compose.json').read_text())),'configuration drift; rollback refused')
|
||||
for name in names:
|
||||
c=current(name); resources(c)
|
||||
unchanged_configuration(model,name,c)
|
||||
need(c['Image']==manifest['services'][name]['id'],'current image drift')
|
||||
model['services'][name]['image']=previous[name]['image']
|
||||
else:
|
||||
need(not (record/'attempt.json').exists(),'previous apply exists; reconcile instead of retrying')
|
||||
previous={}
|
||||
for name in names:
|
||||
c=current(name,optional=True)
|
||||
observed={'container':c['Id'],'image':c['Image']} if c else None
|
||||
need(name in manifest.get('expected_remote',{}) and observed==manifest['expected_remote'][name],'target changed since prepare; create a new reviewed release')
|
||||
if c:
|
||||
resources(c); unchanged_configuration(model,name,c)
|
||||
previous[name]=identity(c) if c else None
|
||||
if c:previous[name]['networks']=frozen_networks(c,manifest.get('pre_stop_runtime',{}).get(name))
|
||||
info=json.loads(run(['docker','image','inspect',manifest['services'][name]['id']]))[0]
|
||||
need(info['Os']+'/'+info['Architecture']==manifest['services'][name]['platform'],'platform mismatch')
|
||||
if c:
|
||||
declared_user=model['services'][name].get('user',info['Config'].get('User',''))
|
||||
need((declared_user or '')==(c['Config'].get('User') or ''),'container user change requires explicit configuration review')
|
||||
model['services'][name]['image']=info['Id']
|
||||
write(record/'before.json',previous)
|
||||
# Frozen full configuration stays server-only, permission 0600.
|
||||
frozen=record/'before-compose.json'; frozen.write_bytes(config.read_bytes()); frozen.chmod(0o600)
|
||||
write(record/'attempt.json',{'started':time.time(),'services':names,'config_sha256':sha(config.read_bytes()),'schema_sha256':schema_state()})
|
||||
for name in names:
|
||||
c=current(name,optional=True)
|
||||
if not c: continue
|
||||
service=model['services'][name]
|
||||
for net, value in service.get('networks',{}).items():
|
||||
network_name=model['networks'][net]['name']
|
||||
if network_name in c['NetworkSettings']['Networks']:
|
||||
value['ipv4_address']=previous[name]['networks'][network_name]['ip']
|
||||
need(identity(c)['image']==(previous[name]['image'] if action=='apply' else manifest['services'][name]['id']),'concurrent image change')
|
||||
# External resource declarations protect existing network and volume lifecycle.
|
||||
for kind in ('networks','volumes'):
|
||||
for key,item in list(model.get(kind,{}).items()): model[kind][key]={'name':item['name'],'external':True}
|
||||
model['services']={n:model['services'][n] for n in names}
|
||||
compose(base,model,names)
|
||||
deadline=time.monotonic()+240
|
||||
while True:
|
||||
checks=health(names)
|
||||
if all(v=='PASS' for v in checks.values()) or time.monotonic()>deadline: break
|
||||
time.sleep(5)
|
||||
after={n:identity(current(n)) for n in names}
|
||||
for name in names:
|
||||
if previous[name]:
|
||||
for field in ('networks','mounts','ports'):
|
||||
need(previous[name][field]==after[name][field],'runtime identity changed: '+name+' '+field)
|
||||
result={'version':manifest['version'],'action':action,'health':checks,'after':after,'status':'PASS' if all(v=='PASS' for v in checks.values()) else 'FAILED','business_uat':'NOT_RUN'}
|
||||
write(record/'result.json',result)
|
||||
if result['status']=='PASS':
|
||||
source=json.loads(config.read_text())
|
||||
for name in names: source['services'][name]['image']=model['services'][name]['image']
|
||||
write(config,source)
|
||||
elif action=='apply' and all(previous.values()) and not manifest.get('database_change') and not manifest.get('config_change'):
|
||||
# This entry point does not run migrations or change configuration.
|
||||
# Restore only these image identities when the frozen configuration
|
||||
# and runtime identity checks still establish compatibility.
|
||||
need(sha(config.read_bytes())==json.loads((record/'attempt.json').read_text())['config_sha256'],'configuration changed; automatic recovery refused')
|
||||
need(schema_state()==json.loads((record/'attempt.json').read_text())['schema_sha256'],'database migration history changed; automatic recovery refused')
|
||||
for name in names: model['services'][name]['image']=previous[name]['image']
|
||||
compose(base,model,names)
|
||||
deadline=time.monotonic()+240
|
||||
while True:
|
||||
recovery_checks=health(names)
|
||||
if all(v=='PASS' for v in recovery_checks.values()) or time.monotonic()>deadline: break
|
||||
time.sleep(5)
|
||||
result['recovery']={'images':{n:previous[n]['image'] for n in names},'health':recovery_checks}
|
||||
write(record/'result.json',result)
|
||||
print(json.dumps({'status':result['status'],'health':checks}))
|
||||
need(result['status']=='PASS','health failed; inspect result and compatibility before recovery')
|
||||
|
||||
if __name__=='__main__':
|
||||
try: main()
|
||||
except (RuntimeError,OSError,ValueError,subprocess.TimeoutExpired) as e:
|
||||
print(str(e),file=sys.stderr); sys.exit(1)
|
||||
@@ -0,0 +1,84 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Run on the target via SSH: secrets never leave the server or enter the report."""
|
||||
import hashlib
|
||||
import json
|
||||
from pathlib import Path
|
||||
import secrets
|
||||
import sys
|
||||
import time
|
||||
import urllib.error
|
||||
import urllib.parse
|
||||
import urllib.request
|
||||
|
||||
BASE=Path('/opt/aixun-datagov')
|
||||
URL='http://127.0.0.1:28000/prod-api'
|
||||
CLIENT='e5cd7e4891bf95d1d19206ce24a7b32e'
|
||||
|
||||
def request(path,token=None,data=None,method=None,content_type='application/json',raw=False):
|
||||
headers={'clientid':CLIENT,'Content-Type':content_type}
|
||||
if token: headers['Authorization']='Bearer '+token
|
||||
if isinstance(data,dict): data=json.dumps(data).encode()
|
||||
req=urllib.request.Request(URL+path,data=data,headers=headers,method=method)
|
||||
try:
|
||||
with urllib.request.urlopen(req,timeout=30) as r: status,body=r.status,r.read()
|
||||
except urllib.error.HTTPError as e: status,body=e.code,e.read()
|
||||
return status,body if raw else json.loads(body)
|
||||
|
||||
def main():
|
||||
version=sys.argv[1]; result={}; token=None
|
||||
output=BASE/'releases'/version/'smoke.json'
|
||||
def record(name,value):
|
||||
result[name]=value; output.write_text(json.dumps(result,indent=2)+'\n')
|
||||
e=dict(line.split('=',1) for line in (BASE/'.env').read_text().splitlines() if '=' in line)
|
||||
form=urllib.parse.urlencode({'username':e['AIXUN_DATAGOV_NACOS_USERNAME'],'password':e['AIXUN_DATAGOV_NACOS_PASSWORD']}).encode()
|
||||
with urllib.request.urlopen('http://127.0.0.1:28848/nacos/v3/auth/user/login',data=form,timeout=10) as r: nacos_token=json.load(r)['accessToken']
|
||||
discovery={}
|
||||
for service in ('aixun-datagov-gateway','aixun-datagov-auth','aixun-datagov-system','aixun-datagov-resource','aixun-integration','aixun-dataops','aixun-governance','aixun-dataproduct'):
|
||||
query=urllib.parse.urlencode({'namespaceId':'aixun-datagov-local','groupName':'AIXUN_DATAGOV_GROUP','serviceName':service,'accessToken':nacos_token})
|
||||
with urllib.request.urlopen('http://127.0.0.1:28848/nacos/v3/client/ns/instance/list?'+query,timeout=10) as r: payload=json.load(r)
|
||||
discovery[service]=sum(1 for h in payload.get('data',[]) if h.get('healthy') and h.get('enabled'))
|
||||
record('discovery',discovery)
|
||||
sys.path.insert(0,str(BASE/'bootstrap'))
|
||||
from bootstrap import mysql
|
||||
audit_start=mysql('SELECT NOW();')
|
||||
status,body=request('/system/user/getInfo')
|
||||
record('unauthenticated_denied',status==401 or body.get('code')==401)
|
||||
status,body=request('/auth/login',data={'tenantId':'000000','username':'admin','password':(BASE/'secrets/admin-password').read_text(),'clientId':CLIENT,'grantType':'password'})
|
||||
record('login',{'http':status,'code':body.get('code')})
|
||||
if status!=200 or body.get('code')!=200: raise RuntimeError('login failed; response suppressed')
|
||||
token=body['data']['access_token']
|
||||
try:
|
||||
paths={'identity':'/system/user/getInfo','menus':'/system/menu/getRouters','integration_list':'/api/integration/v1/data-sources','dataops_list':'/api/dataops/v1/storage-resources?pageNum=1&pageSize=10','governance_list':'/api/governance/v1/standard-systems?pageNum=1&pageSize=10','dataproduct_list':'/api/dataproduct/v1/dataset-publications?pageNum=1&pageSize=10'}
|
||||
for name,path in paths.items():
|
||||
status,body=request(path,token)
|
||||
record(name,{'http':status,'code':body.get('code'),'pass':status==200 and body.get('code')==200})
|
||||
# The only write is a synthetic release file, removed through its API.
|
||||
boundary='DataGov'+secrets.token_hex(16); content=b'DataGov remote release smoke\n'
|
||||
payload=('--'+boundary+'\r\nContent-Disposition: form-data; name="file"; filename="release-smoke.txt"\r\nContent-Type: text/plain\r\n\r\n').encode()+content+('\r\n--'+boundary+'--\r\n').encode()
|
||||
status,body=request('/resource/oss/upload',token,payload,content_type='multipart/form-data; boundary='+boundary)
|
||||
record('file_upload',{'http':status,'code':body.get('code')})
|
||||
if status==200 and body.get('code')==200:
|
||||
oid=body['data']['ossId']; record('smoke_file_id',oid)
|
||||
status,download=request('/resource/oss/download/'+oid,token,raw=True)
|
||||
record('file_download',{'http':status,'sha256_matches':hashlib.sha256(download).digest()==hashlib.sha256(content).digest()})
|
||||
status,deleted=request('/resource/oss/'+oid,token,method='DELETE')
|
||||
record('file_cleanup',{'http':status,'code':deleted.get('code')})
|
||||
audit_count=0
|
||||
for attempt in range(5):
|
||||
audit_count=int(mysql("SELECT COUNT(*) FROM sys_oper_log WHERE oper_name='admin' AND title='OSS对象存储' AND business_type IN (1,3) AND status=0 AND oper_time >= '"+audit_start+"';"))
|
||||
if audit_count>=2: break
|
||||
time.sleep(2)
|
||||
record('file_operation_audit',{'successful_records':audit_count,'pass':audit_count>=2})
|
||||
success=all(v==1 for v in discovery.values()) and result['unauthenticated_denied'] and all(result[n]['pass'] for n in paths) and result.get('file_download',{}).get('sha256_matches') and result.get('file_cleanup',{}).get('code')==200 and audit_count>=2
|
||||
record('status','PASS' if success else 'FAILED')
|
||||
print(json.dumps(result))
|
||||
if not success: raise RuntimeError('smoke checks failed; inspect sanitized record')
|
||||
finally:
|
||||
if token:
|
||||
try: request('/auth/logout',token,data={},method='POST')
|
||||
except Exception: pass
|
||||
|
||||
if __name__=='__main__':
|
||||
try: main()
|
||||
except Exception as e:
|
||||
print(type(e).__name__+': remote smoke incomplete; response and credentials withheld',file=sys.stderr); sys.exit(1)
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"name": "test-v",
|
||||
"host": "43.249.195.133",
|
||||
"port": 22,
|
||||
"user": "root",
|
||||
"platform": "linux/amd64",
|
||||
"directory": "/opt/aixun-datagov",
|
||||
"project": "aixun-datagov-local",
|
||||
"environment": "test",
|
||||
"url": "https://v.aixunkeji.cn",
|
||||
"frontend_port": 28000,
|
||||
"doris_subnet": "10.243.41.0/24",
|
||||
"ssh_control_path": ".remote-test-ssh.sock"
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
import importlib.util
|
||||
import io
|
||||
from pathlib import Path
|
||||
import tarfile
|
||||
import unittest
|
||||
from unittest.mock import patch
|
||||
|
||||
spec=importlib.util.spec_from_file_location('data_transfer',Path(__file__).with_name('data-transfer.py'))
|
||||
data=importlib.util.module_from_spec(spec);spec.loader.exec_module(data)
|
||||
|
||||
class DataTransferSafetyTests(unittest.TestCase):
|
||||
def test_auth_runtime_and_dubbo_keys_never_become_business_cache(self):
|
||||
for key in ('aixun:datagov:login:config','aixun:datagov:token:sys_dict','aixun:datagov:dubbo:metadata:config','aixun:datagov:lock:sys_config'):
|
||||
self.assertFalse(data.cache_key(key))
|
||||
self.assertTrue(data.cache_key('aixun:datagov:000000:sys_dict'))
|
||||
|
||||
def test_binary_restore_payload_is_length_delimited(self):
|
||||
self.assertEqual(data.resp(['RESTORE','key',0,b'\x00\xff\r\n','REPLACE']),b'*5\r\n$7\r\nRESTORE\r\n$3\r\nkey\r\n$1\r\n0\r\n$4\r\n\x00\xff\r\n\r\n$7\r\nREPLACE\r\n')
|
||||
|
||||
def test_credential_archive_cannot_escape_managed_directory(self):
|
||||
for name in ('managed/../../secret','/managed/secret','another/secret'):
|
||||
stream=io.BytesIO()
|
||||
with tarfile.open(fileobj=stream,mode='w') as archive:
|
||||
item=tarfile.TarInfo(name);item.size=1;archive.addfile(item,io.BytesIO(b'x'))
|
||||
with self.assertRaises(RuntimeError): data.credential_members(stream.getvalue())
|
||||
|
||||
def test_symlink_credential_refused(self):
|
||||
stream=io.BytesIO()
|
||||
with tarfile.open(fileobj=stream,mode='w') as archive:
|
||||
item=tarfile.TarInfo('managed/link');item.type=tarfile.SYMTYPE;item.linkname='/etc/shadow';archive.addfile(item)
|
||||
with self.assertRaises(RuntimeError): data.credential_members(stream.getvalue())
|
||||
|
||||
def test_expired_cache_is_not_resurrected(self):
|
||||
with patch.object(data,'redis',return_value=b''),patch.object(data.time,'time',return_value=10):
|
||||
result=data.redis_apply([{'key':'sys_config','expires_at_ms':1000,'dump':'AA=='}])
|
||||
self.assertEqual(result['restored_business_cache_keys'],0)
|
||||
|
||||
def test_native_generated_column_fix_requires_exact_schema(self):
|
||||
spec=importlib.util.spec_from_file_location('native_transfer',Path(__file__).with_name('native-data-transfer.py'))
|
||||
native=importlib.util.module_from_spec(spec);spec.loader.exec_module(native)
|
||||
schema='entity\tid\tvarchar(36)\tNO\t<NULL>\tSTORED GENERATED\tutf8mb4\nentity\tjson\tjson\tNO\t<NULL>\t\tNULL'
|
||||
original=b'INSERT INTO `entity` (`json`) VALUES (,\'{"value":"a,b"}\');\n'
|
||||
output,count=native.normalize_generated_columns(original,schema)
|
||||
self.assertEqual(output,b'INSERT INTO `entity` (`json`) VALUES (\'{"value":"a,b"}\');\n')
|
||||
self.assertEqual(count,1)
|
||||
with self.assertRaises(RuntimeError):native.normalize_generated_columns(original,schema.replace('STORED GENERATED',''))
|
||||
|
||||
if __name__=='__main__':unittest.main()
|
||||
@@ -0,0 +1,53 @@
|
||||
import gzip
|
||||
import importlib.util
|
||||
from pathlib import Path
|
||||
import tempfile
|
||||
import unittest
|
||||
|
||||
spec = importlib.util.spec_from_file_location('merge_data', Path(__file__).with_name('merge-data.py'))
|
||||
m = importlib.util.module_from_spec(spec)
|
||||
spec.loader.exec_module(m)
|
||||
|
||||
|
||||
class FakeSession:
|
||||
def __init__(self):
|
||||
self.sent = []
|
||||
def send(self, value):
|
||||
self.sent.append(value if isinstance(value, bytes) else value.encode())
|
||||
def query(self, value):
|
||||
self.sent.append(value.encode())
|
||||
return ['0']
|
||||
|
||||
|
||||
class MergePreflightTest(unittest.TestCase):
|
||||
def test_only_temporary_tables_receive_snapshot_and_protected_rows_are_skipped(self):
|
||||
with tempfile.TemporaryDirectory() as directory:
|
||||
record = Path(directory)
|
||||
with gzip.open(record / 'application.sql.gz', 'wb') as out:
|
||||
out.write(b'INSERT INTO `item` (`id`, `name`) VALUES (1,\'a\');\n')
|
||||
out.write(b'INSERT INTO `undo_log` (`id`) VALUES (2);\n')
|
||||
session = FakeSession()
|
||||
mapping, counts = m.stage(session, record, {'item'})
|
||||
self.assertEqual(counts, {'item': 1})
|
||||
combined = b''.join(session.sent)
|
||||
self.assertIn(b'CREATE TEMPORARY TABLE `_dg_merge_0` LIKE `item`', combined)
|
||||
self.assertIn(b'INSERT INTO `_dg_merge_0`', combined)
|
||||
self.assertNotIn(b'INSERT INTO `item`', combined)
|
||||
self.assertNotIn(b'undo_log', combined)
|
||||
self.assertEqual(mapping['item'], '_dg_merge_0')
|
||||
|
||||
def test_unique_prefix_is_compared_in_mysql_with_full_primary_identity(self):
|
||||
session = FakeSession()
|
||||
indexes = {('item', 'PRIMARY'): [('id', 0)], ('item', 'uk_name'): [('name', 5)]}
|
||||
self.assertEqual(m.conflicts(session, {'item': '_dg_merge_0'}, indexes), {})
|
||||
sql = session.sent[0].decode()
|
||||
self.assertIn('LEFT(t.`name`,5)=LEFT(s.`name`,5)', sql)
|
||||
self.assertIn('t.`id`<=>s.`id`', sql)
|
||||
|
||||
def test_identifier_refuses_sql_injection(self):
|
||||
with self.assertRaises(ValueError):
|
||||
m.ident('item; DROP TABLE item')
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
@@ -0,0 +1,77 @@
|
||||
import importlib.util
|
||||
import json
|
||||
from pathlib import Path
|
||||
import tempfile
|
||||
import types
|
||||
import unittest
|
||||
|
||||
spec = importlib.util.spec_from_file_location('migration_release', Path(__file__).with_name('migrate-release.py'))
|
||||
m = importlib.util.module_from_spec(spec)
|
||||
spec.loader.exec_module(m)
|
||||
|
||||
|
||||
def need(value, message):
|
||||
if not value:
|
||||
raise RuntimeError(message)
|
||||
|
||||
|
||||
class MigrationSafetyTests(unittest.TestCase):
|
||||
def setUp(self):
|
||||
self.temp = tempfile.TemporaryDirectory()
|
||||
self.addCleanup(self.temp.cleanup)
|
||||
self.record = Path(self.temp.name)
|
||||
self.manifest = {'database_change': True, 'services': {'governance': {}}, 'expected_remote': {'governance': {'container': 'c', 'image': 'i'}}}
|
||||
self.plan = {'before_history_sha256': m.digest('baseline'), 'migrations': [{'version': '20261012.218', 'ownerUnit': 'M7', 'path': 'V20261012.218__test.sql', 'sha256': 'expected'}], 'new_tables': ['new_table'], 'backup_tables': ['old_table']}
|
||||
self.container = {'Id': 'c', 'Image': 'i', 'State': {'Running': True}}
|
||||
self.d = types.SimpleNamespace(need=need, sql=lambda _: 'baseline', own=lambda _: self.container, sha=lambda _: 'expected', tables=lambda: ['old_table'])
|
||||
self.runner = types.SimpleNamespace(APPS={'governance': 9330}, resources=lambda _: None, identity=lambda _: {'networks': {'own': {'ip': '10.1.1.2'}}})
|
||||
self.save()
|
||||
|
||||
def save(self):
|
||||
(self.record / 'release.json').write_text(json.dumps(self.manifest))
|
||||
(self.record / 'migration-plan.json').write_text(json.dumps(self.plan))
|
||||
|
||||
def test_preflight_accepts_exact_reviewed_baseline(self):
|
||||
manifest, plan, snapshots = m.preflight(self.record, self.d, self.runner)
|
||||
self.assertEqual(plan['new_tables'], ['new_table'])
|
||||
self.assertEqual(snapshots['governance']['networks']['own']['ip'], '10.1.1.2')
|
||||
|
||||
def test_uncertain_attempt_is_never_replayed(self):
|
||||
(self.record / 'migration-attempt.json').write_text('{}')
|
||||
with self.assertRaisesRegex(RuntimeError, 'reconcile'):
|
||||
m.preflight(self.record, self.d, self.runner)
|
||||
|
||||
def test_changed_history_or_sql_is_rejected(self):
|
||||
self.d.sql = lambda _: 'changed'
|
||||
with self.assertRaisesRegex(RuntimeError, 'history drift'):
|
||||
m.preflight(self.record, self.d, self.runner)
|
||||
self.d.sql = lambda _: 'baseline'
|
||||
self.d.sha = lambda _: 'changed'
|
||||
with self.assertRaisesRegex(RuntimeError, 'checksum mismatch'):
|
||||
m.preflight(self.record, self.d, self.runner)
|
||||
|
||||
def test_stopped_or_replaced_application_is_rejected(self):
|
||||
self.container['State']['Running'] = False
|
||||
with self.assertRaisesRegex(RuntimeError, 'stopped'):
|
||||
m.preflight(self.record, self.d, self.runner)
|
||||
self.container['State']['Running'] = True
|
||||
self.container['Id'] = 'other'
|
||||
with self.assertRaisesRegex(RuntimeError, 'identity drift'):
|
||||
m.preflight(self.record, self.d, self.runner)
|
||||
|
||||
def test_existing_new_table_prevents_partial_replay(self):
|
||||
self.d.tables = lambda: ['old_table', 'new_table']
|
||||
with self.assertRaisesRegex(RuntimeError, 'already exists'):
|
||||
m.preflight(self.record, self.d, self.runner)
|
||||
|
||||
def test_projection_preserves_rows_independent_of_order(self):
|
||||
self.d.sql = lambda _: '42\t<NULL>\n41\t43'
|
||||
one = m.projection(self.d, 'old_table', ['id', 'value'])
|
||||
self.d.sql = lambda _: '41\t43\n42\t<NULL>'
|
||||
self.assertEqual(one, m.projection(self.d, 'old_table', ['id', 'value']))
|
||||
self.d.sql = lambda _: '41\t43'
|
||||
self.assertNotEqual(one, m.projection(self.d, 'old_table', ['id', 'value']))
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
@@ -0,0 +1,125 @@
|
||||
import importlib.util
|
||||
from pathlib import Path
|
||||
import unittest
|
||||
import sys
|
||||
sys.path.insert(0,str(Path(__file__).resolve().parents[1]))
|
||||
from test_deployment import image
|
||||
import deployment_artifacts as artifacts
|
||||
import tempfile
|
||||
from unittest.mock import patch
|
||||
import edge
|
||||
import contextlib
|
||||
import io
|
||||
import copy
|
||||
|
||||
spec=importlib.util.spec_from_file_location('runner',Path(__file__).with_name('runner.py'))
|
||||
runner=importlib.util.module_from_spec(spec); spec.loader.exec_module(runner)
|
||||
prep_spec=importlib.util.spec_from_file_location('prepare_bootstrap',Path(__file__).with_name('prepare-bootstrap.py'))
|
||||
prep=importlib.util.module_from_spec(prep_spec); prep_spec.loader.exec_module(prep)
|
||||
|
||||
class ReleaseSafetyTests(unittest.TestCase):
|
||||
def stopped_target(self):
|
||||
return {'Id':'container-1','Image':'image-1','State':{'Running':False},'Config':{},
|
||||
'NetworkSettings':{'Networks':{'private':{'NetworkID':'network-1','IPAddress':''}}},
|
||||
'Mounts':[],'HostConfig':{}}
|
||||
|
||||
def test_stopped_target_requires_pre_stop_snapshot(self):
|
||||
with self.assertRaisesRegex(RuntimeError,'pre-stop network snapshot'):
|
||||
runner.frozen_networks(self.stopped_target(),None)
|
||||
|
||||
def test_pre_stop_snapshot_preserves_exact_ip(self):
|
||||
old={'container':'container-1','image':'image-1','networks':{'private':{'id':'network-1','ip':'10.0.0.7'}}}
|
||||
self.assertEqual(runner.frozen_networks(self.stopped_target(),old),old['networks'])
|
||||
|
||||
def test_pre_stop_snapshot_rejects_replaced_container_or_network(self):
|
||||
old={'container':'container-1','image':'image-1','networks':{'private':{'id':'network-1','ip':'10.0.0.7'}}}
|
||||
for field in ('container','network'):
|
||||
changed=copy.deepcopy(old)
|
||||
if field=='container':changed['container']='replaced'
|
||||
else:changed['networks']['private']['id']='replaced'
|
||||
with self.assertRaises(RuntimeError):runner.frozen_networks(self.stopped_target(),changed)
|
||||
|
||||
def test_mount_order_does_not_change_runtime_identity(self):
|
||||
one=self.stopped_target();one['Mounts']=[{'Destination':'/b','Source':'/two'},{'Destination':'/a','Source':'/one'}]
|
||||
two=copy.deepcopy(one);two['Mounts'].reverse()
|
||||
self.assertEqual(runner.identity(one),runner.identity(two))
|
||||
|
||||
def test_custom_frontend_source_excludes_old_embedded_tree(self):
|
||||
stream=image([{'opt/aixun-datagov/frontend-current/index.html':b'old'}, {'opt/aixun-datagov/frontend-576/index.html':b'current'}])
|
||||
digest=artifacts.image_artifact(stream,True,'/opt/aixun-datagov/frontend-576')
|
||||
self.assertEqual(digest,artifacts.tree_digest({'index.html':artifacts.hashlib.sha256(b'current').hexdigest()}))
|
||||
|
||||
def test_foreign_project_rejected(self):
|
||||
with self.assertRaises(RuntimeError): runner.own({'com.aixun.project':'aixun-datagov','com.docker.compose.project':'another-project'})
|
||||
|
||||
def test_secret_dollars_survive_compose_interpolation(self):
|
||||
self.assertEqual(runner.escape({'environment':{'VALUE':'one$two'}}),{'environment':{'VALUE':'one$$two'}})
|
||||
|
||||
def test_middleware_cannot_enter_application_update(self):
|
||||
with self.assertRaises(RuntimeError): runner.compose(Path('/tmp'),{},['mysql'])
|
||||
|
||||
def test_environment_drift_rejected(self):
|
||||
with self.assertRaisesRegex(RuntimeError,'environment drift'):
|
||||
runner.unchanged_configuration({'services':{'auth':{'environment':{'MODE':'new'}}}},'auth',{'Config':{'Env':['MODE=old']}})
|
||||
|
||||
def test_fresh_install_variant_keeps_business_and_permission_guards(self):
|
||||
root=Path(__file__).resolve().parents[3]
|
||||
original=(root/'db/migration/system/V20260921.164__upgrade_asset_dataset_navigation.sql').read_text()
|
||||
variant=prep.first_install_164(original)
|
||||
self.assertNotIn('COUNT(*) FROM sys_role_menu)<>460',variant)
|
||||
self.assertIn("BINARY 'superadmin'",variant)
|
||||
self.assertIn('tmp_dg130_role_before',variant)
|
||||
self.assertEqual(original[original.index('CREATE TEMPORARY TABLE tmp_dg130_roles AS'):],variant[variant.index('CREATE TEMPORARY TABLE tmp_dg130_roles AS'):])
|
||||
|
||||
def test_hidden_storage_entry_does_not_get_unhidden(self):
|
||||
root=Path(__file__).resolve().parents[3]
|
||||
original=(root/'db/migration/system/V20260923.191__register_storage_delete_permissions.sql').read_text()
|
||||
variant=prep.first_install_191(original)
|
||||
self.assertIn("menu_type='C' AND status='0' AND visible='1'",variant)
|
||||
self.assertNotIn('UPDATE sys_menu',variant)
|
||||
self.assertIn('(SELECT COUNT(*) FROM sys_role_menu)<>@dg164s_role_count',variant)
|
||||
|
||||
class EdgeSafetyTests(unittest.TestCase):
|
||||
def setUp(self):
|
||||
output=contextlib.redirect_stdout(io.StringIO()); output.__enter__(); self.addCleanup(output.__exit__,None,None,None)
|
||||
temp=tempfile.TemporaryDirectory(); self.addCleanup(temp.cleanup)
|
||||
self.base=Path(temp.name)
|
||||
record=self.base/'releases'/'test-01'; record.mkdir(parents=True)
|
||||
(record/'release.json').write_text('{}')
|
||||
self.old=self.base/'corporate.conf'; self.new=self.base/'datagov.conf'
|
||||
self.original=b'server { server_name v.aixunkeji.cn t.aixunkeji.cn; }\n'
|
||||
self.old.write_bytes(self.original)
|
||||
cert=self.base/'cert.pem'; cert.write_text('public test certificate')
|
||||
key=self.base/'key.pem'; key.write_text('test fixture')
|
||||
for name,value in [('BASE',self.base),('OLD',self.old),('NEW',self.new),('CERT',cert),('KEY',key)]:
|
||||
p=patch.object(edge,name,value); p.start(); self.addCleanup(p.stop)
|
||||
|
||||
def run_mock(self,args,data=None):
|
||||
if '-T' in args: return self.original
|
||||
if '-checkhost' in args: return b'Hostname v.aixunkeji.cn does match certificate\n'
|
||||
if '-pubkey' in args or '-pubout' in args: return b'same public key'
|
||||
return b''
|
||||
|
||||
def test_domain_cutover_and_exact_restore(self):
|
||||
with patch.object(edge,'run',side_effect=self.run_mock),patch.object(sys,'argv',['edge','apply','test-01']): edge.main()
|
||||
self.assertEqual(self.old.read_text(),'server { server_name t.aixunkeji.cn; }\n')
|
||||
self.assertIn('server_name v.aixunkeji.cn;',self.new.read_text())
|
||||
with patch.object(edge,'run',side_effect=self.run_mock),patch.object(sys,'argv',['edge','restore','test-01']): edge.main()
|
||||
self.assertEqual(self.old.read_bytes(),self.original)
|
||||
self.assertFalse(self.new.exists())
|
||||
|
||||
def test_certificate_mismatch_leaves_sites_untouched(self):
|
||||
with patch.object(edge,'run',return_value=b'Hostname v.aixunkeji.cn does NOT match certificate'),patch.object(sys,'argv',['edge','apply','test-01']),self.assertRaisesRegex(RuntimeError,'does not cover'): edge.main()
|
||||
self.assertEqual(self.old.read_bytes(),self.original)
|
||||
self.assertFalse(self.new.exists())
|
||||
|
||||
def test_staged_challenge_finalizes_and_restores_original(self):
|
||||
with patch.object(edge,'run',side_effect=self.run_mock):
|
||||
for action in ('stage','apply','restore'):
|
||||
with patch.object(sys,'argv',['edge',action,'test-01']): edge.main()
|
||||
if action=='stage': self.assertIn('return 503',self.new.read_text())
|
||||
if action=='apply': self.assertIn('listen 443 ssl',self.new.read_text())
|
||||
self.assertEqual(self.old.read_bytes(),self.original)
|
||||
self.assertFalse(self.new.exists())
|
||||
|
||||
if __name__=='__main__': unittest.main()
|
||||
@@ -0,0 +1,77 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Target-only native component readback and one scoped persistence check."""
|
||||
import fcntl
|
||||
import json
|
||||
from pathlib import Path
|
||||
import sys
|
||||
import time
|
||||
import urllib.request
|
||||
|
||||
BASE=Path('/opt/aixun-datagov')
|
||||
sys.path.insert(0,str(BASE/'bootstrap'))
|
||||
from bootstrap import own,run,save,need
|
||||
|
||||
def project():
|
||||
created=json.loads((BASE/'bootstrap/native-dolphinscheduler/project-create.json').read_text())
|
||||
code=str(created['data']['code'])
|
||||
token=(BASE/'m2/local/secrets/dolphinscheduler-token').read_text().strip()
|
||||
req=urllib.request.Request('http://127.0.0.1:32145/dolphinscheduler/projects/'+code,headers={'token':token})
|
||||
with urllib.request.urlopen(req,timeout=15) as response: result=json.load(response)
|
||||
need(result.get('code')==0 and result.get('data',{}).get('name')=='aixun_m2_golden_project','scheduler service token/project unavailable')
|
||||
return {'code':code,'name':result['data']['name'],'service_token_readback':'PASS'}
|
||||
|
||||
def scheduler_restart(record):
|
||||
marker=record/'scheduler-persistence.json'
|
||||
need(not marker.exists(),'restart check already attempted; reconcile before retry')
|
||||
with (BASE/'release.lock').open('a') as lock:
|
||||
fcntl.flock(lock,fcntl.LOCK_EX|fcntl.LOCK_NB)
|
||||
before=own('m2-dolphinscheduler')
|
||||
need(before['State'].get('Health',{}).get('Status')=='healthy','scheduler not healthy')
|
||||
result={'before':project(),'container':before['Id'],'image':before['Image'],'started':time.time(),'status':'RUNNING'}
|
||||
save(marker,result)
|
||||
run(['docker','restart',before['Id']],timeout=60)
|
||||
deadline=time.monotonic()+360
|
||||
while True:
|
||||
after=own('m2-dolphinscheduler')
|
||||
if after['State'].get('Health',{}).get('Status')=='healthy': break
|
||||
need(time.monotonic()<deadline,'scheduler restart health not confirmed')
|
||||
time.sleep(5)
|
||||
need(after['Id']==before['Id'] and after['Image']==before['Image'],'unexpected container/image replacement')
|
||||
result['after']=project()
|
||||
need(result['before']==result['after'],'scheduler project changed across restart')
|
||||
result['status']='PASS'; save(marker,result)
|
||||
print('PASS: scheduler service identity and project survived scoped restart')
|
||||
|
||||
def health(record):
|
||||
model=json.loads((BASE/'compose.json').read_text()); result={}
|
||||
for name,service in model['services'].items():
|
||||
if not name.startswith('m2-'): continue
|
||||
c=own(name)
|
||||
expected=json.loads(run(['docker','image','inspect',service['image']]))[0]['Id']
|
||||
state=c['State']
|
||||
healthy=(not state['Running'] and state['ExitCode']==0) if name=='m2-om-migrate' else state.get('Health',{}).get('Status')=='healthy'
|
||||
result[name]={'image':c['Image'],'image_matches':c['Image']==expected,'status':'PASS' if healthy and c['Image']==expected else 'FAILED','restart_count':c['RestartCount']}
|
||||
versions={}
|
||||
queries=[('m2-hive-mysql','/run/secrets/hive_mysql_root_password','SELECT SCHEMA_VERSION FROM aixun_m2_hive_metastore.VERSION'),('m2-om-airflow-mysql','/run/secrets/om_airflow_db_password','SELECT version_num FROM aixun_m2_airflow.alembic_version')]
|
||||
for name,password_file,sql in queries:
|
||||
if name not in model['services']:continue
|
||||
c=own(name)
|
||||
data=run(['docker','exec',c['Id'],'sh','-c','MYSQL_PWD="$(cat '+password_file+')" exec mysql -uroot -N -B -e "$1"','read-version',sql])
|
||||
versions[name]=data.decode().strip()
|
||||
c=own('m2-dolphinscheduler')
|
||||
versions['dolphinscheduler_schema_sha256']=run(['docker','exec',c['Id'],'sha256sum','/opt/dolphinscheduler/standalone-server/conf/sql/dolphinscheduler_h2.sql']).decode().split()[0]
|
||||
payload={'services':result,'native_schema_versions':versions,'status':'PASS' if all(v['status']=='PASS' for v in result.values()) else 'FAILED'}
|
||||
save(record/'components-health.json',payload)
|
||||
print(json.dumps(payload))
|
||||
need(payload['status']=='PASS','some native components are not healthy')
|
||||
|
||||
if __name__=='__main__':
|
||||
try:
|
||||
action,version=sys.argv[1:]
|
||||
record=BASE/'releases'/version
|
||||
need(record.parent==BASE/'releases' and (record/'release.json').exists(),'invalid release')
|
||||
if action=='scheduler-restart-check': scheduler_restart(record)
|
||||
elif action=='health': health(record)
|
||||
else: raise ValueError('unsupported action')
|
||||
except Exception as exc:
|
||||
print(type(exc).__name__+': component check incomplete; reconcile sanitized records',file=sys.stderr); sys.exit(1)
|
||||
@@ -0,0 +1,103 @@
|
||||
#!/usr/bin/env python3
|
||||
"""HTTPS release check: lists and one archived synthetic manual draft; no model/SQL execution."""
|
||||
import importlib.util
|
||||
import json
|
||||
from pathlib import Path
|
||||
import sys
|
||||
import time
|
||||
import uuid
|
||||
|
||||
|
||||
def load(name, path):
|
||||
spec = importlib.util.spec_from_file_location(name, path)
|
||||
module = importlib.util.module_from_spec(spec)
|
||||
spec.loader.exec_module(module)
|
||||
return module
|
||||
|
||||
|
||||
def main():
|
||||
record = Path(sys.argv[1]).resolve()
|
||||
assert record.parent == Path('/opt/aixun-datagov/releases')
|
||||
output = record / 'workbench-smoke.json'
|
||||
assert not output.exists(), 'existing result; reconcile instead of replaying writes'
|
||||
sm = load('smoke', record / 'smoke.py')
|
||||
d = load('transfer', record / 'data-transfer.py')
|
||||
sm.URL = 'https://v.aixunkeji.cn/prod-api'
|
||||
result = {'status': 'RUNNING', 'version': record.name, 'stage': 'LOGIN', 'checks': {}}
|
||||
d.save(output, result)
|
||||
token = None
|
||||
try:
|
||||
_, login = sm.request('/auth/login', data={'tenantId': '000000', 'username': 'admin', 'password': (sm.BASE / 'secrets/admin-password').read_text(), 'clientId': sm.CLIENT, 'grantType': 'password'})
|
||||
assert login.get('code') == 200
|
||||
token = login['data']['access_token']
|
||||
|
||||
def request(path, data=None, method=None):
|
||||
status, body = sm.request(path, token, data, method)
|
||||
if status != 200 or body.get('code') != 200:
|
||||
raise RuntimeError('application check failed: ' + path.split('?')[0])
|
||||
return body.get('data')
|
||||
|
||||
paths = {
|
||||
'workbench_sessions': '/api/integration/v1/ai/workbench/sessions',
|
||||
'workbench_capability': '/api/integration/v1/ai/workbench/capability',
|
||||
'assistant_plans': '/api/integration/v1/ai/schedules?pageNum=1&pageSize=10',
|
||||
'assistant_runs': '/api/integration/v1/ai/schedules/runs?pageNum=1&pageSize=10',
|
||||
'knowledge_documents': '/api/governance/v1/workbench-knowledge/documents?pageNum=1&pageSize=10',
|
||||
'bi_objects': '/api/dataproduct/v1/bi/objects?pageNum=1&pageSize=10',
|
||||
'relation_candidates': '/api/governance/v1/metadata-relation-declarations/candidates',
|
||||
}
|
||||
for name, path in paths.items():
|
||||
request(path)
|
||||
result['checks'][name] = 'PASS'
|
||||
d.save(output, result)
|
||||
status, body = sm.request(paths['workbench_sessions'])
|
||||
assert status == 401 or body.get('code') == 401
|
||||
result['anonymous_denied'] = True
|
||||
# Persist the exact ID before the first write. On uncertainty, read this
|
||||
# same object; never create another ID or automatically repeat mutations.
|
||||
session_id = str(uuid.uuid4())
|
||||
result.update(stage='CREATE_DRAFT', synthetic_session_id=session_id)
|
||||
d.save(output, result)
|
||||
audit_start = d.sql('SELECT NOW();')
|
||||
root = '/api/integration/v1/ai/workbench/sessions'
|
||||
title = '发布验证 ' + record.name
|
||||
created = request(root, {'id': session_id, 'title': title}, 'POST')
|
||||
assert created['id'] == session_id and created['version'] == 0
|
||||
result['stage'] = 'SAVE_MANUAL_DRAFT'
|
||||
d.save(output, result)
|
||||
saved = request(root + '/' + session_id + '/draft', {'version': 0, 'name': '发布验证草稿(未执行)', 'sql': 'SELECT 1 AS release_probe'}, 'PUT')
|
||||
observed = request(root + '/' + session_id)
|
||||
assert observed['id'] == session_id and observed['version'] == saved['version']
|
||||
assert observed['sql'] == 'SELECT 1 AS release_probe'
|
||||
assert not observed['turns'] and not observed.get('saveIntent') and not observed.get('codeReference')
|
||||
result['stage'] = 'ARCHIVE_SYNTHETIC_DRAFT'
|
||||
d.save(output, result)
|
||||
archived = request(root + '/' + session_id + '/settings', {'version': observed['version'], 'title': title, 'scenario': 'SQL', 'status': 'ARCHIVED'}, 'PUT')
|
||||
final = request(root + '/' + session_id)
|
||||
assert final['status'] == 'ARCHIVED' and final['version'] == archived['version']
|
||||
result['manual_draft'] = {'status': 'PASS', 'version': final['version'], 'archived': True, 'model_called': False, 'sql_executed': False, 'business_object_created': False}
|
||||
count = 0
|
||||
for _ in range(5):
|
||||
count = int(d.sql("SELECT COUNT(*) FROM sys_oper_log WHERE oper_name='admin' AND status=0 AND title IN('创建对话任务','保存工作台草稿','修改对话任务') AND oper_time>='" + audit_start + "';"))
|
||||
if count >= 3:
|
||||
break
|
||||
time.sleep(1)
|
||||
assert count >= 3
|
||||
result.update(status='PASS', stage='COMPLETE', successful_audit_records=count)
|
||||
d.save(output, result)
|
||||
print(json.dumps(result, ensure_ascii=False))
|
||||
except Exception:
|
||||
result['status'] = 'INCOMPLETE_RECONCILE'
|
||||
d.save(output, result)
|
||||
raise
|
||||
finally:
|
||||
if token:
|
||||
sm.request('/auth/logout', token, data={}, method='POST')
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
try:
|
||||
main()
|
||||
except Exception as exc:
|
||||
print(type(exc).__name__ + ': workbench check incomplete; read the recorded stage and same session ID before retry', file=sys.stderr)
|
||||
sys.exit(1)
|
||||
在新工单中引用
屏蔽一个用户