Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails invoking script command Pre-Install_6 #572

Open
willkruss opened this issue May 9, 2023 · 27 comments
Open

Fails invoking script command Pre-Install_6 #572

willkruss opened this issue May 9, 2023 · 27 comments

Comments

@willkruss
Copy link

Hi All,

Is there a log where I can see exactly what commands are being run and what output there is so I can determine the cause of failures. I don't seem to be able to get past the Pre-Install_6 script invoked during the deployment.

The network cluster appears to have been created as 'Get-NetworkControllerCluster' returns details, however, the REST IP is not assigned to any of the three VMs.

Thanks,
Will

@AnirbanPaul
Copy link
Contributor

Hi Will
Can you provide some more details. I suppose the SDN Express script is failing for you. Where is it failing? What is the error?
You will find the SDN Express log in the same folder where you run the script.

@willkruss
Copy link
Author

Hi Anirban, it looks like we managed to get the Network Controller script to function properly and install. However, I have another major issue. We have a setup with about 1000 vms in 2016, but our virtual network does not include any logical switches. The bandwidth reservation mode is set to Absolute on the virtual switch.

It appears this cannot be changed, and we have 1000 VMs connected to it.

We can upgrade to a logical switch, but the bandwidth reservation mode has to be the same (or it won't allow upgrading from virtual switches to logical switches).

We can't install the network controller as it says the Logical Switch bandwidth reservation mode has to be 'weight'.

How on earth without downtime can I somehow go from Virtual Switches with Absolute reservation mode to Weight mode so I can convert to a logical switch that is compatible with the network controller.

We have to figure out how to do this so we can upgrade our cluster from 2016 to 2019 as we run a lot of isolated networks using network virtualization which do not function without a network controller upon upgrade from 2016 to 2019.

Thanks in advance for any help or advise.
Cheers,
Will

@AnirbanPaul
Copy link
Contributor

AnirbanPaul commented May 12, 2023 via email

@willkruss
Copy link
Author

Hi Anirban,

Sorry for the follow up, a couple of questions:
Firstly, when provisioning the network controller it applies the domain the same IP as one of the network controllers, is that normal. For example in our testlab once provisioned without error I get:

  • NC-VM01.testlab.local 192.168.5.11
  • NC-VM02.testlab.local 192.168.5.12
  • NC-VM03.testlab.local 192.168.5.10
  • netcontroller.testlab.local 192.168.5.10

I find it strange that the netcontroller IP provided is the same as one of the actual VMs, and not a separate IP that can fail between hosts like the way the cluster IP works.

Secondly, I don't understand how to add the working network controller as a service, when I try to do this I get the error:
Non NC managed HNV LND 'Isolated Networks_0' of logical network 'Isolated Networks' has host groups overlaps with Network Controller scope.

'Isolated Networks' is a logical network that uses Hyper-V Virtualization. It is used by VMs in our cluster and therefore the hosts of the VMs have to be in the same host group as the hosts of the network controller VMs. Isn't the idea of the network controller so you can control networks using Hyper-V Network Virtualization?

Thanks,
Will Kruss

@AnirbanPaul
Copy link
Contributor

AnirbanPaul commented May 16, 2023 via email

@willkruss
Copy link
Author

Hi Anirban,

Thank you for the explanation. I have everything running in my test lab, however, for some reason the network controller are not handing out DHCP leases for the IP Pools in the VM Networks which use HNV.

It assigns the IP according to system center correctly, but inside the operating system we get DHCPDISCOVER -> No DHCPOFFERS received.

Oddly it appears that the Logical Network I created for HNV (Isolated Networks) is not allocating IPs from the IP Pool to the hosts in the manner it worked without using the Network Controller (PA Addresses unused).

I've attached screen shots of the setup. If you have any ideas I've love to hear them.

Thanks,
Will

HardwareLogicalNetworkConnectivityOnHost
IsolatedNetworksPAAddresses
LogicalNetworks
LogicalSwitch
NetController
PortProfile
VirtualSwitchesOnHost
VMHardwareConfig
VMNetwork-Connectivity(only want HNV between VMs on this network)
VMNetwork-IsolatedNetworks

@AnirbanPaul
Copy link
Contributor

AnirbanPaul commented May 30, 2023 via email

@willkruss
Copy link
Author

willkruss commented May 31, 2023 via email

@AnirbanPaul
Copy link
Contributor

AnirbanPaul commented May 31, 2023 via email

@shalal1095
Copy link

@.*** Kant @.> to help with the query Thanks, Sonal From: Anirban Paul @.> Sent: Tuesday, May 30, 2023 10:55 PM To: microsoft/SDN @.>; microsoft/SDN @.>; Sonal Agarwal @.> Cc: Comment @.> Subject: RE: [microsoft/SDN] Fails invoking script command Pre-Install_6 (Issue #572) +Sonal from the VMM team @sonal @.>, can you please check the configuration for accuracy. Will, are you able to see IP addresses from the HNV PA network on the physical host where the tenant VM is located? You can check this by running ipconfig /allcompartments /all on the host machine. @sonal @.>, how can they check the ConfigurationState of the Servers resource from VMM? I can provide REST commands directly, but wondering if VMM also exposes them. Thanks Anirban From: willkruss @.@.>> Sent: Sunday, May 28, 2023 10:21 PM To: microsoft/SDN @.@.>> Cc: Anirban Paul @.@.>>; Comment @.@.>> Subject: Re: [microsoft/SDN] Fails invoking script command Pre-Install_6 (Issue #572) Hi Anirban, Thank you for the explanation. I have everything running in my test lab, however, for some reason the network controller are not handing out DHCP leases for the IP Pools in the VM Networks which use HNV. It assigns the IP according to system center correctly, but inside the operating system we get DHCPDISCOVER -> No DHCPOFFERS received. Oddly it appears that the Logical Network I created for HNV (Isolated Networks) is not allocating IPs from the IP Pool to the hosts in the manner it worked without using the Network Controller (PA Addresses unused). I've attached screen shots of the setup. If you have any ideas I've love to hear them. Thanks, Will [Image removed by sender. HardwareLogicalNetworkConnectivityOnHost]https://user-images.githubusercontent.com/4157364/241647351-a6bd5b1c-db10-4f54-955d-c914e2c4923c.png [Image removed by sender. IsolatedNetworksPAAddresses]https://user-images.githubusercontent.com/4157364/241647367-7a517484-72aa-45cf-887e-322caf29c05f.png [Image removed by sender. LogicalNetworks]https://user-images.githubusercontent.com/4157364/241647374-b72bf2dc-5903-4834-bef8-1c3d0f5f9143.png [Image removed by sender. LogicalSwitch]https://user-images.githubusercontent.com/4157364/241647378-bade43fa-ca47-48c4-bb15-fb19ebda2b5e.png [Image removed by sender. NetController]https://user-images.githubusercontent.com/4157364/241647381-c46acf7e-33ff-4181-8799-90a746eabbca.png [Image removed by sender. PortProfile]https://user-images.githubusercontent.com/4157364/241647386-dc148240-5b4a-4793-94ec-af1a2f02b2a8.png [Image removed by sender. VirtualSwitchesOnHost]https://user-images.githubusercontent.com/4157364/241647392-dea5e9f6-9839-4a29-8ea9-559ede56e84e.png [Image removed by sender. VMHardwareConfig]https://user-images.githubusercontent.com/4157364/241647395-60531c9e-88c3-40cf-9900-ad055612f758.png [Image removed by sender. VMNetwork-Connectivity(only want HNV between VMs on this network)]https://user-images.githubusercontent.com/4157364/241647398-f3e97079-6f2e-417b-9401-ebebd0f94019.png [Image removed by sender. VMNetwork-IsolatedNetworks]https://user-images.githubusercontent.com/4157364/241647403-e43dba5f-d614-4e63-9c6a-396252ace18d.png - Reply to this email directly, view it on GitHub<#572 (comment)>, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AEBB63M2ESZSREB5WYUYT2LXIQW3JANCNFSM6AAAAAAX23GHYQ. You are receiving this because you commented.Message ID: @.@.>>

Hi Will,

Are you able to get IP for the Tenant VMs created having Tenant VM Network.

As per my knowledge the Physical Host should have access to the HNVPA logical network access. i.e the HNVPA VLAN should be configured as a trunk VLAN in physical host NIC and the Tenant VM Network should be created on top of HNVPA logical network with virtual IP.

e.g Host NIC Trunk VLAN has 220, 221, 222, 223
NC Management logical Network is created with VLAN 222
HNVPA logical network is created with VLAN 223

Virtual Switch on Host NIC should have Network site of VLAN 222 and 223

Tenant VM Network have VM Subnet with VLAN 1 and Virtual IP.

Tenant VM is connected with Tenant VM Network

Can you try with this scenario.

Thanks,
Shashi

@willkruss
Copy link
Author

willkruss commented Jun 1, 2023 via email

@AnirbanPaul
Copy link
Contributor

Hi Will
Is this issue resolved. If not, can you send email to sdn_feedback@microsoft.com

Thanks
Anirban

@willkruss
Copy link
Author

willkruss commented Jun 2, 2023 via email

@shalal1095
Copy link

shalal1095 commented Jun 4, 2023 via email

@willkruss
Copy link
Author

willkruss commented Jun 5, 2023 via email

@shalal1095
Copy link

@willkruss
Copy link
Author

willkruss commented Jun 6, 2023 via email

@AnirbanPaul
Copy link
Contributor

AnirbanPaul commented Jun 6, 2023 via email

@willkruss
Copy link
Author

willkruss commented Jun 7, 2023 via email

@willkruss
Copy link
Author

willkruss commented Jun 8, 2023 via email

@willkruss
Copy link
Author

willkruss commented Jun 8, 2023 via email

@AnirbanPaul
Copy link
Contributor

AnirbanPaul commented Jun 8, 2023 via email

@willkruss
Copy link
Author

willkruss commented Jun 9, 2023 via email

@AnirbanPaul
Copy link
Contributor

AnirbanPaul commented Jun 9, 2023 via email

@willkruss
Copy link
Author

willkruss commented Jun 9, 2023 via email

@shalal1095
Copy link

e network cluster appears to have been created as 'Get-NetworkControllerCluster' returns details, however, the REST IP is not assigned to any of the three VMs

Hi All,

Is there a log where I can see exactly what commands are being run and what output there is so I can determine the cause of failures. I don't seem to be able to get past the Pre-Install_6 script invoked during the deployment.

The network cluster appears to have been created as 'Get-NetworkControllerCluster' returns details, however, the REST IP is not assigned to any of the three VMs.

Thanks, Will

Hi Will,

I don't think there should be any logs but you can check the in the VMM Jobs.

Regarding the two virtual Switch. I think there should be only 1 virtual switch used for NC with VFP enabled. and the HNVPA logical network should be created as Virtualized network using SDN v2. You can refer this document.
https://learn.microsoft.com/en-us/system-center/vmm/sdn-controller?view=sc-vmm-2022

Thanks,

@willkruss
Copy link
Author

willkruss commented Jun 13, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants