CORD-1130 remove onboarding artifacts from vsg service
Change-Id: I98dab286f9fe8b7b9271297bade8f48f3ebaffeb
(cherry picked from commit d69a42ecc36faa2cf79e2dd47f814e1d84e9cd56)
diff --git a/xos/synchronizer/Makefile b/xos/synchronizer/Makefile
deleted file mode 100644
index 240d462..0000000
--- a/xos/synchronizer/Makefile
+++ /dev/null
@@ -1,5 +0,0 @@
-synchronizer:
- sudo docker build --rm -f Dockerfile.synchronizer -t xosproject/vsg-synchronizer .
-
-up:
- docker-compose -p vsg up -d
diff --git a/xos/synchronizer/docker-compose.yml b/xos/synchronizer/docker-compose.yml
deleted file mode 100644
index 62bec98..0000000
--- a/xos/synchronizer/docker-compose.yml
+++ /dev/null
@@ -1,23 +0,0 @@
-version: '2'
-
-networks:
- xos:
- external: true
-
-services:
- synchronizer:
- image: xosproject/vsg-synchronizer
- networks:
- - xos
- #command: bash -c "sleep 86400"
- volumes:
- - /opt/cord_profile/key_import/vsg_rsa:/opt/xos/services/vsg/keys/vsg_rsa:ro
- - /opt/cord_profile/node_key:/opt/cord_profile/node_key:ro
- - /opt/cord/build/platform-install/credentials/xosadmin@opencord.org:/opt/xos/services/vsg/credentials/xosadmin@opencord.org
- external_links:
- - rcordbs_xos_redis_1:redis
- logging:
- driver: "json-file"
- options:
- max-size: "1000k"
- max-file: "5"
diff --git a/xos/synchronizer/manifest b/xos/synchronizer/manifest
deleted file mode 100644
index 29507ca..0000000
--- a/xos/synchronizer/manifest
+++ /dev/null
@@ -1,50 +0,0 @@
-templates/bwlimit.sh.j2
-templates/vlan_sample.j2
-templates/before.rules.j2
-templates/start-vcpe.sh.j2
-templates/dnsmasq_safe_servers.j2
-templates/docker.j2
-templates/firewall_sample.j2
-templates/rc.local.j2
-templates/vcpe.conf.j2
-templates/message.html.j2
-templates/dnsmasq_servers.j2
-templates/start-vcpe-vtn.sh.j2
-manifest
-broadbandshield.py
-observer_ansible_test.py
-start-bbs.sh
-steps/sync_vcpetenant.py
-steps/sync_vcpetenant_new.yaml
-steps/sync_vcpetenant_vtn.yaml
-steps/sync_vcpetenant.yaml
-steps/sync_monitoring_agent.yaml
-steps/test.yaml
-steps/ansible_test/README
-steps/ansible_test/test.yaml
-steps/ansible_test/xos.py
-steps/ansible_test/test.sh
-steps/ansible_test/inventory.txt
-start.sh
-files/vcpe.conf
-files/etc/service/message/run
-files/etc/rc.local
-files/etc/ufw/after6.rules
-files/etc/ufw/applications.d/openssh-server
-files/etc/ufw/sysctl.conf
-files/etc/ufw/ufw.conf
-files/etc/ufw/before6.rules
-files/etc/ufw/after.init
-files/etc/ufw/before.init
-files/etc/ufw/after.rules
-files/vm-resolv.conf
-files/docker.list
-files/vcpe.dnsmasq
-run-vtn.sh
-stop.sh
-vcpe-synchronizer.py
-model-deps
-supervisor/vcpe-observer.conf
-run.sh
-vsg_synchronizer_config
-vcpe_stats_notifier.py
diff --git a/xos/synchronizer/run.sh b/xos/synchronizer/run.sh
deleted file mode 100755
index 3d215be..0000000
--- a/xos/synchronizer/run.sh
+++ /dev/null
@@ -1,6 +0,0 @@
-#if [[ ! -e ./vcpe-observer.py ]]; then
-# ln -s ../../xos-observer.py vcpe-observer.py
-#fi
-
-export XOS_DIR=/opt/xos
-python vcpe-synchronizer.py -C $XOS_DIR/synchronizers/vsg/vsg_synchronizer_config
diff --git a/xos/synchronizer/start.sh b/xos/synchronizer/start.sh
deleted file mode 100755
index 223af53..0000000
--- a/xos/synchronizer/start.sh
+++ /dev/null
@@ -1,6 +0,0 @@
-#if [[ ! -e ./vcpe-observer.py ]]; then
-# ln -s ../../xos-observer.py vcpe-observer.py
-#fi
-
-export XOS_DIR=/opt/xos
-nohup python vcpe-synchronizer.py -C $XOS_DIR/synchronizers/vsg/vsg_synchronizer_config > /dev/null 2>&1 &
diff --git a/xos/synchronizer/stop.sh b/xos/synchronizer/stop.sh
deleted file mode 100755
index e90e16c..0000000
--- a/xos/synchronizer/stop.sh
+++ /dev/null
@@ -1 +0,0 @@
-pkill -9 -f vcpe-observer.py
diff --git a/xos/synchronizer/supervisor/vcpe-observer.conf b/xos/synchronizer/supervisor/vcpe-observer.conf
deleted file mode 100644
index 8e9829d..0000000
--- a/xos/synchronizer/supervisor/vcpe-observer.conf
+++ /dev/null
@@ -1,2 +0,0 @@
-[program:vcpe-observer]
-command=python /opt/xos/synchronizers/vsg/vcpe-synchronizer.py -C /opt/xos/synchronizers/vsg/vsg_synchronizer_config
diff --git a/xos/synchronizer/vsg_synchronizer_config b/xos/synchronizer/vsg_synchronizer_config
deleted file mode 100644
index fd254a2..0000000
--- a/xos/synchronizer/vsg_synchronizer_config
+++ /dev/null
@@ -1,48 +0,0 @@
-
-[plc]
-name=plc
-deployment=VICCI
-
-[db]
-name=xos
-user=postgres
-password=password
-host=xos_db
-port=5432
-
-[api]
-host=128.112.171.237
-port=8000
-ssl_key=None
-ssl_cert=None
-ca_ssl_cert=None
-ratelimit_enabled=0
-omf_enabled=0
-mail_support_address=support@localhost
-nova_enabled=True
-
-[observer]
-name=vcpe
-dependency_graph=/opt/xos/synchronizers/vsg/model-deps
-steps_dir=/opt/xos/synchronizers/vsg/steps
-sys_dir=/opt/xos/synchronizers/vsg/sys
-deleters_dir=/opt/xos/synchronizers/vsg/deleters
-log_file=console
-#/var/log/hpc.log
-driver=None
-pretend=False
-backoff_disabled=True
-save_ansible_output=True
-# set proxy_ssh to false on cloudlab
-full_setup=True
-proxy_ssh=True
-proxy_ssh_key=/opt/cord_profile/node_key
-proxy_ssh_user=root
-enable_watchers=True
-
-[networking]
-use_vtn=True
-
-[feefie]
-client_id='vicci_dev_central'
-user_id='pl'
diff --git a/xos/vsg-onboard.yaml b/xos/vsg-onboard.yaml
index 75c93af..0c2f7a0 100644
--- a/xos/vsg-onboard.yaml
+++ b/xos/vsg-onboard.yaml
@@ -16,8 +16,6 @@
xproto: ./
admin: admin.py
admin_template: templates/vcpeadmin.html
- synchronizer: synchronizer/manifest
- synchronizer_run: vcpe-synchronizer.py
#tosca_custom_types: exampleservice.yaml
tosca_resource: tosca/resources/vcpeservice.py
rest_service: subdirectory:vsg api/service/vsg/vsgservice.py
diff --git a/xos/vsg-onboardnew.yaml b/xos/vsg-onboardnew.yaml
deleted file mode 100644
index 02544b4..0000000
--- a/xos/vsg-onboardnew.yaml
+++ /dev/null
@@ -1,25 +0,0 @@
-tosca_definitions_version: tosca_simple_yaml_1_0
-
-description: Onboard the exampleservice
-
-imports:
- - custom_types/xos.yaml
-
-topology_template:
- node_templates:
- servicecontroller#vsg:
- type: tosca.nodes.ServiceController
- properties:
- base_url: file:///opt/xos_services/vsg/xos/
- # The following will concatenate with base_url automatically, if
- # base_url is non-null.
- models: models.py
- admin: admin.py
- admin_template: templates/vcpeadmin.html
- tosca_resource: tosca/resources/vcpeservice.py
- rest_service: subdirectory:vsg api/service/vsg/vsgservice.py
- rest_tenant: subdirectory:cord api/tenant/cord/vsg.py
- private_key: file:///opt/xos/key_import/vsg_rsa
- public_key: file:///opt/xos/key_import/vsg_rsa.pub
- no_build: true
- image: xosproject/vsg-synchronizer