Comment 0 for bug 1785618

Revision history for this message
musharani (musharani) wrote : Not able to attach the floating ip under the port in new UI

contrail-build - ocata-5.0-173
contrail-command - 5.0.-173

Setup also available - control node - nodek12
contrail-command node - nodec59

Issue1: Attaching floating ip is throwing an error
--------------------------------------------------
Steps to repro:
1. Create 2 vns vn1(10.10.10.0/24) and vn2(20.20.20.0/24)
2. Bring 2 vms for each network vm1 and vm2.
3. Create a floating ip pool called vn1-pool1 for the network vn1 and share with admin project.
4. Create 5 floating ips for the pool vn1-pool1
5. Attach the floating ip (ex:10.10.10.250) to the vmi of vm2(20.20.20.254)

While attaching getting the error "apiVersion for NOVA is null". And also the fixed ip of the vm2 is getting removed from port page.

Issue2: Shared project is not shown for the created floating ip pools
----------------------------------------------------------------------
Steps to repro:
1. Create a floating ip pool vn1-pool2.
Then for this pool it is not showing the shared project names.

Still we have floating ip pool option under virtual network though we have the separate menu for floating ip pool in new UI. Need to remove that option under virtual network.

Logs for issue1:
----------------
08/06/2018 05:37:32 PM - ^[[31merror^[[39m: URL [http://10.204.216.232:8082/ref-update] returned error ["Bad Request: type/uuid/ref-type/operation is null: floating-ip, None, virtual-machine-interface, ADD."]
08/06/2018 05:37:33 PM - ^[[31merror^[[39m: REST Server Error: Bad Request: type/uuid/ref-type/operation is null: floating-ip, None, virtual-machine-interface, ADD.<br>apiVersion for NOVA is NULL
    at APIServer.retryMakeCall (/usr/src/contrail/contrail-web-core/src/serverroot/common/rest.api.js:203:13)
    at Request.<anonymous> (/usr/src/contrail/contrail-web-core/src/serverroot/common/rest.api.js:334:18)
    at Request.emit (events.js:98:17)
    at Request.mixin._fireSuccess (/usr/lib64/node_modules/restler/lib/restler.js:250:10)
    at /usr/lib64/node_modules/restler/lib/restler.js:181:20
    at IncomingMessage.parsers.auto (/usr/lib64/node_modules/restler/lib/restler.js:414:7)
    at Request.mixin._encode (/usr/lib64/node_modules/restler/lib/restler.js:218:29)
    at /usr/lib64/node_modules/restler/lib/restler.js:177:16
    at Request.mixin._decode (/usr/lib64/node_modules/restler/lib/restler.js:193:7)
    at IncomingMessage.<anonymous> (/usr/lib64/node_modules/restler/lib/restler.js:170:14)
TypeError: Failed to parse JSON body: Cannot call method 'substring' of undefined
    at cropIfCompute (/usr/src/contrail/contrail-web-controller/webroot/config/networking/port/api/portsconfig.api.js:1036:19)
    at attachDeviceOwner (/usr/src/contrail/contrail-web-controller/webroot/config/networking/port/api/portsconfig.api.js:1122:12)
    at /usr/src/contrail/contrail-web-controller/webroot/config/networking/port/api/portsconfig.api.js:971:13
    at /usr/src/contrail/contrail-web-controller/webroot/config/networking/port/api/portsconfig.api.js:1086:17
    at /usr/src/contrail/contrail-web-controller/webroot/config/networking/port/api/portsconfig.api.js:561:9
    at /usr/src/contrail/contrail-web-core/src/serverroot/common/computemanager.api.js:129:9
    at /usr/src/contrail/contrail-web-core/src/serverroot/orchestration/plugins/openstack/nova.api.js:819:17
    at Object.getServiceAPIVersionByReqObj (/usr/src/contrail/contrail-web-core/src/serverroot/orchestration/plugins/openstack/openstack.api.js:249:9)
    at /usr/src/contrail/contrail-web-core/src/serverroot/orchestration/plugins/openstack/nova.api.js:813:16
    at /usr/src/contrail/contrail-web-core/src/serverroot/orchestration/plugins/openstack/keystone.api.js:1367:9
08/06/2018 05:37:33 PM - ^[[31merror^[[39m: URL [http://10.204.216.232:5000/v3/auth/tokens] returned error [{}]
08/06/2018 05:37:33 PM - ^[[31merror^[[39m: Error in getting token object for tenant: admin

http.js:690
    throw new Error('Can\'t set headers after they are sent.');
    ^
Error: Can't set headers after they are sent.
    at ServerResponse.OutgoingMessage.setHeader (http.js:690:11)
    at ServerResponse.res.setHeader (/usr/lib64/node_modules/express/node_modules/connect/lib/patch.js:59:22)
    at ServerResponse.res.set.res.header (/usr/lib64/node_modules/express/lib/response.js:512:10)
    at ServerResponse.res.cookie (/usr/lib64/node_modules/express/lib/response.js:582:8)
    at ServerResponse.res.clearCookie (/usr/lib64/node_modules/express/lib/response.js:544:15)
    at redirectToLogout (/usr/src/contrail/contrail-web-core/src/serverroot/utils/common.utils.js:1238:9)
    at Object.handleAuthToAuthorizeError (/usr/src/contrail/contrail-web-core/src/serverroot/utils/common.utils.js:2303:9)
    at /usr/src/contrail/contrail-web-core/src/serverroot/orchestration/plugins/openstack/nova.api.js:809:25
    at /usr/src/contrail/contrail-web-core/src/serverroot/orchestration/plugins/openstack/keystone.api.js:1367:9
    at /usr/src/contrail/contrail-web-core/src/serverroot/orchestration/plugins/openstack/keystone.api.js:788:21
08/06/2018 05:37:33 PM - ^[[34mdebug^[[39m: The worker #7 has disconnected.
08/06/2018 05:37:33 PM - ^[[31merror^[[39m: The worker #7 has exited with exit code 8