Comment 5 for bug 1827206

Revision history for this message
wanghejun (wanghejun) wrote :

Hello,
  With the help of Allain Legacy, I have reproduced bugs in the latest starlingx (2019/06/26) environment. Currently, the script code is parsed and debugged mainly according to the log. The scope of the bug may be a bit large and takes a little time.
  If you have good suggestions, welcome to share.
  The following is the log of the bug reproduction.

[sysadmin@controller-0 ~(keystone_admin)]$ system --debug certificate-install -m dummy mykey.pem
DEBUG (base:187) Making authentication request to http://192.178.204.2:5000/v3/auth/tokens
DEBUG (connectionpool:207) Starting new HTTP connection (1): 192.178.204.2
DEBUG (connectionpool:395) http://192.178.204.2:5000 "POST /v3/auth/tokens HTTP/1.1" 201 4540
DEBUG (base:192) {"token": {"is_domain": false, "methods": ["password"], "roles": [{"id": "02cf8679e4bd4feebde070949562670f", "name": "reader"}, {"id": "97e6164b985f44b3899ad8022de3eb60", "name": "member"}, {"id": "09115934acf44204b3c4df69742c6286", "name": "admin"}], "expires_at": "2019-07-05T08:42:27.000000Z", "project": {"domain": {"id": "default", "name": "Default"}, "id": "0c2bf514002948238cbecadda2440dce", "name": "admin"}, "catalog": [{"endpoints": [{"url": "http://10.10.10.3:18002", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "646e43841db1442f89e792bfee0d1f03"}, {"url": "http://192.178.204.2:18002", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "eb616ad932e14bef86a5bfda895187d3"}, {"url": "http://192.178.204.2:18002", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "76017e49ff524950a8653cd189e1ca7b"}], "type": "faultmanagement", "id": "962af3c06eab47c385eeb74f6128e721", "name": "fm"}, {"endpoints": [{"url": "http://10.10.10.3:9311", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "35a27d0482c14ce99e0a23d25c8a963d"}, {"url": "http://192.178.204.2:9311", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "1fae0f3821514985943d302d47d1780b"}, {"url": "http://192.178.204.2:9311", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "fd2f04cb9ef34c0d93763030624541a6"}], "type": "key-manager", "id": "3bd317389fd14168adbbfdbc9aa60f1c", "name": "barbican"}, {"endpoints": [{"url": "http://10.10.10.3:5000/v3", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "d14134cd59b146ad814f404189ad12de"}, {"url": "http://192.178.204.2:5000/v3", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "5a2368d1c33e4c88bf9fd6b92a14feb5"}, {"url": "http://192.178.204.2:5000/v3", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "bdf089a0187440b58323a181ca501e9b"}], "type": "identity", "id": "bb9aab9eafbb4ce2bbb3e1d333a15a71", "name": "keystone"}, {"endpoints": [{"url": "http://10.10.10.3:6385/v1", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "99f16d7f6ee146b5b7d39b3025a21e24"}, {"url": "http://192.178.204.2:6385/v1", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "1204f5edebe44657aa0ee9f631e6c67b"}, {"url": "http://192.178.204.2:6385/v1", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "a11c1a4e74824c619461e7aaa177a64e"}], "type": "platform", "id": "036dbd953e714d5da3890db41a4cf2a3", "name": "sysinv"}, {"endpoints": [{"url": "http://10.10.10.3:15491", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "da1e8b28e4b74bb89fad713ff0248866"}, {"url": "http://192.178.204.2:5491", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "3a8347ddb77e4b06bed986e3ab768537"}, {"url": "http://192.178.204.2:5491", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "2bb31dffcb7a4a33a5ff0b332bc0bb3e"}], "type": "patching", "id": "8528683a465a453f853e50fd69b95429", "name": "patching"}, {"endpoints": [{"url": "http://10.10.10.3:4545", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "cb19989742c242e5a841ec59de942f97"}, {"url": "http://192.178.204.2:4545", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "abfdde7d01ca4d78a148f58263bd8c70"}, {"url": "http://192.178.204.2:4545", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "f4440ad463ec43558da2dec2236306f5"}], "type": "nfv", "id": "2543ba54ba374264996934b98542da77", "name": "vim"}, {"endpoints": [{"url": "http://10.10.10.3:7777", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "ff30be93a27a4b0a8071326a19e7e952"}, {"url": "http://192.178.204.2:7777", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "f4a1f474b2a34929be5e092181872f95"}, {"url": "http://192.178.204.2:7777", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "0c72668902d64457a25765bf1e68e161"}], "type": "smapi", "id": "3b486dbbcf804ae081a38f573ad8c2f9", "name": "smapi"}], "user": {"domain": {"id": "default", "name": "Default"}, "password_expires_at": null, "name": "admin", "id": "4c79c7b32bdb4481b12445dc5805c493"}, "audit_ids": ["-8tjzr4xS1C9yiathI_47w"], "issued_at": "2019-07-05T07:42:27.000000Z"}}
WARNING: For security reasons, the original certificate,
containing the private key, will be removed,
once the private key is processed.
DEBUG (connectionpool:207) Starting new HTTP connection (1): 192.178.204.2
DEBUG (connectionpool:395) http://192.178.204.2:6385 "POST /v1/certificate/certificate_install HTTP/1.1" 200 47
Certificate mykey.pem not installed: Invalid mode: dummy

vim /var/log/sysinv-api.log:
2019-07-05 07:42:27.342 90971 INFO sysinv.api.hooks.auditor [req-4f521f2f-8e64-4076-840c-6704ee481088 4c79c7b32bdb4481b12445dc5805c493 0c2bf514002948238cbecadda2440dce] 192.178.204.3 "POST /v1/certificate/certificate_install HTTP/1.0" status: 200 len: 47 time: 0.000790119171143 host:192.178.204.2:6385 agent:python-requests/2.21.0 user: admin tenant: admin domain: Default