contrail-logs raises valueError

Bug #1686164 reported by Ignatious Johnson Christopher
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R3.2
Fix Committed
High
mkheni
Trunk
Fix Committed
High
mkheni

Bug Description

One of the CI job filed with following traceback during collecting contrail-logs
https://jenkins.opencontrail.org/job/ci-contrail-controller-systest-ubuntu14-mitaka/6515/console

2017-04-25 00:56:27 2017-04-25 00:56:26:527108: Node ci-oc-subslave-ubuntu-10-84-58-19-1 is up for 22m. Collecting Cassandra logs for 22m
2017-04-25 00:56:27 2017-04-25 00:56:26:527225: [root@192.168.0.95] sudo: /usr/bin/contrail-logs --last 22m --all --admin-user admin --admin-password c0ntrail123 -o /var/log/cassandra_log_ci-oc-subslave-ubuntu-10-84-58-19-1_2017_04_25_00_56_26.log
2017-04-25 00:56:27 2017-04-25 00:56:26:527488: [root@192.168.0.95] out: Traceback (most recent call last):
2017-04-25 00:56:27 2017-04-25 00:56:27:194893: [root@192.168.0.95] out: File "/usr/bin/contrail-logs", line 9, in <module>
2017-04-25 00:56:27 2017-04-25 00:56:27:195025: [root@192.168.0.95] out: load_entry_point('opserver==0.1dev', 'console_scripts', 'contrail-logs')()
2017-04-25 00:56:27 2017-04-25 00:56:27:195136: [root@192.168.0.95] out: File "/usr/lib/python2.7/dist-packages/opserver/log.py", line 744, in main
2017-04-25 00:56:27 2017-04-25 00:56:27:195256: [root@192.168.0.95] out: querier.run()
2017-04-25 00:56:27 2017-04-25 00:56:27:196883: [root@192.168.0.95] out: File "/usr/lib/python2.7/dist-packages/opserver/log.py", line 82, in run
2017-04-25 00:56:27 2017-04-25 00:56:27:197037: [root@192.168.0.95] out: while int(end_time) - int(start_time) > 0:
2017-04-25 00:56:27 2017-04-25 00:56:27:197139: [root@192.168.0.95] out: ValueError: invalid literal for int() with base 10: 'now'
2017-04-25 00:56:27 2017-04-25 00:56:27:198659: [root@192.168.0.95] out:
2017-04-25 00:56:27 2017-04-25 00:56:27:230642:
2017-04-25 00:56:27 2017-04-25 00:56:27:233246: Warning: sudo() received nonzero return code 1 while executing '/usr/bin/contrail-logs --last 22m --all --admin-user admin --admin-password c0ntrail123 -o /var/log/cassandra_log_ci-oc-subslave-ubuntu-10-84-58-19-1_2017_04_25_00_56_26.log'!
2017-04-25 00:56:27 2017-04-25 00:56:27:233246:

Changed in juniperopenstack:
milestone: none → r4.0
summary: - conrtail-logs raises valueError
+ contrail-logs raises valueError
Raj Reddy (rajreddy)
tags: added: blocker
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/30740
Submitter: mkheni (<email address hidden>)

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

Review in progress for https://review.opencontrail.org/30741
Submitter: mkheni (<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/30740
Submitter: mkheni (<email address hidden>)

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

Review in progress for https://review.opencontrail.org/30741
Submitter: mkheni (<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/30740
Submitter: mkheni (<email address hidden>)

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

Review in progress for https://review.opencontrail.org/30741
Submitter: mkheni (<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/30740
Submitter: mkheni (<email address hidden>)

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

Review in progress for https://review.opencontrail.org/30741
Submitter: mkheni (<email address hidden>)

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

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

commit 884b70c1759bf72b8d14bbe46f9de200bc814916
Author: mkheni <email address hidden>
Date: Tue Apr 25 11:16:06 2017 -0700

Fixes the issue where 'now' in time string does not get converted into UTC formet if 'last' argument is provided to the contrail-logs.

Change-Id: Ibf38f1d8ae1873540a5b2967a70a03f8354b1d18
closes-bug: #1686164

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

Reviewed: https://review.opencontrail.org/30741
Committed: http://github.com/Juniper/contrail-controller/commit/7b7f3451a8e08afbe8a96e20ef827775da5181b4
Submitter: Zuul (<email address hidden>)
Branch: R3.2

commit 7b7f3451a8e08afbe8a96e20ef827775da5181b4
Author: mkheni <email address hidden>
Date: Tue Apr 25 11:16:06 2017 -0700

Fixes the issue where 'now' in time string does not get converted into UTC formet if 'last' argument is provided to the contrail-logs.

Change-Id: Ibf38f1d8ae1873540a5b2967a70a03f8354b1d18
closes-bug: #1686164

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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