Re: Can't launch VMs
Hi Ilya I understand that. However the problem is I already have this environment deployed and it was working fine but now my users can't launch new instances because apparently there is no vlan configured. I would like to get this working again. Thanks Carlos > On Oct 2, 2014, at 12:02 PM, ilya musayev > wrote: > > Carlos, > > VLAN tagging is one of the main reasons why you want to use advanced zone. > Thats the difference between basic and advanced zones. > > Regards > ilya > > >> On 10/2/14, 10:04 AM, Carlos Reátegui wrote: >> I don't see anywhere in the basic network wizard where I can add a vlan tag. >> I see it in the advanced network wizard. >> >> Do you know where in the DB I can add the tag to get my system back online? >> Or can you point me to the jira. >> >> Thank you >> Carlos >> >> >> >>> On Oct 2, 2014, at 8:30 AM, Daan Hoogland wrote: >>> >>> The add zone wizard provides a field during physical network creation. Not >>> sure if that answers your question. Not in case you are using the api of >>> course. >>> On Thu, Oct 2, 2014 at 3:46 PM, Carlos Reátegui wrote: >> On Oct 2, 2014, at 12:57 AM, Daan Hoogland > wrote: > > On Thu, Oct 2, 2014 at 12:29 AM, Carlos Reátegui > wrote: > >> Daan, >> Any chance you got to look at this? I am still confused why for a basic >> network with no vlans the code is expecting a uri for a vlan. >> thanks > > It is a known issue, can you do your setup with specifying a vlan? I > suspect this being the issue. It won't use the vlan but it needs a value. Where do I do that? > Needs fixing but I think it will work with this work around. I am not sure > what the most solid fix would be and that would be more a discussion for > dev@... > > You could think of inserting a default value when doing basic networking or > a check on networking type when creating the router/instances. Both seem > quirky, though. > > regards, > -- > Daan >>> >>> >>> -- >>> Daan >
Re: Can't launch VMs
Carlos, VLAN tagging is one of the main reasons why you want to use advanced zone. Thats the difference between basic and advanced zones. Regards ilya On 10/2/14, 10:04 AM, Carlos Reátegui wrote: I don't see anywhere in the basic network wizard where I can add a vlan tag. I see it in the advanced network wizard. Do you know where in the DB I can add the tag to get my system back online? Or can you point me to the jira. Thank you Carlos On Oct 2, 2014, at 8:30 AM, Daan Hoogland wrote: The add zone wizard provides a field during physical network creation. Not sure if that answers your question. Not in case you are using the api of course. On Thu, Oct 2, 2014 at 3:46 PM, Carlos Reátegui wrote: On Oct 2, 2014, at 12:57 AM, Daan Hoogland wrote: On Thu, Oct 2, 2014 at 12:29 AM, Carlos Reátegui wrote: Daan, Any chance you got to look at this? I am still confused why for a basic network with no vlans the code is expecting a uri for a vlan. thanks It is a known issue, can you do your setup with specifying a vlan? I suspect this being the issue. It won't use the vlan but it needs a value. Where do I do that? Needs fixing but I think it will work with this work around. I am not sure what the most solid fix would be and that would be more a discussion for dev@... You could think of inserting a default value when doing basic networking or a check on networking type when creating the router/instances. Both seem quirky, though. regards, -- Daan -- Daan
Re: Can't launch VMs
I don't see anywhere in the basic network wizard where I can add a vlan tag. I see it in the advanced network wizard. Do you know where in the DB I can add the tag to get my system back online? Or can you point me to the jira. Thank you Carlos > On Oct 2, 2014, at 8:30 AM, Daan Hoogland wrote: > > The add zone wizard provides a field during physical network creation. Not > sure if that answers your question. Not in case you are using the api of > course. > >> On Thu, Oct 2, 2014 at 3:46 PM, Carlos Reátegui wrote: >> >> >> On Oct 2, 2014, at 12:57 AM, Daan Hoogland >>> wrote: >>> >>> On Thu, Oct 2, 2014 at 12:29 AM, Carlos Reátegui >>> wrote: >>> Daan, Any chance you got to look at this? I am still confused why for a basic network with no vlans the code is expecting a uri for a vlan. thanks >>> >>> It is a known issue, can you do your setup with specifying a vlan? I >>> suspect this being the issue. It won't use the vlan but it needs a value. >> >> Where do I do that? >> >>> Needs fixing but I think it will work with this work around. I am not >> sure >>> what the most solid fix would be and that would be more a discussion for >>> dev@... >>> >>> You could think of inserting a default value when doing basic networking >> or >>> a check on networking type when creating the router/instances. Both seem >>> quirky, though. >>> >>> regards, >>> -- >>> Daan > > > > -- > Daan
Re: Can't launch VMs
The add zone wizard provides a field during physical network creation. Not sure if that answers your question. Not in case you are using the api of course. On Thu, Oct 2, 2014 at 3:46 PM, Carlos Reátegui wrote: > > > > On Oct 2, 2014, at 12:57 AM, Daan Hoogland > wrote: > > > > On Thu, Oct 2, 2014 at 12:29 AM, Carlos Reátegui > > wrote: > > > >> Daan, > >> Any chance you got to look at this? I am still confused why for a basic > >> network with no vlans the code is expecting a uri for a vlan. > >> thanks > > > > It is a known issue, can you do your setup with specifying a vlan? I > > suspect this being the issue. It won't use the vlan but it needs a value. > > Where do I do that? > > > Needs fixing but I think it will work with this work around. I am not > sure > > what the most solid fix would be and that would be more a discussion for > > dev@... > > > > You could think of inserting a default value when doing basic networking > or > > a check on networking type when creating the router/instances. Both seem > > quirky, though. > > > > regards, > > -- > > Daan > -- Daan
Re: Can't launch VMs
> On Oct 2, 2014, at 12:57 AM, Daan Hoogland wrote: > > On Thu, Oct 2, 2014 at 12:29 AM, Carlos Reátegui > wrote: > >> Daan, >> Any chance you got to look at this? I am still confused why for a basic >> network with no vlans the code is expecting a uri for a vlan. >> thanks > > It is a known issue, can you do your setup with specifying a vlan? I > suspect this being the issue. It won't use the vlan but it needs a value. Where do I do that? > Needs fixing but I think it will work with this work around. I am not sure > what the most solid fix would be and that would be more a discussion for > dev@... > > You could think of inserting a default value when doing basic networking or > a check on networking type when creating the router/instances. Both seem > quirky, though. > > regards, > -- > Daan
Re: Can't launch VMs
On Thu, Oct 2, 2014 at 12:29 AM, Carlos Reátegui wrote: > Daan, > Any chance you got to look at this? I am still confused why for a basic > network with no vlans the code is expecting a uri for a vlan. > thanks > It is a known issue, can you do your setup with specifying a vlan? I suspect this being the issue. It won't use the vlan but it needs a value. Needs fixing but I think it will work with this work around. I am not sure what the most solid fix would be and that would be more a discussion for dev@... You could think of inserting a default value when doing basic networking or a check on networking type when creating the router/instances. Both seem quirky, though. regards, -- Daan
Re: Can't launch VMs
Daan, Any chance you got to look at this? I am still confused why for a basic network with no vlans the code is expecting a uri for a vlan. thanks Carlos On Sep 30, 2014, at 11:37 AM, Carlos Reategui wrote: > ok. I see. Although wouldn't it be easier to query the DB based on what it > is looking for to see what is missing? > > When I originally set it up, I did not us the initial wizard. Instead I > created it from "Infrastructure->Zones->Add Zone" and then following: > 1) Zone Type: > Basic Network > > 2) Setup Zone: > fill in values for DNS > Hypervisor: ZenServer > Network Offering: DefaultSharedNetworkOffering > Network Domain: blank > Dedicated: NO > LocalStorageEnabled: YES (I do option 1 from the warning -- start zone in > disabled state and add primary storage) > > 3) Setup Network > POD: > Physical Network: xapi1 (Management and Guest) did not drag storage in. > GUEST TRAFFIC: > *Reserved system gateway: 172.30.45.1 > *Reserved system netmask: 255.255.255.0 > *Start Reserved system IP: 172.30.45.50 > End Reserved system IP: 172.30.45.80 > > Guest Gateway: 172.30.45.1 > Guest Netmask: 255.255.255.0 > Guest start IP: 172.30.45.100 > Guest end IP: 172.30.45.250 > > 4) Add Resources: > CLUSTER: > Hypervisor: Xenserver > HOST: > add the xenserver pool master info > > 5) Launch > SECONDARY STORAGE: > Add NFS storage > > Launch zone disabled > > The go to "Infrastructure->Primary Storage(view all)->Add Primary Storage" > and add primary NFS storage. > > This was working fine previously. > > > > > On Tue, Sep 30, 2014 at 10:19 AM, Daan Hoogland > wrote: > Carlos, the line of code that breaks expects a uri for a vlan. That is why > I want more information from you. I can not judge whether the code is > broken and should have dealt with the nullpointer or whether the > configuration is incorrect. What are your guest/management/storage > networks? what are the cidrs and ip-ranges you chose? > > On Tue, Sep 30, 2014 at 4:41 PM, Carlos Reátegui > wrote: > > > Daan, > > Thanks for having a look > > > > On Sep 30, 2014, at 2:16 AM, Daan Hoogland > > wrote: > > > > >> 2014-09-29 16:26:25,834 WARN [c.c.h.x.r.CitrixResourceBase] > > >> (DirectAgent-235:ctx-7f8db7ac) Catch Exception: class > > >> java.lang.NullPointerException due to java.lang.NullPointerException > > >> > > >> java.lang.NullPointerException > > >> > > >>at > > >> > > > > > com.cloud.network.Networks$BroadcastDomainType.getSchemeValue(Networks.java:173) > > >> > > >>at > > >> > > com.cloud.network.Networks$BroadcastDomainType.getValue(Networks.java:228) > > >> > > >>at > > >> > > > > > com.cloud.hypervisor.xen.resource.CitrixResourceBase.getNetwork(CitrixResourceBase.java:1035) > > >> > > > ... > > > > > > Can you describe how you set up your network? Which cidrs/network > > > types/vlans/ etc? > > > > > > > This is a basic network. No security groups. No vlans. > > > > ACS: 4.3.1 (On ubuntu 12.04) + XS 6.2 > > > > > -- > > > Daan > > > > > > > -- > Daan >
Re: Can't launch VMs
ok. I see. Although wouldn't it be easier to query the DB based on what it is looking for to see what is missing? When I originally set it up, I did not us the initial wizard. Instead I created it from "Infrastructure->Zones->Add Zone" and then following: 1) Zone Type: Basic Network 2) Setup Zone: fill in values for DNS Hypervisor: ZenServer Network Offering: DefaultSharedNetworkOffering Network Domain: blank Dedicated: NO LocalStorageEnabled: YES (I do option 1 from the warning -- start zone in disabled state and add primary storage) 3) Setup Network POD: Physical Network: xapi1 (Management and Guest) did not drag storage in. GUEST TRAFFIC: *Reserved system gateway: 172.30.45.1 *Reserved system netmask: 255.255.255.0 *Start Reserved system IP: 172.30.45.50 End Reserved system IP: 172.30.45.80 Guest Gateway: 172.30.45.1 Guest Netmask: 255.255.255.0 Guest start IP: 172.30.45.100 Guest end IP: 172.30.45.250 4) Add Resources: CLUSTER: Hypervisor: Xenserver HOST: add the xenserver pool master info 5) Launch SECONDARY STORAGE: Add NFS storage Launch zone disabled The go to "Infrastructure->Primary Storage(view all)->Add Primary Storage" and add primary NFS storage. This was working fine previously. On Tue, Sep 30, 2014 at 10:19 AM, Daan Hoogland wrote: > Carlos, the line of code that breaks expects a uri for a vlan. That is why > I want more information from you. I can not judge whether the code is > broken and should have dealt with the nullpointer or whether the > configuration is incorrect. What are your guest/management/storage > networks? what are the cidrs and ip-ranges you chose? > > On Tue, Sep 30, 2014 at 4:41 PM, Carlos Reátegui > wrote: > > > Daan, > > Thanks for having a look > > > > On Sep 30, 2014, at 2:16 AM, Daan Hoogland > > wrote: > > > > >> 2014-09-29 16:26:25,834 WARN [c.c.h.x.r.CitrixResourceBase] > > >> (DirectAgent-235:ctx-7f8db7ac) Catch Exception: class > > >> java.lang.NullPointerException due to java.lang.NullPointerException > > >> > > >> java.lang.NullPointerException > > >> > > >>at > > >> > > > > > > com.cloud.network.Networks$BroadcastDomainType.getSchemeValue(Networks.java:173) > > >> > > >>at > > >> > > > com.cloud.network.Networks$BroadcastDomainType.getValue(Networks.java:228) > > >> > > >>at > > >> > > > > > > com.cloud.hypervisor.xen.resource.CitrixResourceBase.getNetwork(CitrixResourceBase.java:1035) > > >> > > > ... > > > > > > Can you describe how you set up your network? Which cidrs/network > > > types/vlans/ etc? > > > > > > > This is a basic network. No security groups. No vlans. > > > > ACS: 4.3.1 (On ubuntu 12.04) + XS 6.2 > > > > > -- > > > Daan > > > > > > > -- > Daan >
Re: Can't launch VMs
Carlos, the line of code that breaks expects a uri for a vlan. That is why I want more information from you. I can not judge whether the code is broken and should have dealt with the nullpointer or whether the configuration is incorrect. What are your guest/management/storage networks? what are the cidrs and ip-ranges you chose? On Tue, Sep 30, 2014 at 4:41 PM, Carlos Reátegui wrote: > Daan, > Thanks for having a look > > On Sep 30, 2014, at 2:16 AM, Daan Hoogland > wrote: > > >> 2014-09-29 16:26:25,834 WARN [c.c.h.x.r.CitrixResourceBase] > >> (DirectAgent-235:ctx-7f8db7ac) Catch Exception: class > >> java.lang.NullPointerException due to java.lang.NullPointerException > >> > >> java.lang.NullPointerException > >> > >>at > >> > > > com.cloud.network.Networks$BroadcastDomainType.getSchemeValue(Networks.java:173) > >> > >>at > >> > com.cloud.network.Networks$BroadcastDomainType.getValue(Networks.java:228) > >> > >>at > >> > > > com.cloud.hypervisor.xen.resource.CitrixResourceBase.getNetwork(CitrixResourceBase.java:1035) > >> > > ... > > > > Can you describe how you set up your network? Which cidrs/network > > types/vlans/ etc? > > > > This is a basic network. No security groups. No vlans. > > ACS: 4.3.1 (On ubuntu 12.04) + XS 6.2 > > > -- > > Daan > > -- Daan
Re: Can't launch VMs
Daan, Thanks for having a look On Sep 30, 2014, at 2:16 AM, Daan Hoogland wrote: >> 2014-09-29 16:26:25,834 WARN [c.c.h.x.r.CitrixResourceBase] >> (DirectAgent-235:ctx-7f8db7ac) Catch Exception: class >> java.lang.NullPointerException due to java.lang.NullPointerException >> >> java.lang.NullPointerException >> >>at >> > com.cloud.network.Networks$BroadcastDomainType.getSchemeValue(Networks.java:173) >> >>at >> com.cloud.network.Networks$BroadcastDomainType.getValue(Networks.java:228) >> >>at >> > com.cloud.hypervisor.xen.resource.CitrixResourceBase.getNetwork(CitrixResourceBase.java:1035) >> > ... > > Can you describe how you set up your network? Which cidrs/network > types/vlans/ etc? > This is a basic network. No security groups. No vlans. ACS: 4.3.1 (On ubuntu 12.04) + XS 6.2 > -- > Daan
Re: Can't launch VMs
Carlos, On Tue, Sep 30, 2014 at 2:23 AM, Carlos Reategui wrote: ... > On Mon, Sep 29, 2014 at 4:53 PM, Carlos Reategui > wrote: > > > Following up on my earlier email regarding errors in my logs it appears > I saw that one and will examine it later butone thing I noticed here ... > 2014-09-29 16:26:25,834 WARN [c.c.h.x.r.CitrixResourceBase] > (DirectAgent-235:ctx-7f8db7ac) Catch Exception: class > java.lang.NullPointerException due to java.lang.NullPointerException > > java.lang.NullPointerException > > at > com.cloud.network.Networks$BroadcastDomainType.getSchemeValue(Networks.java:173) > > at > com.cloud.network.Networks$BroadcastDomainType.getValue(Networks.java:228) > > at > com.cloud.hypervisor.xen.resource.CitrixResourceBase.getNetwork(CitrixResourceBase.java:1035) > ... Can you describe how you set up your network? Which cidrs/network types/vlans/ etc? -- Daan
Re: Can't launch VMs
I also tried looking in the SMlog on the host machine and did not see anything out of the ordinary there. In the xensource log I found the following where it references a VDI = invalid after which it destroys the VM. [20140929T23:26:25.360Z|debug|srvengxen02|28792520 inet-RPC|VBD.create R:92cef04c77be|audit] VBD.create: VM = '71314961-a1bf-689e-eaec-73b9e3639db8 (i-3-98-VM)'; VDI = '18801349-c195-468a-99db-67534434d137' [20140929T23:26:25.360Z|debug|srvengxen02|28792608 unix-RPC||dummytaskhelper] task dispatch:SR.get_by_uuid D:41de8bc7f75c created by task R:e85d97df8f66 [20140929T23:26:25.366Z|debug|srvengxen02|28792520 inet-RPC|VBD.create R:92cef04c77be|xapi] VBD.create (device = 0; uuid = 9297b527-7b1f-600c-0d55-8486a8bd35d7; ref = OpaqueRef:f2c07f6f-6f4c-0f50-e38c-b4e7a5e280e6) [20140929T23:26:25.377Z|debug|srvengxen02|28792609 unix-RPC||dummytaskhelper] task dispatch:VDI.get_all_records_where D:05a8c79e50bf created by task R:e85d97df8f66 [20140929T23:26:25.415Z| info|srvengxen02|28792610 unix-RPC|session.login_with_password D:ced9199f4e0c|xapi] Session.create trackid=9624f0c2f5e5bd3038fb6a99acc9fabb pool=false uname=root is_local_superuser=true auth_user_sid= parent=trackid=9834f5af41c964e225f24279aefe4e49 [20140929T23:26:25.423Z|debug|srvengxen02|28792610 unix-RPC|session.login_with_password D:ced9199f4e0c|xapi] Attempting to open /var/xapi/xapi [20140929T23:26:25.424Z| info|srvengxen02|28792518 inet-RPC|sm_exec D:f9b7a7e773dc|xapi] Session.destroy trackid=359335e97d06233dc28a816141253bbd [20140929T23:26:25.429Z|debug|srvengxen02|28792518 inet-RPC|SR.scan R:e85d97df8f66|xapi] Unmarking SR after SR.scan (task=OpaqueRef:e85d97df-8f66-9c31-cbd9-c8957ad49af3) [20140929T23:26:25.433Z|debug|srvengxen02|28792611 unix-RPC||dummytaskhelper] task dispatch:host.get_other_config D:0e4ea6af7e73 created by task R:50e59a397731 [20140929T23:26:25.435Z|debug|srvengxen02|28792612 unix-RPC||dummytaskhelper] task dispatch:session.get_uuid D:195d11136faa created by task D:ced9199f4e0c [20140929T23:26:25.493Z|debug|srvengxen02|28792614 unix-RPC||dummytaskhelper] task dispatch:SR.get_by_uuid D:9dc0edeee20c created by task R:50e59a397731 [20140929T23:26:25.508Z|debug|srvengxen02|28792616 unix-RPC||dummytaskhelper] task dispatch:VDI.get_all_records_where D:903ce3656dc9 created by task R:50e59a397731 [20140929T23:26:25.528Z|debug|srvengxen02|28792520 inet-RPC|VBD.create R:f1336eb3be75|audit] VBD.create: VM = '71314961-a1bf-689e-eaec-73b9e3639db8 (i-3-98-VM)'; VDI = 'a343a4a0-1a7c-45b6-8e64-1e1ed1bdfd48' [20140929T23:26:25.551Z|debug|srvengxen02|28792520 inet-RPC|VBD.create R:f1336eb3be75|xapi] VBD.create (device = 1; uuid = 6609b989-ec81-10c1-8b00-b1fb1eb3885f; ref = OpaqueRef:50aad4c1-6cfa-cd28-5788-ef75a7124b8a) [20140929T23:26:25.584Z|debug|srvengxen02|28792518 inet-RPC|host.call_plugin R:c855f78ec429|audit] Host.call_plugin host = '63befa52-4c03-460a-9557-9100d51cedaf (srvengxen02)'; plugin = 'echo'; fn = 'main'; args = [ ] [20140929T23:26:25.602Z|debug|srvengxen02|28792621 unix-RPC||dummytaskhelper] task dispatch:SR.get_by_uuid D:6ba0551a82ed created by task R:50e59a397731 [20140929T23:26:25.638Z|debug|srvengxen02|28792623 unix-RPC||dummytaskhelper] task dispatch:SR.set_virtual_allocation D:8058d66fa46e created by task R:50e59a397731 [20140929T23:26:25.648Z|debug|srvengxen02|28792520 inet-RPC|VBD.create R:ef5d48345ac5|audit] VBD.create: VM = '71314961-a1bf-689e-eaec-73b9e3639db8 (i-3-98-VM)'; VDI = 'invalid' [20140929T23:26:25.655Z|debug|srvengxen02|28792520 inet-RPC|VBD.create R:ef5d48345ac5|xapi] VBD.create (device = 3; uuid = d47f3673-7dc8-68ff-7eb7-fcd6ba8b0c41; ref = OpaqueRef:a73083d7-8947-953d-ee0f-7f6861395417) [20140929T23:26:25.662Z|debug|srvengxen02|28792625 unix-RPC||dummytaskhelper] task dispatch:SR.set_physical_size D:98208d41d23a created by task R:50e59a397731 [20140929T23:26:25.713Z|debug|srvengxen02|28792627 unix-RPC||dummytaskhelper] task dispatch:SR.set_physical_utilisation D:2473b2fa3810 created by task R:50e59a397731 [20140929T23:26:25.766Z|debug|srvengxen02|28792629 unix-RPC||dummytaskhelper] task dispatch:SR.get_by_uuid D:9789f2f4d40b created by task R:50e59a397731 [20140929T23:26:25.783Z|debug|srvengxen02|28792518 inet-RPC|SR.scan R:74ead907ad3a|audit] SR.scan: SR = '1058d9b9-4dde-473b-72d6-5e56f1141f96 (17b0a8a5-2376-3d11-b60e-31eebeafb217)' [20140929T23:26:25.786Z|debug|srvengxen02|28792518 inet-RPC|SR.scan R:74ead907ad3a|xapi] Marking SR for SR.scan (task=OpaqueRef:74ead907-ad3a-01c8-9021-b5a1a0e52ee3) [20140929T23:26:25.790Z|debug|srvengxen02|28792630 unix-RPC||dummytaskhelper] task dispatch:VDI.get_all_records_where D:557e5dbbb33a created by task R:50e59a397731 [20140929T23:26:25.802Z|debug|srvengxen02|28792518 inet-RPC|SR.scan R:74ead907ad3a|sm] SM nfs sr_scan sr=OpaqueRef:a920ca88-cf2f-f50a-faf5-9b17c5740433 [20140929T23:26:25.831Z| info|srvengxen02|28792518 inet-RPC|sm_exec D:2211094a1f86|xapi] Session.create trackid=53c2c5386accf7c5f10e4d69510fcede pool=false u