You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 22, 2026. It is now read-only.
print_("Domain installation still in progress. Waiting"+\
696
-
((wait_time>0)
697
-
and (_(" %d minutes") % (int(wait_time) /60))
698
-
or"") + \
699
-
" for domain to complete installation.")
700
-
whileTrue:
701
-
ifdomain_is_shutdown(dom):
702
-
print_("Domain has shutdown. Continuing.")
703
-
try:
704
-
# Lookup a new domain object incase current
705
-
# one returned bogus data (see comment in
706
-
# domain_is_shutdown
707
-
dom=guest.conn.lookupByName(guest.name)
708
-
exceptException, e:
709
-
raiseRuntimeError(_("Could not lookup domain after install: %s"%str(e)))
710
-
break
711
-
ifwait_time<0or \
712
-
((time.time() -start_time) <wait_time):
713
-
time.sleep(2)
714
-
else:
715
-
print_("Installation has exceeded specified time"
716
-
"limit. Exiting application.")
717
-
sys.exit(1)
718
-
else:
719
-
print_("Domain installation still in progress. "
720
-
"You can reconnect to \nthe console to complete "
721
-
"the installation process.")
722
-
sys.exit(0)
723
-
724
-
ifnotstarted:
725
-
started=True
726
-
ifnotguest.post_install_check():
727
-
print_("Domain installation does not appear to have been\n successful. If it was, you can restart your domain\n by running 'virsh start %s'; otherwise, please\n restart your installation.") %(guest.name,)
728
-
sys.exit(0)
669
+
# This should be valid even before doing continue install
670
+
ifnotguest.post_install_check():
671
+
print_("Domain installation does not appear to have been\n "
672
+
"successful. If it was, you can restart your domain\n "
print_("Domain installation may not have been\n successful. If it was, you can restart your domain\n by running 'virsh start %s'; otherwise, please\n restart your installation.") %(guest.name,)
699
+
print (_("Domain installation may not have been\n successful. If it "
700
+
"was, you can restart your domain\n by running 'virsh start "
701
+
"%s'; otherwise, please\n restart your installation.") %
702
+
guest.name)
747
703
raise
748
704
705
+
defdomain_is_shutdown(dom):
706
+
info=dom.info()
707
+
state=info[0]
708
+
cpu_time=info[4]
709
+
710
+
ifstate==libvirt.VIR_DOMAIN_SHUTOFF:
711
+
returnTrue
712
+
713
+
# If --wait was specified, the dom object we have was looked up
714
+
# before initially shutting down, which seems to bogus up the
715
+
# info data (all 0's). So, if it is bogus, assume the domain is
0 commit comments