8000 Backports/virt file size float by SchoolGuy · Pull Request #3073 · cobbler/cobbler · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Backports/virt file size float #3073

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Apr 25, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10000
4 changes: 2 additions & 2 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ name: "CodeQL"

on:
push:
branches: [ master, release* ]
branches: [ main, release* ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ master ]
branches: [ main ]
schedule:
- cron: '36 22 * * 3'

Expand Down
10 changes: 2 additions & 8 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,9 @@ name: Linting

on:
push:
branches:
- master
- release30
- release32
branches: [ main, release* ]
pull_request:
branches:
- master
- release30
- release32
branches: [ main, release* ]

jobs:
lint_docs:
Expand Down
10 changes: 2 additions & 8 deletions .github/workflows/packaging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,9 @@ name: Building Cobbler packages

on:
push:
branches:
- master
- release30
- release32
branches: [ main, release* ]
pull_request:
branches:
- master
- release30
- release32
branches: [ main, release* ]

jobs:
build-centos8-rpms:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release_master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Publish Python distributions to TestPyPI
on:
push:
branches:
- master
- main

env:
DATAPATH: "/usr/share/cobbler"
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/system_testing.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
name: System testing

on:
push:
branches: [ main, release* ]
pull_request:
branches:
- master
branches: [ main, release* ]

jobs:
run_system_test:
Expand Down
10 changes: 2 additions & 8 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,9 @@ name: Testing Cobbler

on:
push:
branches:
- master
- release30
- release32
branches: [ main, release* ]
pull_request:
branches:
- master
- release30
- release32
branches: [ main, release* ]

jobs:
run_tests:
Expand Down
25 changes: 13 additions & 12 deletions SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,19 @@

## Supported Versions

| Version | Supported |
| --------- | ------------------------ |
| 4.0.X | Next API breaking Release |
| 3.3.x | Current Version: 3.3.2 |
| 3.2.x | Security only |
| 3.1.x | EOL |
| 3.0.x | EOL |
| 2.8.x | EOL |
| 2.6.x | EOL |
| 2.4.x | EOL |
| 2.2.x | EOL |
| < 2.x.x | EOL |
| Version | Supported |
|---------|---------------------------|
| 4.0.X | Next API breaking Release |
| 3.4.x | Current Version: 3.4.0 |
| 3.3.x | Security only |
| 3.2.x | EOL |
| 3.1.x | EOL |
| 3.0.x | EOL |
| 2.8.x | EOL |
| 2.6.x | EOL |
| 2.4.x | EOL |
| 2.2.x | EOL |
| < 2.x.x | EOL |

Due to the amount of maintainers we have, we can only support the most current version. Old versions won't be actively
maintained.
Expand Down
2 changes: 1 addition & 1 deletion cobbler.spec
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@
%endif

Name: cobbler
Version: 3.3.2
Version: 3.3.3
Release: 1%{?dist}
Summary: Boot server configurator
URL: https://cobbler.github.io/
Expand Down
2 changes: 1 addition & 1 deletion cobbler/actions/buildiso/netboot.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ def generate_profile(self, distro_breed: str) -> str:
:param distro_breed: The name of the distribution breed.
:return: The generated append line.
"""
self.append_line = " append initrd=%s.img" % self.distro_name
self.append_line = " APPEND initrd=%s.img" % self.distro_name
if distro_breed == "suse":
if self.data.get("proxy", "") != "":
self.append_line += " proxy=%s" % self.data["proxy"]
Expand Down
4 changes: 2 additions & 2 deletions cobbler/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@
["virt_cpus", 1, '<<inherit>>', "Virt CPUs", True, "integer", 0, "int"],
["virt_disk_driver", "SETTINGS:default_virt_disk_driver", '<<inherit>>', "Virt Disk Driver Type", True,
"The on-disk format for the virtualization disk", [e.value for e in enums.VirtDiskDrivers], "str"],
["virt_file_size", "SETTINGS:default_virt_file_size", '<<inherit>>', "Virt File Size(GB)", True, "", 0, "int"],
["virt_file_size", "SETTINGS:default_virt_file_size", '<<inherit>>', "Virt File Size(GB)", True, "", 0.0, "float"],
["virt_path", "", '<<inherit>>', "Virt Path", True, "Ex: /directory OR VolGroup00", 0, "str"],
["virt_ram", "SETTINGS:default_virt_ram", '<<inherit>>', "Virt RAM (MB)", True, "", 0, "int"],
["virt_type", "SETTINGS:default_virt_type", '<<inherit>>', "Virt Type", True, "Virtualization technology to use",
Expand Down Expand Up @@ -422,7 +422,7 @@
["virt_cpus", "<<inherit>>", 0, "Virt CPUs", True, "", 0, "int"],
["virt_disk_driver", "<<inherit>>", 0, "Virt Disk Driver Type", True,
"The on-disk format for the virtualization disk", [e.value for e in enums.VirtDiskDrivers], "str"],
["virt_file_size", "<<inherit>>", 0, "Virt File Size(GB)", True, "", 0, "float"],
["virt_file_size", "<<inherit>>", 0.0, "Virt File Size(GB)", True, "", 0.0, "float"],
["virt_path", "<<inherit>>", 0, "Virt Path", True, "Ex: /directory or VolGroup00", 0, "str"],
["virt_pxe_boot", 0, 0, "Virt PXE Boot", True, "Use PXE to build this VM?", 0, "bool"],
["virt_ram", "<<inherit>>", 0, "Virt RAM (MB)", True, "", 0, "int"],
Expand Down
2 changes: 1 addition & 1 deletion cobbler/items/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ def virt_file_size(self) -> float:
:getter: The size of the image(s) in GB.
:setter: The float with the new size in GB.
"""
return self._virt_file_size
return self._resolve("virt_file_size")

@virt_file_size.setter
def virt_file_size(self, num: float):
Expand Down
2 changes: 1 addition & 1 deletion cobbler/items/item.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ def _resolve(self, property_name: str) -> Any:
% (type(self), self.name, property_name)
)

return attribute_value
return attribute_value

def _resolve_enum(
self, property_name: str, enum_type: Type[enums.ConvertableEnum]
Expand Down
2 changes: 1 addition & 1 deletion cobbler/items/profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ def virt_cpus(self, num: Union[int, str]):
self._virt_cpus = validate.validate_virt_cpus(num)

@property
def virt_file_size(self) -> int:
def virt_file_size(self) -> float:
r"""
The size of the image and thus the usable size for the guest.

Expand Down
2 changes: 1 addition & 1 deletion cobbler/settings/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def __init__(self):
self.default_template_type = "cheetah"
self.default_virt_bridge = "xenbr0"
self.default_virt_disk_driver = "raw"
self.default_virt_file_size = 5
self.default_virt_file_size = 5.0
self.default_virt_ram = 512
self.default_virt_type = "auto"
self.enable_ipxe = False
Expand Down
Loading
0