Comment 4 for bug 1860176

Revision history for this message
Thomas Gao (tgao) wrote :

After the fix changes are pushed to the testing machine:

1. Restart Services

[sysadmin@controller-0 ~(keystone_admin)]$ sudo sm-restart-safe service sysinv-inv
Service (sysinv-inv) is restarting.
[sysadmin@controller-0 ~(keystone_admin)]$ sudo sm-restart-safe service sysinv-conductor
Service (sysinv-conductor) is restarting.

2. Make API call again (via modified CLI code)
[sysadmin@controller-0 ~(keystone_admin)]$ system --debug host-addr-show 3eeceb39-3f9d-48dd-a02e-37245300a29a
DEBUG (base:187) Making authentication request to http://192.168.204.1:5000/v3/auth/tokens
DEBUG (connectionpool:207) Starting new HTTP connection (1): 192.168.204.1
...
reply: 'HTTP/1.1 200 OK\r\n'
header: Content-Length: 6692
header: Content-Type: application/json
header: Date: Tue, 28 Jan 2020 20:13:39 GMT
{
    "addresses": [
        {
            "forihostid": null,
            "uuid": "902d9a7a-94ae-4d6c-8da2-e8f9532a9b57",
            "prefix": 24,
            "address": "192.168.204.1",
            "enable_dad": false,
            "ifname": null,
            "interface_uuid": null,
            "pool_uuid": "333e752d-5299-4b9f-adf4-5114ef50ef7c"
        },
        {
            "forihostid": 1,
            "uuid": "96d1e043-2cd8-4a9f-ae7c-a94ada3fd75c",
            "prefix": 24,
            "address": "192.168.204.2",
            "enable_dad": false,
            "ifname": "mgmt0",
            "interface_uuid": "11a9f70f-7eed-427a-acf2-80f6e12a11cc",
            "pool_uuid": "333e752d-5299-4b9f-adf4-5114ef50ef7c"
        },
        ...
    ]
}