diff options
author | CoprDistGit <infra@openeuler.org> | 2023-04-10 05:53:15 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-04-10 05:53:15 +0000 |
commit | c4e98cd968a2aa9383355d087c2cba59db421adf (patch) | |
tree | 6cbff4d4f3d0af34b62aaababc7074353854e9ef | |
parent | bad9af79c2252eb54af0ad4797a49af371772b44 (diff) |
automatic import of python-testcloud
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-testcloud.spec | 227 | ||||
-rw-r--r-- | sources | 2 |
3 files changed, 156 insertions, 74 deletions
@@ -1 +1,2 @@ /testcloud-0.8.2.tar.gz +/testcloud-0.9.2.tar.gz diff --git a/python-testcloud.spec b/python-testcloud.spec index 79251c7..34af370 100644 --- a/python-testcloud.spec +++ b/python-testcloud.spec @@ -1,11 +1,11 @@ %global _empty_manifest_terminate_build 0 Name: python-testcloud -Version: 0.8.2 +Version: 0.9.2 Release: 1 Summary: A tool to download and boot cloud images locally, with an easy to use API. License: GPLv2+ URL: https://pagure.io/testcloud -Source0: https://mirrors.nju.edu.cn/pypi/web/packages/93/1b/5eb5eaee9442fffef8f0699527c98ca16fc0f04f5a9c36551083f4271cc7/testcloud-0.8.2.tar.gz +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/1e/09/8660a8a57d10d108331a2551abf8238e787790a4255d5cd214355c797573/testcloud-0.9.2.tar.gz BuildArch: noarch Requires: python3-Jinja2 @@ -65,45 +65,40 @@ your own, you can use the image from the **Fedora Cloud** download pages To create a new instance with the cloud image, run: ``` -$ testcloud instance create <url for qcow2 image> or <distro:version> +$ testcloud create <url for qcow2 image> or <distro:version> ``` Some examples how to create an instance with distribution:version shortcut: ``` # Latest Fedora Release -$ testcloud instance create fedora:latest -``` - -or, you can skip latest, which is the default value for version: -``` -# Latest Fedora Release -$ testcloud instance create fedora +$ testcloud create fedora ``` ``` # Fedora Rawhide (latest Nightly Compose) -$ testcloud instance create fedora:rawhide +$ testcloud create fedora:rawhide ``` ``` # CentOS Stream 8 -$ testcloud instance create centos-stream:8 +$ testcloud create centos-stream:8 ``` ``` # Ubuntu Hirsute (21.04) -$ testcloud instance create ubuntu:hirsute +$ testcloud create ubuntu:hirsute ``` ``` # Debian 11 -$ testcloud instance create debian:11 +$ testcloud create debian:11 ``` -Supported distributions with shortcuts are: Fedora, CentOS, CentOS Stream, Ubuntu and Debian. For other distributions, you can provide link to basically any qcow2 image which has the cloud-init package included. +Supported distributions with shortcuts are: Fedora, CentOS, CentOS Stream, Ubuntu, Debian, Alma, Rocky, and Oracle. +For other distributions, you can provide link to basically any qcow2 image which has the cloud-init package included. -Testcloud supports also Vagrant .box files, in a limited manner and currently only for CentOS. +Testcloud supports also Vagrant .box files, in a limited manner and currently only for Fedora and CentOS. **testcloud** will download the *qcow2* image and save it in the `/var/lib/testcloud/backingstores/<qcow2-filename>`. It will use this @@ -115,19 +110,42 @@ create the instance. To create a new instance with the coreos image, run: ``` -$ testcloud instance create fedora-coreos:<stream> or <url for qcow2 image> +$ testcloud create fedora-coreos:<stream> or <url for qcow2 image> ``` You will be able to see the instance using the `list` command. ``` -$ testcloud instance list +$ testcloud list ``` Alternatively, the instances can also be viewed and manipulated using the **virt-manager** tool. +### Creating an instance with speciffic architecture + +Instances can be created with a different architecture than the host architecture. You'll need to have a proper +qemu binary installed for this to work (eg. qemu-system-aarch64-core for aarch64 on x86_64 on Fedora). Supported +architectures in testcloud are: x86_64, aarch64, ppc64le, and s390x. Any combinations of these are supported. + +Some examples: + +``` +# Fedora aarch64 on x86_64 (or any other) +$ testcloud create fedora --arch aarch64 +``` + +``` +# CentOS Stream x86_64 on aarch64 (or any other) +$ testcloud create centos-stream --arch x86_64 +``` + +``` +# Fedora Rawhide ppc64le on aarch64 (or any other) +$ testcloud create fedora:rawhide --arch ppc64le +``` + ### Starting, stopping, and removing an instance Instances can be started and stopped using the `instance` interface of @@ -136,25 +154,25 @@ the **testcloud**, too: 1. List all instances to see the correct name of the instance: ``` - $ testcloud instance list + $ testcloud list ``` 2. Start the instance: ``` - $ testcloud instance start <instance-name> + $ testcloud start <instance-name> ``` 3. Stop the instance: ``` - $ testcloud instance stop <instance-name> + $ testcloud stop <instance-name> ``` 4. Remove the instance: ``` - $ testcloud instance remove <instance-name> + $ testcloud remove <instance-name> ``` Removing the instance only succeeds when the appropriate instance has @@ -166,13 +184,13 @@ removing the instance. 1. Reboot the instance: ``` - $ testcloud instance reboot <instance-name> + $ testcloud reboot <instance-name> ``` 2. Remove non-existing libvirt VMs from testcloud: ``` - $ testcloud instance clean + $ testcloud clean ``` ### Logging into the instance @@ -186,7 +204,7 @@ ssh cloud-user@<instance-IP> ``` The IP address of an instance is also shown when you list the instance -using the `testcloud instance list` command. You can also control the +using the `testcloud list` command. You can also control the instance using the **virt-manager** , **GNOME Boxes** or any other tool to manage libvirt VMs. ### Available options to create an instance @@ -198,6 +216,11 @@ new instance using **testcloud**. : You can specify uri to qemu you wish to use. For limited environments, you might wish to use *qemu:///session*. Remote connections other than *qemu:///session* and *qemu:///system* (like qemu+ssh,...) are known to be problematic. +\--arch ARCH + +: To request a speciffic architecture for the guest. The default +| is the architecture of the host system. + \--ram RAM : To set the amount of RAM that will be available to the virtual @@ -229,6 +252,10 @@ new instance using **testcloud**. : To set the disk size of the virtual machine (in GiB) +\--disk_number + +: To provide disk number you want + There are several additional options that can be used to create a new Coreos instance using **testcloud**. @@ -467,45 +494,40 @@ your own, you can use the image from the **Fedora Cloud** download pages To create a new instance with the cloud image, run: ``` -$ testcloud instance create <url for qcow2 image> or <distro:version> +$ testcloud create <url for qcow2 image> or <distro:version> ``` Some examples how to create an instance with distribution:version shortcut: ``` # Latest Fedora Release -$ testcloud instance create fedora:latest -``` - -or, you can skip latest, which is the default value for version: -``` -# Latest Fedora Release -$ testcloud instance create fedora +$ testcloud create fedora ``` ``` # Fedora Rawhide (latest Nightly Compose) -$ testcloud instance create fedora:rawhide +$ testcloud create fedora:rawhide ``` ``` # CentOS Stream 8 -$ testcloud instance create centos-stream:8 +$ testcloud create centos-stream:8 ``` ``` # Ubuntu Hirsute (21.04) -$ testcloud instance create ubuntu:hirsute +$ testcloud create ubuntu:hirsute ``` ``` # Debian 11 -$ testcloud instance create debian:11 +$ testcloud create debian:11 ``` -Supported distributions with shortcuts are: Fedora, CentOS, CentOS Stream, Ubuntu and Debian. For other distributions, you can provide link to basically any qcow2 image which has the cloud-init package included. +Supported distributions with shortcuts are: Fedora, CentOS, CentOS Stream, Ubuntu, Debian, Alma, Rocky, and Oracle. +For other distributions, you can provide link to basically any qcow2 image which has the cloud-init package included. -Testcloud supports also Vagrant .box files, in a limited manner and currently only for CentOS. +Testcloud supports also Vagrant .box files, in a limited manner and currently only for Fedora and CentOS. **testcloud** will download the *qcow2* image and save it in the `/var/lib/testcloud/backingstores/<qcow2-filename>`. It will use this @@ -517,19 +539,42 @@ create the instance. To create a new instance with the coreos image, run: ``` -$ testcloud instance create fedora-coreos:<stream> or <url for qcow2 image> +$ testcloud create fedora-coreos:<stream> or <url for qcow2 image> ``` You will be able to see the instance using the `list` command. ``` -$ testcloud instance list +$ testcloud list ``` Alternatively, the instances can also be viewed and manipulated using the **virt-manager** tool. +### Creating an instance with speciffic architecture + +Instances can be created with a different architecture than the host architecture. You'll need to have a proper +qemu binary installed for this to work (eg. qemu-system-aarch64-core for aarch64 on x86_64 on Fedora). Supported +architectures in testcloud are: x86_64, aarch64, ppc64le, and s390x. Any combinations of these are supported. + +Some examples: + +``` +# Fedora aarch64 on x86_64 (or any other) +$ testcloud create fedora --arch aarch64 +``` + +``` +# CentOS Stream x86_64 on aarch64 (or any other) +$ testcloud create centos-stream --arch x86_64 +``` + +``` +# Fedora Rawhide ppc64le on aarch64 (or any other) +$ testcloud create fedora:rawhide --arch ppc64le +``` + ### Starting, stopping, and removing an instance Instances can be started and stopped using the `instance` interface of @@ -538,25 +583,25 @@ the **testcloud**, too: 1. List all instances to see the correct name of the instance: ``` - $ testcloud instance list + $ testcloud list ``` 2. Start the instance: ``` - $ testcloud instance start <instance-name> + $ testcloud start <instance-name> ``` 3. Stop the instance: ``` - $ testcloud instance stop <instance-name> + $ testcloud stop <instance-name> ``` 4. Remove the instance: ``` - $ testcloud instance remove <instance-name> + $ testcloud remove <instance-name> ``` Removing the instance only succeeds when the appropriate instance has @@ -568,13 +613,13 @@ removing the instance. 1. Reboot the instance: ``` - $ testcloud instance reboot <instance-name> + $ testcloud reboot <instance-name> ``` 2. Remove non-existing libvirt VMs from testcloud: ``` - $ testcloud instance clean + $ testcloud clean ``` ### Logging into the instance @@ -588,7 +633,7 @@ ssh cloud-user@<instance-IP> ``` The IP address of an instance is also shown when you list the instance -using the `testcloud instance list` command. You can also control the +using the `testcloud list` command. You can also control the instance using the **virt-manager** , **GNOME Boxes** or any other tool to manage libvirt VMs. ### Available options to create an instance @@ -600,6 +645,11 @@ new instance using **testcloud**. : You can specify uri to qemu you wish to use. For limited environments, you might wish to use *qemu:///session*. Remote connections other than *qemu:///session* and *qemu:///system* (like qemu+ssh,...) are known to be problematic. +\--arch ARCH + +: To request a speciffic architecture for the guest. The default +| is the architecture of the host system. + \--ram RAM : To set the amount of RAM that will be available to the virtual @@ -631,6 +681,10 @@ new instance using **testcloud**. : To set the disk size of the virtual machine (in GiB) +\--disk_number + +: To provide disk number you want + There are several additional options that can be used to create a new Coreos instance using **testcloud**. @@ -866,45 +920,40 @@ your own, you can use the image from the **Fedora Cloud** download pages To create a new instance with the cloud image, run: ``` -$ testcloud instance create <url for qcow2 image> or <distro:version> +$ testcloud create <url for qcow2 image> or <distro:version> ``` Some examples how to create an instance with distribution:version shortcut: ``` # Latest Fedora Release -$ testcloud instance create fedora:latest -``` - -or, you can skip latest, which is the default value for version: -``` -# Latest Fedora Release -$ testcloud instance create fedora +$ testcloud create fedora ``` ``` # Fedora Rawhide (latest Nightly Compose) -$ testcloud instance create fedora:rawhide +$ testcloud create fedora:rawhide ``` ``` # CentOS Stream 8 -$ testcloud instance create centos-stream:8 +$ testcloud create centos-stream:8 ``` ``` # Ubuntu Hirsute (21.04) -$ testcloud instance create ubuntu:hirsute +$ testcloud create ubuntu:hirsute ``` ``` # Debian 11 -$ testcloud instance create debian:11 +$ testcloud create debian:11 ``` -Supported distributions with shortcuts are: Fedora, CentOS, CentOS Stream, Ubuntu and Debian. For other distributions, you can provide link to basically any qcow2 image which has the cloud-init package included. +Supported distributions with shortcuts are: Fedora, CentOS, CentOS Stream, Ubuntu, Debian, Alma, Rocky, and Oracle. +For other distributions, you can provide link to basically any qcow2 image which has the cloud-init package included. -Testcloud supports also Vagrant .box files, in a limited manner and currently only for CentOS. +Testcloud supports also Vagrant .box files, in a limited manner and currently only for Fedora and CentOS. **testcloud** will download the *qcow2* image and save it in the `/var/lib/testcloud/backingstores/<qcow2-filename>`. It will use this @@ -916,19 +965,42 @@ create the instance. To create a new instance with the coreos image, run: ``` -$ testcloud instance create fedora-coreos:<stream> or <url for qcow2 image> +$ testcloud create fedora-coreos:<stream> or <url for qcow2 image> ``` You will be able to see the instance using the `list` command. ``` -$ testcloud instance list +$ testcloud list ``` Alternatively, the instances can also be viewed and manipulated using the **virt-manager** tool. +### Creating an instance with speciffic architecture + +Instances can be created with a different architecture than the host architecture. You'll need to have a proper +qemu binary installed for this to work (eg. qemu-system-aarch64-core for aarch64 on x86_64 on Fedora). Supported +architectures in testcloud are: x86_64, aarch64, ppc64le, and s390x. Any combinations of these are supported. + +Some examples: + +``` +# Fedora aarch64 on x86_64 (or any other) +$ testcloud create fedora --arch aarch64 +``` + +``` +# CentOS Stream x86_64 on aarch64 (or any other) +$ testcloud create centos-stream --arch x86_64 +``` + +``` +# Fedora Rawhide ppc64le on aarch64 (or any other) +$ testcloud create fedora:rawhide --arch ppc64le +``` + ### Starting, stopping, and removing an instance Instances can be started and stopped using the `instance` interface of @@ -937,25 +1009,25 @@ the **testcloud**, too: 1. List all instances to see the correct name of the instance: ``` - $ testcloud instance list + $ testcloud list ``` 2. Start the instance: ``` - $ testcloud instance start <instance-name> + $ testcloud start <instance-name> ``` 3. Stop the instance: ``` - $ testcloud instance stop <instance-name> + $ testcloud stop <instance-name> ``` 4. Remove the instance: ``` - $ testcloud instance remove <instance-name> + $ testcloud remove <instance-name> ``` Removing the instance only succeeds when the appropriate instance has @@ -967,13 +1039,13 @@ removing the instance. 1. Reboot the instance: ``` - $ testcloud instance reboot <instance-name> + $ testcloud reboot <instance-name> ``` 2. Remove non-existing libvirt VMs from testcloud: ``` - $ testcloud instance clean + $ testcloud clean ``` ### Logging into the instance @@ -987,7 +1059,7 @@ ssh cloud-user@<instance-IP> ``` The IP address of an instance is also shown when you list the instance -using the `testcloud instance list` command. You can also control the +using the `testcloud list` command. You can also control the instance using the **virt-manager** , **GNOME Boxes** or any other tool to manage libvirt VMs. ### Available options to create an instance @@ -999,6 +1071,11 @@ new instance using **testcloud**. : You can specify uri to qemu you wish to use. For limited environments, you might wish to use *qemu:///session*. Remote connections other than *qemu:///session* and *qemu:///system* (like qemu+ssh,...) are known to be problematic. +\--arch ARCH + +: To request a speciffic architecture for the guest. The default +| is the architecture of the host system. + \--ram RAM : To set the amount of RAM that will be available to the virtual @@ -1030,6 +1107,10 @@ new instance using **testcloud**. : To set the disk size of the virtual machine (in GiB) +\--disk_number + +: To provide disk number you want + There are several additional options that can be used to create a new Coreos instance using **testcloud**. @@ -1210,7 +1291,7 @@ This code is licensed GPLv2+. See the LICENSE file for details. %prep -%autosetup -n testcloud-0.8.2 +%autosetup -n testcloud-0.9.2 %build %py3_build @@ -1250,5 +1331,5 @@ mv %{buildroot}/doclist.lst . %{_docdir}/* %changelog -* Thu Mar 09 2023 Python_Bot <Python_Bot@openeuler.org> - 0.8.2-1 +* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 0.9.2-1 - Package Spec generated @@ -1 +1 @@ -ee7090980f3d6e80140ff4243a1ae745 testcloud-0.8.2.tar.gz +0f09ec67c1885c1aed69028d245b38e4 testcloud-0.9.2.tar.gz |