Skip to content

Commit

Permalink
Update testing docs
Browse files Browse the repository at this point in the history
Signed-off-by: khushboo-rancher <[email protected]>
  • Loading branch information
khushboo-rancher committed Sep 12, 2024
1 parent 11ffa5c commit 7de7855
Show file tree
Hide file tree
Showing 610 changed files with 7,666 additions and 31 deletions.
Binary file added images/volumes/5383-image-01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 16 additions & 2 deletions index.xml
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,13 @@
<guid>https://harvester.github.io/tests/manual/harvester-rancher/72-ipxe-auto-airgapped-rancher-integrate-harvester-/</guid>
<description>&lt;ul&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Related task: &lt;a href=&#34;https://github.com/harvester/harvester/issues/1808&#34;&gt;#1808&lt;/a&gt; RKE2 provisioning fails when Rancher has no internet access (air-gapped)&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&lt;strong&gt;Note1&lt;/strong&gt;: In this test, we use &lt;a href=&#34;https://github.com/harvester/ipxe-examples/tree/main/vagrant-pxe-airgap-harvester&#34;&gt;vagrant-pxe-airgap-harvester&lt;/a&gt; to automatically provide the fully airgapped environment&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&lt;strong&gt;Note1&lt;/strong&gt;: Compared to test case 68, we don&amp;rsquo;t need to manually create a separate VM for the Rancher instance and docker private registry, all the prerequisite environment can be done with the &lt;code&gt;vagrant-pxe-airgap-harvester&lt;/code&gt; solution&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h3 id=&#34;environment-setup&#34;&gt;Environment Setup&lt;/h3&gt;&#xA;&lt;h4 id=&#34;phase-1-create-airgapped-harvester-cluster-rancher-and-private-registry&#34;&gt;Phase 1: Create airgapped Harvester cluster, Rancher and private registry&lt;/h4&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Clone the latest &lt;a href=&#34;https://github.com/harvester/ipxe-examples/tree/main/vagrant-pxe-airgap-harvester&#34;&gt;ipxe-example&lt;/a&gt; which include the &lt;code&gt;vagrant-pxe-airgap-harvester&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;Follow the &lt;code&gt;Sample Host Loadout&lt;/code&gt; and &lt;code&gt;Prerequisites&lt;/code&gt; in &lt;a href=&#34;https://github.com/harvester/ipxe-examples/tree/main/vagrant-pxe-airgap-harvester&#34;&gt;readme&lt;/a&gt; to prepare the prerequisite package&lt;/li&gt;&#xA;&lt;li&gt;If you use &lt;code&gt;Opensuse Leap&lt;/code&gt; operating system, you may need to comment out the following line in &lt;code&gt;Vagrantfile&lt;/code&gt; file&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;# libvirt.loader = &amp;#39;/usr/share/qemu/OVMF.fd&amp;#39;&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;li&gt;Edit the &lt;code&gt;settings.yml&lt;/code&gt;, confirm the &lt;code&gt;image file url&lt;/code&gt;, &lt;code&gt;harvester_cluster_nodes&lt;/code&gt;, &lt;code&gt;cpu&lt;/code&gt;, &lt;code&gt;memory&lt;/code&gt; and &lt;code&gt;disk&lt;/code&gt; usage&lt;/li&gt;&#xA;&lt;li&gt;Check the &lt;code&gt;rancher_version&lt;/code&gt; and &lt;code&gt;rancher_version_no_prefix&lt;/code&gt; meet your requirement&lt;/li&gt;&#xA;&lt;li&gt;If you have plan to upgrade Rancher version, you also need to increase the size of &lt;code&gt;node_disk_size&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;Run &lt;code&gt;./setup_harvester.sh -c&lt;/code&gt; to start provisioning the airgapped infrastructure&lt;/li&gt;&#xA;&lt;li&gt;If you encounter failure like &lt;code&gt;apt get update&lt;/code&gt;, please check your ansible and vagrant plugin version can meet the &lt;code&gt;Prerequisite&lt;/code&gt;. You could also check the &lt;code&gt;Ansible Galaxy&#39;s Community General module&lt;/code&gt; have been corrected installed or not&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;&lt;strong&gt;Please be noted&lt;/strong&gt;: the entire provisioning process would take around &lt;strong&gt;six&lt;/strong&gt; hours depending on the network bandwith&lt;/p&gt;</description>
</item>
<item>
<title>A volume can&#39;t be attached to another VM (Yaml)</title>
<link>https://harvester.github.io/tests/manual/volumes/prevent-attached-volume-to-other-vm/</link>
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
<guid>https://harvester.github.io/tests/manual/volumes/prevent-attached-volume-to-other-vm/</guid>
<description>&lt;ul&gt;&#xA;&lt;li&gt;Related issues: &lt;a href=&#34;https://github.com/harvester/harvester/issues/5383&#34;&gt;#5383&lt;/a&gt; [ENHANCEMENT] Refactor harvesterhci.io/owned-by annotation on PVC&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;category&#34;&gt;Category&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Volume&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;verification-steps&#34;&gt;Verification Steps&lt;/h2&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Create two VMs (vm1 and vm2)&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Create a data volume &lt;code&gt;vol-001&lt;/code&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Click the &lt;code&gt;add volume&lt;/code&gt; menu option for &lt;code&gt;vm1&lt;/code&gt; to attach &lt;code&gt;vol-001&lt;/code&gt; to vm1&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Ensure &lt;code&gt;vol-001&lt;/code&gt; can correctly been attached to &lt;code&gt;vm1&lt;/code&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Click the &lt;code&gt;add volume&lt;/code&gt; menu option for &lt;code&gt;vm2&lt;/code&gt; and find available volume&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Edit the yaml of vm2&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Try to attach the data volume yaml content from vm1 to vm2 spec.volume&lt;/p&gt;</description>
</item>
<item>
<title>Adapt alertmanager to dedicated storage network</title>
<link>https://harvester.github.io/tests/manual/_incoming/2715_adapt_alertmanager_to_dedicated_storage_network/</link>
Expand Down Expand Up @@ -1755,7 +1762,7 @@
<link>https://harvester.github.io/tests/manual/virtual-machines/delete-single-vm-all-disks/</link>
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
<guid>https://harvester.github.io/tests/manual/virtual-machines/delete-single-vm-all-disks/</guid>
<description>&lt;ol&gt;&#xA;&lt;li&gt;Delete VM&lt;/li&gt;&#xA;&lt;li&gt;Select whether you want to delete disks&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;h2 id=&#34;expected-results&#34;&gt;Expected Results&lt;/h2&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;You should check amount of used space on Server before you delete the VM&lt;/li&gt;&#xA;&lt;li&gt;Machine should delete&lt;/li&gt;&#xA;&lt;li&gt;It should not show up in the Virtual Machine list&lt;/li&gt;&#xA;&lt;li&gt;Disks should be listed/or not in Volumes list as appropriate&lt;/li&gt;&#xA;&lt;li&gt;Verify the cleaned up the space on the disk on the node.&lt;/li&gt;&#xA;&lt;/ol&gt;</description>
<description>&lt;ol&gt;&#xA;&lt;li&gt;Create a VM&lt;/li&gt;&#xA;&lt;li&gt;Make sure VM have started in running state with IP address&lt;/li&gt;&#xA;&lt;li&gt;Delete the VM&lt;/li&gt;&#xA;&lt;li&gt;Select the option &lt;code&gt;Select the volume you want to delete&lt;/code&gt; (delete volume)&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;h2 id=&#34;expected-results&#34;&gt;Expected Results&lt;/h2&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;You should check amount of used space on Server before you delete the VM&lt;/li&gt;&#xA;&lt;li&gt;VM should be deleted&lt;/li&gt;&#xA;&lt;li&gt;It should not show up in the Virtual Machine list&lt;/li&gt;&#xA;&lt;li&gt;All volumes attached to the VM should be deleted on the volume page&lt;/li&gt;&#xA;&lt;li&gt;Verify the cleaned up the space on the disk on the node.&lt;/li&gt;&#xA;&lt;/ol&gt;</description>
</item>
<item>
<title>Delete the image (e2e_be_fe)</title>
Expand Down Expand Up @@ -1797,7 +1804,7 @@
<link>https://harvester.github.io/tests/manual/volumes/delete-volume-that-is-not-attached-to-vm/</link>
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
<guid>https://harvester.github.io/tests/manual/volumes/delete-volume-that-is-not-attached-to-vm/</guid>
<description>&lt;ol&gt;&#xA;&lt;li&gt;Create volume&lt;/li&gt;&#xA;&lt;li&gt;Validate that it created&lt;/li&gt;&#xA;&lt;li&gt;Check the volume crd.&lt;/li&gt;&#xA;&lt;li&gt;Delete the volume&lt;/li&gt;&#xA;&lt;li&gt;Verify that volume is removed from list&lt;/li&gt;&#xA;&lt;li&gt;Check the volume object doesn&amp;rsquo;t exist anymore.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;h2 id=&#34;expected-results&#34;&gt;Expected Results&lt;/h2&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Volume should create&lt;/li&gt;&#xA;&lt;li&gt;It should show in volume list&lt;/li&gt;&#xA;&lt;li&gt;Volume crd should have correct info.&lt;/li&gt;&#xA;&lt;li&gt;Volume should delete.&lt;/li&gt;&#xA;&lt;li&gt;Volume should be removed from list&lt;/li&gt;&#xA;&lt;/ol&gt;</description>
<description>&lt;ol&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Create volume&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Validate that it created&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Check the volume crd.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Delete the volume&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Verify that volume is removed from list&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Check the volume object doesn&amp;rsquo;t exist anymore.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Create a VM&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Make sure VM have started in running state with IP address&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Delete the VM&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Do not select the option &lt;code&gt;Select the volume you want to delete&lt;/code&gt; (Keep volume)&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Click the Delete button&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Open Volumes page&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Delete the volume remains for the VM&lt;/p&gt;</description>
</item>
<item>
<title>Delete volume that was attached to VM but now is not (e2e_be_fe)</title>
Expand Down Expand Up @@ -2086,6 +2093,13 @@
<guid>https://harvester.github.io/tests/manual/volumes/edit-volume-increase-size-yaml/</guid>
<description>&lt;ol&gt;&#xA;&lt;li&gt;Stop the vm&lt;/li&gt;&#xA;&lt;li&gt;Navigate to volumes page&lt;/li&gt;&#xA;&lt;li&gt;Edit Volume as YAML&lt;/li&gt;&#xA;&lt;li&gt;Increase size&lt;/li&gt;&#xA;&lt;li&gt;Click Save&lt;/li&gt;&#xA;&lt;li&gt;Connect to VM via console&lt;/li&gt;&#xA;&lt;li&gt;Check size of root disk&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;h2 id=&#34;expected-results&#34;&gt;Expected Results&lt;/h2&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;VM should stop&lt;/li&gt;&#xA;&lt;li&gt;VM should reboot after saving&lt;/li&gt;&#xA;&lt;li&gt;Disk should be resized&lt;/li&gt;&#xA;&lt;/ol&gt;</description>
</item>
<item>
<title>Edit volume to increase size when vm is running</title>
<link>https://harvester.github.io/tests/manual/volumes/edit-volume-increase-size-vm-running/</link>
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
<guid>https://harvester.github.io/tests/manual/volumes/edit-volume-increase-size-vm-running/</guid>
<description>&lt;ol&gt;&#xA;&lt;li&gt;Create a VM&lt;/li&gt;&#xA;&lt;li&gt;Make sure VM have started in running state with IP address&lt;/li&gt;&#xA;&lt;li&gt;Open the &lt;code&gt;Edit config&lt;/code&gt; page of the VM&lt;/li&gt;&#xA;&lt;li&gt;Change the volume size of the disk on the Volumes page&lt;/li&gt;&#xA;&lt;li&gt;Click Save&lt;/li&gt;&#xA;&lt;li&gt;Check the prompt error message&lt;/li&gt;&#xA;&lt;li&gt;Open the Volumes page&lt;/li&gt;&#xA;&lt;li&gt;Edit config of the volume attached to the VM&lt;/li&gt;&#xA;&lt;li&gt;Change the volume size of the disk&lt;/li&gt;&#xA;&lt;li&gt;Click Save&lt;/li&gt;&#xA;&lt;li&gt;Check the prompt error message&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;h2 id=&#34;expected-results&#34;&gt;Expected Results&lt;/h2&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;VM volume page should display error message&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;admission webhook &amp;#34;validator.harvesterhci.io&amp;#34; denied the request: please stop the VM before resizing volumes&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;li&gt;Volume page should display error message&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;admission webhook &amp;#34;validator.harvesterhci.io&amp;#34; denied the request: resizing is only supported for detached volumes. The volume is being used by VM default/vm1. Please stop the VM first.&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;</description>
</item>
<item>
<title>Edit Volume YAML add label (e2e_be)</title>
<link>https://harvester.github.io/tests/manual/volumes/edit-volume-yaml-add-label/</link>
Expand Down
Loading

0 comments on commit 7de7855

Please sign in to comment.