-
Notifications
You must be signed in to change notification settings - Fork 879
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
Detect kernel version before swap file creation #428
Commits on Jun 11, 2020
-
Detect kernel version before swap file creation
According to man page `man 8 swapon', "Preallocated swap files are supported on XFS since Linux 4.18". This patch checks for kernel version before attepting to create swapfile, using dd for XFS only on kernel versions <= 4.18 or btrfs. Signed-off-by: Eduardo Otubo <otubo@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for a56ef54 - Browse repository at this point
Copy the full SHA a56ef54View commit details -
Configuration menu - View commit details
-
Copy full SHA for f2eae6a - Browse repository at this point
Copy the full SHA f2eae6aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 73f97e9 - Browse repository at this point
Copy the full SHA 73f97e9View commit details -
Replace regex by os function calls
Replaced the regex by the os function calls and put it on a separate function inside util.py module. Signed-off-by: Eduardo Otubo <otubo@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for c746b03 - Browse repository at this point
Copy the full SHA c746b03View commit details -
Configuration menu - View commit details
-
Copy full SHA for e5fc9d4 - Browse repository at this point
Copy the full SHA e5fc9d4View commit details
Commits on Jun 15, 2020
-
adding @lru_cache() as the kernel version is unlikely to change durin…
…g the runtime of cloud-init.
Configuration menu - View commit details
-
Copy full SHA for 183c5ae - Browse repository at this point
Copy the full SHA 183c5aeView commit details
Commits on Jun 23, 2020
-
Update cloudinit/config/cc_mounts.py
Co-authored-by: Daniel Watkins <daniel@daniel-watkins.co.uk>
Configuration menu - View commit details
-
Copy full SHA for bf109a0 - Browse repository at this point
Copy the full SHA bf109a0View commit details -
Adding tests for util.kernel_version() new function
Signed-off-by: Eduardo Otubo <otubo@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for ec1f08b - Browse repository at this point
Copy the full SHA ec1f08bView commit details -
Adding test to check swap file creation method
Signed-off-by: Eduardo Otubo <otubo@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for d2cd4b4 - Browse repository at this point
Copy the full SHA d2cd4b4View commit details
Commits on Jun 24, 2020
-
Configuration menu - View commit details
-
Copy full SHA for d01111b - Browse repository at this point
Copy the full SHA d01111bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4f6b9fc - Browse repository at this point
Copy the full SHA 4f6b9fcView commit details
Commits on Jul 6, 2020
-
Wrapping test_kernel_version() into class
Wrapping test_kernel_version() into class TestKernelVersion() and adding pytest parametrize decoration. In order to have it working, the cache decoration would have to be removed, though. Otherwise the function cache would always return the same value and would fail the tests. Signed-off-by: Eduardo Otubo <otubo@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for d33cea3 - Browse repository at this point
Copy the full SHA d33cea3View commit details -
Splitting test_swap_creation_method() test into 3
Splitting test_swap_creation_method into 3 different cases for different filesystems. Leaving the methods way of asserting the test with only cc_mounts.handle() function. Like test_swap_integrity() does. Signed-off-by: Eduardo Otubo <otubo@redhat.com> [0] pytest-dev/pytest#3484
Configuration menu - View commit details
-
Copy full SHA for 52f1ca5 - Browse repository at this point
Copy the full SHA 52f1ca5View commit details
Commits on Jul 9, 2020
-
Moving swap tests from TestFstabHandling to TestSwapFileCreation
Creating a new class of tests TestSwapFileCreation() for this purpose. The class still uses test_helpers.FilesystemMockingTestCase to mock a file system so swap file can be created. Also added a check on cloudinit/config/cc_mounts.py to make sure the swap file really exists, which is not the case on unittests. The swap file is not being created, the test just makes sure if the correct calls are being done. Signed-off-by: Eduardo Otubo <otubo@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for a2527be - Browse repository at this point
Copy the full SHA a2527beView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8082a78 - Browse repository at this point
Copy the full SHA 8082a78View commit details
Commits on Jul 15, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 474c47b - Browse repository at this point
Copy the full SHA 474c47bView commit details
Commits on Jul 30, 2020
-
Configuration menu - View commit details
-
Copy full SHA for a521f6c - Browse repository at this point
Copy the full SHA a521f6cView commit details
Commits on Aug 17, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 2a8239c - Browse repository at this point
Copy the full SHA 2a8239cView commit details
Commits on Aug 18, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 97801c7 - Browse repository at this point
Copy the full SHA 97801c7View commit details -
fixing merge, removing pytest import (done by my patch) and removing …
…blank line added by merge
Configuration menu - View commit details
-
Copy full SHA for 9b0ac2c - Browse repository at this point
Copy the full SHA 9b0ac2cView commit details