fab restore data fails with key error tsn

Bug #1563640 reported by Vinoth Kannan Ganapathy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R2.20
Fix Committed
High
aswani kumar
R2.21.x
Fix Committed
High
aswani kumar
R2.22.x
Fix Committed
High
aswani kumar
R3.0
Fix Committed
High
aswani kumar
Trunk
Fix Committed
High
aswani kumar

Bug Description

fab restore_data fails with the key error

2016-03-29 08:16:12:087635: File "/usr/local/lib/python2.7/dist-packages/fabric/main.py", line 743, in main
2016-03-29 08:16:12:087665: *args, **kwargs
2016-03-29 08:16:12:088113: File "/usr/local/lib/python2.7/dist-packages/fabric/tasks.py", line 415, in execute
2016-03-29 08:16:12:088143: results['<local-only>'] = task.run(*args, **new_kwargs)
2016-03-29 08:16:12:088446: File "/usr/local/lib/python2.7/dist-packages/fabric/tasks.py", line 171, in run
2016-03-29 08:16:12:088465: return self.wrapped(*args, **kwargs)
2016-03-29 08:16:12:088512: File "/opt/contrail/utils/fabfile/tasks/backup_restore.py", line 57, in restore_data
2016-03-29 08:16:12:088529: execute(restore_nova_instance_data)
2016-03-29 08:16:12:088782: File "/usr/local/lib/python2.7/dist-packages/fabric/tasks.py", line 415, in execute
2016-03-29 08:16:12:088800: results['<local-only>'] = task.run(*args, **new_kwargs)
2016-03-29 08:16:12:088870: File "/usr/local/lib/python2.7/dist-packages/fabric/tasks.py", line 171, in run
2016-03-29 08:16:12:088886: return self.wrapped(*args, **kwargs)
2016-03-29 08:16:12:088930: File "/opt/contrail/utils/fabfile/tasks/backup_restore.py", line 657, in restore_nova_instance_data
2016-03-29 08:16:12:088945: execute(stop_nova_openstack_compute)
2016-03-29 08:16:12:089147: File "/usr/local/lib/python2.7/dist-packages/fabric/tasks.py", line 375, in execute
2016-03-29 08:16:12:089165: multiprocessing
2016-03-29 08:16:12:089241: File "/usr/local/lib/python2.7/dist-packages/fabric/tasks.py", line 271, in _execute
2016-03-29 08:16:12:089257: return task.run(*args, **kwargs)
2016-03-29 08:16:12:089310: File "/usr/local/lib/python2.7/dist-packages/fabric/tasks.py", line 171, in run
2016-03-29 08:16:12:089325: return self.wrapped(*args, **kwargs)
2016-03-29 08:16:12:089368: File "/usr/local/lib/python2.7/dist-packages/fabric/decorators.py", line 53, in inner_decorator
2016-03-29 08:16:12:089384: return func(*args, **kwargs)
2016-03-29 08:16:12:089528: File "/opt/contrail/utils/fabfile/tasks/services.py", line 386, in stop_nova_openstack_compute
2016-03-29 08:16:12:089545: if env.host_string not in env.roledefs['tsn'] :
2016-03-29 08:16:12:089837: KeyError: 'tsn'
2016-03-29 08:16:12:089889:

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

Review in progress for https://review.opencontrail.org/18889
Submitter: aswani kumar (<email address hidden>)

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

Review in progress for https://review.opencontrail.org/18890
Submitter: aswani kumar (<email address hidden>)

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

Review in progress for https://review.opencontrail.org/18891
Submitter: aswani kumar (<email address hidden>)

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

Review in progress for https://review.opencontrail.org/18893
Submitter: aswani kumar (<email address hidden>)

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

Review in progress for https://review.opencontrail.org/18894
Submitter: aswani kumar (<email address hidden>)

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

Review in progress for https://review.opencontrail.org/18890
Submitter: aswani kumar (<email address hidden>)

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

Review in progress for https://review.opencontrail.org/18894
Submitter: aswani kumar (<email address hidden>)

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

Review in progress for https://review.opencontrail.org/18891
Submitter: aswani kumar (<email address hidden>)

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

Review in progress for https://review.opencontrail.org/18893
Submitter: aswani kumar (<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/18889
Submitter: aswani kumar (<email address hidden>)

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

Reviewed: https://review.opencontrail.org/18891
Committed: http://github.org/Juniper/contrail-fabric-utils/commit/8b5b94cb9b09541e4274d71a6403c7a64d55c519
Submitter: Zuul
Branch: R2.21.x

commit 8b5b94cb9b09541e4274d71a6403c7a64d55c519
Author: Aswani Kumar Reddy G <email address hidden>
Date: Wed Mar 30 23:25:19 2016 +0530

fix for cassandra temporary system tables needs special handling and error in handling tsn nodes

1)added fix to skip backup and restore instances when there are tsn and tor nodes
2)skip start and stop of nova compute reboot for tsn and tor nodes

Change-Id: Iaaa63c89eb21e70356a68eb8d7d88140636f13f5
Closes-Bug: #1563640
Closes-Bug: #1564141

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

Reviewed: https://review.opencontrail.org/18889
Committed: http://github.org/Juniper/contrail-fabric-utils/commit/f6fe1964f1c5884c24b5ffcec9acbe18d0600457
Submitter: Zuul
Branch: master

commit f6fe1964f1c5884c24b5ffcec9acbe18d0600457
Author: Aswani Kumar Reddy G <email address hidden>
Date: Wed Mar 30 23:25:19 2016 +0530

fix for cassandra temporary system tables needs special handling and error in handling tsn nodes

1)added fix to skip backup and restore instances when there are tsn and tor nodes
2)skip start and stop of nova compute reboot for tsn and tor nodes

Change-Id: Iaaa63c89eb21e70356a68eb8d7d88140636f13f5
Closes-Bug: #1563640
Closes-Bug: #1564141

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

Reviewed: https://review.opencontrail.org/18890
Committed: http://github.org/Juniper/contrail-fabric-utils/commit/9db958ce05f80bde4a2d437befd5b2bf28c9bfbd
Submitter: Zuul
Branch: R3.0

commit 9db958ce05f80bde4a2d437befd5b2bf28c9bfbd
Author: Aswani Kumar Reddy G <email address hidden>
Date: Wed Mar 30 23:25:19 2016 +0530

fix for cassandra temporary system tables needs special handling and error in handling tsn nodes

1)added fix to skip backup and restore instances when there are tsn and tor nodes
2)skip start and stop of nova compute reboot for tsn and tor nodes

Change-Id: Iaaa63c89eb21e70356a68eb8d7d88140636f13f5
Closes-Bug: #1563640
Closes-Bug: #1564141

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

Reviewed: https://review.opencontrail.org/18894
Committed: http://github.org/Juniper/contrail-fabric-utils/commit/f7e3f51e9134c9162470988f8f4089a35abd4a7a
Submitter: Zuul
Branch: R2.20

commit f7e3f51e9134c9162470988f8f4089a35abd4a7a
Author: Aswani Kumar Reddy G <email address hidden>
Date: Wed Mar 30 23:25:19 2016 +0530

fix for cassandra temporary system tables needs special handling and error in handling tsn nodes

1)added fix to skip backup and restore instances when there are tsn and tor nodes
2)skip start and stop of nova compute reboot for tsn and tor nodes

Change-Id: Iaaa63c89eb21e70356a68eb8d7d88140636f13f5
Closes-Bug: #1563640
Closes-Bug: #1564141

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

Reviewed: https://review.opencontrail.org/18893
Committed: http://github.org/Juniper/contrail-fabric-utils/commit/c121487cd5d11936b8e5b76113bc30f408e2d2bf
Submitter: Zuul
Branch: R2.22.x

commit c121487cd5d11936b8e5b76113bc30f408e2d2bf
Author: Aswani Kumar Reddy G <email address hidden>
Date: Wed Mar 30 23:25:19 2016 +0530

fix for cassandra temporary system tables needs special handling and error in handling tsn nodes

1)added fix to skip backup and restore instances when there are tsn and tor nodes
2)skip start and stop of nova compute reboot for tsn and tor nodes

Change-Id: Iaaa63c89eb21e70356a68eb8d7d88140636f13f5
Closes-Bug: #1563640
Closes-Bug: #1564141

information type: Proprietary → Public
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.