Skip to content

Commit 359ac17

Browse files
committed
Small fixes including update for beta mirror changes
- Update RHEL iso to 9.4 - Create longer lived metrics token - Modify beta repo templates - Improve start timing for CSI pods - Remove comments & rename step - Update cadvisor - Add metrics_host to crio metrics config - Update microshift version - Small switch to grep -c
1 parent fe50e3d commit 359ac17

File tree

12 files changed

+59
-32
lines changed

12 files changed

+59
-32
lines changed

ansible/roles/add-kubelet-logging/tasks/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
path: "{{ prometheus_dir }}"
77
register: promdir
88

9-
- name: Check if the file exists
9+
- name: check if the file exists
1010
ansible.builtin.stat:
1111
path: "{{ sa_token_file }}"
1212
register: token_file

ansible/roles/create-service-account/tasks/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
ansible.builtin.command: oc create -f metrics-sa.yaml
1111

1212
- name: create token for service account
13-
ansible.builtin.command: oc create token metrics-server -n kube-system --duration 72h
13+
ansible.builtin.command: oc create token metrics-server -n kube-system --duration 720h
1414
register: token
1515

1616
- name: remove metrics service account yaml

ansible/roles/create-vm/defaults/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
vm_name: microshift-dev
55
vm_disk_dir: /var/lib/libvirt/images
6-
iso_file: /var/lib/libvirt/images/rhel-9.2-x86_64-dvd.iso
6+
iso_file: /var/lib/libvirt/images/rhel-9.4-x86_64-dvd.iso
77
num_cpu: 4
88
ram_size: 8
99
disk_size: 60

ansible/roles/install-logging-exporters/defaults/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
cadvisor_external: false
2-
cadvisor_url: https://github.com/google/cadvisor/releases/download/v0.39.2/cadvisor
3-
cadvisor_checksum: sha256:65109ea14132bce91bb2a92dc70248c705ba26fb2a7d55e295bf4192940a396c
2+
cadvisor_url: https://github.com/google/cadvisor/releases/download/v0.47.2/cadvisor-v0.47.2-linux-amd64
3+
cadvisor_checksum: sha256:30602f675e9bcd39b0d4cd4bd9e83c0849dd4bb3a60a0544b9f2a6451a3facfe
44

55
process_exporter_url: https://github.com/ncabatoff/process-exporter/releases/download/v0.7.10/process-exporter_0.7.10_linux_amd64.rpm
66

ansible/roles/install-microshift/defaults/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ etcd_repo: https://github.com/openshift/etcd.git
99
microshift_dir: "{{ ansible_env.HOME }}/microshift"
1010
microshift_repo: https://github.com/openshift/microshift.git
1111
microshift_rpms: []
12-
microshift_version: 4.14.0-ec.4-202308011235.p0
12+
microshift_version: 4.17.1
1313

1414
du_dirs:
1515
- /
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
[crio.metrics]
22
enable_metrics = true
3+
metrics_host = "0.0.0.0"
34
metrics_port = 9537

ansible/roles/manage-repos/defaults/main.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
---
22
# manage-repos default vars
33

4-
microshift_version: 4.14.0-rc.4
5-
ocp_repo_name: microshift-{{ ocp_version }}-for-rhel-{{ ansible_distribution_major_version }}-mirrorbeta-{{ ansible_architecture }}-rpms
4+
microshift_version: 4.18.0-rc.3
65
ocp_version: "{{ microshift_version.split('.')[0] }}.{{ microshift_version.split('.')[1] }}"
7-
ocpbeta_base_url: "https://mirror.openshift.com/pub/openshift-v4/{{ ansible_architecture }}/microshift/ocp/{{ microshift_version }}/el9/os/"
6+
repo_list:
7+
- { repo_name: 'microshift-{{ ocp_version }}-for-rhel-{{ ansible_distribution_major_version }}-mirrorbeta-{{ ansible_architecture }}-rpms', repo_url: "https://mirror.openshift.com/pub/openshift-v4/{{ ansible_architecture }}/microshift/ocp/{{ microshift_version }}/el9/os/"}
8+
- { repo_name: 'microshift-{{ ocp_version }}-deps-for-rhel-{{ ansible_distribution_major_version }}-mirrorbeta-{{ ansible_architecture }}-rpms', repo_url: "https://mirror.openshift.com/pub/openshift-v4/{{ ansible_architecture }}/dependencies/rpms/{{ ocp_version }}-el9-beta/" }
9+
810
rhel_beta: ''
911
rhel_repos:
1012
- rhel-{{ ansible_distribution_major_version }}-for-{{ ansible_architecture }}-baseos-{{ rhel_beta }}rpms
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
- name: create mirrors block
2+
block:
3+
- name: check if microshift_version is valid for pre-release
4+
ansible.builtin.uri:
5+
url: "{{ item.repo_url }}"
6+
method: GET
7+
status_code: 200
8+
timeout: 5
9+
10+
- name: install microshift mirror repo for pre-releases
11+
ansible.builtin.template:
12+
src: ocpbeta.repo.j2
13+
dest: "/etc/yum.repos.d/{{ item.repo_name }}.repo"

ansible/roles/manage-repos/tasks/main.yml

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -40,30 +40,18 @@
4040
ansible.builtin.set_fact:
4141
microshift_prerelease: "{{ 'rc' in microshift_version or 'ec' in microshift_version }}"
4242

43-
- block:
44-
- name: check if microshift_version is valid for pre-release
45-
ansible.builtin.uri:
46-
url: "{{ ocpbeta_base_url }}"
47-
method: GET
48-
status_code: 200
49-
timeout: 5
50-
51-
- name: install microshift mirror repo for pre-releases
52-
ansible.builtin.template:
53-
src: ocpbeta.repo.j2
54-
dest: /etc/yum.repos.d/{{ ocp_repo_name }}.repo
43+
- name: create microshift prerelease mirrors
44+
include_tasks: roles/manage-repos/tasks/create-mirrors.yaml
45+
loop: "{{ repo_list }}"
5546
when:
5647
- microshift_prerelease
5748
- not build_microshift
5849

59-
- name: overwrite ocp_version if microshift_prerelease
60-
ansible.builtin.set_fact:
61-
ocp_version: "{{ ocp_version.split('.')[0] }}.{{ (ocp_version.split('.')[1] | int) - 1 }}"
62-
when: microshift_prerelease
63-
6450
- name: enable required repos for microshift
6551
community.general.rhsm_repository:
6652
name: "{{ rhel_repos }}"
53+
when:
54+
- not microshift_prerelease
6755

6856
- name: install EPEL repo
6957
ansible.builtin.dnf:
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
[{{ ocp_repo_name }}]
2-
name=MicroShift {{ ocp_version }} RPMs for RHEL {{ ansible_distribution_major_version }}
3-
baseurl={{ ocpbeta_base_url }}
1+
[{{ item.repo_name }}]
2+
name=MicroShift {{ ocp_version }} RPMs for RHEL {{ ansible_distribution_major_version }}
3+
baseurl={{ item.repo_url }}
44
enabled=1
55
gpgcheck=0
66
skip_if_unavailable=0

0 commit comments

Comments
 (0)