euserv 注册服务 error/bug? CentOS 7.5 上的 Euca 4.4.4

euserv-register-service error/bug? Euca 4.4.4 on CentOS 7.5

我按照手动安装程序而不是快速启动程序全新安装了 Euca 4.4.4。我已成功启动云,并正在尝试向 CLC 注册 UFS,后者位于同一 server/localhost 上。注册失败并出现有关代理的 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 版本来自这里? Everyting ISO 是罪魁祸首:

[root@cloud ~]# yum 提供 python-requests 加载的插件:fastestmirror、priorities 从缓存的主机文件加载镜像速度 * 基数: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 :HTTP 库,用 Python 编写,供人类使用 回购:基础

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 安装在其他任何地方都不需要它们:

[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

看起来你安装了 requests 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。