compute manager ip is not getting populated in config.global.js file

Bug #1766511 reported by musharani
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R5.0
Fix Committed
High
Andrey Pavlov
Trunk
Fix Committed
High
Andrey Pavlov

Bug Description

compute manager ip is shown as 127.0.0.1(default value defined in entrypoint.sh) if you check in config.global.js file in webui docker.
But it should be openstack vip. Because of this getting "Error: apiVersion for NOVA is NULL" when opened webui Configure->Services->Service Instances page

Nova ports are listening openstack ip correctly.
[root@nodei31 contrail-web-core]# netstat -alnp | grep 8774
tcp 0 0 10.204.217.143:8774 0.0.0.0:* LISTEN -

Build: 5.0 ocata - 30
Setup details:
nodei31 - root/c0ntrail123

Work Around: This issue is gone after changing the ip 127.0.0.1 to openstack ip in entrypoint.sh and restarting the webui docker

Tags: provisioning
Revision history for this message
musharani (musharani) wrote :
description: updated
musharani (musharani)
description: updated
musharani (musharani)
description: updated
Revision history for this message
Andrey Pavlov (apavlov-e) wrote :

code from entrypoint.sh:

config.computeManager = {};
config.computeManager.ip = "${computeManager_ip:-127.0.0.1}";
config.computeManager.port = "${computeManager_port:-8774}";
config.computeManager.authProtocol = "${computeManager_authProtocol:-http}";
config.computeManager.apiVersion = ${computeManager_apiVersion:-['v1.1', 'v2']};
config.computeManager.strictSSL = ${computeManager_strictSSL:-false};
config.computeManager.ca = "$computeManager_ca";

So you can add all of these to environment.

Changed in juniperopenstack:
status: New → Invalid
status: Invalid → In Progress
assignee: nobody → Andrey Pavlov (apavlov-e)
Revision history for this message
Andrey Pavlov (apavlov-e) wrote :

contrail-ansible-deployer must be fixed. it must pass nova_ip to contrail-env.

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/42460
Submitter: Andrey Pavlov (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R5.0

Review in progress for https://review.opencontrail.org/42461
Submitter: Andrey Pavlov (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/42460
Submitter: Andrey Pavlov (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R5.0

Review in progress for https://review.opencontrail.org/42461
Submitter: Andrey Pavlov (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/42460
Submitter: Andrey Pavlov (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R5.0

Review in progress for https://review.opencontrail.org/42461
Submitter: Andrey Pavlov (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/42461
Committed: http://github.com/Juniper/contrail-ansible-deployer/commit/674b85a00500938b7b0ae0528264972f77c0e609
Submitter: Zuul v3 CI (<email address hidden>)
Branch: R5.0

commit 674b85a00500938b7b0ae0528264972f77c0e609
Author: Andrey Pavlov <email address hidden>
Date: Tue Apr 24 14:35:23 2018 +0300

evalutate OpenStack IP-s if they are not passed

Change-Id: If84399144fa764bbd51c02acabcf03fe3ed581ed
Closes-Bug: #1766511

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/42460
Committed: http://github.com/Juniper/contrail-ansible-deployer/commit/90dc0bc561d9823846f6f02940dda734bf6438f2
Submitter: Zuul v3 CI (<email address hidden>)
Branch: master

commit 90dc0bc561d9823846f6f02940dda734bf6438f2
Author: Andrey Pavlov <email address hidden>
Date: Tue Apr 24 14:35:23 2018 +0300

evalutate OpenStack IP-s if they are not passed

Change-Id: If84399144fa764bbd51c02acabcf03fe3ed581ed
Closes-Bug: #1766511

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.