[SM] contrail-docs package not loaded while provisioning

Bug #1712261 reported by Pulkit Tandon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R4.0
Fix Committed
High
Santosh Gupta
Trunk
Fix Committed
High
Santosh Gupta

Bug Description

Continuous build : 4.0.1.0-15.el7.centos
Centos networking provisioning

Issue:
While using contrail-stats command, observed that many tables were not present.
The command failed to fetch stats for AnalyticsApiStats.api_stats

root@nodeg12(analytics):/# contrail-stats --table AnalyticsApiStats.api_stats --select "name" "api_stats.useragent" "AVG(api_stats.response_size_bytes)" --where name="*"
usage: contrail-stats [-h] [--admin-user ADMIN_USER]
                      [--admin-password ADMIN_PASSWORD]
                      [--conf-file CONF_FILE]
                      [--analytics-api-ip ANALYTICS_API_IP]
                      [--analytics-api-port ANALYTICS_API_PORT]
                      [--start-time START_TIME] [--end-time END_TIME]
                      [--last LAST]
                      [--table {FieldNames.fields,FieldNames.fieldi,TelemetryStream.enterprise.juniperNetworks.fabricMessageExt.edges.class_stats.transmit_counts,UFlowData.flow,NodeStatus.disk_usage_info,NodeStatus.disk_usage_info,NodeStatus.disk_usage_info,NodeStatus.disk_usage_info,NodeStatus.disk_usage_info,NodeStatus.process_mem_cpu_usage,NodeStatus.process_mem_cpu_usage,NodeStatus.process_mem_cpu_usage,NodeStatus.process_mem_cpu_usage,NodeStatus.process_mem_cpu_usage,NodeStatus.system_mem_usage,NodeStatus.system_mem_usage,NodeStatus.system_mem_usage,NodeStatus.system_mem_usage,NodeStatus.system_mem_usage,NodeStatus.system_cpu_usage,NodeStatus.system_cpu_usage,NodeStatus.system_cpu_usage,NodeStatus.system_cpu_usage,NodeStatus.system_cpu_usage,NodeStatus.disk_usage_info,NodeStatus.process_mem_cpu_usage,NodeStatus.system_mem_usage,NodeStatus.system_cpu_usage}]
                      [--dtable DTABLE] [--select SELECT [SELECT ...]]

While debugging, observed that there is no "stats_schema" directory at the following path:
ls -al /usr/lib/python2.7/site-packages/opserver

Also, the following folder is supposed to have multiple .json and .htmml files, but its empty :
root@nodeg12(analytics):/# ls -la /usr/share/doc/contrail-docs/html/messages/
total 8
drwxr-xr-x. 2 root root 4096 Aug 7 19:43 .
drwxr-xr-x. 3 root root 4096 Aug 15 00:51 ..
root@nodeg12(analytics):/#

Looks like contrail-docs package has not been installed.

Pulkit Tandon (pulkitt)
information type: Proprietary → Public
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/34888
Submitter: Santosh Gupta (<email address hidden>)

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

Review in progress for https://review.opencontrail.org/34889
Submitter: Santosh Gupta (<email address hidden>)

Revision history for this message
Santosh Gupta (sangupta) wrote :

Awaiting the below pkg to be installed onto CI/build machines to pass CI.
python-six-1.9.0-2.el7.noarch.rpm

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

Review in progress for https://review.opencontrail.org/34888
Submitter: Santosh Gupta (<email address hidden>)

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

Review in progress for https://review.opencontrail.org/34889
Submitter: Santosh Gupta (<email address hidden>)

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

Reviewed: https://review.opencontrail.org/34889
Committed: http://github.com/Juniper/contrail-packages/commit/eb360a70f635771aaa6ca31cc5cb8ff517d8d4e9
Submitter: Zuul (<email address hidden>)
Branch: R4.0

commit eb360a70f635771aaa6ca31cc5cb8ff517d8d4e9
Author: Santosh Gupta <email address hidden>
Date: Thu Aug 24 15:20:06 2017 -0700

Add centos support for contrail-cli + move stats_schema to analytics pkg

Removed python-six package dependancy.
Add centos support for following fixes
- bug#1630204
- bug#1639741

Change-Id: Ibb7eb824f3d45049e42a3b0e81e3dd39b173f86d
Closes-Bug: #1712261

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

Reviewed: https://review.opencontrail.org/34888
Committed: http://github.com/Juniper/contrail-packages/commit/c878f4ba2a7c2dfcc19e9bd2e5e913ac5ae8dedc
Submitter: Zuul (<email address hidden>)
Branch: master

commit c878f4ba2a7c2dfcc19e9bd2e5e913ac5ae8dedc
Author: Santosh Gupta <email address hidden>
Date: Thu Aug 24 15:20:06 2017 -0700

Add centos support for contrail-cli + move stats_schema to analytics pkg

Removed python-six package dependancy.
Add centos support for following fixes
- bug#1630204
- bug#1639741

Change-Id: Ibb7eb824f3d45049e42a3b0e81e3dd39b173f86d
Closes-Bug: #1712261

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.