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] 部署 负载均衡-节点 的时候执行失败 #19044

Closed
guinanlin opened this issue Dec 19, 2023 · 2 comments
Closed

[求助/Help] 部署 负载均衡-节点 的时候执行失败 #19044

guinanlin opened this issue Dec 19, 2023 · 2 comments
Labels
question Further information is requested

Comments

@guinanlin
Copy link

根据如下的文档
https://www.cloudpods.org/v3.9/zh/docs/web_ui/network/lbcluster/lbagent/

部署负载均衡-节点的时候, 报了如下的错误,
yum的源, 我写成如下2个源地址都不对
Yum源地址,https://yunioniso.oss-cn-beijing.aliyuncs.com/iso/3.9/rpms
或者 Yum源地址,http://yunioniso.oss-cn-beijing.aliyuncs.com/iso/3.9/rpms

问题是, 不知道从哪儿入手进行处理

配置界面:
image

出错的日志:

`192.168.8.94 | SUCCESS => {
"ansible_facts": {
"discovered_interpreter_python": "/usr/bin/python"
},
"changed": false,
"gid": 1002,
"name": "yunion",
"state": "present",
"system": false
}
192.168.8.94 | SUCCESS => {
"ansible_facts": {
"discovered_interpreter_python": "/usr/bin/python"
},
"append": false,
"changed": false,
"comment": "",
"group": 1002,
"home": "/home/yunion",
"move_home": false,
"name": "yunion",
"shell": "/bin/bash",
"state": "present",
"uid": 1002
}
192.168.8.94 | SUCCESS => {
"ansible_facts": {
"discovered_interpreter_python": "/usr/bin/python"
},
"changed": false,
"gid": 1002,
"group": "yunion",
"mode": "0755",
"owner": "yunion",
"path": "/etc/yunion",
"size": 26,
"state": "directory",
"uid": 1002
}
192.168.8.94 | SUCCESS => {
"ansible_facts": {
"discovered_interpreter_python": "/usr/bin/python"
},
"changed": false,
"checksum": "c3947012d8e8f14f8ca87abaaa10d7d772dac2e2",
"dest": "/etc/yunion/lbagent.conf",
"gid": 1002,
"group": "yunion",
"mode": "0600",
"owner": "yunion",
"path": "/etc/yunion/lbagent.conf",
"size": 383,
"state": "file",
"uid": 1002
}
192.168.8.94 | CHANGED => {
"ansible_facts": {
"discovered_interpreter_python": "/usr/bin/python"
},
"changed": true,
"checksum": "73a52e4acf1fc4397cb82bcee90217e936861b16",
"dest": "/etc/yum.repos.d/yunion.repo",
"gid": 0,
"group": "root",
"md5sum": "39aec042f4b2394198980957891bcb55",
"mode": "0644",
"owner": "root",
"size": 169,
"src": "/opt/cloudroot/.ansible/tmp/ansible-tmp-1702947450.1669657-383-68253762949646/source",
"state": "file",
"uid": 0
}
192.168.8.94 | FAILED! => {
"ansible_facts": {
"discovered_interpreter_python": "/usr/bin/python"
},
"changed": false,
"msg": "http://yunioniso.oss-cn-beijing.aliyuncs.com/iso/3.9/rpms/repodata/repomd.xml: [Errno 14] HTTP Error 403 - Forbidden\nTrying other mirror.\nTo address this issue please refer to the below wiki article\n\nhttps://wiki.centos.org/yum-errors\n\nIf above article doesn't help to resolve this issue please use https://bugs.centos.org/.\n\n\n\n One of the configured repositories failed (Packages for Yunion- x86_64),\n and yum doesn't have enough cached data to continue. At this point the only\n safe thing yum can do is fail. There are a few ways to work "fix" this:\n\n 1. Contact the upstream for the repository and get them to fix the problem.\n\n 2. Reconfigure the baseurl/etc. for the repository, to point to a working\n upstream. This is most often useful if you are using a newer\n distribution release than is supported by the repository (and the\n packages for the previous distribution release still work).\n\n 3. Run the command with the repository temporarily disabled\n yum --disablerepo=yunion ...\n\n 4. Disable the repository permanently, so yum won't use it by default. Yum\n will then just ignore the repository until you permanently enable it\n again or use --enablerepo for temporary usage:\n\n yum-config-manager --disable yunion\n or\n subscription-manager repos --disable=yunion\n\n 5. Configure the failing repository to be skipped, if it is unavailable.\n Note that yum will try to contact the repo. when it runs most commands,\n so will have to try and fail each time (and thus. yum will be be much\n slower). If it is a very temporary problem though, this is often a nice\n compromise:\n\n yum-config-manager --save --setopt=yunion.skip_if_unavailable=true\n\nfailure: repodata/repomd.xml from yunion: [Errno 256] No more mirrors to try.\nhttp://yunioniso.oss-cn-beijing.aliyuncs.com/iso/3.9/rpms/repodata/repomd.xml: [Errno 14] HTTP Error 403 - Forbidden\n",
"rc": 1,
"results": []
}
192.168.8.94 | FAILED! => {
"ansible_facts": {
"discovered_interpreter_python": "/usr/bin/python"
},
"changed": false,
"msg": "Could not find the requested service yunion-lbagent: host"
}

`

@guinanlin guinanlin added the question Further information is requested label Dec 19, 2023
@swordqiu
Copy link
Member

@guinanlin 3.9版本部署请用yum源地址试试:https://iso.yunion.cn/centos/7/3.9/x86_64/

@guinanlin
Copy link
Author

@guinanlin 3.9版本部署请用yum源地址试试:https://iso.yunion.cn/centos/7/3.9/x86_64/

哈哈, 看来很靠谱的啊, 赞, 赞, 果真可以了.

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

2 participants