Unable to create the Tags from the contrail web UI

Bug #1723924 reported by Venkatesh Velpula
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R4.1
Fix Released
Critical
Siva Bavanasi
Trunk
Fix Released
Critical
Siva Bavanasi

Bug Description

build-id :17(4.1.0.0-17)
build type :continuous build
DISTRO :Ubuntu 14.04.5 LTS
SKU :Mitaka

Setup
===================================================

controller+openstack: nodec20
compute Node : nodec21, nodea4

====================================================

while trying to create the Tags from the Web UI it throws an error "Error: Tag must be created with a type and a value" and tags creation fails.

https://github.com/Juniper/contrail-controller/commit/e82ac65e7f41b53eb6cd344d876dc4a560608f38#diff-d8b7ebec0e388647ea264e184146c6fd

tag-type seems to be changed to tag-type-name in the recent builds .

Siva helped with a patch for the time being to proceede. but while trying to create the firewall policy , Tags are not. listed in the endpoints .

<snip of web UI log<<<<<<<<<<<,
10/16/2017 03:58:58 PM - error: URL [http://10.204.217.5:8082/tags] returned error ["Tag must be created with a type and a value"]
10/16/2017 03:58:58 PM - error: REST Server Error: Tag must be created with a type and a value
    at APIServer.retryMakeCall (/usr/src/contrail/contrail-web-core/src/serverroot/common/rest.api.js:202:13)
    at Request.<anonymous> (/usr/src/contrail/contrail-web-core/src/serverroot/common/rest.api.js:333: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)

</snip>

root@nodec20:~# docker exec -it controller "contrail-status"

== Contrail Control ==
contrail-control active
contrail-control-nodemgr active
contrail-dns active
contrail-named active

== Contrail Config ==
contrail-api:0 active
contrail-config-nodemgr active
contrail-device-manager active
contrail-schema active
contrail-svc-monitor active

== Contrail Config Database==
contrail-database: active

== Contrail Web UI ==
contrail-webui active
contrail-webui-middleware active

root@nodec20:~# docker exec -it analytics "contrail-status"
== Contrail Analytics ==
contrail-alarm-gen active
contrail-analytics-api active
contrail-analytics-nodemgr active
contrail-collector active
contrail-query-engine active
contrail-snmp-collector active
contrail-topology active

root@nodec20:~# docker exec -it analyticsdb "contrail-status"
== Contrail Database ==
contrail-database: active

contrail-database-nodemgr active
kafka active

root@nodec20:~#

Tags: ui
information type: Proprietary → Public
description: updated
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/36584
Submitter: Siva Bavanasi (<email address hidden>)

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

Review in progress for https://review.opencontrail.org/36585
Submitter: Siva Bavanasi (<email address hidden>)

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

Review in progress for https://review.opencontrail.org/36584
Submitter: Siva Bavanasi (<email address hidden>)

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

Review in progress for https://review.opencontrail.org/36636
Submitter: Siva Bavanasi (<email address hidden>)

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

Review in progress for https://review.opencontrail.org/36637
Submitter: Siva Bavanasi (<email address hidden>)

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

Reviewed: https://review.opencontrail.org/36636
Committed: http://github.com/Juniper/contrail-web-controller/commit/4fd7a0db5847740f205a5c509966ebc9d2fa3d2f
Submitter: Zuul (<email address hidden>)
Branch: R4.1

commit 4fd7a0db5847740f205a5c509966ebc9d2fa3d2f
Author: Siva Kumar Bavanasi <email address hidden>
Date: Tue Oct 17 11:16:56 2017 +0530

Fixed the issue 'Unable to create the Tags'

There is a recent schema change for tags, tag_type is changed to
tag_type_name.So UI is breaking and fixed it.

Change-Id: I2d2731061a23ee96129c2eb847fbcb8e3295d55b
Closes-bug: #1723924

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

Reviewed: https://review.opencontrail.org/36637
Committed: http://github.com/Juniper/contrail-web-core/commit/e5847b3c7c48a336d68840dc01be89c78e831c91
Submitter: Zuul (<email address hidden>)
Branch: R4.1

commit e5847b3c7c48a336d68840dc01be89c78e831c91
Author: Siva Kumar Bavanasi <email address hidden>
Date: Tue Oct 17 11:19:56 2017 +0530

Fixed the issue 'Unable to create the Tags'

There is a recent schema change for tags, tag_type is changed to
tag_type_name.So UI is breaking and fixed it.

Change-Id: I9e511c9778d19046553eb993791d13e996365784
Partial-bug: #1723924

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

Reviewed: https://review.opencontrail.org/36584
Committed: http://github.com/Juniper/contrail-web-controller/commit/914c8a14a102157f7a41737c22ebd73d77d6b741
Submitter: Zuul (<email address hidden>)
Branch: master

commit 914c8a14a102157f7a41737c22ebd73d77d6b741
Author: Siva Kumar Bavanasi <email address hidden>
Date: Tue Oct 17 11:16:56 2017 +0530

Fixed the issue 'Unable to create the Tags'

There is a recent schema change for tags, tag_type is changed to
tag_type_name.So UI is breaking and fixed it.

Change-Id: I2d2731061a23ee96129c2eb847fbcb8e3295d55b
Closes-bug: #1723924

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

Reviewed: https://review.opencontrail.org/36585
Committed: http://github.com/Juniper/contrail-web-core/commit/564b68b18857e8f9a4a749db97ccfa37575b357a
Submitter: Zuul (<email address hidden>)
Branch: master

commit 564b68b18857e8f9a4a749db97ccfa37575b357a
Author: Siva Kumar Bavanasi <email address hidden>
Date: Tue Oct 17 11:19:56 2017 +0530

Fixed the issue 'Unable to create the Tags'

There is a recent schema change for tags, tag_type is changed to
tag_type_name.So UI is breaking and fixed it.

Change-Id: I9e511c9778d19046553eb993791d13e996365784
Partial-bug: #1723924

Revision history for this message
Venkatesh Velpula (vvelpula) wrote :

Verified on the latest newton image and it works fine

 root@nodec19:~# contrail-version
Package Version Build-ID | Repo | Package Name
-------------------------------------- ------------------------------ ----------------------------------
contrail-heat 4.1.0.0-22 22
contrail-nova-networkapi 4.1.0.0-22 22
contrail-openstack 4.1.0.0-22 22
contrail-openstack-dashboard 4.1.0.0-22 22
contrail-setup 4.1.0.0-22 22
contrail-utils 4.1.0.0-22 22
contrail-web-core 4.1.0.0-22 22
neutron-plugin-contrail 4.1.0.0-22 22
nova-api 2:14.0.2-0ubuntu1~cloud0.1contrail 22
nova-common 2:14.0.2-0ubuntu1~cloud0.1contrail 22
nova-conductor 2:14.0.2-0ubuntu1~cloud0.1contrail 22
nova-console 2:14.0.2-0ubuntu1~cloud0.1contrail 22
nova-consoleauth 2:14.0.2-0ubuntu1~cloud0.1contrail 22
nova-novncproxy 2:14.0.2-0ubuntu1~cloud0.1contrail 22
nova-scheduler 2:14.0.2-0ubuntu1~cloud0.1contrail 22
python-contrail 4.1.0.0-22 22
python-neutronclient 1:6.0.0-0ubuntu1~cloud0.2contrail 22
python-nova 2:14.0.2-0ubuntu1~cloud0.1contrail 22
root@nodec19:~#

root@nodec19:~# cat /etc/*release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04.2 LTS"
NAME="Ubuntu"
VERSION="16.04.2 LTS (Xenial Xerus)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 16.04.2 LTS"
VERSION_ID="16.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
VERSION_CODENAME=xenial

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.