-
Notifications
You must be signed in to change notification settings - Fork 270
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
Backport NPE fixes #852
Closed
Closed
Backport NPE fixes #852
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Signed-off-by: Martin Perina <mperina@redhat.com>
We are checking maximum number of available file descriptors when building engine for all support permutations. But in CBS this validation doesn't work because maximum number of available file descriptors is not reported properly. And we are also limiting number of workers for GWT build, so we don't get near this limit. Signed-off-by: Martin Perina <mperina@redhat.com>
Having 2 localWorkers for GWT build decreases compilation time significantly and it doesn't exceed available resources in CBS. Signed-off-by: Martin Perina <mperina@redhat.com>
Adding callback to RemoveDiskCommand so that it would wait for RemoveImageCommand to finish, incl. removing the image from the DB. This fixes an issue where RemoveDisk job was marked as FINISHED before the image was actually removed from the DB. Bug-Url: https://bugzilla.redhat.com/2137207
Signed-off-by: Martin Perina <mperina@redhat.com>
Signed-off-by: Martin Perina <mperina@redhat.com>
apache-commons-jxpath is no longer needed, it was a dependency of apache-commons-configuration, which has been already removed in oVirt#619 Signed-off-by: Martin Perina <mperina@redhat.com>
dnf builddep needs root, let's try a passwordless sudo in case the automation is using a different user. Sudo needs to be configred separately.
When cloning a VM from a snapshot, isTpmEnabled parameter is not set in VmSnapshotListModel, resulting in a loss of the TPM device and an error if the TPM device is mandatory, i.e. for VMs with newer Windows versions as the guest OS. This patch fixes the omission and adds the corresponding parameter. Bug-Url: oVirt#702 Bug-Url: https://bugzilla.redhat.com/2136180
TPM device is not updated in VmDeviceUtils.updateVmDevicesInParameters. This results in omitting the TPM device at least when exporting a VM to a data domain and an error when the TPM device is mandatory, i.e. for VMs with a modern Windows guest OS. This patch fixes the omission and sets the corresponding parameter. Bug-Url: oVirt#702
* Create rhv-build
If getImagesList fails due to an error we should not continue with attaching the SD assuming there no disks on the storage as this will corrupt the OVF stores. Instead fail the attach operation and have the user retry once the issue is resolved. Bug-Url: https://bugzilla.redhat.com/2126602 Signed-off-by: Benny Zlotnik <bzlotnik@redhat.com>
Previously, RemoveVm and RemoveAllVmImages didn't have a callback so they didn't wait for all instances of RemoveImage to finish before finishing RemoveVm and therefore the job of RemoveVm may have been completed while the images are still locked in the database. Now, RemoveVm is completed after RemoveImage completes and the images are removed from the database. Signed-off-by: Arik Hadas <ahadas@redhat.com>
GitHub builds had duplicated dates in RPM names. Also swapped date and githash so that RPMs are time-sorted. Use githash for snapshot builds.
we run with bash -e, need to make sure all return codes are 0.
Signed-off-by: Martin Perina <mperina@redhat.com>
Signed-off-by: Martin Perina <mperina@redhat.com>
ReduceImage is an asynchronous operation. Previously, on positive flow we logged a successful execution message on both 'execute' and 'end-action' phases of the command. The former is incorrect and therefore dropped (we typically log a message that says that the operation has started at this point but we don't plan for another translation cycle so it's not added as part of this change). Bug-Url: https://bugzilla.redhat.com/2141437 Signed-off-by: Arik Hadas <ahadas@redhat.com>
When importing an OVA that is not originated in oVirt the VM will diappear after detaching its storage domain. The vm will not be seen in the import VM tab. From now on even if the imported VM is no originated in ovirt it could be imported after detaching the storage domain. Bug-Url: https://bugzilla.redhat.com/2028242 Signed-off-by: Artiom Divak <adivak@redhat.com> Signed-off-by: Arik Hadas <ahadas@redhat.com>
Signed-off-by: Martin Perina <mperina@redhat.com>
Signed-off-by: Martin Perina <mperina@redhat.com>
Signed-off-by: Martin Perina <mperina@redhat.com>
RemoveImage now attaches the created async task to itself rather than to its parent command and its EndProcedure type is changed to COMMAND_MANAGED. With these changes, first the execution of RemoveImage is completed and then its parent's callback detects it and completes the execution of the parent command. Signed-off-by: Arik Hadas <ahadas@redhat.com>
RemoveImage may lack async tasks when: 1. The image doesn't exist 2. There's a failure during delete image With these changes, the image is removed from the database (rather than staying in LOCKED state) and the command would finish successfully in the first case, and in the second case the command end with failure and the image switches to ILLEGAL state. Signed-off-by: Arik Hadas <ahadas@redhat.com>
Mark current directory as safe for git to be able to parse git hash when building .src.rpm Signed-off-by: Martin Perina <mperina@redhat.com>
Setting some of the properties returned an error [1] This is a regression caused by https://bugzilla.redhat.com/show_bug.cgi?id=2089299 [1] https://lists.ovirt.org/archives/list/users@ovirt.org/message/OPH7BHGBGWMECQKRXY6GW3YGZR73JK2D/ Signed-off-by: dangel101 <dangel101@gmail.com>
Ansible-Runner artifacts are cleaned up periodically according to the properties configured in engine-config: AnsibleRunnerArtifactsLifetimeInDays: How many days artifacts will be kept before they are cleaned up AnsibleRunnerArtifactsCleanupCheckTimeInHours: The periodic time to execute the clean up Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=2151549 Signed-off-by: dangel101 <dangel101@gmail.com>
Signed-off-by: Martin Perina <mperina@redhat.com>
Signed-off-by: Martin Perina <mperina@redhat.com>
Adding info regarding the file's creation time in days, current date in days and the config value artifacts life time is set to, for easier debugging Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=2151549 Signed-off-by: dangel101 <dangel101@gmail.com>
WE have handled only IOException, but when a file cannot be removed due to insufficient permissions then SecurityException is raised and because of that we didn't continue with the removal of other directories. Bug-Url: https://bugzilla.redhat.com/2151549 Signed-off-by: Martin Perina <mperina@redhat.com>
Signed-off-by: Michal Skrivanek <michal.skrivanek@redhat.com>
Signed-off-by: Michal Skrivanek <michal.skrivanek@redhat.com>
Bug-Url: http://bugzilla.redhat.com/2180230 Change-Id: Iee6fa946f52481091a431a6ef0f173d74f9e37f2 Signed-off-by: Eitan Raviv <eraviv@redhat.com>
When picking a host for transfer-image job, we filter hosts that are UP and then process the data they reported on storage domains without checking whether the host actually reported this data. It can happen that hosts are UP and still have not reported data on storage domains, in which case the data is null, resulting in an NPE in the transfer-image flow. This patch changes the predicate that is used to filter hosts for transfer-image, adding a null-check to avoid that NPE. Bug-Url: https://bugzilla.redhat.com/2203132 Signed-off-by: Arik Hadas <ahadas@redhat.com>
Signed-off-by: Laszlo Szomor <laszomor@gmail.com>
Signed-off-by: Arik Hadas <ahadas@redhat.com>
ahadas
requested review from
sgratch,
ljelinkova,
mwperina,
didib,
sandrobonazzola,
oliel,
bennyz,
emesika,
michalskrivanek and
smelamud
as code owners
May 21, 2023 13:48
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Backport #849 and #850