@@ -4,6 +4,7 @@ Documentation Verify MicroShift host name resolution with and without syst
4
4
Resource ../../resources/common.resource
5
5
Resource ../../resources/microshift-host.resource
6
6
Resource ../../resources/microshift-process.resource
7
+ Resource ../../resources/ostree.resource
7
8
Resource ../../resources/ostree-health.resource
8
9
Resource ../../resources/systemd.resource
9
10
@@ -131,31 +132,18 @@ Uninstall Systemd-Resolved
131
132
[Documentation] Remove the systemd-resolved package
132
133
133
134
${is_ostree } = Is System OSTree
134
- IF ${is_ostree } == ${TRUE }
135
- ${stdout } ${stderr } ${rc } = Execute Command
136
- ... rpm-ostree override remove systemd-resolved
137
- ... sudo=True return_rc=True return_stdout=True return_stderr=True
138
- Should Be Equal As Integers 0 ${rc }
135
+ IF ${is_ostree } == ${TRUE } Create Usr Directory Overlay
139
136
140
- Reboot MicroShift Host
141
- Wait Until Greenboot Health Check Exited
142
- ELSE
143
- ${stdout } ${stderr } ${rc } = Execute Command
144
- ... dnf remove -y systemd-resolved
145
- ... sudo=True return_rc=True return_stdout=True return_stderr=True
146
- Should Be Equal As Integers 0 ${rc }
147
- END
137
+ ${stdout } ${stderr } ${rc } = Execute Command
138
+ ... rpm -ev systemd-resolved
139
+ ... sudo=True return_rc=True return_stdout=True return_stderr=True
140
+ Should Be Equal As Integers 0 ${rc }
148
141
149
142
Restore Systemd-Resolved
150
143
[Documentation] Install the systemd-resolved package
151
144
152
145
${is_ostree } = Is System OSTree
153
146
IF ${is_ostree } == ${TRUE }
154
- ${stdout } ${stderr } ${rc } = Execute Command
155
- ... rpm-ostree rollback
156
- ... sudo=True return_rc=True return_stdout=True return_stderr=True
157
- Should Be Equal As Integers 0 ${rc }
158
-
159
147
Reboot MicroShift Host
160
148
Wait Until Greenboot Health Check Exited
161
149
ELSE
0 commit comments