-
Notifications
You must be signed in to change notification settings - Fork 316
Troubleshooting
This is a known issue with v0.6.0 Capri Release. Enabling telemetry tools will install Grafana. The package repository for Grafana has been moved and this causes the installation to fail.
Until a fix is released you will have to make these modifications to enable telemetry and install opensds.
Update the file ansible/roles/telemetry-installer/scenarios/install_telemetry_tools.yml
after line number 274 and look for "install grafana". Replace with the content below.
# ---------start to install grafana---------
- name: install grafana
shell: "{{ item }}"
with_items:
- curl https://packages.grafana.com/gpg.key | sudo apt-key add -
- add-apt-repository "deb https://packages.grafana.com/oss/deb stable main"
- apt-get update
- apt install -y grafana
- systemctl start grafana-server
become: yes
Update the file ansible/roles/telemetry-uninstaller/scenarios/clean_telemetry_tools.yml
after line number 17 and look for "clean grafana". Replace with the content below.
# ---------start to clean grafana---------
- name: clean grafana
shell: "{{ item }}"
with_items:
- systemctl stop grafana-server
- apt purge -y grafana
- add-apt-repository -r "deb https://packages.grafana.com/oss/deb stable main"
ignore_errors: yes
become: yes
Note: If Telemetry or Grafana is already installed from the packagecloud.io repository, then apt-get update will fail. To fix this you have to remove the repository from the sources list by following the below steps:
sudo ls /etc/apt/sources.list.d
- Look for your desired PPA here (usually grafana_stable) and then remove the PPA (usually grafana_stable) using the following command:
rm -i /etc/apt/sources.list.d/grafana_stable.list && rm -i /etc/apt/sources.list.d/grafana_stable.list.save
- Remove
package-cloud
reference from/etc/apt/sources.list