old database objects missing after restore_cassandra_db in AB upgrade

Bug #1642436 reported by wenqing liang
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R3.1
Fix Committed
High
Ignatious Johnson Christopher
R3.2
Fix Committed
High
Ignatious Johnson Christopher
Trunk
Fix Committed
High
Ignatious Johnson Christopher

Bug Description

objects such as virtual network went missing after restoring Cassandra snapshots to the new database via restore_cassandra_db during AB upgrade from 3.0.3.x-7 to r3.1.1.0-42 kilo.

root@newvm-1:/opt/contrail/utils# curl -u admin:c0ntrail123 http://localhost:8095/virtual-networks | python -m json.tool
  % Total % Received % Xferd Average Speed Time Time Time Current
                                 Dload Upload Total Spent Left Speed
100 638 100 638 0 0 75646 0 --:--:-- --:--:-- --:--:-- 79750
{
    "virtual-networks": [
        {
            "fq_name": [
                "default-domain",
                "default-project",
                "default-virtual-network"
            ],
            "href": "http://localhost:8095/virtual-network/cd63ad8b-b656-4416-9bed-92bda2e7d973",
            "uuid": "cd63ad8b-b656-4416-9bed-92bda2e7d973"
        },
        {
            "fq_name": [
                "default-domain",
                "default-project",
                "ip-fabric"
            ],
            "href": "http://localhost:8095/virtual-network/abe9638d-420d-4e24-8192-9107d94fb3fc",
            "uuid": "abe9638d-420d-4e24-8192-9107d94fb3fc"
        },
        {
            "fq_name": [
                "default-domain",
                "default-project",
                "__link_local__"
            ],
            "href": "http://localhost:8095/virtual-network/de6defd2-009c-4b3d-8406-788187d19be6",
            "uuid": "de6defd2-009c-4b3d-8406-788187d19be6"
        }
    ]
}
root@newvm-1:/opt/contrail/utils#

Tags: provisioning
wenqing liang (wliang)
information type: Proprietary → Public
description: updated
Jeba Paulaiyan (jebap)
tags: added: provisioning
Revision history for this message
Jeba Paulaiyan (jebap) wrote :

With updated procedure for A-B update this will not happen. Keeping the 3.1 scope open and removing the 3.1.1.0 milestone. Will close 3.1 scope after tracking it in 3.1.2.0.

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

Review in progress for https://review.opencontrail.org/27220
Submitter: Ignatious Johnson Christopher (<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/27221
Submitter: Ignatious Johnson Christopher (<email address hidden>)

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

Review in progress for https://review.opencontrail.org/27222
Submitter: Ignatious Johnson Christopher (<email address hidden>)

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

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

commit 423945074fd60bd455f5da765ae004bade5a0113
Author: Ignatious Johnson Christopher <email address hidden>
Date: Tue Dec 13 16:01:34 2016 -0800

As per the cassandra doc to stapshot and restore to new cluster,
https://docs.datastax.com/en/cassandra/2.1/cassandra/operations/ops_snapshot_restore_new_cluster.html
We need to copy the db files to the target table name with the new UUID.

Change-Id: Ie6c19f66e609d5ed4ec414a4b24109c3ebcbe2f0
Closes-Bug: 1642436

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

Reviewed: https://review.opencontrail.org/27222
Committed: http://github.org/Juniper/contrail-controller/commit/dad816f629fe3dfa5194e1ef50d37d5b56691217
Submitter: Zuul (<email address hidden>)
Branch: R3.1

commit dad816f629fe3dfa5194e1ef50d37d5b56691217
Author: Ignatious Johnson Christopher <email address hidden>
Date: Tue Dec 13 16:01:34 2016 -0800

As per the cassandra doc to stapshot and restore to new cluster,
https://docs.datastax.com/en/cassandra/2.1/cassandra/operations/ops_snapshot_restore_new_cluster.html
We need to copy the db files to the target table name with the new UUID.

Change-Id: Ie6c19f66e609d5ed4ec414a4b24109c3ebcbe2f0
Closes-Bug: 1642436

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

Reviewed: https://review.opencontrail.org/27220
Committed: http://github.org/Juniper/contrail-controller/commit/47ca5a5c49a9a827b0baff939b063d372d93dc99
Submitter: Zuul (<email address hidden>)
Branch: master

commit 47ca5a5c49a9a827b0baff939b063d372d93dc99
Author: Ignatious Johnson Christopher <email address hidden>
Date: Tue Dec 13 16:01:34 2016 -0800

As per the cassandra doc to stapshot and restore to new cluster,
https://docs.datastax.com/en/cassandra/2.1/cassandra/operations/ops_snapshot_restore_new_cluster.html
We need to copy the db files to the target table name with the new UUID.

Change-Id: Ie6c19f66e609d5ed4ec414a4b24109c3ebcbe2f0
Closes-Bug: 1642436

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.