[Users] convert thin provisioned disks to preallocated

2013-09-17 Thread Alan Johnson
I am pretty sure I know the answer, but is there any way to do this
gracefully, i.e. within the confines of the oVirt API?  This is on an iSCSI
storage domain.  My understanding and further research suggest no, but I
wanted to ask before we endeavor on a major overhaul of a production system
that some one setup without knowing the better of to the 2 for such use.

I am very familiar with the underlying systems (LVM, KVM, etc.) and would
appreciate any suggested hacks.  So far, here is what I have come up with:

Sure to work: Setup a new VM with preallocated drives.  Boot both VMs off
of a live virtual CD.  Use cat/pv and nc (netcat) to read directly from the
block devices on one and write directly to the block devices on the other.
 Reboot the new VM from the internal disks. Tweak MAC addresses along the
way so the new VM gets those of the old.  The down side is the down time,
but we can probably swallow it if we have to.  Any other risks?

Might work: Create a new VM.  Identify the logical volumes (LVs) are
assigned for that block devices used by the new and the old.  Log into the
SPM and read directly from the old LVs to the new.  This is similar to that
above, but I expect I need to run the data through some kind of
qcow2-to-raw conversion process to make this work.  Similar down sides to
the above, but maybe less so?  Thoughts?

Another thought I had was to just write zeros to the empty space on the
block devices, from inside the guest OS, until the full allocation is
achieved.  The down side is potential impact on performance of the system
while it is filling up and for the (hopefully) very short time the file
system is full before an rm of the zeros file kicks in.  Also we would
still have qcow2 underneath, so would it still add overhead, or does that
only apply when it grows?  Any other down sides to this?

Thanks in advance for your thoughts and consideration.


Alan Johnson
a...@datdec.com
Date Format PSA http://xkcd.com/1179/
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[Users] oVirt professional support?

2013-09-17 Thread Alan Johnson
We are looking into professional support options for oVirt.  We are
investigating the obvious path of switching to RHEV, but the effort
involved is still TBD.  So, we are wondering if there are other companies
out there that migth provide direct support, training, or consulting
services for oVirt.


Alan Johnson
a...@datdec.com
Date Format PSA http://xkcd.com/1179/
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] cannot add new logical network to host

2012-11-15 Thread Alan Johnson
On Thu, Nov 15, 2012 at 1:11 AM, Igor Lvovsky ilvov...@redhat.com wrote:

   Hi Alan,


 If I understand you correctly, you try to add a new VM-VLANed network
 (sandbox)
 to interface em1 that already has another VM network (ovirtmgmt).

 If so, this operation is not permited. You can't attach VM-VLANed network
 and
 VM-nonVLANed network to same interface.


Good to know.  I'll start working on another solution that might work once
I get around the blocking bug (more on this in response to Roy shortly).
 Is there a way to convert the ovirtmgmt network to VLAN'd?

Also, while I have your attention, I expect I will have to enable each VLAN
on each host's port of the connected switch, which means I have to set each
port with multiple VLANs to trunk mode.  Is that right?



 To be sure that this is a case, I need to know your vdsm version
 and vdsm log will be good as well


There is nothing in the log with that time stamp (as Roy has observed, it
is not getting that far), but here are the versions just FYI:
[root@cloudhost01 ~]# rpm -qa | fgrep vdsm
vdsm-python-4.10.0-0.44.14.el6.x86_64
vdsm-xmlrpc-4.10.0-0.44.14.el6.noarch
vdsm-4.10.0-0.44.14.el6.x86_64
vdsm-cli-4.10.0-0.44.14.el6.noarch
vdsm-gluster-4.10.0-0.44.14.el6.noarch
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] cannot add new logical network to host

2012-11-15 Thread Alan Johnson
On Thu, Nov 15, 2012 at 9:38 AM, Alan Johnson a...@datdec.com wrote:

 On Thu, Nov 15, 2012 at 1:11 AM, Igor Lvovsky ilvov...@redhat.com wrote:

 To be sure that this is a case, I need to know your vdsm version

 and vdsm log will be good as well


 There is nothing in the log with that time stamp (as Roy has observed, it
 is not getting that far), but here are the versions just FYI:
 [root@cloudhost01 ~]# rpm -qa | fgrep vdsm
 vdsm-python-4.10.0-0.44.14.el6.x86_64
 vdsm-xmlrpc-4.10.0-0.44.14.el6.noarch
 vdsm-4.10.0-0.44.14.el6.x86_64
 vdsm-cli-4.10.0-0.44.14.el6.noarch
 vdsm-gluster-4.10.0-0.44.14.el6.noarch


On and I just noticed that my vdsm is a bit older on the other 3 nodes in
this cluster:
vdsm-xmlrpc-4.10.0-0.42.13.el6.noarch
vdsm-gluster-4.10.0-0.42.13.el6.noarch
vdsm-python-4.10.0-0.42.13.el6.x86_64
vdsm-4.10.0-0.42.13.el6.x86_64
vdsm-cli-4.10.0-0.42.13.el6.noarch

In case that matters...  I'm not trying to manipulate them just yet, but I
will be rotating each through maintenance mode to add the same network
config as soon as I get it working on cloudhost01.  I'll do updates and
rebooting before changing networking on them.
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] cannot add new logical network to host

2012-11-15 Thread Alan Johnson
On Thu, Nov 15, 2012 at 9:46 AM, Alan Johnson a...@datdec.com wrote:

 On Thu, Nov 15, 2012 at 5:34 AM, Roy Golan rgo...@redhat.com wrote:

 logic/flow aside, still the error is on engine side - validating the
 VdsNetworkInterface entity which
 seems to be missing an interfaces field or method thus throwing this
 runtime error.
 I wonder if GWT serialized something unexpected here.
 Alan - can you try invoking setup networks and see if any other action is
 terminated the same way?


 Yes, no matter what I do on Setup Host Networks, I get the same error when
 I click OK.  Even if I make not changes at all, I get the same when I click
 OK.  I have to Cancel to get out of that screen.


I have just run though the same process on a different engine controlling a
single node.  Not changing anything on the Setup Host Networks screen, it
closes successfully when I click OK.  Trying to add the sandbox network to
em1 gives the error Error while executing action Setup Networks: Internal
oVirt Engine Error.  This shows up in engine.log:
2012-11-15 12:04:41,497 INFO
 [org.ovirt.engine.core.bll.SetupNetworksCommand] (ajp--0.0.0.0-8009-2)
[51a6bccb] Running command: SetupNetworksCommand internal: false. Entities
affected :  ID: 65f7ba84-2aa5-11e2-a193-001a4aa8770c Type: VDS
2012-11-15 12:04:41,500 INFO
 [org.ovirt.engine.core.vdsbroker.vdsbroker.SetupNetworksVDSCommand]
(ajp--0.0.0.0-8009-2) [51a6bccb] START, SetupNetworksVDSCommand(vdsId =
65f7ba84-2aa5-11e2-a193-001a4aa8770c), log id: 1e23f24a
2012-11-15 12:04:41,501 INFO
 [org.ovirt.engine.core.vdsbroker.vdsbroker.SetupNetworksVDSCommand]
(ajp--0.0.0.0-8009-2) [51a6bccb] FINISH, SetupNetworksVDSCommand, log id:
1e23f24a
2012-11-15 12:04:42,017 ERROR
[org.ovirt.engine.core.vdsbroker.vdsbroker.BrokerCommandBase]
(ajp--0.0.0.0-8009-2) [51a6bccb] Failed in SetupNetworksVDS method
2012-11-15 12:04:42,017 ERROR
[org.ovirt.engine.core.vdsbroker.vdsbroker.BrokerCommandBase]
(ajp--0.0.0.0-8009-2) [51a6bccb] Error code ERR_USED_NIC and error message
VDSGenericException: VDSErrorException: Failed to SetupNetworksVDS, error =
Setup attached more than one network to nic em1, some of which aren't vlans
2012-11-15 12:04:42,018 ERROR
[org.ovirt.engine.core.vdsbroker.vdsbroker.BrokerCommandBase]
(ajp--0.0.0.0-8009-2) [51a6bccb]
org.ovirt.engine.core.vdsbroker.vdsbroker.VDSErrorException:
VDSGenericException: VDSErrorException: Failed to SetupNetworksVDS, error =
Setup attached more than one network to nic em1, some of which aren't vlans
2012-11-15 12:04:42,018 ERROR
[org.ovirt.engine.core.vdsbroker.VDSCommandBase] (ajp--0.0.0.0-8009-2)
[51a6bccb] Command SetupNetworksVDS execution failed. Exception:
RuntimeException:
org.ovirt.engine.core.vdsbroker.vdsbroker.VDSErrorException:
VDSGenericException: VDSErrorException: Failed to SetupNetworksVDS, error =
Setup attached more than one network to nic em1, some of which aren't vlans
2012-11-15 12:04:42,021 INFO
 [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector]
(ajp--0.0.0.0-8009-2) [51a6bccb] No string for UNASSIGNED type. Use default
Log

And vdsm.log show this:
Dummy-3930::DEBUG::2012-11-15
12:04:41,618::__init__::1164::Storage.Misc.excCmd::(_log) 'dd
if=/rhev/data-center/88c14568-2860-11e2-8ecf-001a4aa8770c/mastersd/dom_md/inbox
iflag=direct,
fullblock count=1 bs=1024000' (cwd None)
Dummy-3930::DEBUG::2012-11-15
12:04:41,721::__init__::1164::Storage.Misc.excCmd::(_log) SUCCESS: err =
'1+0 records in\n1+0 records out\n1024000 bytes (1.0 MB) copied, 0.0531377
s, 19
.3 MB/s\n'; rc = 0
Thread-397033::DEBUG::2012-11-15
12:04:43,084::BindingXMLRPC::859::vds::(wrapper) client
[192.168.119.232]::call setupNetworks with ({'ovirtmgmt': {'nic': 'em1',
'bridged': 'true'}, 'sa
ndbox': {'nic': 'em1', 'vlan': '2', 'bridged': 'true'}}, {},
{'connectivityCheck': 'true', 'connectivityTimeout': 6}) {} flowID
[51a6bccb]
Thread-397034::DEBUG::2012-11-15
12:04:43,085::BindingXMLRPC::859::vds::(wrapper) client
[192.168.119.232]::call ping with () {} flowID [51a6bccb]
Thread-397034::DEBUG::2012-11-15
12:04:43,086::BindingXMLRPC::865::vds::(wrapper) return ping with
{'status': {'message': 'Done', 'code': 0}}
MainProcess|Thread-397033::DEBUG::2012-11-15
12:04:43,099::configNetwork::1083::setupNetworks::(setupNetworks) Setting
up network according to configuration: networks:{'ovirtmgmt': {'ni
c': 'em1', 'bridged': 'true'}, 'sandbox': {'nic': 'em1', 'vlan': '2',
'bridged': 'true'}}, bondings:{}, options:{'connectivityCheck': 'true',
'connectivityTimeout': 6}
MainProcess|Thread-397033::DEBUG::2012-11-15
12:04:43,099::configNetwork::1087::root::(setupNetworks) Validating
configuration
MainProcess|Thread-397033::ERROR::2012-11-15
12:04:43,110::configNetwork::1155::setupNetworks::(setupNetworks) (24,
Setup attached more than one network to nic em1, some of which aren'
t vlans)
Traceback (most recent call last):
  File /usr/share/vdsm/configNetwork.py, line 1088, in setupNetworks
_validateNetworkSetup(dict(networks), dict(bondings

Re: [Users] cannot add new logical network to host

2012-11-15 Thread Alan Johnson
On Thu, Nov 15, 2012 at 12:59 PM, Alan Johnson a...@datdec.com wrote:

 Be sure to read my other post before running with this as it may be a dead
 end, but here is the dump from last night's backup (just the one row):

 INSERT INTO vds_interface(addr, bond_name, bond_type, gateway, id,
 is_bond, bond_opts, mac_addr, name, network_name, speed, subnet,
 boot_protocol, type, VDS_ID, vlan_id, mtu, bridged)
  VALUES(v_addr, v_bond_name, v_bond_type, v_gateway, v_id,
 v_is_bond, v_bond_opts, v_mac_addr, v_name, v_network_name, v_speed,
 v_subnet, v_boot_protocol, v_type, v_vds_id, v_vlan_id, v_mtu, v_bridged);
 END; $$;


Whoops!  I didn't actually read the SQL before sending, just skimmed
looking for anything sensitive   I see now that this is not at all useful.
 Here is a CSV output of that table:

id,name,network_name,vds_id,mac_addr,is_bond,bond_name,bond_type,bond_opts,vlan_id,speed,addr,subnet,gateway,boot_protocol,type,_create_date,_update_date,mtu,bridged
d9843c29-ff18-4f26-ba9c-19c24a3dc65d,bond0,,88089a7c-124e-11e2-877b-52540021f621,00:00:00:00:00:00,1,0,0,2012-10-09
16:25:13.441602-04,2012-11-14 15:11:13.867575-05,1500,0
41e44be1-1e6a-4468-b613-0defc957e57a,bond1,,88089a7c-124e-11e2-877b-52540021f621,00:00:00:00:00:00,1,0,0,2012-10-09
16:25:13.444754-04,2012-11-14 15:11:13.871171-05,1500,0
4aac622e-942b-424d-b37c-c9cac9c3eaa9,bond2,,88089a7c-124e-11e2-877b-52540021f621,00:00:00:00:00:00,1,0,0,2012-10-09
16:25:13.447615-04,2012-11-14 15:11:13.874052-05,1500,0
2f3edf8c-60e6-4b0e-9a77-fd15f395ad2c,em1,ovirtmgmt,88089a7c-124e-11e2-877b-52540021f621,84:8f:69:75:50:e9,,1000,192.168.119.158,255.255.255.0,192.168.119.110,1,2,2012-10-09
16:25:13.421371-04,2012-11-14 15:11:13.876869-05,1500,1
59c2ce88-2f1e-4342-98f6-6e4c0fdcc60a,bond0,,acb1a7d6-122d-11e2-9f25-52540021f621,00:00:00:00:00:00,1,0,0,2012-10-09
12:36:20.430133-04,2012-11-14 15:11:18.753809-05,1500,0
8f185782-29c7-4bea-95ef-ab02306bb7a1,bond1,,acb1a7d6-122d-11e2-9f25-52540021f621,00:00:00:00:00:00,1,0,0,2012-10-09
12:36:20.43354-04,2012-11-14 15:11:18.75761-05,1500,0
3eaa26a9-10d0-4e8f-aab8-a02b7e5cb33b,bond2,,acb1a7d6-122d-11e2-9f25-52540021f621,00:00:00:00:00:00,1,0,0,2012-10-09
12:36:20.43681-04,2012-11-14 15:11:18.761024-05,1500,0
2d931dfa-9b57-4342-8c1d-feb122bb908f,em2,,88089a7c-124e-11e2-877b-52540021f621,84:8f:69:75:50:eb,,1000,10.10.5.102,255.255.255.0,,,0,2012-10-09
16:25:13.429715-04,2012-11-14 15:11:13.879592-05,9000,0
53dcddb6-4494-4f8e-8b5c-ad139ceb551b,em1,ovirtmgmt,acb1a7d6-122d-11e2-9f25-52540021f621,84:8f:69:75:50:8e,,1000,192.168.119.186,255.255.255.0,192.168.119.110,1,2,2012-10-09
12:36:20.414512-04,2012-11-14 15:11:18.764122-05,1500,1
37d0d8d7-d512-4a74-99c2-e61fe82b893e,em2,,acb1a7d6-122d-11e2-9f25-52540021f621,84:8f:69:75:50:90,,1000,10.10.5.103,255.255.255.0,,,0,2012-10-09
12:36:20.419835-04,2012-11-14 15:11:18.770674-05,9000,0
a31eb4bc-dc2c-4697-8d72-e61e41fc2bdb,bond2,,ec7b4186-2e95-11e2-abe4-52540021f621,00:00:00:00:00:00,1,0,0,2012-11-14
15:06:01.669305-05,2012-11-14 16:01:05.967822-05,1500,0
c8d832d2-e789-46de-a5b5-9d4bbbdada72,em1,ovirtmgmt,ec7b4186-2e95-11e2-abe4-52540021f621,84:8f:69:75:50:81,,1000,192.168.119.156,255.255.255.0,192.168.119.110,1,2,2012-11-14
15:06:01.648564-05,2012-11-14 16:01:05.969595-05,1500,1
bc5892b9-6b96-4034-b828-9d46b1c38060,em2,,ec7b4186-2e95-11e2-abe4-52540021f621,84:8f:69:75:50:83,,1000,10.10.5.101,255.255.255.0,,,0,2012-11-14
15:06:01.654161-05,2012-11-14 16:01:05.971152-05,9000,0
bfe14fb3-2040-4ece-bd99-51fe31eabfc4,bond4,,ec7b4186-2e95-11e2-abe4-52540021f621,00:00:00:00:00:00,1,0,0,2012-11-14
15:06:01.657521-05,2012-11-14 16:01:05.972706-05,1500,0
7d544efc-9942-4596-990a-9e6841d592d1,bond3,,ec7b4186-2e95-11e2-abe4-52540021f621,00:00:00:00:00:00,1,0,0,2012-11-14
15:06:01.660389-05,2012-11-14 16:01:05.974151-05,1500,0
238cbbc3-b1e0-404e-bf1d-e1ab95eed352,bond0,,ec7b4186-2e95-11e2-abe4-52540021f621,00:00:00:00:00:00,1,0,0,2012-11-14
15:06:01.663768-05,2012-11-14 16:01:05.975702-05,1500,0
8c081d29-86a0-46e7-8bf9-89c7c17bf24b,bond1,,ec7b4186-2e95-11e2-abe4-52540021f621,00:00:00:00:00:00,1,0,0,2012-11-14
15:06:01.666703-05,2012-11-14 16:01:05.977166-05,1500,0
f88cfbee-1468-4e53-8fd8-7285ff46dede,bond4,,88089a7c-124e-11e2-877b-52540021f621,00:00:00:00:00:00,1,0,0,2012-10-09
16:25:13.434369-04,2012-11-14 15:11:13.885784-05,1500,0
369b0757-078a-4b18-b0de-d42cca1bcbad,bond3,,88089a7c-124e-11e2-877b-52540021f621,00:00:00:00:00:00,1,0,0,2012-10-09
16:25:13.438335-04,2012-11-14 15:11:13.888115-05,1500,0
42825d0d-acb0-46e0-b84d-aee4cdee3f55,em1,ovirtmgmt,e5a52b3c-0f10-11e2-94c2-52540021f621,84:8f:69:75:50:f6,,1000,192.168.119.188,255.255.255.0,192.168.119.110,1,2,2012-10-05
13:25:47.081134-04,2012-11-14 15:11:15.811989-05,1500,1
774504e6-ad28-419f-84ba-b5d138462472,em2,,e5a52b3c-0f10-11e2-94c2-52540021f621,84:8f:69:75:50:f8,,1000,10.10.5.104,255.255.255.0

[Users] cannot add new logical network to host

2012-11-14 Thread Alan Johnson
I am trying to add a network for a sandbox environment that only certain
VMs will have access to and those VMs will not have access to the rest of
our network.  This is to allow new systems to be tested in a safe
environment where they can't possibly muck with our live systems.  I'm
trying to follow the instructions of section 5.4 Logical Network
Taskshttps://access.redhat.com/knowledge/docs/en-US/Red_Hat_Enterprise_Virtualization/3.1-Beta/html-single/Administration_Guide/index.html#sect-Logical_Network_Tasksin
the Admin guide but I keep getting an error when adding to the host.
 Here is what I'm doing:

Under Data Centers  Default  Logical Networks  New, I create a new
logical network called sandbox, VM network is checked, VLAN network is
checked and VLAN ID is 2. .
Under Clusters  Default  Logical Networks  Assign/Unassign Networks, I
check Assign but not Required and sandbox appears in the list.
Under Hosts  cloudhost01  Network Interfaces  Setup Host Networks, I
drag sandbox to the em1 interface which is also where ovirtmgmt is
assigned.  There is am em2 interface, but that is dedicated to iSCSI
storage and has no Logical Networks assigned to it.
I check Save network configuration, leave Verify connectivity between
Host and ovirt-engine checked, click OK and I get Error: cloudhost01: -
General command validation failure.

This may not be relevant, but in my event log I get cloudhost01 is missing
vlan id: 2 that is expected by the cluster warnings when I activate
cloudhost01 while the sandbox network exists.  I have tired doing things
with different orders and tweaks all resulting in the same error.  Here are
my versions:
ovirt-log-collector-3.1.0-16.el6.noarch
ovirt-image-uploader-3.1.0-16.el6.noarch
ovirt-engine-userportal-3.1.0-3.19.el6.noarch
ovirt-engine-setup-3.1.0-3.19.el6.noarch
ovirt-engine-restapi-3.1.0-3.19.el6.noarch
ovirt-engine-config-3.1.0-3.19.el6.noarch
ovirt-engine-notification-service-3.1.0-3.19.el6.noarch
ovirt-engine-backend-3.1.0-3.19.el6.noarch
ovirt-engine-sdk-3.1.0.5-1.el6.noarch
ovirt-iso-uploader-3.1.0-16.el6.noarch
ovirt-engine-jbossas711-1-0.x86_64
ovirt-engine-webadmin-portal-3.1.0-3.19.el6.noarch
ovirt-engine-dbscripts-3.1.0-3.19.el6.noarch
ovirt-engine-genericapi-3.1.0-3.19.el6.noarch
ovirt-engine-tools-common-3.1.0-3.19.el6.noarch
ovirt-engine-3.1.0-3.19.el6.noarch


The rest of this message is the accompanying stack trace that shows up in
engine.log.  Looks to my lay eye like an expected database column is
missing or something.  Any ideas?

2012-11-14 15:34:17,332 ERROR
[org.ovirt.engine.core.bll.SetupNetworksCommand] (ajp--0.0.0.0-8009-10)
[78b1227b] Error during CanDoActionFailure.:
javax.validation.ValidationException: Call to
TraversableResolver.isReachable() threw an exception
at
org.hibernate.validator.engine.ValidatorImpl.isValidationRequired(ValidatorImpl.java:773)
[hibernate-validator.jar:4.0.2.GA]
at
org.hibernate.validator.engine.ValidatorImpl.validateConstraint(ValidatorImpl.java:331)
[hibernate-validator.jar:4.0.2.GA]
at
org.hibernate.validator.engine.ValidatorImpl.validateConstraintsForRedefinedDefaultGroup(ValidatorImpl.java:278)
[hibernate-validator.jar:4.0.2.GA]
at
org.hibernate.validator.engine.ValidatorImpl.validateConstraintsForCurrentGroup(ValidatorImpl.java:260)
[hibernate-validator.jar:4.0.2.GA]
at
org.hibernate.validator.engine.ValidatorImpl.validateInContext(ValidatorImpl.java:213)
[hibernate-validator.jar:4.0.2.GA]
at
org.hibernate.validator.engine.ValidatorImpl.validateCascadedConstraint(ValidatorImpl.java:466)
[hibernate-validator.jar:4.0.2.GA]
at
org.hibernate.validator.engine.ValidatorImpl.validateCascadedConstraints(ValidatorImpl.java:372)
[hibernate-validator.jar:4.0.2.GA]
at
org.hibernate.validator.engine.ValidatorImpl.validateInContext(ValidatorImpl.java:219)
[hibernate-validator.jar:4.0.2.GA]
at
org.hibernate.validator.engine.ValidatorImpl.validate(ValidatorImpl.java:119)
[hibernate-validator.jar:4.0.2.GA]
at
org.ovirt.engine.core.common.utils.ValidationUtils.validateInputs(ValidationUtils.java:77)
[engine-common.jar:]
at
org.ovirt.engine.core.bll.CommandBase.validateInputs(CommandBase.java:518)
[engine-bll.jar:]
at
org.ovirt.engine.core.bll.CommandBase.InternalCanDoAction(CommandBase.java:486)
[engine-bll.jar:]
at
org.ovirt.engine.core.bll.CommandBase.ExecuteAction(CommandBase.java:261)
[engine-bll.jar:]
at
org.ovirt.engine.core.bll.Backend.runActionImpl(Backend.java:336)
[engine-bll.jar:]
at org.ovirt.engine.core.bll.Backend.RunAction(Backend.java:294)
[engine-bll.jar:]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[rt.jar:1.7.0_09-icedtea]
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[rt.jar:1.7.0_09-icedtea]
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[rt.jar:1.7.0_09-icedtea]
at 

Re: [Users] Procedure to change engine host name

2012-11-12 Thread Alan Johnson
On Wed, Oct 17, 2012 at 12:38 PM, Jason Brooks jbro...@redhat.com wrote:

 On 10/05/2012 08:03 AM, Juan Hernandez wrote:

 Hi,

 I see some interest on how to change the host name of the machine where
 the engine runs (in release 3.1). This is a manual procedure that you
 can use to do that:


I greatly appreciated these instructions, however there seems to be some
points missing.  The links on the landing page (User Portal, Administrator
Portal, Reports Portal) still have my old host name in them.  I can easily
work around this for the time being by clicking the link then manually
editing the URL of the failed page.  I my efforts to find out where this
might have happen, I found 2 places in the database that include the old
host name:

*option_id.*VdcBootStrapUrl
*option_id.*VirtualMachineDomainName.

I have corrected those and restarted oVirt engine, but the links still have
the old address.  So, I kept digging and found that there might be
references to the old host name in the storage_server_connections table,
e.g. ISOs.  Of course, that won't affect these links.

Where else might I find references to the old name?  Particularly for those
links?

Thanks!



 Thanks, Juan -- I'm sure this will come in handy!

 I've copied these instructions into a page on the oVirt wiki:

 http://wiki.ovirt.org/wiki/**How_to_change_engine_host_namehttp://wiki.ovirt.org/wiki/How_to_change_engine_host_name


I have put in a request for a wiki account and will update this page if I
am approved.  Please feel free to update before I get to it.  =)
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] Ovirt Memory Page Sharing or to less memory

2012-10-17 Thread Alan Johnson
On Wed, Oct 17, 2012 at 6:22 AM, Noam Slomianko nslom...@redhat.com wrote:

 I stand corrected, it seems that this change is supported.
 If you go and check the memory optimisation tab you'll find that it is set
 to Custom Value


I'm not seeing that.  I select my cluster, then click Edit  Memory
Optimization, and i just have the 3 radio buttons: None, Server (150%) and
Desktop (200%).  Am I looking in the wrong place?  Running a different
versions than you are referring to (oVirt Engine Version: 3.1.0-3.19.el6)?
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] Ovirt Memory Page Sharing or to less memory

2012-10-17 Thread Alan Johnson
On Mon, Oct 15, 2012 at 6:51 PM, Mathok math...@googlemail.com wrote:

 It is possible to increase the level of memory page sharing on a cluster
 above the 200% with a option and start the vms after that change ? or it is
 possible to deactivate the memory threshold with any option?


First, let me be clear that this is complete speculation.  That said,
my interpretation of these features based on how the GUI behaves is that
the Cluster Memory Optimization (CMO) setting changes the default Physical
Memory Guarantee (PMG) on new VMs under the Resource Allocation tab.
 However, you could set that number manually to whatever you want.  I have
been setting it to 1/4 of the Memory Size (MS) on the General tab as a
general rule, but varying it by VM as needed.

So, to restate, when CMO is set to None, PMG=MS when creating a new VM.
 When CMO is set to Server, PMG=MS/150%.  When CMO is Desktop, PMG=MS/200%.
 But you can still set the PMG to any custom value any time the VM is not
running.  That much I am sure of.  What I have not tested is my expectation
that the engine will pile the VMs on the hosts based purely on their the
greater of PMG and actual VM use.  It would be reasonably plausible that
the engine limits VMs on the hosts based on CMO as well as PMG and actual
use, but I just don't know for sure either way.

I would greatly appreciated it if some guru could school me on this point.

___
Alan Johnson
a...@datdec.com
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] how to convince oVirt a VM is down

2012-10-12 Thread Alan Johnson
On Thu, Oct 11, 2012 at 3:20 AM, Roy Golan rgo...@redhat.com wrote:


 since the VM run_on_vds was empty, the confirm host... didn't clear its
 status because its not selected from the DB as one of the host VMs.
 I'll try to dig in to see at what point this value was cleared - probably
 around the failed migration.


Cool.  Let me know if you need anything else from me.  Again, I have the
USB stick from cloudhost02 when it failed, if there is a log for vdsmd or
something that might have something useful in it, just send me the path.

Are transactions in use in the system anywhere, either in the DB or the app
layer?  If not, have they been considered?  I ask because this seems like
the kind of thing they would address nicely.  Specifically, if migration
recipient is up and happy, but does not confirm VM is up or migration in
progress, and sender node is no longer responsive, roll back to assuming
the VM is still running on sender.  This would avoid the inconsistent state
I had of not-down-but-not-running-on-any-responding-host either and allow
confirm host... to clear the unknown state of the VM.

Sorry if I am stating the obvious or over simplifying.  It has been a long
time since I wrote any significant code.  =)
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[Users] call for suggests on oVirt authentication back-end (directory service, etc.)

2012-10-09 Thread Alan Johnson
Thanks to Tim Hildred, I found out about the need to have a directory
server.  Before I embark on this path, I thought I could ping the community
to get a since for what is common, easy, and/or available to best suit our
wants.

First, what's the easiest one to setup and use?  Something with a simple
GUI would be desirable: a webmin module perhaps?

Most ideal would be something that is in line with our desire to move
towards single sign on, ultimately authenticating against Google Apps.  Does
Google provide something supported?  Is there something that can proxy
google apps auth to an oVirt supported protocol?

Alternately, we have an LDAP server, but it does NOT store passwords, and
as such, does not provide authentication for anything.  Will oVirt store
passwords for users created from such an LDAP service, or does LDAP need to
be the authority as well?

Finally, we also have NIS setup (thought we hope to get away from that
soon), so some means of authenticating through the systems local PAM system
would be the next most convenient.

These are just thoughts and I am completely open to suggestions.  Thanks in
advance for any input! =)

___
Alan Johnson
a...@datdec.com
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[Users] how to convince oVirt a VM is down

2012-10-09 Thread Alan Johnson
One of my hosts died while going into maintenance mode.  2 of the VMs
didn't make it through migration before it became unresponsive.  Now, they
are flagged as unknown and I can't do anything with them in that state.  I
can't even remove them?

Anyway, is there anyway to convince the engine that a VM is down so I can
bring it back up again, like with Confirm 'host has been rebooted' on
hosts?

___
Alan Johnson
a...@datdec.com
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] how to convince oVirt a VM is down

2012-10-09 Thread Alan Johnson
On Tue, Oct 9, 2012 at 3:49 PM, Itamar Heim ih...@redhat.com wrote:

 On 10/09/2012 09:23 PM, Alan Johnson wrote:

 Anyway, is there anyway to convince the engine that a VM is down so I
 can bring it back up again, like with Confirm 'host has been rebooted'
 on hosts?


 which hosts are they supposedly on?


The host column is blank for these VMs.  Also, running `virsh --readonly
list` on the remaining hosts matches the VMs oVirt shows as running and
does not list the Unknown VMs on either host.


 does 'confirm host shutdown' on the host not release them?


It did not.  I also removed the host since I will need to add it back in
after re-installing the OS on a more stable boot drive.  Still no change.

You have me thinking... perhaps oVirt thinks they are running on the host
they were being migrated to.  If so, maybe putting that host into
maintenance will clear it up.  I'll try that as soon as I get the down host
back up.
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] how to convince oVirt a VM is down

2012-10-09 Thread Alan Johnson
On Tue, Oct 9, 2012 at 4:01 PM, Alan Johnson a...@datdec.com wrote:

 You have me thinking... perhaps oVirt thinks they are running on the host
 they were being migrated to.  If so, maybe putting that host into
 maintenance will clear it up.  I'll try that as soon as I get the down host
 back up.


Nope, the 2 stuck VMs have still not been released from Unknown status.
 I've rebooted the 3rd host and restarted the engine.  Still no love.
 Please help.
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] Increase storage domain

2012-10-08 Thread Alan Johnson
On Sat, Sep 29, 2012 at 3:47 PM, Ayal Baron aba...@redhat.com wrote:

   However, as I read this email, it occurred that some other things
   might not be equal. Specifically, using multiple LUNs could provide
   a means of shrinking the storage domain in the future. LVM provides
   a simple means to remove a PV from a VG, but does the engine
   support
   this in the CLI or GUI? That is, if the a storage domain has
   multiple LUNs in it, can those be removed at a later date?
 
  Not yet.
 
 
  Does this mean it is in the works? If not, where could I put in such
  feature request?
 
 
  Certainly, I have no pressing need of this, but it seems like a
  fairly simple thing to implement since I have done it so easily in
  the past with a just a couple of commands outside of an oVirt
  environment. I believe the primary purpose of the LVM functionality
  was to enable removal of dying PVs before they take out an entire
  VG. No reason it would not work just as well to remove a healthy PV.
  It can take a long time to move all the extents off the PV
  requested, but there is command to show the progress, so it would
  also be easy to wrap that in to the GUI.

 What's simple in a single host environment is really not that simple when
 it comes to clusters.
 The tricky part is the coordination between the different hosts and doing
 it live or with minimal impact.


Fair enough, but it seems that the cluster environment has been addressed
with the SPM mechanism for all things LVM.  Certainly, initial coding the
feature would be fairly trivial, but I can imagine that testing in the
cluster environment might expose additional complexity.
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] Increase storage domain

2012-09-27 Thread Alan Johnson
On Wed, Sep 26, 2012 at 6:12 PM, Ayal Baron aba...@redhat.com wrote:

 Sounds really over-complicated for what you're trying to do.


Agreed!  That's why I asked. =)  To be clear, all that was necessary to end
up where I wanted was to reboot the hosts, which is not terribly
complicated, but time consuming and should not be necessary.  I tired all
those other steps based on recommendations in this thread to avoid the
reboot.


 After increasing the size of the LUN in the storage side try running the
 following command on the SPM:
 vdsClient -s 0 getDeviceList
 (-s is only if ssl is enabled, otherwise just remove it)

 After that run pvresize (for LVM to update its metadata).
 That should be it on the SPM side.


This did not make any difference.  I increased the LUN to 14.1 on the
Equallogics box and then ran these commands (you may want to skip past this
to the text below since I am leaning heavily toward the add a LUN method):

[root@cloudhost04 ~]# pvdisplay
  --- Physical volume ---
  PV Name   /dev/mapper/364ed2a35d83f5d68b705e54229020027
  VG Name   64c4a870-98dc-40fc-b21e-092156febcdc
  PV Size   14.00 TiB / not usable 129.00 MiB
  Allocatable   yes
  PE Size   128.00 MiB
  Total PE  114686
  Free PE   111983
  Allocated PE  2703
  PV UUID   h8tZon-o5sB-FR4M-m8oT-UPub-eM1w-7eexhO
[root@cloudhost04 ~]# vdsClient -s 0 getDeviceList
[{'GUID': '364ed2a35d83f5d68b705e54229020027',
  'capacity': '15393163837440',
  'devtype': 'iSCSI',
  'fwrev': '5.2',
  'logicalblocksize': '512',
  'partitioned': False,
  'pathlist': [{'connection': '10.10.5.18',
'initiatorname': 'default',
'iqn':
'iqn.2001-05.com.equallogic:4-52aed6-685d3fd83-2700022942e505b7-cloud2',
'port': '3260',
'portal': '1'}],
  'pathstatus': [{'lun': '0',
  'physdev': 'sdd',
  'state': 'active',
  'type': 'iSCSI'}],
  'physicalblocksize': '512',
  'productID': '100E-00',
  'pvUUID': 'h8tZon-o5sB-FR4M-m8oT-UPub-eM1w-7eexhO',
  'serial': '',
  'vendorID': 'EQLOGIC',
  'vgUUID': 'XtdGHH-5WwC-oWRa-bv0V-me7t-T6ti-M9WKd2'}]

[root@cloudhost04 ~]# pvdisplay
  --- Physical volume ---
  PV Name   /dev/mapper/364ed2a35d83f5d68b705e54229020027
  VG Name   64c4a870-98dc-40fc-b21e-092156febcdc
  PV Size   14.00 TiB / not usable 129.00 MiB
  Allocatable   yes
  PE Size   128.00 MiB
  Total PE  114686
  Free PE   111983
  Allocated PE  2703
  PV UUID   h8tZon-o5sB-FR4M-m8oT-UPub-eM1w-7eexhO

[root@cloudhost04 ~]# pvresize /dev/mapper/364ed2a35d83f5d68b705e54229020027
  Physical volume /dev/mapper/364ed2a35d83f5d68b705e54229020027 changed
  1 physical volume(s) resized / 0 physical volume(s) not resized
[root@cloudhost04 ~]# pvdisplay
  --- Physical volume ---
  PV Name   /dev/mapper/364ed2a35d83f5d68b705e54229020027
  VG Name   64c4a870-98dc-40fc-b21e-092156febcdc
  PV Size   14.00 TiB / not usable 129.00 MiB
  Allocatable   yes
  PE Size   128.00 MiB
  Total PE  114686
  Free PE   111983
  Allocated PE  2703
  PV UUID   h8tZon-o5sB-FR4M-m8oT-UPub-eM1w-7eexhO


So, not change.


 Then if indeed it succeeds, wait a little while for engine to catch up (it
 periodically runs getStoragePoolInfo and updates its info about free space,
 you can find this in vdsm.log)
 regardless, see below for the preferred method.


Thanks for the confirmation.  Any idea what the interval is?

  Alternately, would it just be better to create a new LUN on the iSCSI
  target and add it to the storage domain? Is that even doable?

 This flow is fully supported and is currently the easiest way of doing
 this (supported from the GUI and from the CLI). Simply extend a domain with
 a new LUN


Great!  I'll give that a shot.



  Certainly it is as simple as adding a new PV to the VG in LVM, but
  does the engine/GUI support it? It seems a bit more messy than
  growing an existing domain from an iSCSI target point of view, but
  are there any technical down sides?

 The target has nothing to do with it, you can have multiple LUNs behind
 the same target.


The target serves the LUNs and it was the additional LUNs that I
was referring to as being messier when a single LUN could do the job.  Not
a big problem, just name the LUNs the same the same patters (cloud# in my
case), but when all other things are equal, less LUNs is less to think
about.

However, as I read this email, it occurred that some other things might not
be equal.  Specifically, using multiple LUNs could provide a means of
shrinking the storage domain in the future.  LVM provides a simple means to
remove a PV from a VG, but does the engine support this in the CLI or GUI?
 That is, if the a storage domain has multiple LUNs 

Re: [Users] I can't figure out how to add a user?

2012-09-26 Thread Alan Johnson
On Tue, Sep 25, 2012 at 8:37 PM, Tim Hildred thild...@redhat.com wrote:

 Hey Alan;

 I think the missing piece might be a directory server of some kind (Active
 Directory, IPA, RHDS, and I think TivoliDS are the ones that work). You
 have to link oVirt engine up with your directory server, and add users to
 the directory server first before you can search and add them in oVirt.


Yep, that's what I'm missing.  Thanks!



 You link your oVirt engine to a directory server with the
 engine-manage-domains tool from the command line on your engine server.


Is there a GUI in the works for this?  Not a big deal if not, and now that
I know what to look for, it is clearly covered in the Administration Guide.
 It would be good to mention the directory service in 12.1.8.1. Adding
Users.  I searched for add user and was apparently too burnt out to step
back far enough to see the answer way off in another part of that chapter.
 Could some one point me to the appropriate place to put in that suggestion?



 The command you'll use is something like:

 engine-manage-domains -action=add -domain=example.com -user=admin
 -provider=IPA -interactive

 That adds a domain called example.com, using user admin with ldap server
 type IPA and prompts you for a password.

 Hope that helps.


That's a huge help!  Thanks!  Our global IT has been talking about setting
up a single sign-on system, but not much progress has been made yet.  Any
thoughts on which of these options would be easiest to setup in the short
term?  Even better, what would be the best/easiest way to authenticate off
of Google Apps?  I'll do some searching on that, but if some one knows that
they support one of the protocols directly, or some way to wrap GA with one
of the supported protocols, that would be greatly appreciated.

We have an LDAP server that syncs to Google Apps, but it does not store
password data.
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[Users] I can't figure out how to add a user?

2012-09-25 Thread Alan Johnson
First off, oVirt noob alert.  That said, I have been able to figure out and
over come most of my issues getting oVirt running on CentOS 6.3 the various
documentation that is available, including this list's archives for the
last few months.  (Side question: I haven't found a good way to search the
archives short of using site: within google search, but that does not seem
to work so well, so I have been relying on gmail's collection of the
messages since I subscribed a few months ago.  Is there a better way?)

Anyway, this one seems like it should be so simple that I feel like I must
be missing some thing painfully obvious.  That is, I don't seem to be able
to create a user.  The GUI's add button on the user tab just lets me search
existing users, but does not provide anywhere to enter new user info.  I
have successfully added the admin@internal user several times while
bumbling around with that interface, but this is not terribly helpful since
it has always been there.  To what I have added it, I am am not entirely
clear.  I don't see anything in the getting started guide, and the
administrator guide just walks me through the same useless steps I
mentioned above in the user tab.

Any nudge in the right direction would be greatly appreciated.  I'll even
accept dope slaps at this point if warranted. =)

Thanks in advance for your time and consideration.

___
Alan Johnson
a...@datdec.com
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] Can oVirt be installed in a virtual machine?

2012-09-21 Thread Alan Johnson
On Wed, Sep 12, 2012 at 9:22 PM, Nicolas Chenier dasc...@gmail.com wrote:

 I was under the impression that my oVirt VM would show up in oVirt and
 that I could manage it through there...

 What you're saying is that I should just run it seperatly and not manage
 it with itself (oVirt)? keep it on my shared storage so that I can run it
 off any of the 2 servers? But not manage it with oVirt (itself). I think
 I'm starting to get it now...

 I really appreciate your help!

 Nic


Nic, how did you make out with this?  I'm looking to do the same thing and
am wondering if there is any risk in running the engine on a VM managed by
the same engine, as you were suggesting before.  Did you give this a shot?

Itamar, why did you steer Nic away from this?

___
Alan Johnson
a...@datdec.com
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users