Re: [Users] Reimporting storage domains after reinstalling ovirt

2014-03-10 Thread Gadi Ickowicz
Hi,

Regarding what to do in order to be able to add the domain, due to the bug you 
pointed out (https://bugzilla.redhat.com/show_bug.cgi?id=1059604), the 
workaround is to move the host to a datacenter. Check the host's cluster under 
the web interface - if it does not list a datacenter, you can move the host to 
maintenance, select the cluster, click 'edit' and then select a datacenter.

The second error Error while executing action: Cannot add Storage Connection. 
Storage connection already exists. is also a known bug 
(https://bugzilla.redhat.com/show_bug.cgi?id=1014966). You need to find the 
storage connection and remove it manually from oVirt. This can be done with 
REST or SDK. 

For REST:
1. find the ID of the connection. should be at: fqdn/ip of 
engine/api/storageconnections . (look for the connection that lists 
192.168.1.44:/raid/ovirt-old/data and note it's ID)
2. Send a DELETE request to fqdn/ip of engine/api/storageconnections/ID of 
storage connection

Thanks,
Gadi Ickowicz

- Original Message -
From: Boudewijn Ector boudew...@boudewijnector.nl
To: users@ovirt.org
Sent: Monday, March 10, 2014 1:00:35 AM
Subject: Re: [Users] Reimporting storage domains after reinstalling ovirt


 
 
 (there's another storage doman which has to be converted too but 
 that's not that relevant imo).
 
 Now I log in onto the webinterface, select storage domain -
 import domain :
 
 Domain function set to export/NFS export path: 
 192.168.1.44:/raid/ovirt-old/data/
 
 (192.168.1.44 is the server's IP)
 
 
 Now this error pops up:
 
 Error while executing action: Cannot add Storage. Storage format V3
 is not supported on the selected host version.
 
 I just had a look for this one and found this bug (in which you 
 replied... such a small world :)  ) : 
 https://bugzilla.redhat.com/show_bug.cgi?id=1059604 But there's no
 obvious solution over there.
 
 Despite this the domains are available in the storage domain list
 but they're unattached so no use to me.
 
 Am I still missing something?
 
 Cheers,
 
 Boudewijn ___ Users
 mailing list Users@ovirt.org 
 http://lists.ovirt.org/mailman/listinfo/users
 
Interesting: i just tried readding it again (maybe rereading the
storage domain takes a lot of time) but despite it not showing up in
the storage domain list, ovirt's webadmin tells met the repo has
already been added:

Error while executing action: Cannot add Storage Connection. Storage
connection already exists.


Strange.

Cheers,

Boudewijn


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


[Users] Switching storage type?

2014-03-10 Thread mad
Hi,

Is it possible to switch a storage type with VMs still on it?

I have a datacenter with a local storage and I want to switch it to NFS
(or Gluster). Setting up the NFS on the directory is not a problem but I
can't detach the storage with VMs on it.

The next question would be if I could import the domain as NFS if it was
a local storage before.

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


[Users] oVirt in PAT - NAT environment

2014-03-10 Thread Jarno Puff
Hello folks,

I know, this is a topic where you have spend a lots of words, but, after 
installing oVirt 3.3 and 3.4 on CentOS and let goign google search engine to 
become hot, I don´t found any solution for my environment.

My environment:

- dedicated server at server4you.net with CentOS 6
- Main IP (public) 82.25.xx.yy
- Addon IP (public) 62.75.xx.yy

What I will do:

- create VMs on a private network 192.x.y.z
- talk to the internet from the VMs (NAT)
- reach the VMs from the internet (PAT)
- reach the VMs via SSH from the host server

I found some workarounds, but no one was easy to implement or the infos was 
not cobering all the aspects.

I have seen the possibility to use a hook, but no user guide and step by step 
instruction found.

Looking forward to get a working solution :-)

Cheers,

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


Re: [Users] Switching storage type?

2014-03-10 Thread Maor Lipchuk
Hi mad,

Since oVirt version 3.4 we support only two Data Center types, shared
and local.
changing the Data Center between the two is supported, though the Data
Center should not contain any Storage Domains.
So that means that if you have VMs with disks, you will need to export
them to an export domain and detach the storage domains.

Currently, we do not support import of Data Storage domains though it is
on the road map,

regards,
Maor

On 03/10/2014 10:24 AM, mad wrote:
 Hi,
 
 Is it possible to switch a storage type with VMs still on it?
 
 I have a datacenter with a local storage and I want to switch it to NFS
 (or Gluster). Setting up the NFS on the directory is not a problem but I
 can't detach the storage with VMs on it.
 
 The next question would be if I could import the domain as NFS if it was
 a local storage before.
 
 TIA
 mad
 ___
 Users mailing list
 Users@ovirt.org
 http://lists.ovirt.org/mailman/listinfo/users
 

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


Re: [Users] Reimporting storage domains after reinstalling ovirt

2014-03-10 Thread Itamar Heim

On 03/10/2014 12:30 AM, Boudewijn Ector wrote:




How should I go on recovering those VMs?


change the domain into an export domain, attach it, and import the
VMs from it (currently, you can only import an export domain) i
think this thread has the relevant info:
https://www.mail-archive.com/users@ovirt.org/msg04257.html


Okay thank you very much for pointing that out. I now realise the
difference between the regular and export shares.


I just changed the metadata file (at
/raid/ovirt-old/data/1979444d-b79a-494c-8c1a-bcc132e31a04/dom_md0) from:

[root@leiden dom_md]# cat metadata.backup
CLASS=Data
DESCRIPTION=leiden-data
IOOPTIMEOUTSEC=10
LEASERETRIES=3
LEASETIMESEC=60
LOCKPOLICY=
LOCKRENEWALINTERVALSEC=5
MASTER_VERSION=613
POOL_DESCRIPTION=Default
POOL_DOMAINS=dafe25c2-1ce7-4979-9d8d-a35688da207a:Active,1979444d-b79a-494c-8c1a-bcc132e31a04:Active,d2676b04-e2ff-420f-8f29-36dafc2df47b:Active
POOL_SPM_ID=1
POOL_SPM_LVER=0
POOL_UUID=5849b030-626e-47cb-ad90-3ce782d831b3
REMOTE_PATH=192.168.1.44:/raid/ovirt/data
ROLE=Master
SDUUID=1979444d-b79a-494c-8c1a-bcc132e31a04
TYPE=NFS
VERSION=3
_SHA_CKSUM=cab6c41e19812714ba79c48fc98b7037032725e4

into:

CLASS=Backup
DESCRIPTION=export-storage
IOOPTIMEOUTSEC=10
LEASERETRIES=3
LEASETIMESEC=60
LOCKPOLICY=
LOCKRENEWALINTERVALSEC=5
MASTER_VERSION=613
POOL_DESCRIPTION=Default
POOL_DOMAINS=
POOL_SPM_ID=1
POOL_SPM_LVER=0
POOL_UUID=
REMOTE_PATH=nfsserver:/raid/ovirt-old/data
ROLE=Regular
SDUUID=1979444d-b79a-494c-8c1a-bcc132e31a04
TYPE=NFS
VERSION=3



(there's another storage doman which has to be converted too but
that's not that relevant imo).

Now I log in onto the webinterface, select storage domain - import
domain :

Domain function set to export/NFS
export path:
192.168.1.44:/raid/ovirt-old/data/

(192.168.1.44 is the server's IP)


Now this error pops up:

Error while executing action: Cannot add Storage. Storage format V3 is
not supported on the selected host version.

I just had a look for this one and found this bug (in which you
replied... such a small world :)  ) :
https://bugzilla.redhat.com/show_bug.cgi?id=1059604
But there's no obvious solution over there.


the bug is about a host with a cluster not associated with a DC. is your 
cluster associated with a DC?




Despite this the domains are available in the storage domain list but
they're unattached so no use to me.

Am I still missing something?

Cheers,

Boudewijn


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


Re: [Users] oVirt in PAT - NAT environment

2014-03-10 Thread Assaf Muller
- Original Message -
 Hello folks,
 

Hi!

 I know, this is a topic where you have spend a lots of words, but, after
 installing oVirt 3.3 and 3.4 on CentOS and let goign google search engine to
 become hot, I don´t found any solution for my environment.
 
 My environment:
 
 - dedicated server at server4you.net with CentOS 6
 - Main IP (public) 82.25.xx.yy
 - Addon IP (public) 62.75.xx.yy
 
 What I will do:
 
 - create VMs on a private network 192.x.y.z
 - talk to the internet from the VMs (NAT)
 - reach the VMs from the internet (PAT)
 - reach the VMs via SSH from the host server
 

oVirt doesn't have built-in support for NAT. What you can do is either:
1) Define PAT on the data center edge router. For accessing VMS from the outside
you can either define port forwarding or DNAT. As for reaching the VMs from your
dedicated server, the easiest approach would be ensuring that the server has
a leg in the private network.

2) You might want to try the oVirt Neutron integration. In Neutron you can
create arbitrary private networks and VMs will get IPs from a DHCP server
created in Neutron. You can then define a 'floating ip', which is a mapping
between the VM's private IP and an allocated public IP on your public network.
Neutron will do the DNAT for you.

The oVirt Neutron integration in the recent 3.4 release [1] greatly improved
the integration and it now includes IP address management, so you'll be
able to do *nearly* everything from the oVirt GUI.

[1] http://www.ovirt.org/OVirt_3.4.0_release_notes

 I found some workarounds, but no one was easy to implement or the infos was
 not cobering all the aspects.
 
 I have seen the possibility to use a hook, but no user guide and step by
 step instruction found.
 
 Looking forward to get a working solution :-)
 
 Cheers,
 
 -Jarno
 ___
 Users mailing list
 Users@ovirt.org
 http://lists.ovirt.org/mailman/listinfo/users

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


[Users] Delete Detach Logical Network

2014-03-10 Thread Tejesh M
Hi,

I'm able to delete the logical network but this logical network after
deletion shows as unmanaged network in Setup Host Networks against the
hostnic.

I tried with this code to detach the logical network.

*Code 1:*
HostNIC nic = api.getHosts().get(rhevhost).getHostNics().get(eth1);
Action action = new Action();
action.setNetwork(api.getNetworks().get(nw_name));
action.setDetach(true);
action.setCheckConnectivity(false);
nic.detach(action);

*Returns*:
code  : 409
reason: Conflict
detail: Network Interface is not attached to Logical Network.

*Code 2:*
HostNIC nic = api.getHosts().get(rhevhost).getHostNics().get(eth1.1345);
Action action = new Action();
action.setNetwork(api.getNetworks().get(nw_name));
action.setDetach(true);
action.setCheckConnectivity(false);
nic.detach(action);

*Returns*:
code  : 409
reason: Conflict
detail: Cannot edit Network while Host is Active, change the Host to
Maintenance mode and try again.


-- 
Thanks  Regards
Tejesh
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] Delete Detach Logical Network

2014-03-10 Thread Moti Asayag


- Original Message -
 From: Tejesh M tejes...@gmail.com
 To: Moti Asayag masa...@redhat.com, users@oVirt.org users@ovirt.org
 Sent: Monday, March 10, 2014 1:22:08 PM
 Subject: Delete  Detach Logical Network
 
 Hi,
 
 I'm able to delete the logical network but this logical network after
 deletion shows as unmanaged network in Setup Host Networks against the
 hostnic.
 
 I tried with this code to detach the logical network.
 
 *Code 1:*
 HostNIC nic = api.getHosts().get(rhevhost).getHostNics().get(eth1);
 Action action = new Action();
 action.setNetwork(api.getNetworks().get(nw_name));
 action.setDetach(true);
 action.setCheckConnectivity(false);
 nic.detach(action);
 
 *Returns*:
 code  : 409
 reason: Conflict
 detail: Network Interface is not attached to Logical Network.
 

I can guess by the error message that the logical network 'rhevhost' is vlan,
so the proper interface should be the vlan device.


 *Code 2:*
 HostNIC nic = api.getHosts().get(rhevhost).getHostNics().get(eth1.1345);
 Action action = new Action();
 action.setNetwork(api.getNetworks().get(nw_name));
 action.setDetach(true);
 action.setCheckConnectivity(false);
 nic.detach(action);
 
 *Returns*:
 code  : 409
 reason: Conflict
 detail: Cannot edit Network while Host is Active, change the Host to
 Maintenance mode and try again.
 

This is the 3.0 api which required the host to be in maintenance for network
operations on the host. You could use setup networks instead which is the
recommended api and doesn't require the host to be in maintenance.

you can modify the example from [1] and set null for the network name you
wish to detach from the specific interface.

Try by replacing only lines 28-41 with:
HostNIC nic = nicsByNames.get(eth1.1345);
nic.setNetwork(null);

[1] 
https://motiasayag.wordpress.com/2014/02/24/invoke-setup-networks-from-the-java-sdk/

 
 --
 Thanks  Regards
 Tejesh
 
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] oVirt in PAT - NAT environment

2014-03-10 Thread Jarno Puff
Hi Assaf,

thanks for the answer.

the data center where my server reside is a server4you.net, so all what you get 
is a dedicated server and a public IP, thats it. You don´t have a private 
network via a NIC, the only access to the server is via the public IP.

Ok, let´s try Neutron. Where can I find details on this? How to enable it and 
how to configure it?

Anyone could also give me advices on how to setup the iptables on my server for 
correct DNAT and port forwarding to VMs? I would like to try boths.

-Jarno


- Ursprüngliche Mail -
Von: Assaf Muller amul...@redhat.com
An: relaxibus relaxi...@akfree.it
CC: users@ovirt.org
Gesendet: Montag, 10. März 2014 10:59:28
Betreff: Re: [Users] oVirt in PAT - NAT environment

- Original Message -
 Hello folks,
 

Hi!

 I know, this is a topic where you have spend a lots of words, but, after
 installing oVirt 3.3 and 3.4 on CentOS and let goign google search engine to
 become hot, I don´t found any solution for my environment.
 
 My environment:
 
 - dedicated server at server4you.net with CentOS 6
 - Main IP (public) 82.25.xx.yy
 - Addon IP (public) 62.75.xx.yy
 
 What I will do:
 
 - create VMs on a private network 192.x.y.z
 - talk to the internet from the VMs (NAT)
 - reach the VMs from the internet (PAT)
 - reach the VMs via SSH from the host server
 

oVirt doesn't have built-in support for NAT. What you can do is either:
1) Define PAT on the data center edge router. For accessing VMS from the outside
you can either define port forwarding or DNAT. As for reaching the VMs from your
dedicated server, the easiest approach would be ensuring that the server has
a leg in the private network.

2) You might want to try the oVirt Neutron integration. In Neutron you can
create arbitrary private networks and VMs will get IPs from a DHCP server
created in Neutron. You can then define a 'floating ip', which is a mapping
between the VM's private IP and an allocated public IP on your public network.
Neutron will do the DNAT for you.

The oVirt Neutron integration in the recent 3.4 release [1] greatly improved
the integration and it now includes IP address management, so you'll be
able to do *nearly* everything from the oVirt GUI.

[1] http://www.ovirt.org/OVirt_3.4.0_release_notes

 I found some workarounds, but no one was easy to implement or the infos was
 not cobering all the aspects.
 
 I have seen the possibility to use a hook, but no user guide and step by
 step instruction found.
 
 Looking forward to get a working solution :-)
 
 Cheers,
 
 -Jarno
 ___
 Users mailing list
 Users@ovirt.org
 http://lists.ovirt.org/mailman/listinfo/users

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


Re: [Users] oVirt in PAT - NAT environment

2014-03-10 Thread Sven Kieske
Hi,

well you wrote, you will create vms on a private net, I assume
on this host at server4you, so you _must_ have some kind of
virtual network interface on this server, which, at least, acts
as a virtual bridge to provide the vms with this network.

So you should adjust the routing(/pat/nat) accordingly
for this interface on your server.

HTH

Am 10.03.2014 14:43, schrieb Jarno Puff:
 the data center where my server reside is a server4you.net,
 so all what you get is a dedicated server and a
 public IP, thats it. You don´t have a private network
 via a NIC, the only access to the server is via the public IP.

-- 
Mit freundlichen Grüßen / Regards

Sven Kieske

Systemadministrator
Mittwald CM Service GmbH  Co. KG
Königsberger Straße 6
32339 Espelkamp
T: +49-5772-293-100
F: +49-5772-293-333
https://www.mittwald.de
Geschäftsführer: Robert Meyer
St.Nr.: 331/5721/1033, USt-IdNr.: DE814773217, HRA 6640, AG Bad Oeynhausen
Komplementärin: Robert Meyer Verwaltungs GmbH, HRB 13260, AG Bad Oeynhausen
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] Reimporting storage domains after reinstalling ovirt

2014-03-10 Thread Boudewijn Ector
On 10-03-14 10:46, Itamar Heim wrote:
 On 03/10/2014 12:30 AM, Boudewijn Ector wrote:


 How should I go on recovering those VMs?

 change the domain into an export domain, attach it, and import the
 VMs from it (currently, you can only import an export domain) i
 think this thread has the relevant info:
 https://www.mail-archive.com/users@ovirt.org/msg04257.html

 Okay thank you very much for pointing that out. I now realise the
 difference between the regular and export shares.


 I just changed the metadata file (at
 /raid/ovirt-old/data/1979444d-b79a-494c-8c1a-bcc132e31a04/dom_md0) from:

 [root@leiden dom_md]# cat metadata.backup
 CLASS=Data
 DESCRIPTION=leiden-data
 IOOPTIMEOUTSEC=10
 LEASERETRIES=3
 LEASETIMESEC=60
 LOCKPOLICY=
 LOCKRENEWALINTERVALSEC=5
 MASTER_VERSION=613
 POOL_DESCRIPTION=Default
 POOL_DOMAINS=dafe25c2-1ce7-4979-9d8d-a35688da207a:Active,1979444d-b79a-494c-8c1a-bcc132e31a04:Active,d2676b04-e2ff-420f-8f29-36dafc2df47b:Active

 POOL_SPM_ID=1
 POOL_SPM_LVER=0
 POOL_UUID=5849b030-626e-47cb-ad90-3ce782d831b3
 REMOTE_PATH=192.168.1.44:/raid/ovirt/data
 ROLE=Master
 SDUUID=1979444d-b79a-494c-8c1a-bcc132e31a04
 TYPE=NFS
 VERSION=3
 _SHA_CKSUM=cab6c41e19812714ba79c48fc98b7037032725e4

 into:

 CLASS=Backup
 DESCRIPTION=export-storage
 IOOPTIMEOUTSEC=10
 LEASERETRIES=3
 LEASETIMESEC=60
 LOCKPOLICY=
 LOCKRENEWALINTERVALSEC=5
 MASTER_VERSION=613
 POOL_DESCRIPTION=Default
 POOL_DOMAINS=
 POOL_SPM_ID=1
 POOL_SPM_LVER=0
 POOL_UUID=
 REMOTE_PATH=nfsserver:/raid/ovirt-old/data
 ROLE=Regular
 SDUUID=1979444d-b79a-494c-8c1a-bcc132e31a04
 TYPE=NFS
 VERSION=3



 (there's another storage doman which has to be converted too but
 that's not that relevant imo).

 Now I log in onto the webinterface, select storage domain - import
 domain :

 Domain function set to export/NFS
 export path:
 192.168.1.44:/raid/ovirt-old/data/

 (192.168.1.44 is the server's IP)


 Now this error pops up:

 Error while executing action: Cannot add Storage. Storage format V3 is
 not supported on the selected host version.

 I just had a look for this one and found this bug (in which you
 replied... such a small world :)  ) :
 https://bugzilla.redhat.com/show_bug.cgi?id=1059604
 But there's no obvious solution over there.

 the bug is about a host with a cluster not associated with a DC. is
 your cluster associated with a DC?

Yes it is, so my buglink isn't that relevant after all.

Thanks :). Despite of that, my setup still isn't running and I haven't
got a clue on how to get it to work again.


Cheers,

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


Re: [Users] Reimporting storage domains after reinstalling ovirt

2014-03-10 Thread Jason Brooks


 
 into:
 
 CLASS=Backup
 DESCRIPTION=export-storage
 IOOPTIMEOUTSEC=10
 LEASERETRIES=3
 LEASETIMESEC=60
 LOCKPOLICY=
 LOCKRENEWALINTERVALSEC=5
 MASTER_VERSION=613
 POOL_DESCRIPTION=Default
 POOL_DOMAINS=
 POOL_SPM_ID=1
 POOL_SPM_LVER=0
 POOL_UUID=
 REMOTE_PATH=nfsserver:/raid/ovirt-old/data
 ROLE=Regular
 SDUUID=1979444d-b79a-494c-8c1a-bcc132e31a04
 TYPE=NFS
 VERSION=3

This needs to be VERSION=0

(I successfully rescued a storage domain this way just this weekend)

Good luck!

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


Re: [Users] Reimporting storage domains after reinstalling ovirt

2014-03-10 Thread Boudewijn Ector
On 10-03-14 16:55, Jason Brooks wrote:

 into:

 CLASS=Backup
 DESCRIPTION=export-storage
 IOOPTIMEOUTSEC=10
 LEASERETRIES=3
 LEASETIMESEC=60
 LOCKPOLICY=
 LOCKRENEWALINTERVALSEC=5
 MASTER_VERSION=613
 POOL_DESCRIPTION=Default
 POOL_DOMAINS=
 POOL_SPM_ID=1
 POOL_SPM_LVER=0
 POOL_UUID=
 REMOTE_PATH=nfsserver:/raid/ovirt-old/data
 ROLE=Regular
 SDUUID=1979444d-b79a-494c-8c1a-bcc132e31a04
 TYPE=NFS
 VERSION=3
 This needs to be VERSION=0

 (I successfully rescued a storage domain this way just this weekend)

 Good luck!

 Jason
Hi Jason,

Thanks! I'm going to try this after finishing my coffee!
Can you explain to me *why* this will change the situation? I'd like to
have a better understanding about the inner workings of ovirt.


Cheers,

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


Re: [Users] Reimporting storage domains after reinstalling ovirt

2014-03-10 Thread Jason Brooks


- Original Message -
 From: Boudewijn Ector boudew...@boudewijnector.nl
 To: Jason Brooks jbro...@redhat.com
 Cc: users@ovirt.org
 Sent: Monday, March 10, 2014 8:56:31 AM
 Subject: Re: [Users] Reimporting storage domains after reinstalling ovirt
 
 On 10-03-14 16:55, Jason Brooks wrote:
 
  into:
 
  CLASS=Backup
  DESCRIPTION=export-storage
  IOOPTIMEOUTSEC=10
  LEASERETRIES=3
  LEASETIMESEC=60
  LOCKPOLICY=
  LOCKRENEWALINTERVALSEC=5
  MASTER_VERSION=613
  POOL_DESCRIPTION=Default
  POOL_DOMAINS=
  POOL_SPM_ID=1
  POOL_SPM_LVER=0
  POOL_UUID=
  REMOTE_PATH=nfsserver:/raid/ovirt-old/data
  ROLE=Regular
  SDUUID=1979444d-b79a-494c-8c1a-bcc132e31a04
  TYPE=NFS
  VERSION=3
  This needs to be VERSION=0
 
  (I successfully rescued a storage domain this way just this weekend)
 
  Good luck!
 
  Jason
 Hi Jason,
 
 Thanks! I'm going to try this after finishing my coffee!
 Can you explain to me *why* this will change the situation? I'd like to
 have a better understanding about the inner workings of ovirt.

I don't know -- TYPE=0 is what you find in the export domain metadata
files. I'd love to be able to bring back images w/o the export domain
step in the middle...

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


Re: [Users] hosted engine help

2014-03-10 Thread Jason Brooks


- Original Message -
 From: Martin Sivak msi...@redhat.com
 To: Dan Kenigsberg dan...@redhat.com
 Cc: users@ovirt.org
 Sent: Saturday, March 8, 2014 11:52:59 PM
 Subject: Re: [Users] hosted engine help
 
 Hi Jason,
 
 can you please attach the full logs? We had very similar issue before I we
 need to see if is the same or not.

I may have to recreate it -- I switched back to an all in one engine after my
setup started refusing to run the engine at all. It's no fun losing your engine!

This was a migrated-from-standalone setup, maybe that caused additional 
wrinkles...

Jason

 
 Thanks
 
 --
 Martin Sivák
 msi...@redhat.com
 Red Hat Czech
 RHEV-M SLA / Brno, CZ
 
 - Original Message -
  On Fri, Mar 07, 2014 at 10:17:43AM +0100, Sandro Bonazzola wrote:
   Il 07/03/2014 01:10, Jason Brooks ha scritto:
Hey everyone, I've been testing out oVirt 3.4 w/ hosted engine, and
while I've managed to bring the engine up, I've only been able to do it
manually, using hosted-engine --vm-start.

The ovirt-ha-agent service fails reliably for me, erroring out with
RequestError: Request failed: success.

I've pasted error passages from the ha agent and vdsm logs below.

Any pointers?
   
   looks like a VDSM bug, Dan?
  
  Why? The exception is raised from deep inside the ovirt_hosted_engine_ha
  code.
  ___
  Users mailing list
  Users@ovirt.org
  http://lists.ovirt.org/mailman/listinfo/users
  
 ___
 Users mailing list
 Users@ovirt.org
 http://lists.ovirt.org/mailman/listinfo/users
 
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] Reimporting storage domains after reinstalling ovirt

2014-03-10 Thread Boudewijn Ector
Hi Guys,


Thank you very much Jason, Itamar, Gadi! I'm almost there thanks to your
help.

My steps were:

- remove the old storageconnection:

$ curl  -u admin@internal:* -X DELETE
https://192.168.1.44:443/api/storageconnections/5636a8c3-65b6-44a4-9ba4-e598dc60a4e4
-k

I changed version 3 - 0 in metadata file

And did an import (export NFS):
192.168.1.44:/raid/ovirt-old/data

Currently the box is importing the VMs from the old to the new repository.

But, there's still a last challenge to overcome:

I had this VM with about 2TB storage attached on both my storage domains
(I had another one too). This poses two different problems:

- I can't import the VM from the first storage domain, since not all
disks did reside on this single storage domain. This error pops up
(which is  quite logical):

Error while executing action:

downloadbak:

  * Cannot import VM. VM's Image does not exist.

Yeah I know I shouldn't have split the VMs resources over multiple
storage domains... I won't make that mistake again. Is there a way to
move these disks from the second old domain to the first old domain
so the VM can be reimported?

Furthermore, my storage machine has about 1.4TB free disk space left.
While importing, a copy of a VM is being made... and this particular one
is 2TB. So I'm going to run out of disk space while doing so; is there a
way to move instead of copy a VM while importing it?


Cheers (and thanks a lot for all the help, I really appreciate it!),

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


Re: [Users] Reimporting storage domains after reinstalling ovirt

2014-03-10 Thread Jason Brooks


- Original Message -
 From: Boudewijn Ector boudew...@boudewijnector.nl
 To: Jason Brooks jbro...@redhat.com
 Cc: users@ovirt.org
 Sent: Monday, March 10, 2014 10:21:27 AM
 Subject: Re: [Users] Reimporting storage domains after reinstalling ovirt
 
 Hi Guys,
 
 
 Thank you very much Jason, Itamar, Gadi! I'm almost there thanks to your
 help.
 
 My steps were:
 
 - remove the old storageconnection:
 
 $ curl  -u admin@internal:* -X DELETE
 https://192.168.1.44:443/api/storageconnections/5636a8c3-65b6-44a4-9ba4-e598dc60a4e4
 -k
 
 I changed version 3 - 0 in metadata file
 
 And did an import (export NFS):
 192.168.1.44:/raid/ovirt-old/data
 
 Currently the box is importing the VMs from the old to the new repository.
 
 But, there's still a last challenge to overcome:
 
 I had this VM with about 2TB storage attached on both my storage domains
 (I had another one too). This poses two different problems:
 
 - I can't import the VM from the first storage domain, since not all
 disks did reside on this single storage domain. This error pops up
 (which is  quite logical):
 
 Error while executing action:
 
 downloadbak:
 
   * Cannot import VM. VM's Image does not exist.
 
 Yeah I know I shouldn't have split the VMs resources over multiple
 storage domains... I won't make that mistake again. Is there a way to
 move these disks from the second old domain to the first old domain
 so the VM can be reimported?
 
 Furthermore, my storage machine has about 1.4TB free disk space left.
 While importing, a copy of a VM is being made... and this particular one
 is 2TB. So I'm going to run out of disk space while doing so; is there a
 way to move instead of copy a VM while importing it?

Some people have reported success creating an image of the desired size,
then noting the name of this new image, and copying the old image into the
place of the new one, with the new name. Something like that might work, but
I don't have first-hand experience w/ it.

Jason

 
 
 Cheers (and thanks a lot for all the help, I really appreciate it!),
 
 Boudewijn
 
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] Reimporting storage domains after reinstalling ovirt

2014-03-10 Thread Boudewijn Ector

 Some people have reported success creating an image of the desired size,
 then noting the name of this new image, and copying the old image into the
 place of the new one, with the new name. Something like that might work, but
 I don't have first-hand experience w/ it.

 Jason

Hi Jason,

Thanks, although that's quite an ugly option, although better than not
being able to do it at all... I'll keep it in mind anyway if everything
else fails.

Well I was wondering: Can't I just copy those images and vm's from the
second storage domain to the first and add those in the metadata?
I might give that a shot tonight.

Cheers,


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


Re: [Users] Reimporting storage domains after reinstalling ovirt

2014-03-10 Thread Jason Brooks


- Original Message -
 From: Boudewijn Ector boudew...@boudewijnector.nl
 To: Jason Brooks jbro...@redhat.com
 Cc: users@ovirt.org
 Sent: Monday, March 10, 2014 10:46:45 AM
 Subject: Re: [Users] Reimporting storage domains after reinstalling ovirt
 
 
  Some people have reported success creating an image of the desired size,
  then noting the name of this new image, and copying the old image into the
  place of the new one, with the new name. Something like that might work,
  but
  I don't have first-hand experience w/ it.
 
  Jason
 
 Hi Jason,
 
 Thanks, although that's quite an ugly option, although better than not
 being able to do it at all... I'll keep it in mind anyway if everything
 else fails.
 
 Well I was wondering: Can't I just copy those images and vm's from the
 second storage domain to the first and add those in the metadata?
 I might give that a shot tonight.

There's a database element to this as well, that's why I think there's
the fake image creation element.


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


[Users] Solaris 11 Support !

2014-03-10 Thread Vishvendra Singh Chauhan
Hello,

Is it possible to install Solaris 11 in Ovirt?. If yes please guide me.
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] Solaris 11 Support !

2014-03-10 Thread René Koch

Hi,

On 10.03.2014 19:21, Vishvendra Singh Chauhan wrote:

Hello,

Is it possible to install Solaris 11 in Ovirt?. If yes please guide me.


Yes, it is possible with a hook script which removes the CPU model from 
the libvirt XML file. Keep in mind that Solaris 11 doesn't seem to work 
on AMD CPUs, only on Intel.


Download 99_fix_solaris from:
https://github.com/ovido/ovirt-stuff/tree/master/hooks
and follow the instructions on this page on how to install it / prepare 
your vm.


Btw, does it make sense to add my hook (packaged as RPM) to oVirt 
repository as there are some requests for it on this mailing list?



Regards,
René







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


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


Re: [Users] hosted engine help

2014-03-10 Thread Giuseppe Ragusa
Hi all,
 Date: Mon, 10 Mar 2014 12:56:19 -0400
 From: jbro...@redhat.com
 To: msi...@redhat.com
 CC: users@ovirt.org
 Subject: Re: [Users] hosted engine help
 
 
 
 - Original Message -
  From: Martin Sivak msi...@redhat.com
  To: Dan Kenigsberg dan...@redhat.com
  Cc: users@ovirt.org
  Sent: Saturday, March 8, 2014 11:52:59 PM
  Subject: Re: [Users] hosted engine help
  
  Hi Jason,
  
  can you please attach the full logs? We had very similar issue before I we
  need to see if is the same or not.
 
 I may have to recreate it -- I switched back to an all in one engine after my
 setup started refusing to run the engine at all. It's no fun losing your 
 engine!
 
 This was a migrated-from-standalone setup, maybe that caused additional 
 wrinkles...
 
 Jason
 
  
  Thanks

I experienced the exact same symptoms as Jason on a from-scratch installation 
on two physical nodes with CentOS 6.5 (fully up-to-date) using oVirt 3.4.0_pre 
(latest test-day release) and GlusterFS 3.5.0beta3 (with Gluster-provided NFS 
as storage for the self-hosted engine VM only).
I roughly followed the guide from Andrew Lau:
http://www.andrewklau.com/ovirt-hosted-engine-with-3-4-0-nightly/
with some variations due to newer packages (resolved bugs) and different 
hardware setup (no VLANs in my setup: physically separated networks; custom 
second nic added to Engine VM template before deploying etc.)
The self-hosted installation on first node + Engine VM (configured for managing 
both oVirt and the storage; Datacenter default set to NFS because no GlusterFS 
offered) went apparently smooth, but the HA-agent failed to start at the very 
end (same errors in logs as Jason: the storage domain seems missing) and I 
was only able to start it all manually with:
hosted-engine --connect-storagehosted-engine --start-poolhosted-engine 
--vm-start
then the Engine came up and I could use it, I even registered the second node 
(same final error in HA-agent) and tried to add GlusterFS storage domains for 
further VMs and ISOs (by the way: the original NFS-GlusterFS domain for Engine 
VM only is not present inside the Engine web UI) but it always failed 
activating the domains (they remain Inactive).
Furthermore the engine gets killed some time after starting (from 3 up to 11 
hours later) and the only way to get it back is repeating the above commands.
I always managed GlusterFS natively (not through oVirt) from the commandline 
and verified that the NFS-exported Engine-VM-only volume gets replicated, but I 
obviously failed to try migration because the HA part results inactive and 
oVirt refuse to migrate the Engine.
Since I tried many times, with variations and further manual actions between 
(like trying to manually mount the NFS Engine domain, restarting the HA-agent 
only etc.), my logs are cluttered, so I should start from scratch again and 
pack up all logs in one swipe.
Tell me what I should capture and at which points in the whole process and I 
will try to follow up as soon as possible.
Many thanks,Giuseppe
  --
  Martin Sivák
  msi...@redhat.com
  Red Hat Czech
  RHEV-M SLA / Brno, CZ
  
  - Original Message -
   On Fri, Mar 07, 2014 at 10:17:43AM +0100, Sandro Bonazzola wrote:
Il 07/03/2014 01:10, Jason Brooks ha scritto:
 Hey everyone, I've been testing out oVirt 3.4 w/ hosted engine, and
 while I've managed to bring the engine up, I've only been able to do 
 it
 manually, using hosted-engine --vm-start.
 
 The ovirt-ha-agent service fails reliably for me, erroring out with
 RequestError: Request failed: success.
 
 I've pasted error passages from the ha agent and vdsm logs below.
 
 Any pointers?

looks like a VDSM bug, Dan?
   
   Why? The exception is raised from deep inside the ovirt_hosted_engine_ha
   code.
   ___
   Users mailing list
   Users@ovirt.org
   http://lists.ovirt.org/mailman/listinfo/users
   
  ___
  Users mailing list
  Users@ovirt.org
  http://lists.ovirt.org/mailman/listinfo/users
  
 ___
 Users mailing list
 Users@ovirt.org
 http://lists.ovirt.org/mailman/listinfo/users
  ___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] Reimporting storage domains after reinstalling ovirt

2014-03-10 Thread Boudewijn Ector

 
 Some people have reported success creating an image of the desired
 size, then noting the name of this new image, and copying the old
 image into the place of the new one, with the new name. Something
 like that might work, but I don't have first-hand experience w/
 it.
 
 Jason

Hi Jason,


Due to lack of viable alternative, I've decided to go and try this
approach. I just had a look at my datafiles:

- these are either 8gb (OS) or 250gb (LVM images)
- can't mount those directly in my host OS (tried because of the next
point)
- I don't know to what VM this image/VM belongs . They're all quite
the same (basic debian install), so determining it just by running
strings etc on those will not be easy
- I can't import the old VMs from the old storage. If I create new
images and dd the old information into those new images the metadata
will not be copied too.

So the only option is not reusing the VM's  but creating completely
new ones and determining which disk images are required for these VMs.
Then creating the new image structure and dd'ing the corresponding
images from the old VMs into the new ones. In order to do so I need to
know what data belongs to what VM.
Is there a trick for doing this?

I still do have the database from the old ovirt machine, this might
save me. Will have a look into that one tomorrow.

Cheers,

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


Re: [Users] Delete Detach Logical Network

2014-03-10 Thread Tejesh M
Hi Moti,

rhevhost is the Host name  logical network is sent as variable nw_name,
in the code 1.


On Mon, Mar 10, 2014 at 6:54 PM, Moti Asayag masa...@redhat.com wrote:



 - Original Message -
  From: Tejesh M tejes...@gmail.com
  To: Moti Asayag masa...@redhat.com, users@oVirt.org 
 users@ovirt.org
  Sent: Monday, March 10, 2014 1:22:08 PM
  Subject: Delete  Detach Logical Network
 
  Hi,
 
  I'm able to delete the logical network but this logical network after
  deletion shows as unmanaged network in Setup Host Networks against the
  hostnic.
 
  I tried with this code to detach the logical network.
 
  *Code 1:*
  HostNIC nic = api.getHosts().get(rhevhost).getHostNics().get(eth1);
  Action action = new Action();
  action.setNetwork(api.getNetworks().get(nw_name));
  action.setDetach(true);
  action.setCheckConnectivity(false);
  nic.detach(action);
 
  *Returns*:
  code  : 409
  reason: Conflict
  detail: Network Interface is not attached to Logical Network.
 

 I can guess by the error message that the logical network 'rhevhost' is
 vlan,
 so the proper interface should be the vlan device.


  *Code 2:*
  HostNIC nic =
 api.getHosts().get(rhevhost).getHostNics().get(eth1.1345);
  Action action = new Action();
  action.setNetwork(api.getNetworks().get(nw_name));
  action.setDetach(true);
  action.setCheckConnectivity(false);
  nic.detach(action);
 
  *Returns*:
  code  : 409
  reason: Conflict
  detail: Cannot edit Network while Host is Active, change the Host to
  Maintenance mode and try again.
 

 This is the 3.0 api which required the host to be in maintenance for
 network
 operations on the host. You could use setup networks instead which is the
 recommended api and doesn't require the host to be in maintenance.

 you can modify the example from [1] and set null for the network name you
 wish to detach from the specific interface.

 Try by replacing only lines 28-41 with:
 HostNIC nic = nicsByNames.get(eth1.1345);
 nic.setNetwork(null);

 [1]
 https://motiasayag.wordpress.com/2014/02/24/invoke-setup-networks-from-the-java-sdk/

 
  --
  Thanks  Regards
  Tejesh
 




-- 
Thanks  Regards
Tejesh
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] Delete Detach Logical Network

2014-03-10 Thread Tejesh M
I tried below code, but still it is not detaching the network

  HostNICs nicsApi = api.getHosts().get(venus-vdsb).getHostNics();
  ListHostNIC nics = nicsApi.list();
  HostNIC nic =
api.getHosts().get(rhevhost).getHostNics().get(bond1.1231); //logical
network network name is testLNw
  nic.setNetwork(null);


*Result of executing this line*:
nicsApi.setupnetworks(createSetupNetworksParams(nics));

*Result:*
code  : 400
reason: Bad Request
detail: Cannot setup Networks. The following VMs are actively using the
Logical Network: greyvm, vmLogicalTest1, OmVM1. Please stop the VMs and try
again., Cannot setup Networks. The following Bonds consist of less than two
Network Interfaces: bond0., Cannot setup Networks. The following Network
Interfaces were specified more than once: eth0, eth3, eth1, eth2.

Can you post the complete code?




On Mon, Mar 10, 2014 at 6:54 PM, Moti Asayag masa...@redhat.com wrote:



 - Original Message -
  From: Tejesh M tejes...@gmail.com
  To: Moti Asayag masa...@redhat.com, users@oVirt.org 
 users@ovirt.org
  Sent: Monday, March 10, 2014 1:22:08 PM
  Subject: Delete  Detach Logical Network
 
  Hi,
 
  I'm able to delete the logical network but this logical network after
  deletion shows as unmanaged network in Setup Host Networks against the
  hostnic.
 
  I tried with this code to detach the logical network.
 
  *Code 1:*
  HostNIC nic = api.getHosts().get(rhevhost).getHostNics().get(eth1);
  Action action = new Action();
  action.setNetwork(api.getNetworks().get(nw_name));
  action.setDetach(true);
  action.setCheckConnectivity(false);
  nic.detach(action);
 
  *Returns*:
  code  : 409
  reason: Conflict
  detail: Network Interface is not attached to Logical Network.
 

 I can guess by the error message that the logical network 'rhevhost' is
 vlan,
 so the proper interface should be the vlan device.


  *Code 2:*
  HostNIC nic =
 api.getHosts().get(rhevhost).getHostNics().get(eth1.1345);
  Action action = new Action();
  action.setNetwork(api.getNetworks().get(nw_name));
  action.setDetach(true);
  action.setCheckConnectivity(false);
  nic.detach(action);
 
  *Returns*:
  code  : 409
  reason: Conflict
  detail: Cannot edit Network while Host is Active, change the Host to
  Maintenance mode and try again.
 

 This is the 3.0 api which required the host to be in maintenance for
 network
 operations on the host. You could use setup networks instead which is the
 recommended api and doesn't require the host to be in maintenance.

 you can modify the example from [1] and set null for the network name you
 wish to detach from the specific interface.

 Try by replacing only lines 28-41 with:
 HostNIC nic = nicsByNames.get(eth1.1345);
 nic.setNetwork(null);

 [1]
 https://motiasayag.wordpress.com/2014/02/24/invoke-setup-networks-from-the-java-sdk/

 
  --
  Thanks  Regards
  Tejesh
 




-- 
Thanks  Regards
Tejesh
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[Users] ovf image for hosted engine

2014-03-10 Thread Jason Brooks
Hey all,

The hosted engine may be installed from pxe, cdrom or disk. The disk format
must be an OVF image, right?

Any suggestions on how to create an ovf image? Poking around, I see mentions 
of tools to convert from ovf, but not to ovf, at least not within the 
KVM/libvirt world.

I know that this format is used within oVirt, but I don't understand how to 
go from the *.ovf file in the export domain + the disk image file or files 
to a single disk image.

Do these have to be zipped together? Is there some utility for that, or 
guidance on how it comes together?

My cdrom and pxe hosted engine installs have been spotty -- some crashes,
some unresponsiveness from pxe and from the cd install -- so I'd like to
know how to take the disk route...

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


[Users] ovirt-engine certs

2014-03-10 Thread Thomas Scofield
How can I regenerate the ovirt engine CA certs and corresponding vdsm
certs?  I have an ovirt setup that I'm upgrading from 3.2.0 (from the dre
repos) to 3.2.3 and I am getting the certificate errors listed below after
the upgrade.  I have done this same upgrade on an number of other
ovirt-engines with no issue.  The setup had originally been installed with
ovirt 3.1 so it possible that some of the certificate configurations from
3.1 are still present on this ovirt-engine and it is contributing to the
problem.  For example, I noticed that the /etc/pki/ovirt-engine/cacert.conf
file on this troublesome upgrade has default_bits = rsa:1024, but the
systems that upgraded successfully have default_bits = rsa:2048.  The
same is true for the cert.conf file.



Engine.log

2014-03-10 17:10:28,954 ERROR
[org.ovirt.engine.core.vdsbroker.VdsUpdateRunTimeInfo]
(DefaultQuartzScheduler_Worker-2) vds::refreshVdsStats Failed getVdsStats,
vds = a7459d21-b5a6-4330-9897-f2018c9a1776 : vm1, error =
VDSNetworkException: javax.net.ssl.SSLHandshakeException: Received fatal
alert: bad_certificate



Vdsm.log

BindingXMLRPC::ERROR::2014-03-10
20:58:00,871::SecureXMLRPCServer::97::root::(verify) invalid client
certificate with subject /C=US/O=example.com/CN=CA-ovirt1.example.com.30758


BindingXMLRPC::ERROR::2014-03-10
20:58:00,872::BindingXMLRPC::72::vds::(threaded_start) xml-rpc handler
exception

Traceback (most recent call last):

  File /usr/share/vdsm/BindingXMLRPC.py, line 68, in threaded_start

self.server.handle_request()

  File /usr/lib64/python2.6/SocketServer.py, line 268, in handle_request

self._handle_request_noblock()

  File /usr/lib64/python2.6/SocketServer.py, line 278, in
_handle_request_noblock

request, client_address = self.get_request()

  File /usr/lib64/python2.6/SocketServer.py, line 446, in get_request

return self.socket.accept()

  File /usr/lib64/python2.6/site-packages/vdsm/SecureXMLRPCServer.py,
line 116, in accept

client, address = self.connection.accept()

  File /usr/lib64/python2.6/site-packages/M2Crypto/SSL/Connection.py,
line 167, in accept

ssl.accept_ssl()

  File /usr/lib64/python2.6/site-packages/M2Crypto/SSL/Connection.py,
line 156, in accept_ssl

return m2.ssl_accept(self.ssl, self._timeout)

SSLError: no certificate returned
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users