This is a test setup so no worries about future breakage via upgrade. <br>I ended up stopping the engine service, dumping the database and altering the the table vds_interface --> column "mac_addr" and increasing the char varying length from 20 to 60.<br>
I then restore the altered database and go about business as usual.<br><br>I had to make the edit offline because there are quite a few DB views and rules dependent on that table.<br><br>- DHC <br><br><div class="gmail_quote">
On Fri, Sep 14, 2012 at 2:51 AM, Itamar Heim <span dir="ltr"><<a href="mailto:iheim@redhat.com" target="_blank">iheim@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On 09/14/2012 06:59 AM, Dead Horse wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Bug opened BZ857294 (<a href="https://bugzilla.redhat.com/show_bug.cgi?id=857294" target="_blank">https://bugzilla.redhat.com/<u></u>show_bug.cgi?id=857294</a>)<br>
<br>
What would be a suggestion to work around this ATM and still be able to<br>
use and keep the IB cards in the system?<br>
</blockquote>
<br></div>
a bit risky wrt future upgrade which you'll need to carefully test (and better if you get it first changed upstream...)<br>
change the field to be lengthier (i remember the discussion around this, but google'd a bit and couldn't find it)<br>
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
<br>
- DHC<br>
<br>
<br>
On Thu, Sep 13, 2012 at 6:49 PM, Andrew Cathrow <<a href="mailto:acathrow@redhat.com" target="_blank">acathrow@redhat.com</a><br></div><div class="im">
<mailto:<a href="mailto:acathrow@redhat.com" target="_blank">acathrow@redhat.com</a>>> wrote:<br>
<br>
Yes you are right there is a known issue with the mac address length<br>
in IB cards. IIRC there was a hardware vendor who was working on a<br>
patch to extend the length and add the appropriate validation.<br>
<br>
<br>
Dead Horse <<a href="mailto:deadhorseconsulting@gmail.com" target="_blank">deadhorseconsulting@gmail.com</a><br></div><div><div class="h5">
<mailto:<a href="mailto:deadhorseconsulting@gmail.com" target="_blank">deadhorseconsulting@<u></u>gmail.com</a>>> wrote:<br>
<br>
When attempting to activate/add a host with Infiniband cards present:<br>
<br>
vdsm.log<br>
Thread-14::DEBUG::2012-09-13<br>
16:16:29,306::BindingXMLRPC::<u></u>884::vds::(wrapper) return getCapabilities<br>
with {'status': {'message': 'Done', 'code': 0}, 'info': {'HBAInventory':<br>
{'iSCSI': [{'InitiatorName': 'iqn.2012-09.net.azeroth:<u></u>kezan'}],<br>
'FC': []},<br>
'packages2': {'kernel': {'release': '200.29.3.el6uek.x86_64',<br>
'buildtime':<br>
1346177011.0, 'version': '2.6.39'}, 'spice-server': {'release':<br>
'10.el6',<br>
'buildtime': 1340343617L, 'version': '0.10.1'}, 'vdsm': {'release':<br>
'435.el6', 'buildtime': 1347508928L, 'version': '4.10.0'}, 'qemu-kvm':<br>
{'release': '2.295.el6_3.2', 'buildtime': 1346867328L, 'version':<br>
'0.12.1.2'}, 'libvirt': {'release': '21.el6_3.4', 'buildtime':<br>
1345740034L,<br>
'version': '0.9.10'}, 'qemu-img': {'release': '2.295.el6_3.2',<br>
'buildtime':<br>
1346867328L, 'version': '0.12.1.2'}}, 'cpuModel': 'Intel(R) Xeon(R)<br>
CPU E5540 @ 2.53GHz', 'hooks': {}, 'vmTypes': ['kvm'],<br>
'supportedProtocols': ['2.2', '2.3'], 'networks': {'ovirtmgmt':<br>
{'iface':<br>
'ovirtmgmt', 'addr': '3.57.111.31', 'cfg': {'IPV6INIT': 'no', 'IPADDR':<br>
'3.57.111.31', 'DELAY': '0', 'PREFIX': '22', 'BOOTPROTO': 'none', 'STP':<br>
'off', 'DEVICE': 'ovirtmgmt', 'TYPE': 'Bridge', 'ONBOOT': 'yes'}, 'mtu':<br>
'1500', 'netmask': '255.255.252.0', 'stp': 'off', 'bridged': True,<br>
'gateway': '0.0.0.0', 'ports': ['bond2']}, 'maelstrom': {'iface':<br>
'maelstrom', 'addr': '', 'cfg': {'IPV6INIT': 'no', 'DELAY': '0',<br>
'BOOTPROTO': 'none', 'STP': 'off', 'DEVICE': 'maelstrom', 'TYPE':<br>
'Bridge',<br>
'ONBOOT': 'yes'}, 'mtu': '1500', 'netmask': '', 'stp': 'off', 'bridged':<br>
True, 'gateway': '0.0.0.0', 'ports': ['bond0']}, 'twistingnether':<br>
{'iface': 'twistingnether', 'addr': '3.70.204.31', 'cfg': {'IPV6INIT':<br>
'no', 'IPADDR': '3.70.204.31', 'DELAY': '0', 'PREFIX': '22',<br>
'BOOTPROTO':<br>
'none', 'STP': 'off', 'DEVICE': 'twistingnether', 'TYPE': 'Bridge',<br>
'ONBOOT': 'yes'}, 'mtu': '1500', 'netmask': '255.255.252.0', 'stp':<br>
'off',<br>
'bridged': True, 'gateway': '3.70.204.254', 'ports': ['bond1']}},<br>
'bridges': {'ovirtmgmt': {'addr': '3.57.111.31', 'cfg': {'IPV6INIT':<br>
'no',<br>
'IPADDR': '3.57.111.31', 'DELAY': '0', 'PREFIX': '22', 'BOOTPROTO':<br>
'none',<br>
'STP': 'off', 'DEVICE': 'ovirtmgmt', 'TYPE': 'Bridge', 'ONBOOT': 'yes'},<br>
'mtu': '1500', 'netmask': '255.255.252.0', 'stp': 'off', 'ports':<br>
['bond2']}, 'maelstrom': {'addr': '', 'cfg': {'IPV6INIT': 'no', 'DELAY':<br>
'0', 'BOOTPROTO': 'none', 'STP': 'off', 'DEVICE': 'maelstrom', 'TYPE':<br>
'Bridge', 'ONBOOT': 'yes'}, 'mtu': '1500', 'netmask': '', 'stp': 'off',<br>
'ports': ['bond0']}, 'twistingnether': {'addr': '3.70.204.31', 'cfg':<br>
{'IPV6INIT': 'no', 'IPADDR': '3.70.204.31', 'DELAY': '0', 'PREFIX':<br>
'22',<br>
'BOOTPROTO': 'none', 'STP': 'off', 'DEVICE': 'twistingnether', 'TYPE':<br>
'Bridge', 'ONBOOT': 'yes'}, 'mtu': '1500', 'netmask': '255.255.252.0',<br>
'stp': 'off', 'ports': ['bond1']}}, 'uuid':<br>
'FF200008-FFFF-FFFF-FFFF-<u></u>00212883CE4C_00:15:17:00:10:<u></u>0a',<br>
'lastClientIface': 'twistingnether', 'nics': {'ib0': {'addr':<br>
'192.168.1.1', 'cfg': {'IPV6INIT': 'no', 'IPADDR': '192.168.1.1', 'MTU':<br>
'65520', 'PREFIX': '16', 'BOOTPROTO': 'none', 'CONNECTED_MODE': 'yes',<br>
'DEVICE': 'ib0', 'TYPE': 'Infiniband', 'ONBOOT': 'yes'}, 'mtu': '65520',<br>
'netmask': '255.255.0.0', 'hwaddr':<br>
'80:00:04:04:fe:80:00:00:00:<u></u>00:00:00:00:12:79:ff:ff:b5:b0:<u></u>f1',<br>
'speed': 0},<br>
'ib1': {'addr': '', 'cfg': {'IPV6INIT': 'no', 'MTU': '65520',<br>
'BOOTPROTO':<br>
'none', 'CONNECTED_MODE': 'yes', 'DEVICE': 'ib1', 'TYPE': 'Infiniband',<br>
'ONBOOT': 'no'}, 'mtu': '2044', 'netmask': '', 'hwaddr':<br>
'80:00:04:05:fe:80:00:00:00:<u></u>00:00:00:00:12:79:ff:ff:b5:b0:<u></u>f2',<br>
'speed': 0},<br>
'eth5': {'permhwaddr': '00:15:17:00:10:0B', 'addr': '', 'cfg': {'SLAVE':<br>
'yes', 'IPV6INIT': 'no', 'HWADDR': '00:15:17:00:10:0B', 'BOOTPROTO':<br>
'none', 'MASTER': 'bond2', 'DEVICE': 'eth5', 'ONBOOT': 'yes'}, 'mtu':<br>
'1500', 'netmask': '', 'hwaddr': '00:15:17:00:10:0a', 'speed': 1000},<br>
'eth4': {'permhwaddr': '00:15:17:00:10:0A', 'addr': '', 'cfg': {'SLAVE':<br>
'yes', 'IPV6INIT': 'no', 'HWADDR': '00:15:17:00:10:0A', 'BOOTPROTO':<br>
'none', 'MASTER': 'bond2', 'DEVICE': 'eth4', 'ONBOOT': 'yes'}, 'mtu':<br>
'1500', 'netmask': '', 'hwaddr': '00:15:17:00:10:0a', 'speed': 1000},<br>
'eth3': {'permhwaddr': '00:21:28:83:CE:4B', 'addr': '', 'cfg': {'SLAVE':<br>
'yes', 'HWADDR': '00:21:28:83:CE:4B', 'BOOTPROTO': 'none', 'MASTER':<br>
'bond1', 'DEVICE': 'eth3', 'ONBOOT': 'yes'}, 'mtu': '1500',<br>
'netmask': '',<br>
'hwaddr': '00:21:28:83:ce:4a', 'speed': 1000}, 'eth2': {'permhwaddr':<br>
'00:21:28:83:CE:4A', 'addr': '', 'cfg': {'SLAVE': 'yes', 'HWADDR':<br>
'00:21:28:83:CE:4A', 'BOOTPROTO': 'none', 'MASTER': 'bond1', 'DEVICE':<br>
'eth2', 'ONBOOT': 'yes'}, 'mtu': '1500', 'netmask': '', 'hwaddr':<br>
'00:21:28:83:ce:4a', 'speed': 1000}, 'eth1': {'permhwaddr':<br>
'00:21:28:83:CE:49', 'addr': '', 'cfg': {'SLAVE': 'yes', 'IPV6INIT':<br>
'no',<br>
'HWADDR': '00:21:28:83:CE:49', 'BOOTPROTO': 'none', 'MASTER': 'bond0',<br>
'DEVICE': 'eth1', 'ONBOOT': 'yes'}, 'mtu': '1500', 'netmask': '',<br>
'hwaddr':<br>
'00:21:28:83:ce:48', 'speed': 1000}, 'eth0': {'permhwaddr':<br>
'00:21:28:83:CE:48', 'addr': '', 'cfg': {'SLAVE': 'yes', 'IPV6INIT':<br>
'no',<br>
'HWADDR': '00:21:28:83:CE:48', 'BOOTPROTO': 'none', 'MASTER': 'bond0',<br>
'DEVICE': 'eth0', 'ONBOOT': 'yes'}, 'mtu': '1500', 'netmask': '',<br>
'hwaddr':<br>
'00:21:28:83:ce:48', 'speed': 1000}}, 'software_revision': '435',<br>
'management_ip': '3.57.111.31', 'clusterLevels': ['3.0', '3.1', '3.2'],<br>
'cpuFlags':<br>
u'fpu,vme,de,pse,tsc,msr,pae,<u></u>mce,cx8,apic,sep,mtrr,pge,mca,<u></u>cmov,pat,pse36,clflush,dts,<u></u>acpi,mmx,fxsr,sse,sse2,ss,ht,<u></u>tm,pbe,syscall,nx,rdtscp,lm,<u></u>constant_tsc,arch_perfmon,<u></u>pebs,bts,rep_good,nopl,<u></u>xtopology,nonstop_tsc,<u></u>aperfmperf,pni,dtes64,monitor,<u></u>ds_cpl,vmx,est,tm2,ssse3,cx16,<u></u>xtpr,pdcm,dca,sse4_1,sse4_2,<u></u>popcnt,lahf_lm,ida,dts,tpr_<u></u>shadow,vnmi,flexpriority,ept,<u></u>vpid,model_Nehalem,model_<u></u>Conroe,model_Penryn',<br>
'ISCSIInitiatorName': 'iqn.2012-09.net.azeroth:<u></u>kezan', 'netConfigDirty':<br>
'False', 'memSize': '36272', 'reservedMem': '321', 'bondings': {'bond4':<br>
{'addr': '', 'cfg': {}, 'mtu': '1500', 'netmask': '', 'slaves': [],<br>
'hwaddr': '00:00:00:00:00:00'}, 'bond0': {'addr': '', 'cfg': {'BRIDGE':<br>
'maelstrom', 'IPV6INIT': 'no', 'BOOTPROTO': 'none', 'BONDING_OPTS':<br>
'mode=4<br>
miimon=250 xmit_hash_policy=layer2+3', 'DEVICE': 'bond0', 'ONBOOT':<br>
'yes'},<br>
'mtu': '1500', 'netmask': '', 'slaves': ['eth0', 'eth1'], 'hwaddr':<br>
'00:21:28:83:ce:48'}, 'bond1': {'addr': '', 'cfg': {'BRIDGE':<br>
'twistingnether', 'IPV6INIT': 'no', 'BOOTPROTO': 'none', 'BONDING_OPTS':<br>
'mode=4 miimon=250 xmit_hash_policy=layer2+3', 'DEVICE': 'bond1',<br>
'ONBOOT':<br>
'yes'}, 'mtu': '1500', 'netmask': '', 'slaves': ['eth2', 'eth3'],<br>
'hwaddr':<br>
'00:21:28:83:ce:4a'}, 'bond2': {'addr': '', 'cfg': {'BRIDGE':<br>
'ovirtmgmt',<br>
'IPV6INIT': 'no', 'BOOTPROTO': 'none', 'BONDING_OPTS': 'mode=4<br>
miimon=250<br>
xmit_hash_policy=layer2+3', 'DEVICE': 'bond2', 'ONBOOT': 'yes'}, 'mtu':<br>
'1500', 'netmask': '', 'slaves': ['eth4', 'eth5'], 'hwaddr':<br>
'00:15:17:00:10:0a'}}, 'software_version': '4.10', 'cpuSpeed':<br>
'2527.246',<br>
'cpuSockets': '2', 'vlans': {}, 'cpuCores': '8', 'kvmEnabled': 'true',<br>
'guestOverhead': '65', 'supportedRHEVMs': ['3.0', '3.1'],<br>
'version_name':<br>
'Snow Man', 'emulatedMachines': [u'rhel6.3.0', u'pc', u'rhel6.2.0',<br>
u'rhel6.1.0', u'rhel6.0.0', u'rhel5.5.0', u'rhel5.4.4', u'rhel5.4.0'],<br>
'operatingSystem': {'release': '1', 'version': '6.3', 'name': 'RHEL'},<br>
'lastClient': '0.0.0.0'}}<br>
<br>
<br>
engine.log:<br>
2012-09-13 16:16:28,559 INFO<br>
[org.ovirt.engine.core.<u></u>vdsbroker.<u></u>ActivateVdsVDSCommand]<br>
(pool-3-thread-50)<br>
[21c70ebd] START, ActivateVdsVDSCommand(vdsId =<br>
1a3d06a8-fde1-11e1-a02d-<u></u>00151712f280), log id: 4483b716<br>
2012-09-13 16:16:29,339 INFO<br>
[org.ovirt.engine.core.<u></u>vdsbroker.VdsManager]<br>
(pool-3-thread-50) [21c70ebd] ResourceManager::activateVds - failed<br>
to get<br>
VDS = 1a3d06a8-fde1-11e1-a02d-<u></u>00151712f280 capabilities with error:<br>
CallableStatementCallback; SQL [{call insertvds_interface(?, ?, ?,<br>
?, ?, ?,<br>
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)}]; ERROR: value too long for type<br>
character varying(20)<br>
Where: SQL statement "INSERT INTO vds_interface(addr, bond_name,<br>
bond_type, gateway, id, is_bond, bond_opts, mac_addr, name,<br>
network_name,<br>
speed, subnet, boot_protocol, type, VDS_ID, vlan_id, mtu, bridged)<br>
VALUES(v_addr, v_bond_name, v_bond_type, v_gateway, v_id,<br>
v_is_bond,<br>
v_bond_opts, v_mac_addr, v_name, v_network_name, v_speed, v_subnet,<br>
v_boot_protocol, v_type, v_vds_id, v_vlan_id, v_mtu, v_bridged)"<br>
PL/pgSQL function "insertvds_interface" line 3 at SQL statement; nested<br>
exception is org.postgresql.util.<u></u>PSQLException: ERROR: value too<br>
long for<br>
type character varying(20)<br>
Where: SQL statement "INSERT INTO vds_interface(addr, bond_name,<br>
bond_type, gateway, id, is_bond, bond_opts, mac_addr, name,<br>
network_name,<br>
speed, subnet, boot_protocol, type, VDS_ID, vlan_id, mtu, bridged)<br>
VALUES(v_addr, v_bond_name, v_bond_type, v_gateway, v_id,<br>
v_is_bond,<br>
v_bond_opts, v_mac_addr, v_name, v_network_name, v_speed, v_subnet,<br>
v_boot_protocol, v_type, v_vds_id, v_vlan_id, v_mtu, v_bridged)"<br>
PL/pgSQL function "insertvds_interface" line 3 at SQL statement.<br>
2012-09-13 16:16:29,342 INFO<br>
[org.ovirt.engine.core.<u></u>vdsbroker.VdsManager]<br>
(pool-3-thread-50) [21c70ebd] ResourceManager::activateVds - failed to<br>
activate VDS = 1a3d06a8-fde1-11e1-a02d-<u></u>00151712f280<br>
2012-09-13 16:16:29,344 ERROR<br>
[org.ovirt.engine.core.<u></u>vdsbroker.VDSCommandBase] (pool-3-thread-50)<br>
[21c70ebd] Command ActivateVdsVDS execution failed. Exception:<br>
UncategorizedSQLException: CallableStatementCallback; uncategorized<br>
SQLException for SQL [{call updatevdsdynamic(?, ?, ?, ?, ?, ?, ?, ?,<br>
?, ?,<br>
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,<br>
?, ?,<br>
?, ?)}]; SQL state [25P02]; error code [0]; ERROR: current<br>
transaction is<br>
aborted, commands ignored until end of transaction block; nested<br>
exception<br>
is org.postgresql.util.<u></u>PSQLException: ERROR: current transaction is<br>
aborted, commands ignored until end of transaction block<br>
2012-09-13 16:16:29,345 INFO<br>
[org.ovirt.engine.core.<u></u>vdsbroker.<u></u>ActivateVdsVDSCommand]<br>
(pool-3-thread-50)<br>
[21c70ebd] FINISH, ActivateVdsVDSCommand, log id: 4483b716<br>
<br>
NOTE the length of the Infiniband card "hwaddr" perhaps a clue to<br>
the above<br>
engine DB insert barf? --> (ERROR: value too long for type character<br>
varying(20))<br>
<br>
- DHC<br>
<br>
<br>
<br>
<br></div></div>
______________________________<u></u>_________________<br>
Users mailing list<br>
<a href="mailto:Users@ovirt.org" target="_blank">Users@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/users" target="_blank">http://lists.ovirt.org/<u></u>mailman/listinfo/users</a><br>
<br>
</blockquote>
<br>
<br>
</blockquote></div><br>