search for: notfounderror

Displaying 20 results from an estimated 45 matches for "notfounderror".

2011 Oct 20
2
[PATCH] pygrub: do not overload RuntimeError for "no menu.lst found"
...the trace. Defining a separate exception for "no bootloader config file found" avoids this. diff --git a/tools/pygrub/src/pygrub b/tools/pygrub/src/pygrub --- a/tools/pygrub/src/pygrub +++ b/tools/pygrub/src/pygrub @@ -29,6 +29,9 @@ import grub.ExtLinuxConf PYGRUB_VER = 0.6 +class NotFoundError(RuntimeError): + pass + def enable_cursor(ison): if ison: val = 2 @@ -412,7 +412,7 @@ class Grub: self.cf.filename = f break if self.__dict__.get(''cf'', None) is None: - raise RuntimeError, "couldn'...
2019 Mar 17
2
[PATCH] v2v: rhv-upload-plugin - improve wait logic after finalize (RHBZ#1680361)
...fer " + "to finalize") + continue + + raise RuntimeError("Unexpected transfer phase while finalizing " + "upload %r" % transfer.phase) except sdk.NotFoundError: pass --
2019 Mar 17
2
Re: [PATCH] v2v: rhv-upload-plugin - improve wait logic after finalize (RHBZ#1680361)
...r " >> - "to finalize") >> + transfer = transfer_service.get() >> + >> + if transfer is None: > > > Are you sure this is possible? the original code assumed that we > fail with sdk.NotFoundError. > >> >> + disk_service = h['disk_service'] >> + disk = disk_service.get() >> + if disk.status == types.DiskStatus.OK: >> + continue > > > If the disk status is OK the u...
2019 Sep 09
3
[PATCH] v2v: rhv-upload-plugin - improve wait logic after finalize
This is a patch which Daniel Erez wrote originally. I have modified it only to fix a small bug in the debug() statement, and Ilanit kindly tested it here: https://bugzilla.redhat.com/show_bug.cgi?id=1680361#c38 Rich.
2020 Feb 24
2
Re: [PATCH v2v v2 2/2] rhv-upload: Check that rhv-disk-uuid is not already taken (RHBZ#1789279)
..._disk_uuid') > + if uuid is not None: > + try: > + disks_service.disk_service(uuid).get() > + nbdkit.set_error(errno.EEXIST) > + raise ValueError("Disk with the UUID '%s' already exists" % uuid) > + except sdk.NotFoundError: > + pass This check seems correct to me, although it is done too late: IMHO this is something to do in the precheck script, so we do not even attempt to connect to the source if any of the specified UUIDs already exists in oVirt. -- Pino Toscano
2018 Aug 05
3
[PATCH] v2v: rhv-plugin: Use string literal concatenation
...) if time.time() > endt: - raise RuntimeError("timed out waiting for transfer " + + raise RuntimeError("timed out waiting for transfer " "to finalize") except sdk.NotFoundError: pass -- 2.17.1
2019 Mar 17
2
Re: [PATCH v2] v2v: rhv-upload-plugin - improve wait logic after finalize (RHBZ#1680361)
..."to finalize") > + continue > + if disk.status == types.DiskStatus.OK: > + debug("finalized after %s seconds", time.time() - > start) > + break > except sdk.NotFoundError: > + debug("transfer finalize failed for disk: %s", disk_id) > This should explain the failure: "transfer failed: disk %s not found" > pass > This should be a failure now. > > # Write the disk ID file. Only do this o...
2019 Mar 17
0
Re: [PATCH] v2v: rhv-upload-plugin - improve wait logic after finalize (RHBZ#1680361)
...;timed out waiting for transfer " > - "to finalize") > + transfer = transfer_service.get() > + > + if transfer is None: > Are you sure this is possible? the original code assumed that we fail with sdk.NotFoundError. > + disk_service = h['disk_service'] > + disk = disk_service.get() > + if disk.status == types.DiskStatus.OK: > + continue > If the disk status is OK the upload was finished, so we should brea...
2008 Dec 10
1
Oddness with fieldnames containing an underscore
...ord" with "Lmmsoht" # features/ step_definitions/webrat_steps.rb:12 And I fill in "password_confirmation" with "Lmmsoht" # features/ step_definitions/webrat_steps.rb:12 Could not find field: "password_confirmation" (Webrat::NotFoundError) The test passes if I prepend "user_" to the field name ie. "user_password_confirmation". Same applies to the ''given_names'' field. Is this a bug or am I making an incorrect assumption on how things are supposed to work? TIA, JohnM -- "I'...
2019 Sep 09
1
Re: [PATCH] v2v: rhv-upload-plugin - improve wait logic after finalize (RHBZ#1680361)
..."to finalize") > + continue > + if disk.status == types.DiskStatus.OK: > + debug("finalized after %s seconds" % (time.time() - > start)) > + break > except sdk.NotFoundError: > - pass > + raise RuntimeError("transfer failed: disk %s not found" % > disk_id) > > # Write the disk ID file. Only do this on successful completion. > with builtin_open(params['diskid_file'], 'w') as fp: > --...
2010 Dec 20
1
Check whether link present nor not using cucumber
...ed in successfully") end Then /^"([^"]*)" link should be shown$/ do |arg1| clicks_link user_list_path #pending # express the regexp above with the code you wish you had end My problem is 2nd step:- Could not find link with text or title or id "/user-list" (Webrat::NotFoundError) features/admin.feature:5:in `Then "Users" link should be shown'' Failing Scenarios: cucumber features/admin.feature:3 # Scenario: Login as Admin Is there anything wrong with my code? How can I check whether the link is present or not? Also, My login is successful as admin but...
2020 Jan 29
4
[PATCH v2v v2 0/2] rhv-upload: Validate UUIDs and check they don't exist already
My stab v2 at fixing this: https://bugzilla.redhat.com/show_bug.cgi?id=1789279 It took me quite some time to go through the whole rfc 4122 just to realize we do not need to do anything with the versions. v2: - Use EEXIST instead of EINVAL - Put the colliding UUID into the error - Do not evaluate the PCRE needlessly multiple times v1:
2019 Nov 28
3
[PATCH] rhv-upload: Fix waiting for transfer
...sk and transfer shortly after. + endt = time.time() + timeout while True: - transfer = transfer_service.get() - if transfer.phase != types.ImageTransferPhase.INITIALIZING: + time.sleep(1) + try: + transfer = transfer_service.get() + except sdk.NotFoundError: + # The system has removed the disk and the transfer. + raise RuntimeError("transfer %s was removed" % transfer.id) + + if transfer.phase == types.ImageTransferPhase.FINISHED_FAILURE: + # The system will remove the disk and the transfer soon. +...
2020 Jan 23
5
[v2v PATCH 0/2] rhv-upload: Validate UUIDs and check they don't exist already
My stab at fixing this: https://bugzilla.redhat.com/show_bug.cgi?id=1789279 It took me quite some time to go through the whole rfc 4122 just to realize we do not need to do anything with the versions. Martin Kletzander (2): rhv-upload: Validate UUIDs passed to -oo rhv-disk-uuid (RHBZ#1789279) rhv-upload: Check that rhv-disk-uuid is not already taken (RHBZ#1789279)
2018 Sep 20
0
[PATCH v2 3/3] v2v: -o rhv-upload: Add a test.
...U General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +# Fake ovirtsdk4 module used as a test harness. +# See v2v/test-v2v-o-rhv-upload.sh + +class Error(Exception): + pass +class NotFoundError(Error): + pass + +class Connection(object): + def __init__( + self, + url = None, + username = None, + password = None, + ca_file = None, + log = None, + insecure = False, + ): + pass + + def system_serv...
2019 Aug 08
2
Re: [PATCH v3] v2v: rhv-upload-plugin - improve wait logic after finalize (RHBZ#1680361)
..."to finalize") > + continue > + if disk.status == types.DiskStatus.OK: > + debug("finalized after %s seconds", time.time() - start) > + break > except sdk.NotFoundError: > - pass > + raise RuntimeError("transfer failed: disk %s not found" % disk_id) > > # Write the disk ID file. Only do this on successful completion. > with builtins.open(params['diskid_file'], 'w') as fp: Ilanit te...
2018 Sep 20
7
[PATCH v2 0/3] v2v: -o rhv-upload: Add a test.
v1 was here: https://www.redhat.com/archives/libguestfs/2018-September/msg00121.html v2: - Rewrote patch 2 from scratch so it incorporates Nir's suggestions. - Add fake module to EXTRA_DIST. - Retested. Unfortunately I am no longer able to test the ordinary conversion path because ovirtsdk4 is incompatible with Fedora 29 / Python 3.7:
2018 Aug 06
0
Re: [PATCH] v2v: rhv-plugin: Use string literal concatenation
...f time.time() > endt: > - raise RuntimeError("timed out waiting for transfer " + > + raise RuntimeError("timed out waiting for transfer " > "to finalize") > except sdk.NotFoundError: > pass > -- > 2.17.1 -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-builder quickly builds VMs from scratch http://libguestfs.org/virt-builder.1.html
2019 Mar 17
0
[PATCH v2] v2v: rhv-upload-plugin - improve wait logic after finalize (RHBZ#1680361)
...er " + "to finalize") + continue + if disk.status == types.DiskStatus.OK: + debug("finalized after %s seconds", time.time() - start) + break except sdk.NotFoundError: + debug("transfer finalize failed for disk: %s", disk_id) pass # Write the disk ID file. Only do this on successful completion. --
2019 Mar 18
0
[PATCH v3] v2v: rhv-upload-plugin - improve wait logic after finalize (RHBZ#1680361)
...er " + "to finalize") + continue + if disk.status == types.DiskStatus.OK: + debug("finalized after %s seconds", time.time() - start) + break except sdk.NotFoundError: - pass + raise RuntimeError("transfer failed: disk %s not found" % disk_id) # Write the disk ID file. Only do this on successful completion. with builtins.open(params['diskid_file'], 'w') as fp: --