Re: [ovirt-users] How to asssign a static IP to VM?

2016-08-11 Thread Ollie Armstrong
On 11 August 2016 at 13:10, lifuqiong  wrote:
> I searched google and found there is no way to assign a static IP to VM
> until 2012, in http://lists.ovirt.org/pipermail/users/2012-May/007559.html;
>
>
>
> Is there any solution to assign static IP now?

You can use cloud-init to provision an IP address to a machine. Or
integration with OpenStack Neutron would probably allow for that too
(via DHCP I imagine).

Any reason why you don't just use static DHCP leases?
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] VM storage issue after snapshot deletion

2016-08-05 Thread Ollie Armstrong
On 5 August 2016 at 14:21, Markus Stockhausen <stockhau...@collogia.de> wrote:
>
> Bad news,
>
> the only option that worked in our case was to kill the VM. Afterwards we 
> sometimes had to compare
> OVirt DB and storage filesystem status. Because some of the disk snapshots 
> completed in between but
> OVirt did not recognize. In the worst case we had to fix the state manually 
> be moving image files
> (on our NFS), merging images on the command line or manipulating the DB.
>
> First shot would be: Stop VM & backup images + snapshots for the recovery 
> case. Afterwards try to
> start the VM and see what happens.
> 
> Von: Ollie Armstrong [ol...@fubra.com]
> Gesendet: Freitag, 5. August 2016 13:10
> An: Markus Stockhausen
> Cc: users@ovirt.org
> Betreff: Re: [ovirt-users] VM storage issue after snapshot deletion
>
> Is there any way I can cancel the current operation (it is still ongoing) so 
> that I can get the hosts upgraded?

Thanks for your help, Markus.  I'll think it through over the weekend
and see if anyone else has any bright ideas to get me out of this mess
and give it a shot Monday.

Have a good weekend :)
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] VM storage issue after snapshot deletion

2016-08-05 Thread Ollie Armstrong
On 5 August 2016 at 11:22, Markus Stockhausen <stockhau...@collogia.de>
wrote:

> > I'm having an issue with a VM after initiating a snapshot deletion.
> > Shortly after the deletion started the VM was paused and has not
> > recovered since, this was over 12 hours ago.
>
> Could you check https://bugzilla.redhat.com/show_bug.cgi?id=1329543 ?


Thanks, looks like that may be the issue.

Is there any way I can cancel the current operation (it is still ongoing)
so that I can get the hosts upgraded?


-- 
[image: Fubra Ltd.] <http://www.fubra.com/>

Ollie Armstrong

Sysadmin
ol...@fubra.com fubra.com
Fubra is a company limited by shares and registered in England and Wales
with number 3967214 at Manor Coach House, Church Hill, Aldershot,
Hampshire, GU12 4RQ. We are registered for VAT with number GB733667024, and
as a data controller with number Z5193400. We are members of RIPE, Nominet,
the Italian RA and registered with OfCom as a provider of electronic
communications services.
*Calls to this number will cost 5p per minute plus your network access
charge
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Upgrade version problem

2016-06-03 Thread Ollie Armstrong
On 3 June 2016 at 11:48,   wrote:
> Seems ovirt-engine-tools package is not marked for update although there is
> a new version in repos (for example in [1]), 3.6.6.2. I run 'yum clean all'
> previously to update to make sure this is not a cache issue and did not
> solve the problem.

I don't know if you have a solution, but I hit this on the last
upgrade. I just updated ovirt-engine-setup and ran engine-setup which
pulled in all the required packages properly.  This is the recommended
procedure from the upgrade notes.
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Deleting templates

2016-04-28 Thread Ollie Armstrong
On 28 April 2016 at 10:20, Nicolas Ecarnot  wrote:
> IIRC, I should be able to delete a template if all my templated VMs are 
> *cloned*, and I should not be able to delete a template if some of my 
> templated VMs are "based on/thined/tpl-snapshoted/whatever" ?

As far as my understanding goes, this is correct.

In my environment at least, whenever as VM is created through the web
UI it is cloned and I can delete the template.  By default, the API
doesn't seem to clone the disk, but this can be specified.
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Failed migration - Migration is stuck

2016-04-21 Thread Ollie Armstrong
On 21 April 2016 at 12:43, Michal Skrivanek  wrote:
>> max_outgoing_migrations = 3
>
> you should lower this, otherwise it won’t fit (1 migration at 100MBps would 
> eat your whole link already). So use 1
>
>> migration_downtime = 1000
>
> it’s not really 1000. There’s a UI for that in Edit VM, so you shouldn’t set 
> it here at all
> and if you do, the algorithm behind it is not-so-great in <=3.6.5.
> Use migration_downtime_steps=3 or 5 or something lower to mitigate that wrong 
> algorithm behavior
>
> if you need to overcome a longer peak period of activity, also change 
> migration_progress_timeout to something more than 150s

Thanks so much for the tips Michal, I really appreciate it.  I'll have
to try these tweaks in my next maintenance window, so I'll post my
findings in a few days.

Cheers,
Ollie
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[ovirt-users] Failed migration - Migration is stuck

2016-04-21 Thread Ollie Armstrong
I'm having some issues with a couple of VMs in my cluster that cannot
be live migrated between hosts.  It appears to be the issue that is
referenced by https://access.redhat.com/solutions/870113 and
https://access.redhat.com/solutions/1159723.

I currently have a dedicated 1Gbps network for migrations and have
modified some of my vdsm settings so that my vdsm.conf looks like
this:

[vars]
ssl = true
migration_timeout = 600
migration_max_bandwidth = 100
max_outgoing_migrations = 3
migration_downtime = 1000

[addresses]
management_port = 54321

The issue was happening before the configuration changes too.

The relevant lines from my vdsm.log from the host that the VM is being
migrated from: http://ix.io/xeT

Has anyone been able to resolve this or come up with a workaround for
this problem?  I understand that it is because the migration cannot
occur as fast as the changes in the VM are happening so this could be
difficult to get working.  Some downtime is acceptable for these VMs,
so if there are further config changes that can be made which allow
for more downtime then I would consider that a solution.

Ollie
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Disks Illegal State

2016-04-18 Thread Ollie Armstrong
On 18 April 2016 at 13:16, Clint Boggio  wrote:
> Several of my VM snapshot disks show to be in an "illegal state". The system 
> will not allow me to manipulate the snapshots in any way, nor clone the 
> active system, or create a new snapshot.
>
> How can I troubleshoot this problem further, and hopefully alleviate the 
> condition ?

I've experienced a similar thing before and referred to this [1]
comment on BZ1302215 to help me out.  Followed those steps and my
issue was resolved.  I'm still not aware of the root cause of this
problem though.

[1] https://bugzilla.redhat.com/show_bug.cgi?id=1302215#c13
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Using REST API to get a proxyticket

2016-03-26 Thread Ollie Armstrong
Ah brilliant!  I never thought to try using SPICE instead.

Thanks, Juan.

On 25 March 2016 at 09:11, Juan Hernández <jhern...@redhat.com> wrote:
> On 03/24/2016 07:17 PM, Ollie Armstrong wrote:
>> Thanks.
>>
>> Unfortunately that still gives me the same NPE in the engine.log that
>> I uploaded in my first email.  I think I'll report this on BZ as it
>> isn't working for me when it works for you.
>>
>
> This is the effect of the following bug:
>
>   sign websocket proxy ticket via RESTapi when VM have VNC graphics protocol
>   https://bugzilla.redhat.com/1305837
>
> It should be fixed in version 3.6.5 of the engine.
>
> To clarify how to use the action, you don't have to send anything, just
> "", and it will return you the ticket. For example, using curl:
>
> ---8<---
> #!/bin/sh -ex
>
> url="https://engine.example.com/ovirt-engine/api;
> user="admin@internal"
> password="..."
> vmid="..."
> consoleid="..."
>
> curl \
> --verbose \
> --cacert /etc/pki/ovirt-engine/ca.pem \
> --request POST \
> --user "${user}:${password}" \
> --header "Content-Type: application/xml" \
> --header "Accept: application/xml" \
> --data '
> 
> ' \
> "${url}/vms/${vmid}/graphicsconsoles/${consoleid}/proxyticket"
> --->8---
>
> This will return a response like this:
>
>   
> 
>ey..A1==
> 
>   
>
> That long "value" is the Base64 encoded ticket.
>
>> On 24 March 2016 at 18:11, Gonzalo Rafuls <go...@redhat.com> wrote:
>>> Apparently you can get it as well with something like
>>> "".
>>>
>>> Only thing to change then is between curly brackets {}.
>
> --
> Dirección Comercial: C/Jose Bardasano Baos, 9, Edif. Gorbea 3, planta
> 3ºD, 28016 Madrid, Spain
> Inscrita en el Reg. Mercantil de Madrid – C.I.F. B82657941 - Red Hat S.L.



-- 

Ollie Armstrong

Web Developer / Sysadmin
ol...@fubra.com fubra.com
Fubra is a company limited by shares and registered in England and
Wales with number 3967214 at Manor Coach House, Church Hill,
Aldershot, Hampshire, GU12 4RQ. We are registered for VAT with number
GB733667024, and as a data controller with number Z5193400. We are
members of RIPE, Nominet, the Italian RA and registered with OfCom as
a provider of electronic communications services.
*Calls to this number will cost 5p per minute plus your network access charge
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Using REST API to get a proxyticket

2016-03-24 Thread Ollie Armstrong
Thanks.

Unfortunately that still gives me the same NPE in the engine.log that
I uploaded in my first email.  I think I'll report this on BZ as it
isn't working for me when it works for you.

On 24 March 2016 at 18:11, Gonzalo Rafuls  wrote:
> Apparently you can get it as well with something like
> "".
>
> Only thing to change then is between curly brackets {}.
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Using REST API to get a proxyticket

2016-03-24 Thread Ollie Armstrong
Thanks for the reply Gonza.  When you've quoted what you've used, what
should I use for "ticket_content" in this case? Is that the literal
string there?

On 24 March 2016 at 17:52, Gonzalo Rafuls  wrote:
> I was able to get the proxy ticket with curl like this:
>
> # curl -k -X POST \
> -H "Authorization: Basic YWRLKDFLKnfLfdNLDKDFnsldssL2" \
> -H "Accept: application/xml" \
> -H "Content-Type: application/xml" \
> -d
> "ticket_content"
> \
> -L
> https://{engine}:443/ovirt-engine/api/vms/{vm:id}/graphicsconsoles/{graphicsconsole:id}/proxyticket
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[ovirt-users] Using REST API to get a proxyticket

2016-03-24 Thread Ollie Armstrong
Hi all,

I'm attempting to use the REST API to get a proxy ticket as BZ1181030
[0] has added support for, but I am unable to find _any_ documentation
on how to use this new API call.

All I've found is the git commit message in gerrit [1].  Not quite
understanding how to interpret this, I've attempted to POST the
following:



As well as:

  ticket_content  

Both of these, and indeed using any other data I can think of, results
in an NPE being logged in engine.log.  I've uploaded my engine.log [2]
which is produced when I POST "" to the endpoint.

Is anyone able to tell me how to use this endpoint?  I'm assuming I
get the NPE because I'm not POSTing the correct data.  The overall
goal of this is to be able to embed a NoVNC console in our own web UI,
this is the last piece of the puzzle for me to implement this.

Thanks,
Ollie

[0] https://bugzilla.redhat.com/show_bug.cgi?id=1181030
[1] https://gerrit.ovirt.org/#/c/42412/
[2] http://ix.io/uVP
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[ovirt-users] Hosted engine storage "locked"

2016-02-17 Thread Ollie Armstrong
Hi,

I've updated from 3.6.1 to 3.6.2 and was hoping that the issue with
the hosted engine storage on FC not being imported would be solved.
It managed to start the import but now my storage has been stuck in
"Locked" for weeks.  None of the options in the web UI are available
except right click "Destroy".

Is there any way to restart the import process so maybe I can keep an
eye on the logs and find the issue?

Cheers,
Ollie
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[ovirt-users] [Rest API / Python SDK] Setting VM Video Type

2015-12-11 Thread Ollie Armstrong
Hi everyone,

I'm looking for a method of settings the VM's video type to QXL from
the Python SDK, which doesn't appear to be possible in any way.
Whenever I set the graphics protocol to VNC it defaults the video type
to CIRRUS.  I'd like to use QXL with VNC, which is possible to set
using the console's web UI.

Has anyone achieved this before?  Using the "SPICE + VNC" option with
QXL would also be acceptable, but the API doesn't seem to accept that
value for the graphics protocol.

Cheers,
Ollie
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] [Rest API / Python SDK] Setting VM Video Type

2015-12-11 Thread Ollie Armstrong
On 11 December 2015 at 12:04, Juan Hernández  wrote:
> What version of the engine are you using? Can you share the script that
> you are using to try to change the display type?
>
> In version 3.6 of then engine a new "/vm/{vm:id}/graphicsconsoles"
> service has been added that allows you to add/remove graphics consoles.
> For example, if you want to add VNC and SPICE as protocols you can do
> the following:

Thanks, Juan.  I didn't see that method.

I've tried to use your suggested script and I get a 500 error back
from the server.  The /var/log/ovirt-engine/engine.log shows the
reason to be 'Mapping exception while processing "POST" request for
path "/vms/361e911f-8d6d-479e-b399-526507f24dea/graphicsconsoles"'.
Any idea why I would be getting that?

The script I'm using is: http://ix.io/mKv
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] MAC OS

2015-11-16 Thread Ollie Armstrong
As far as I am aware, the OS X EULA requires installation to be on
Apple branded hardware.  So unless you're oVirt Host is running on
Apple hardware you'd be breaking the EULA of OS X.  This is likely why
it isn't part of the OS option list in oVirt.

On 16 November 2015 at 04:56, Budur Nagaraju  wrote:
> Does oVirt supports Mac OS ? if so which option do I need to select under
> "operating system " .
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] oVirt 3.6 hosted engine VM not showing

2015-11-06 Thread Ollie Armstrong
As a follow up to my own posting, for future Googlers, I found a bug
report at https://bugzilla.redhat.com/show_bug.cgi?id=1273378 which
will follow the issue.

On 5 November 2015 at 17:12, Ollie Armstrong <ol...@fubra.com> wrote:
> The engine VM used to display in 3.5 but it no longer appears to in 3.6.
> The storage method for the engine is the new FC if that's relevant.
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[ovirt-users] oVirt 3.6 hosted engine VM not showing

2015-11-05 Thread Ollie Armstrong
Hello,

Just installed a fresh deploy of oVirt 3.6 hosted engine and the engine VM
is not displaying in the VMs tab of the web UI (and also not listed in the
API response).  The host that it is running on shows a VM count of 1, but
the VM itself is not displayed.

The engine VM used to display in 3.5 but it no longer appears to in 3.6.
The storage method for the engine is the new FC if that's relevant.

Unsure if this is a bug or a feature, this has been mentioned a few times
in the IRC channel so it doesn't appear to just be affecting me.  Seems odd
that the VM count and the actual VMs list don't match up.

Cheers,
Ollie
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users