tacker/roles/setup-fake-prometheus-server/tasks/main.yaml
Ai Hamano ccb8dadb55 Remove legacy documentation and tools
This patch removes documentation for the following legacy features.
- Extensions
- Virtualized Network Function Descriptors (VNFDs)
- Virtualized Network Functions (VNFs)
- Events
- VNF Forwarding Graph Descriptors (VNFFGDs)
- VNF Forwarding Graphs (VNFFGs)
- Network Forwarding Paths (NFPs)
- Service Function Chains (SFCs)
- Classifiers
- Network Service Descriptors (NSD)
- Network Services (NSs)

And also remove the following tools that are currently not in use.
- tools/vnfc/build_image.sh
- tools/check_i18n_test_case.txt
- tools/check_i18n.py
- tools/i18n_cfg.py
- tools/clean.sh
- tools/prepare_function_test.sh
- tools/test-setup.sh
- tools/install_venv_common.py
- tools/install_venv.py
- tools/with_venv.sh

For the following tools used in FT, move them under
`tacker/tests/functional/tools`.
- tools/test-setup-default-vim.sh
- tools/test-setup-k8s-vim.sh
- tools/test-setup-mgmt.sh
- tools/test-setup-fake-prometheus-server.sh

Implements: blueprint deprecate-legacy-apis
Change-Id: Iea89c32f69ccbe47badcfddcf77430abda98362b
2023-10-19 23:24:59 +00:00

39 lines
1.1 KiB
YAML

- block:
- name: Copy tools/test-setup-fake-prometheus-server.sh
copy:
remote_src=True
src={{ devstack_base_dir }}/tacker/tacker/tests/functional/tools/test-setup-fake-prometheus-server.sh
dest={{ zuul_work_dir }}/tools/test-setup-fake-prometheus-server.sh
mode=0755
- name: Get stackenv from devstack environment
slurp:
src: "{{ devstack_base_dir }}/devstack/.stackenv"
register: stackenv
- name: Install docker
package:
name: docker.io
state: present
become: yes
- name: Replace prometheus host ip
replace:
path: "{{ item }}"
regexp: "0.0.0.0"
replace: "{{ hostvars['controller-tacker']['nodepool']['private_ipv4'] }}"
with_items:
- "{{ zuul_work_dir }}/tools/test-setup-fake-prometheus-server.sh"
when:
- p.stat.exists
- name: Run tools/test-setup-fake-prometheus-server.sh
command: tools/test-setup-fake-prometheus-server.sh
args:
chdir: "{{ zuul_work_dir }}"
when:
- p.stat.exists
- p.stat.executable
when:
- inventory_hostname == 'controller-tacker'