我按照手动安装过程而不是快速入门重新安装了Euca 4.4.4。我已经成功启动了云,正在尝试向位于同一服务器/本地主机上的CLC注册UFS。注册失败,并显示有关代理的python错误。注册其他任何服务都会以相同的方式失败。是否有人对发生的事情有任何想法,还是应该提交错误报告?谢谢!
[root@cloud ~]# cat /etc/centos-release
CentOS Linux release 7.5.1804 (Core)
[root@cloud ~]# eval `clcadmin-assume-system-credentials`
[root@cloud ~]# euserv-register-service -t user-api -h 10.0.0.2 --debugger ufs-10.0.0.2
2018-10-03 14:16:29,503 DEBUG RegisterService parsed arguments from CLI: {'Name': 'ufs-10.0.0.2', 'security_token': None, 'url': None, 'region': None, 'Partition': None, 'Host': '10.0.0.2', 'key_id': None, 'secret_key': None, 'Type': 'user-api', 'Port': None}
2018-10-03 14:16:29,503 INFO Config finding global option default-region
2018-10-03 14:16:29,503 INFO Config novalue for default-region
2018-10-03 14:16:29,504 INFO Config finding global option max-retries
2018-10-03 14:16:29,504 INFO Config novalue for max-retries
2018-10-03 14:16:29,504 INFO Config finding global option timeout
2018-10-03 14:16:29,504 INFO Config novalue for timeout
2018-10-03 14:16:29,504 DEBUG HmacV4Auth using auth info from environment
2018-10-03 14:16:29,504 INFO RegisterService parameters: {'Host': '10.0.0.2', 'Version': 'eucalyptus', 'Name': 'ufs-10.0.0.2', 'Action': 'RegisterService', 'Type': 'user-api', 'Port': '8773'}
2018-10-03 14:16:29,504 DEBUG RegisterService sending flattened parameters as form data
2018-10-03 14:16:29,504 INFO Bootstrap sending request (attempt 1 of 3)
2018-10-03 14:16:29,505 DEBUG HmacV4Auth payload hash: [redacted]
2018-10-03 14:16:29,505 DEBUG HmacV4Auth scope: 20181003/undefined-9965/bootstrap/aws4_request
2018-10-03 14:16:29,506 DEBUG HmacV4Auth canonical URI: /services/Empyrean
2018-10-03 14:16:29,506 DEBUG HmacV4Auth canonical query:
2018-10-03 14:16:29,506 DEBUG HmacV4Auth canonical headers: ['accept:*/*', 'accept-encoding:gzip, deflate', 'content-length:97', 'content-type:application/x-www-form-urlencoded', 'host:127.0.0.1:8773', 'x-amz-content-sha256:[redacted]', 'x-amz-date:20181003T181629Z']
2018-10-03 14:16:29,506 DEBUG HmacV4Auth signed headers: accept;accept-encoding;content-length;content-type;host;x-amz-content-sha256;x-amz-date
2018-10-03 14:16:29,506 DEBUG HmacV4Auth canonical request: 'POST\n/services/Empyrean\n\naccept:*/*\naccept-encoding:gzip, deflate\ncontent-length:97\ncontent-type:application/x-www-form-urlencoded\nhost:127.0.0.1:8773\nx-amz-content-sha256:[redacted]v\nx-amz-date:20181003T181629Z\n\naccept;accept-encoding;content-length;content-type;host;x-amz-content-sha256;x-amz-date\n67cd38537793ad3c591fbf02b2e3593b8627af7e40de522d3495c25def205b5d'
2018-10-03 14:16:29,506 DEBUG HmacV4Auth string to sign: 'AWS4-HMAC-SHA256\n20181003T181629Z\n20181003/undefined-9965/bootstrap/aws4_request\[redacted]'
2018-10-03 14:16:29,506 DEBUG HmacV4Auth signature: e88432a8cc7211bb1f2cced52fd6e0b6e11cf80d733053b028da6b1d2c4147c2
2018-10-03 14:16:29,506 DEBUG HmacV4Auth signed headers: accept;accept-encoding;content-length;content-type;host;x-amz-content-sha256;x-amz-date
2018-10-03 14:16:29,507 DEBUG Bootstrap request method: POST
2018-10-03 14:16:29,507 DEBUG Bootstrap request url: http://127.0.0.1:8773/services/Empyrean
2018-10-03 14:16:29,507 DEBUG Bootstrap request header: Accept: */*
2018-10-03 14:16:29,507 DEBUG Bootstrap request header: Accept-Encoding: gzip, deflate
2018-10-03 14:16:29,507 DEBUG Bootstrap request header: Authorization: AWS4-HMAC-SHA256 Credential=[redacted]/20181003/undefined-9965/bootstrap/aws4_request, SignedHeaders=accept;accept-encoding;content-length;content-type;host;x-amz-content-sha256;x-amz-date, Signature=[redacted]
2018-10-03 14:16:29,507 DEBUG Bootstrap request header: Connection: keep-alive
2018-10-03 14:16:29,507 DEBUG Bootstrap request header: Content-Length: 97
2018-10-03 14:16:29,507 DEBUG Bootstrap request header: Content-Type: application/x-www-form-urlencoded
2018-10-03 14:16:29,507 DEBUG Bootstrap request header: Host: 127.0.0.1:8773
2018-10-03 14:16:29,507 DEBUG Bootstrap request header: User-Agent: eucalyptus-admin/4.4.4 (CPython 2.7.5; Linux 3.10.0-862.14.4.el7.x86_64; x86_64) requestbuilder/0.7.1 requests/2.14.2
2018-10-03 14:16:29,507 DEBUG Bootstrap request header: X-Amz-Content-SHA256: [redacted]
2018-10-03 14:16:29,507 DEBUG Bootstrap request header: X-Amz-Date: 20181003T181629Z
2018-10-03 14:16:29,507 DEBUG Bootstrap request data: Action: RegisterService
2018-10-03 14:16:29,508 DEBUG Bootstrap request data: Host: 10.0.0.2
2018-10-03 14:16:29,508 DEBUG Bootstrap request data: Name: ufs-10.0.0.2
2018-10-03 14:16:29,508 DEBUG Bootstrap request data: Port: 8773
2018-10-03 14:16:29,508 DEBUG Bootstrap request data: Type: user-api
2018-10-03 14:16:29,508 DEBUG Bootstrap request data: Version: eucalyptus
euserv-register-service: error: get_environ_proxies() takes exactly 2 arguments (1 given)
> /usr/lib/python2.7/site-packages/requestbuilder/service.py(177)send_request()
-> proxies = requests.utils.get_environ_proxies(url)
@sjones:谢谢。有趣。我使用普通的CentOS7 Everything ISO进行构建,但使用“最小安装”,仅按照Euca安装文档中所述完全安装软件包。看起来我的python-requests版本来自这里吗?罪魁祸首是罪魁祸首:
[root @ cloud〜]#yum提供python请求 加载的插件:最快的镜像,优先级 从缓存的主机文件加载镜像速度 *基础:centos.den.host-engine.com * epel:fedora-epel.mirror.iweb.com *其他:centos.servint.com *更新:centos.den.host-engine.com python-requests-2.6.0-1.el7_1.noarch:使用Python编写的针对人类的HTTP库 回购:基本
python2-requests-2.14.2-1.el7.noarch:适用于人类的HTTP库,用Python编写 回购:centos-openstack-queens 来自: 提供:python-requests = 2.14.2-1.el7
python2-requests-2.14.2-1.el7.noarch:适用于人类的HTTP库,用Python编写 回购:@ centos-openstack-queens 来自: 提供:python-requests = 2.14.2-1.el7
因此,我将重新进行安装,但首先要禁用所有这些额外的存储库,然后仅从基本存储库重新安装软件包。希望Euca Install在其他任何地方都不需要它们:
[root @ cloud yum.repos.d]#ls CentOS-Base.repo CentOS-Debuginfo.repo CentOS-OpenStack-queens.repo CentOS-Storage-common.repo epel.repo eucalyptus.repo CentOS-Ceph-Luminous.repo CentOS-fasttrack.repo CentOS-QEMU-EV.repo CentOS-Vault.repo epel-testing.repo midonet.repo CentOS-CR.repo CentOS-Media.repo CentOS-Sources.repo datastax.repo euca2ools.repo
答案 0 :(得分:1)
您似乎已安装请求2.14.2,但此版本:
http://mirror.centos.org/centos/7.5.1804/os/x86_64/Packages/python-requests-2.6.0-1.el7_1.noarch.rpm
预期用于CentOS 7.5。