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

[BUG]虚拟机自定义数据失败 #19983

Closed
dominickcjh opened this issue Apr 15, 2024 · 4 comments
Closed

[BUG]虚拟机自定义数据失败 #19983

dominickcjh opened this issue Apr 15, 2024 · 4 comments
Labels

Comments

@dominickcjh
Copy link

dominickcjh commented Apr 15, 2024

问题描述/What happened:
通过cloudpods纳管vmware,创建虚拟机并自定义数据,自定义数据内容未执行成功

环境/Environment:

  • OS: CentOS 7.9
  • Kernel: Linux CloudPods 5.4.130-1.yn20230805.el7.x86_64
  • Service Version: 3.11

问题分析:
创建的虚拟机使用镜像CentOS-7-x86_64-GenericCloud-2009.qcow2,随机生成root密码,虚拟机创建完成后,登录虚拟机使用journalctl命令查看发现报错Failed at step EXEC spawning /etc/userdata.sh: Permission denied,查看/etc/userdata.sh内容,发现其包含创建虚拟机时高级设置-自定义数据中填写的内容,判断虚拟机需要执行该脚本来实现自定义数据中填写的内容。但通过ls -l /etc/userdata.sh发现该脚本文件权限为600,没有可执行权限。不知道是否为代码问题。

@dominickcjh dominickcjh added the bug Something isn't working label Apr 15, 2024
@dominickcjh
Copy link
Author

镜像中的umask 0022

@swordqiu
Copy link
Member

收到,的确可能是umask的问题

@swordqiu
Copy link
Member

#19987 这个PR在 release/3.11 修复,请等待下次升级

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。

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

No branches or pull requests

2 participants