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

Unable to find management port group Management Network while migrating instances #7491

Closed
top-secrett opened this issue May 3, 2023 · 16 comments

Comments

@top-secrett
Copy link

ISSUE TYPE
  • Bug Report
COMPONENT NAME
UI, API
CLOUDSTACK VERSION
4.18.0.0
CONFIGURATION

Advanced networking
VMware cluster
vSphere Client version 6.7.0.54000

OS / ENVIRONMENT

OracleLinux 8

SUMMARY

After reboot vSphere Client and whole VMware infrastructure we got an error while migration instances. Before reboot all worked fine.
Error:
MigrateCommand failed due to [Exception: java.lang.Exception Message: Unable to find management port group Management Network ].
Management port group "Management Network" present in VMware:
image

Full log:
ManagementNetworkError.txt

EXPECTED RESULTS
Migration successful
ACTUAL RESULTS
Migration failed
@kiranchavala
Copy link
Contributor

@top-secrett

Could you please try to unmanage /Manage the cluster and then try to migrate a vm

unmange

@rohityadavcloud
Copy link
Member

@top-secrett did you restart cloudstack management server as well after the VMware infra was rebooted?

@top-secrett
Copy link
Author

top-secrett commented May 10, 2023

@kiranchavala @rohityadavcloud I restarted CS management server and tryed to unmanage/manage clusters, but i get the same error
image

@top-secrett
Copy link
Author

top-secrett commented May 16, 2023

@rohityadavcloud @kiranchavala hello guys. Any suggestions how to resolve problem?

@rohityadavcloud
Copy link
Member

Sorry I missed your message @top-secrett - you can simply try to create the port-group manually on the destination host. Ideally you can create a distributed vswitch and migrate all your guest network/port groups to the dvswitch.

@top-secrett
Copy link
Author

@rohityadavcloud We are already using distributed vswitch with port group "Management Network"

@rohityadavcloud
Copy link
Member

@top-secrett if this is an env where all the old svs were migrated to dvs, then you'll need to create the management network portgroup in the migrated DVS and in CloudStack enable the global setting vmware.use.dvswitch. You may also read https://www.shapeblue.com/cloudstack-vmware-environment-migration-from-vswitch-to-dvswitch/

I'm not sure if the docs website suggests these, this could be a docs issue - cc @DaanHoogland @weizhouapache

@top-secrett
Copy link
Author

@rohityadavcloud should we use VLAN in "vmwarenetworklabel" zone parameter with dvs?
image

@weizhouapache weizhouapache modified the milestones: 4.18.1.0, 4.18.2.0 Aug 28, 2023
@DaanHoogland
Copy link
Contributor

@top-secrett did you get any new information on this? is it still a problem?

@top-secrett
Copy link
Author

@DaanHoogland It is still a problem. In 2 old clusters we can't migrate VMs. We added a new pod in existing zone and there is no problem

@harikrishna-patnala
Copy link
Contributor

@top-secrett can you check the following details for your particular host from the managed object browser. You will need to first find the host in the path. (https:///mob then click on "Service Content" then "rootFolder" then "chilldEntity" then "hostFolder" then "childEntity" then "host" here you can moid of the host)

Management server is trying to query https:///mob/?moid=host-1009&doPath=config.virtualNicManagerInfo.netConfig and in that it is searching for value of nicType with "management"

image

The corresponding entry from vCenter I can see it here

image

Can you check if can list the similar details for your host.

@top-secrett
Copy link
Author

@harikrishna-patnala
image
image

@JoaoJandre
Copy link
Contributor

This issue seems like a environmental issue, not a bug; thus, I'll be removing it from the 4.18.2.0 milestone.
@SadiJr you have some experience with VMware, could you take a look at this?

@JoaoJandre JoaoJandre removed this from the 4.18.2.0 milestone Jan 10, 2024
@SadiJr
Copy link
Collaborator

SadiJr commented Jan 11, 2024

@top-secrett could you please provide a little more information:

  1. The migration fails between some specific hosts, or between any hosts? Also, are you only experiencing errors in the migration process?
  2. Could you please review if your global configuration vmware.management.portgroup has the correct value? Please also check if there is a typo, or maybe a blank space at the start or the end of the configuration.
  3. Could you please check, in every ESXi host, in Networking -> VMkernel NICs if the name of the Management Network is correct?

@DaanHoogland DaanHoogland added this to the unplanned milestone Jan 12, 2024
@top-secrett
Copy link
Author

@SadiJr Hello. Sorry for delay.

  1. I have 3 clusters in a one vSphereClient. Migration fails among all hosts in cluster-183_185-1 and cluster-183_185-2, but works in cluster-185. I found migrations errors only, everyting works fine except that.
    image
    image
  2. There is no any additional spaces or symbols
    image
  3. All hosts from 3 clusters connected to the same network
    image

@top-secrett
Copy link
Author

I don't know what happened, but migration is working now.

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

No branches or pull requests

8 participants