[ovirt-users] 答复: 答复: 答复: How to Use VLAN?
Hi,All Does anybody know how to use VLAN in Hosted Engine 3.5 as new feature?(According to the http://www.ovirt.org/OVirt_3.5_Release_Notes, VLAN is a new function in Hosted Engine 3.5) -邮件原件- 发件人: users-boun...@ovirt.org [mailto:users-boun...@ovirt.org] 代表 Xie, Chao 发送时间: 2014年11月21日 9:35 收件人: Lior Vernia 抄送: users@ovirt.org 主题: [ovirt-users] 答复: 答复: How to Use VLAN? Hi, Lior Thanks for replying. Yesterday I tested VLAN successfully in the normal 3.5 environment. As the release Note, (http://www.ovirt.org/OVirt_3.5_Release_Notes), Hosted Engine 3.5 supports the new function of VLAN。 Is it meaning the rhevm logical network use VLAN ? If I am right, can you help to teach me how to use it? (I think it must be creating a VLAN manually before deploy hosted engine, then we should choose the vlan when deploying?) -邮件原件- 发件人: Lior Vernia [mailto:lver...@redhat.com] 发送时间: 2014年11月19日 16:50 收件人: Xie, Chao/谢 超 抄送: users@ovirt.org 主题: Re: 答复: [ovirt-users] How to Use VLAN? On 19/11/14 10:45, Xie, Chao wrote: Hi, Lior: I configure the switch port connecting the host's NIC which hold the testvlan logical network. I try the NIC hold normal logical network ,VM using the logical network worked well. But if I hold the VLAN logical network, the VM using it didn't get IP. Hello Xie, This is what leads me to believe that your DHCP server (which is in charge of allocating IP addresses) only receives non-tagged traffic. Is it possible you need to configure other ports to pass the VLAN-tagged traffic? Lior. -邮件原件- 发件人: Lior Vernia [mailto:lver...@redhat.com] 发送时间: 2014年11月19日 16:09 收件人: Xie, Chao/谢 超 抄送: users@ovirt.org 主题: Re: [ovirt-users] How to Use VLAN? On 19/11/14 05:01, Xie, Chao wrote: Hi,all Recently I test the VLAN and have some problems. I configure the Logical network “testvlan” with “VLAN tagged” and assigned it to hosts’ NIC. Then I create a VM using “testvlan” and found the vm can’t get IP . Does anyone have some ideas about VLAN? p.s. I already configure the switch port as TRUNK mode and the vlan id is 1 (default value). Which switch port? Maybe the port(s) leading to your DHCP server aren't configured to allow traffic on this VLAN? ___ 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: [ovirt-users] Jumbo Frames
I think it should be something like: def addMTU(interface, mtusize): mtu = interface.createElement('mtu') add_attributes(mtu, 'size') mtu.setAttribute('size', mtusize) def main(): mtusize = os.environ.get('extnet_mtu') if mtusize is not None: doc = hooking.read_domxml() addMTU(doc, mtusize) hooking.write_domxml(doc) - Original Message - From: Antoni Segura Puimedon asegu...@redhat.com To: Phil Daws ux...@splatnix.net Cc: users users@ovirt.org Sent: Friday, 21 November, 2014 11:40:10 AM Subject: Re: [ovirt-users] Jumbo Frames - Original Message - From: Phil Daws ux...@splatnix.net To: users users@ovirt.org Sent: Friday, November 21, 2014 11:45:10 AM Subject: Re: [ovirt-users] Jumbo Frames Hmm, if an property does not already exist how does one add it ? def replaceMTU(interface, newmtu): mtu = interface.getElementsByTagName('mtu')[0] if not mtu.hasAttribute('size'): mtu.setAttribute('mtu size', newmtu) def main(): newmtu = os.environ.get('extnet_mtu') if newmtu is not None: doc = hooking.read_domxml() interface, = doc.getElementsByTagName('interface') replaceMTU(interface, newmtu) hooking.write_domxml(doc) When I test this code it throws and error: mtu = interface.getElementsByTagName('mtu')[0] IndexError: list index out of range so somehow I need to detect that element needs to be set. Could you please post how the libvirt xml should look like after the current hook (if it supported setting the mtu? Thanks, Phil - Original Message - From: Phil Daws ux...@splatnix.net To: users users@ovirt.org Sent: Friday, 21 November, 2014 10:16:48 AM Subject: Re: [ovirt-users] Jumbo Frames works with: engine-config -s CustomDeviceProperties='{type=interface;prop={extnet_ovs=^[a-zA-Z0-9_ ---]+(:[a-zA-Z0-9_ ---]+|)$;extnet_mtu=^[a-zA-Z0-9_ ---]+(:[a-zA-Z0-9_ ---]+|)$}};' Now just need to sort out the Python code ;) - Original Message - From: Phil Daws ux...@splatnix.net To: users users@ovirt.org Sent: Friday, 21 November, 2014 10:01:23 AM Subject: Re: [ovirt-users] Jumbo Frames Ah, it looks like I need to the MTU on the underlying vnet interface therefore should be able to extend the hook to include mtu size=9000/. Have tried to add an additional property using: CustomDeviceProperties='{type=interface;prop={extnet_ovs=^[a-zA-Z0-9_ ---]+(:[a-zA-Z0-9_ ---]+|)$};{extnet_mtu=^[a-zA-Z0-9_ ---]+(:[a-zA-Z0-9_ ---]+|)$}};' but it fails with the following error: Cannot set value {type=interface;prop={extnet_ovs=^[a-zA-Z0-9_ ---]+(:[a-zA-Z0-9_ ---]+|)$};{extnet_mtu=^[a-zA-Z0-9_ ---]+(:[a-zA-Z0-9_ ---]+|)$}}; to key CustomDeviceProperties. Invalid syntax, custom device properties specification should conform to \{type=(disk|interface|video|sound|controller|balloon|channel|redir|console|rng|smartcard|watchdog);prop=\{((([a-z_A-Z0-9])+)=(([^;])*)(;(([a-z_A-Z0-9])+)=(([^;])*))*;?)?\}\}[;]? I did try: CustomDeviceProperties='{type=interface;prop={extnet_ovs=^[a-zA-Z0-9_ ---]+(:[a-zA-Z0-9_ ---]+|)$};prop={extnet_mtu=^[a-zA-Z0-9_ ---]+(:[a-zA-Z0-9_ ---]+|)$}};' but that just gave me a new property of 'prop' :) Any help appreciated please. Thanks, Phil - Original Message - From: Phil Daws ux...@splatnix.net To: Dan Yasny dya...@gmail.com Cc: users users@ovirt.org Sent: Friday, 21 November, 2014 8:49:51 AM Subject: Re: [ovirt-users] Jumbo Frames Hello Dan: We are using OVS for SFlow and OSPF functionality. You can see that the bridge was correctly set: ovirtmgmt: flags=4163UP,BROADCAST,RUNNING,MULTICAST mtu 9000 Very odd as OVS is unaware of whether its jumbo frames or not. Thanks, Phil - Original Message - From: Dan Yasny dya...@gmail.com To: Phil Daws ux...@splatnix.net Cc: users users@ovirt.org Sent: Friday, 21 November, 2014 1:39:32 AM Subject: Re: [ovirt-users] Jumbo Frames Why do you use OVS at all? If you have VLANs, all you need is to tag the mgmt traffic, and create a VM traffic VLAN with a different MTU. The bridge and underlying NICs will have MTU=9000 and the VM bridge will have MTU=1500 On Thu, Nov 20, 2014 at 7:40 PM, Phil Daws ux...@splatnix.net wrote: Hello: am really enjoying oVirt but have now hit an issue with iSCSI. As there is only one NIC in the host I have had to enable an MTU of 9000 on ovirtmgmt. Then have vNIC profiles on that interface which are using a custom hook for Openvswitch. I have created a specific vLAN for iSCSI traffic and on the initiator and targets have set their respective interface MTUs to be 9000. When I connect to a LUN it is timing out straight away with a 1011 error. If I drop the MTU back to 1500 all works okay. This is all fine on my other KVM, non-oVirt, system so am wondering if I have missed a step ? Thanks, Phil ___ Users mailing
Re: [ovirt-users] Upgrade to Ovirt 3.5.0 Authentication Fails to IPA
- Original Message - From: Ondra Machacek omach...@redhat.com To: Yair Zaslavsky yzasl...@redhat.com Cc: cameron christensen cameron.christen...@uk2group.com, Alon Bar-Lev alo...@redhat.com, users@ovirt.org Sent: Thursday, November 20, 2014 6:09:53 PM Subject: [ovirt-users] Upgrade to Ovirt 3.5.0 Authentication Fails to IPA Hi, just tried it too. I was not successfull to reproduce, but the problem is that the domain part of LDAPSecurityAuthentication is uppercase as Cameron wrote. In 3.4 it is OK when it's upper case - everything works OK, but in 3.5 it's not. I checked differences and something like this would be enough, Yair? diff --git a/backend/manager/modules/utils/src/main/java/org/ovirt/engine/core/utils/extensionsmgr/EngineExtensionsManager.java b/backend/manager/modules/utils/src/main/java/org/ovirt/engine/core/utils/extensionsmgr/EngineExte index f5ab28d..ccaf04a 100644 --- a/backend/manager/modules/utils/src/main/java/org/ovirt/engine/core/utils/extensionsmgr/EngineExtensionsManager.java +++ b/backend/manager/modules/utils/src/main/java/org/ovirt/engine/core/utils/extensionsmgr/EngineExtensionsManager.java @@ -240,7 +240,7 @@ public class EngineExtensionsManager extends ExtensionsManager { ) ); } -if (nameValue[0].equals(domain)) { +if (nameValue[0].equalsIgnoreCase(domain)) { result = nameValue[1]; break; } Ondra Looks fine, but please email me in private a testing environment where I can check that. Thanks! P.S: Another option worth trying is simply remove and add the domain, but hey, if you're already in 3.5, and removed the domain, why not use he generic ldap provider? - Original Message - From: Alon Bar-Lev alonbl at redhat.com To: Cameron Christensen cameron.christensen at uk2group.com, Yair Zaslavsky yzaslavs at redhat.com Cc: users at ovirt.org Sent: Monday, November 17, 2014 11:48:15 PM Subject: Re: [ovirt-users] Upgrade to Ovirt 3.5.0 Authentication Fails to IPA - Original Message - From: Cameron Christensen cameron.christensen at uk2group.com To: Alon Bar-Lev alonbl at redhat.com Cc: users at ovirt.org Sent: Monday, November 17, 2014 11:43:34 PM Subject: Re: [ovirt-users] Upgrade to Ovirt 3.5.0 Authentication Fails to IPA On Mon, 2014-11-17 at 14:39 -0500, Alon Bar-Lev wrote: - Original Message - From: Cameron Christensen cameron.christensen at uk2group.com To: users at ovirt.org Sent: Friday, November 14, 2014 5:39:54 PM Subject: [ovirt-users] Upgrade to Ovirt 3.5.0 Authentication Fails to IPA Hello, I upgraded to ovirt 3.5.0 and can no longer authenticate to IPA. Starting up ovrit-engine the extension manager fails to properly load the service that handles Kerberos/LDAP. This is probably a bug, can you please execute the following and paste result: # PGPASSWORD=@PASSWORD@ psql -U engine -d engine -c select * from vdc_options where option_name='LDAPSecurityAuthentication' option_id |option_name | option_value| version ---++---+- 165 | LDAPSecurityAuthentication | example.org:GSSAPI | general I replaced my domain name with 'example.org' I thought it will be empty... and it contains valid value. Yair? No, this is fine actually. Any I truly suggest you try out the new provider... Much easier to resolve any issue, current and future, including easier to debug. Alon ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
[ovirt-users] Failure on last step of ovirt hosted engine
Hello, I am following the guide up and running with ovirt 3.5 but with iscsi and not glusterfs. On the last step (after I have already installed ovirt-engine in the vm) the script has stopped due to an error. So the ovirt hosted vm is not registered in the datacenter and iscsi storage is not seen by datacenter. I am trying to use ovirt gui to register it manually without luck. I also cannot add the iscsi storage domain to current datacenter because obviously it is already attached to another datacenter. Can someone tell me how to repeat the last step of the script? Thanks, Mario ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users