Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[求助/Help] 虚拟机迁移失败 #19172

Closed
fangpsh opened this issue Jan 5, 2024 · 11 comments
Closed

[求助/Help] 虚拟机迁移失败 #19172

fangpsh opened this issue Jan 5, 2024 · 11 comments
Assignees
Labels
question Further information is requested

Comments

@fangpsh
Copy link

fangpsh commented Jan 5, 2024

停机迁移失败,
日志如下:

{
    "__reason__": {
        "reason": {
            "image_id": "ee5d5ce8-6c8b-487a-8a15-2a3974ae4d1c",
            "reason": {
                "__reason__": "Fetch cached image by image_id ee5d5ce8-6c8b-487a-8a15-2a3974ae4d1c: sql: no rows in result set",
                "__status__": "ERROR"
            }
        },
        "stage": "OnImageCacheComplete"
    },
    "__stage__": "OnCachedImageComplete",
    "__status__": "error",
    "__task_name__": "StorageCacheImageTask"
}

版本:3.10.10

求助如何进一步排查思路,谢谢。

@fangpsh fangpsh added the question Further information is requested label Jan 5, 2024
@fangpsh fangpsh changed the title [求助/Help] VM 迁移失败 [求助/Help] 虚拟机迁移失败 Jan 5, 2024
@hoganlxj
Copy link
Contributor

hoganlxj commented Jan 5, 2024

@fangpsh 登陆虚拟机所在宿主机上 执行ls -al /opt/cloud/workspace/disks/image_cache/ grep ee5d5ce8-6c8b-487a-8a15-2a3974ae4d1c 有数据没?

@fangpsh
Copy link
Author

fangpsh commented Jan 5, 2024

ee5d5ce8

Hi,hoganlxj,感谢指导。显示如下:

# ls -al /opt/cloud/workspace/disks/image_cache/   |grep ee5d5ce8
-rw-r--r-- 1 root root 33852020224 Aug 30 10:28 ee5d5ce8-6c8b-487a-8a15-2a3974ae4d1c
-rw-r--r-- 1 root root         230 Aug 30 10:31 ee5d5ce8-6c8b-487a-8a15-2a3974ae4d1c.inf

inf 文件内容:

{"name":"VM-100.181","format":"qcow2","id":"ee5d5ce8-6c8b-487a-8a15-2a3974ae4d1c","chksum":"e2271674d95a21d2d1d5a4b704df38dc","path":"/opt/cloud/workspace/disks/image_cache/ee5d5ce8-6c8b-487a-8a15-2a3974ae4d1c","size":33852020224}

@wanyaoqi
Copy link
Member

wanyaoqi commented Jan 5, 2024

@fangpsh climc image-show ee5d5ce8-6c8b-487a-8a15-2a3974ae4d1c 确认一下这个镜像还在吗

@fangpsh
Copy link
Author

fangpsh commented Jan 8, 2024

climc image-show ee5d5ce8-6c8b-487a-8a15-2a3974ae4d1c

确实,这个报错了:

# climc image-show ee5d5ce8-6c8b-487a-8a15-2a3974ae4d1c
{"error":{"code":404,"details":"404 Not Found","request":{"headers":{"User-Agent":"yunioncloud-go/201708","X-Auth-Token":"*"},"method":"HEAD","url":"https://192.168.8.8:30292/v1/images/ee5d5ce8-6c8b-487a-8a15-2a3974ae4d1c"}}}

@dengju2020
Copy link

确实是我们的问题,我们近期修复下

Copy link

If you do not provide feedback for more than 37 days, we will close the issue and you can either reopen it or submit a new issue.

您超过 37 天未反馈信息,我们将关闭该 issue,如有需求您可以重新打开或者提交新的 issue。

@fangpsh
Copy link
Author

fangpsh commented Apr 24, 2024

确实是我们的问题,我们近期修复下

Hi,这个问题升级到tag/v3.11.3 后依然存在。

@fangpsh
Copy link
Author

fangpsh commented Apr 24, 2024

这类主机,大都是之前从 pve 制作 qcow2 镜像导入,创建之后,删除了原始镜像。

ee5d5ce8-6c8b-487a-8a15-2a3974ae4d1c 在glance/images 中的数据:

2023-08-30 01:59:58	2023-09-08 07:47:21	134	2023-09-08 07:47:21	1	ee5d5ce8-6c8b-487a-8a15-2a3974ae4d1c		0	VM-100.181	deleted	0	default	e9ab6f037e1843b28fcf847bf6a3a9a5	local	0	2023-09-05 06:58:31	1	0	0	none	local	x86		33852020224	s3://ee5d5ce8-6c8b-487a-8a15-2a3974ae4d1c.qcow2	qcow2	e2271674d95a21d2d1d5a4b704df38dc	a6c832b7478a02d19c89d64c91c0bd33	e9ab6f037e1843b28fcf847bf6a3a9a5	153600	0	0	0	0	0		

@github-actions github-actions bot added the stale label May 25, 2024
@zexi
Copy link
Member

zexi commented Jul 19, 2024

@fangpsh 是不是手动删除过镜像和缓存的镜像?平台不会自动删除这些记录

@fangpsh
Copy link
Author

fangpsh commented Jul 22, 2024

@fangpsh 是不是手动删除过镜像和缓存的镜像?平台不会自动删除这些记录

是的,创建机器成功之后,就手动删除了导入的镜像。是由于这个原因导致迁移失败?

@fangpsh
Copy link
Author

fangpsh commented Aug 13, 2024

关联:#20880

创建镜像或者主机快照后再创建新机器,可绕过。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

6 participants