Displaying 6 results from an estimated 6 matches for "virsh_opt".
Did you mean:
virsh_net
2020 Oct 07
2
Is it possible that "virsh destroy" does not stop a domain ?
...cript, similar
to an init script.
Here is an excerp from the resource agent for virtual domains:
force_stop()
{
local out ex translate
local status=0
ocf_log info "Issuing forced shutdown (destroy) request for domain ${DOMAIN_NAME}."
out=$(LANG=C virsh $VIRSH_OPTIONS destroy ${DOMAIN_NAME} 2>&1) # hier wird die domain destroyed
ex=$?
translate=$(echo $out|tr 'A-Z' 'a-z')
echo >&2 "$translate"
case $ex$translate in
*"error:"*"domain is not runn...
2020 Oct 07
0
Re: Is it possible that "virsh destroy" does not stop a domain ?
...ss or
failure of the destroy based on the concatenation of the text of the exit
code and the text output by virsh; if either of those have changed between
virsh versions, and especially if virsh destroy ever exits with a status
other than zero, then you'll get that OCF error.
Do you know what $VIRSH_OPTIONS ends up as in your Pacemaker config,
particularly whether --graceful is specified?
Cheers,
- Peter
On Wed, 7 Oct 2020 at 18:13, Lentes, Bernd <
bernd.lentes@helmholtz-muenchen.de> wrote:
> Hi,
>
> Is it possible that "virsh destroy" does not stop a domain ?
> I...
2018 Sep 14
2
Re: live migration and config
...mains, i.e., point libvirt to the
> right XML when starting the domain.
Yes, it transient, really, we use pacemaker's VirtualDomain
http://www.linux-ha.org/wiki/VirtualDomain_(resource_agent)
pacemaker creates domain and destroys it.
As I can see from sources migration looks like:
virsh ${VIRSH_OPTIONS} migrate --live $migrate_opts $DOMAIN_NAME
$remoteuri $migrateuri &
Don't know which exact options it uses though.
Do we need xml on another host if domain is transient for live migration?
>
>> Unfortunately, my colleague left today for 2 weeks vacations and I have
>>...
2020 Oct 08
1
Re: Is it possible that "virsh destroy" does not stop a domain ?
...destroy based on the concatenation of the text of the exit code and the
> text output by virsh; if either of those have changed between virsh versions,
> and especially if virsh destroy ever exits with a status other than zero, then
> you'll get that OCF error.
> Do you know what $VIRSH_OPTIONS ends up as in your Pacemaker config,
> particularly whether --graceful is specified?
> Cheers,
> - Peter
Hi Peter,
that means in the end that with "virsh destroy" i can't be 100% sure that a domain is stopped.
Is there another way ?
Bernd
Helmholtz Zentrum München...
2018 Sep 14
0
Re: live migration and config
...ight XML when starting the domain.
>
> Yes, it transient, really, we use pacemaker's VirtualDomain
> http://www.linux-ha.org/wiki/VirtualDomain_(resource_agent)
>
> pacemaker creates domain and destroys it.
>
> As I can see from sources migration looks like:
> virsh ${VIRSH_OPTIONS} migrate --live $migrate_opts $DOMAIN_NAME
> $remoteuri $migrateuri &
>
> Don't know which exact options it uses though.
>
> Do we need xml on another host if domain is transient for live migration?
No, the XML is only needed when starting the domain. At the beginning...
2018 Sep 13
2
Re: live migration and config
13.09.2018 18:57, Jiri Denemark пишет:
> On Thu, Sep 13, 2018 at 18:38:57 +0400, Dmitry Melekhov wrote:
>>
>> 13.09.2018 17:47, Jiri Denemark пишет:
>>> On Thu, Sep 13, 2018 at 10:35:09 +0400, Dmitry Melekhov wrote:
>>>> After some mistakes yesterday we ( me and my colleague ) think that it
>>>> will be wise for libvirt to check config file existence