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

45 views
Skip to first unread message

ndtroub...@gmail.com

unread,
Oct 3, 2018, 2:27:11 PM10/3/18
to Eucalyptus Users
I have a fresh install of Euca 4.4.4 following the manual install procedure NOT the fast-start.  I've successfully initiated the cloud and am trying to register UFS with the CLC, which is on the same server/localhost.  Registration fails with a python error about proxies.  Registering any other services fails in the same way.  Does anyone have any ideas on what is going on or should I file a bug report?  Thanks!

[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)

steve...@appscale.com

unread,
Oct 4, 2018, 4:16:51 PM10/4/18
to Eucalyptus Users


It looks like you have requests 2.14.2 installed, but I think this
version:

http://mirror.centos.org/centos/7.5.1804/os/x86_64/Packages/python-requests-2.6.0-1.el7_1.noarch.rpm

is expected.

Steve


On Wednesday, October 3, 2018 at 11:27:11 AM UTC-7, ndtroub...@gmail.com wrote:
I have a fresh install of Euca 4.4.4 following the manual install procedure NOT the fast-start.  I've successfully initiated the cloud and am trying to register UFS with the CLC, which is on the same server/localhost.  Registration fails with a python error about proxies.  Registering any other services fails in the same way.  Does anyone have any ideas on what is going on or should I file a bug report?  Thanks!

[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,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

... 

ndtroub...@gmail.com

unread,
Oct 16, 2018, 4:01:34 PM10/16/18
to Eucalyptus Users
Yes that was it.  Thank you!
Reply all
Reply to author
Forward
0 new messages