[jira] [Commented] (CLOUDSTACK-2878) Try using native SDN controller with XCP 1.6

2013-06-12 Thread tuna (JIRA)

[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-2878?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13681292#comment-13681292
 ] 

tuna commented on CLOUDSTACK-2878:
--

The problem is:

NetworkGuru guru = AdapterBase.getAdapterByName(_networkGurus, 
network.getGuruName())
this function return ExternalGuestNetworkGuru, not OvsGuestNetworkGuru.

I tried with XCP 1.6.10

 Try using native SDN controller with XCP 1.6
 

 Key: CLOUDSTACK-2878
 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-2878
 Project: CloudStack
  Issue Type: Sub-task
  Security Level: Public(Anyone can view this level - this is the 
 default.) 
Reporter: tuna
Assignee: tuna
 Fix For: 4.2.0


 I'm trying to use native SDN controller with GRE isolation method. It's 
 tested with XCP 1.6. The purpose is controlling what's happen.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (CLOUDSTACK-2878) Try using native SDN controller with XCP 1.6

2013-06-12 Thread tuna (JIRA)

[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-2878?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13681361#comment-13681361
 ] 

tuna commented on CLOUDSTACK-2878:
--

Opps, this because I forgot to create a new isolated network when changing 
sdn.ovs.controller to true. Got it!

 Try using native SDN controller with XCP 1.6
 

 Key: CLOUDSTACK-2878
 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-2878
 Project: CloudStack
  Issue Type: Sub-task
  Security Level: Public(Anyone can view this level - this is the 
 default.) 
Reporter: tuna
Assignee: tuna
 Fix For: 4.2.0


 I'm trying to use native SDN controller with GRE isolation method. It's 
 tested with XCP 1.6. The purpose is controlling what's happen.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (CLOUDSTACK-2878) Try using native SDN controller with XCP 1.6

2013-06-10 Thread tuna (JIRA)

[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-2878?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13679634#comment-13679634
 ] 

tuna commented on CLOUDSTACK-2878:
--

I found this error starting from the below code.

NetworkManagerImpl.java

NicProfile profile = guru.allocate(network, requested, vm); (1)
if (isDefaultNic != null) {
profile.setDefaultNic(
isDefaultNic);
}

ExtenalGuestNetworkGuru.java

@Override
public NicProfile allocate(Network config, NicProfile nic, 
VirtualMachineProfile? extends VirtualMachine vm) throws 
InsufficientVirtualNetworkCapcityException,
InsufficientAddressCapacityException {

if 
(_networkModel.networkIsConfiguredForExternalNetworking(config.getDataCenterId(),
 config.getId())  nic != null  nic.getRequestedIpv4() != null) {
throw new CloudRuntimeException(Does not support custom ip 
allocation at this time:  + nic);
}
   
NicProfile profile = super.allocate(config, nic, vm);

boolean _isEnabled = 
Boolean.parseBoolean(_configDao.getValue(Config.OvsTunnelNetwork.key())); 
(2)
if (_isEnabled) {
return null;
}

if 
(_networkModel.networkIsConfiguredForExternalNetworking(config.getDataCenterId(),
 config.getId())) {
profile.setStrategy(ReservationStrategy.Start);
/* We won't clear IP address, because router may set gateway as it 
IP, and it would be updated properly later */
//profile.setIp4Address(null);
profile.setGateway(null);
profile.setNetmask(null);
}

return profile;
}

The return from (1) is NULL, because at (2) sdn.ovs.controller set to true. So 
profile = NULL and then we get NullPointerException error in the next step.

This error prevents me to deployVM using GRE isolation method. If I set 
sdn.ovs.controller = false, no error anymore but can't using GRE. 

 Try using native SDN controller with XCP 1.6
 

 Key: CLOUDSTACK-2878
 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-2878
 Project: CloudStack
  Issue Type: Sub-task
  Security Level: Public(Anyone can view this level - this is the 
 default.) 
Reporter: tuna
Assignee: tuna
 Fix For: 4.2.0


 I'm trying to use native SDN controller with GRE isolation method. It's 
 tested with XCP 1.6. The purpose is controlling what's happen.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira