yunionio / cloudpods

A cloud-native open-source unified multi-cloud and hybrid-cloud platform. 开源、云原生的多云管理及混合云融合平台
https://www.cloudpods.org
Apache License 2.0
2.6k stars 533 forks source link

[求助/Help]climc报错 #21584

Closed happinesslijian closed 6 days ago

happinesslijian commented 6 days ago

操作系统版本(单节点部署)

No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 22.04.1 LTS
Release:    22.04
Codename:   jammy

部署方式

问题描述: root用户下执行climc报错,不知道如何解决,详情如下:

root@tx-deepocean:~/cloudpods-baremetal# climc 
{"error":{"class":"WrongPassword","code":401,"details":"Authenticate: usrExt.VerifyPassword: WrongPassword","request":{"body":"{\"auth\":{\"context\":{\"source\":\"cli\"},\"identity\":{\"methods\":[\"password\"],\"password\":{\"user\":{\"name\":\"s...ult\"},\"name\":\"system\"}}}}","headers":{"Content-Length":"209","Content-Type":"application/json","User-Agent":"yunioncloud-go/201708"},"method":"POST","url":"https://10.10.22.70:30357/v3/auth/tokens"}}}

climc可执行文件是从/opt/yunion/bin/climc复制到/usr/local/bin/climc目录下的并且/root/.onecloud_rcadmin信息也是完善的如下:

export OS_AUTH_URL=https://10.10.22.70:30357/v3
export OS_USERNAME=sysadmin
export OS_PASSWORD=SWDrK6pn7*******
export OS_PROJECT_DOMAIN=default
export OS_PROJECT_NAME=system
export YUNION_INSECURE=true
export OS_REGION_NAME=region0
export OS_ENDPOINT_TYPE=publicURL

求帮助解决该问题 @yunioncorp

zexi commented 6 days ago

@happinesslijian 应该是 /root/.onecloud_rcadmin 认证信息的问题,你可以 exec 到 climc 的容器里面,用 env 看下对应的认证密码

happinesslijian commented 6 days ago

@happinesslijian 应该是 /root/.onecloud_rcadmin 认证信息的问题,你可以 exec 到 climc 的容器里面,用 env 看下对应的认证密码 完美的解决了我的问题,我复制了climc容器里的OS_PASSWORD值到/root/.onecloud_rcadmin里,已经解决了,输出climc已经没有问题了如下:

root@tx-deepocean:~/cloudpods-baremetal# climc image-upload --format qcow2 --os-type Linux --os-arch x86_64 --standard ubuntu-24.04byljian ./ubuntu24.04.qcow2