Dublin
Roll back to a previous SDC image
Code Block |
---|
title | Update SDC image version in OOM |
---|
collapse | true |
---|
|
root@sb00-rancher:~# find oom/kubernetes/sdc -name 'values.yaml' -exec grep -Hn "image:" {} \;
oom/kubernetes/sdc/charts/sdc-onboarding-be/values.yaml:31:image: onap/sdc-onboard-backend:1.4-STAGING-latest
oom/kubernetes/sdc/charts/sdc-wfd-fe/values.yaml:31:image: onap/workflow-frontend:latest
oom/kubernetes/sdc/charts/sdc-dcae-fe/values.yaml:30:image: onap/dcae-fe:1.3-STAGING-latest
oom/kubernetes/sdc/charts/sdc-dcae-tosca-lab/values.yaml:30:image: onap/dcae-tosca-app:1.3-STAGING-latest
oom/kubernetes/sdc/charts/sdc-es/values.yaml:34:image: onap/sdc-elasticsearch:1.4-STAGING-latest
oom/kubernetes/sdc/charts/sdc-wfd-be/values.yaml:31:image: onap/workflow-backend:latest
oom/kubernetes/sdc/charts/sdc-dcae-be/values.yaml:30:image: onap/dcae-be:1.3-STAGING-latest
oom/kubernetes/sdc/charts/sdc-fe/values.yaml:31:image: onap/sdc-frontend:1.4-STAGING-latest
oom/kubernetes/sdc/charts/sdc-dcae-dt/values.yaml:30:image: onap/dcae-dt:1.2-STAGING-latest
oom/kubernetes/sdc/charts/sdc-be/values.yaml:31:image: onap/sdc-backend:1.4-STAGING-latest
oom/kubernetes/sdc/charts/sdc-kb/values.yaml:31:image: onap/sdc-kibana:1.4-STAGING-latest
oom/kubernetes/sdc/charts/sdc-cs/values.yaml:31:image: onap/sdc-cassandra:1.4-STAGING-latest
root@sb00-rancher:~# find . -name 'values.yaml' -exec sed -i 's/1\.4-STAGING-latest/1\.4\.1-20190516T202520Z/g' {} \;
|
Code Block |
---|
title | Drop SDC keyspaces from shared Cassandra |
---|
collapse | true |
---|
|
root@sb00-rancher:~/oom# kubectl -n onap exec -it dev-cassandra-cassandra-0 bash
root@dev-cassandra-cassandra-0:/# cqlsh -u cassandra -p cassandra
Connected to cassandra at 127.0.0.1:9042.
[cqlsh 5.0.1 | Cassandra 2.2.14 | CQL spec 3.3.1 | Native protocol v4]
Use HELP for help.
cassandra@cqlsh> describe keyspaces;
sdccomponent system_auth sdcaudit system_distributed sdctitan
workflow system dox system_traces sdcrepository
zusammen_dox aaigraph sdcartifact zusammen_workflow
cassandra@cqlsh> drop keyspace sdccomponent;
OperationTimedOut: errors={'127.0.0.1': 'Request timed out while waiting for schema agreement. See Session.execute[_async](timeout) and Cluster.max_schema_agreement_wait.'}, last_host=127.0.0.1
cassandra@cqlsh> drop keyspace sdcaudit;
OperationTimedOut: errors={'127.0.0.1': 'Request timed out while waiting for schema agreement. See Session.execute[_async](timeout) and Cluster.max_schema_agreement_wait.'}, last_host=127.0.0.1
cassandra@cqlsh>
cassandra@cqlsh> drop keyspace sdctitan;
cassandra@cqlsh> drop keyspace sdcrepository;
cassandra@cqlsh> drop keyspace sdcartifact;
cassandra@cqlsh>
cassandra@cqlsh>
cassandra@cqlsh> describe keyspaces;
workflow system_auth aaigraph dox system_traces
zusammen_dox system zusammen_workflow system_distributed
|
Code Block |
---|
|
root@sb00-rancher:~# ./integration/deployment/heat/onap-rke/scripts/redeploy-module.sh sdc
|
Access Shared Cassandra DB
...