-
Notifications
You must be signed in to change notification settings - Fork 341
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
[BUG] OpenStack VM Import Can't Handle Source VM if Source VM has Camel Case #6505
Comments
It's not possible to have object names with upper case characters, otherwise this will happen:
See https://kubernetes.io/docs/concepts/overview/working-with-objects/names/ |
As already mentioned above, we could adapt the name during import so that Kubernetes does not interfere with it. To do this, however, the entire code of the vm-import-controller must be extended because |
We could add a new field to the VirtualMachineImportStatus, e.g.
This would also be helpful for the issue #6500 where the importer has to convert the ID of the source VM into the origin name at some point. |
- Sanitize the configured `VirtualMachineName` field, e.g. convert upper case to lower case to make it RFC 1123 compliant. - Convert UUID to real name for OpenStack imports - Reduce waiting time to recheck if created VM is running from 5min to 2min - Rename variable `uuid` to `serverUUID` in the OpenStack client code to do not collide with the imported uuid module - Improve log messages - Fix typos - Add comments Related to: harvester/harvester#6500 Related to: harvester/harvester#6505 Signed-off-by: Volker Theile <[email protected]>
- Import OpenStack server by UUID - Import OpenStack server with upper case characters in its name The following improvements have been done: - Sanitize the configured `VirtualMachineName` field, e.g. convert upper case to lower case to make it RFC 1123 compliant. - Convert UUID to real name for OpenStack imports - Reduce waiting time to recheck if created VM is running from 5min to 2min - Rename variable `uuid` to `serverUUID` in the OpenStack client code to do not collide with the imported uuid module - Improve log messages - Fix typos - Add comments Related to: harvester/harvester#6500 Related to: harvester/harvester#6505 Signed-off-by: Volker Theile <[email protected]>
- Import OpenStack server by UUID - Import OpenStack server with upper case characters in its name The following improvements have been done: - Sanitize the configured `VirtualMachineName` field, e.g. convert upper case to lower case to make it RFC 1123 compliant. - Convert UUID to real name for OpenStack imports - Reduce waiting time to recheck if created VM is running from 5min to 2min - Rename variable `uuid` to `serverUUID` in the OpenStack client code to do not collide with the imported uuid module - Improve log messages - Fix typos - Add comments Related to: harvester/harvester#6500 Related to: harvester/harvester#6505 Signed-off-by: Volker Theile <[email protected]>
- Import OpenStack server by UUID - Import OpenStack server with upper case characters in its name The following improvements have been done: - Sanitize the configured `VirtualMachineName` field, e.g. convert upper case to lower case to make it RFC 1123 compliant. - Convert UUID to real name for OpenStack imports - Reduce waiting time to recheck if created VM is running from 5min to 2min - Rename variable `uuid` to `serverUUID` in the OpenStack client code to do not collide with the imported uuid module - Improve log messages - Fix typos - Add comments Related to: harvester/harvester#6500 Related to: harvester/harvester#6505 Signed-off-by: Volker Theile <[email protected]>
- Import OpenStack server by UUID - Import OpenStack server with upper case characters in its name The following improvements have been done: - Sanitize the configured `VirtualMachineName` field, e.g. convert upper case to lower case to make it RFC 1123 compliant. - Convert UUID to real name for OpenStack imports - Reduce waiting time to recheck if created VM is running from 5min to 2min - Rename variable `uuid` to `serverUUID` in the OpenStack client code to do not collide with the imported uuid module - Improve log messages - Fix typos - Add comments Related to: harvester/harvester#6500 Related to: harvester/harvester#6505 Signed-off-by: Volker Theile <[email protected]>
- Import OpenStack server by UUID - Import OpenStack server with upper case characters in its name The following improvements have been done: - Sanitize the configured `VirtualMachineName` field, e.g. convert upper case to lower case to make it RFC 1123 compliant. - Convert UUID to real name for OpenStack imports - Reduce waiting time to recheck if created VM is running from 5min to 2min - Rename variable `uuid` to `serverUUID` in the OpenStack client code to do not collide with the imported uuid module - Improve log messages - Fix typos - Add comments Related to: harvester/harvester#6500 Related to: harvester/harvester#6505 Signed-off-by: Volker Theile <[email protected]>
- Import OpenStack server by UUID - Import OpenStack server with upper case characters in its name The following improvements have been done: - Sanitize the configured `VirtualMachineName` field, e.g. convert upper case to lower case to make it RFC 1123 compliant. - Convert UUID to real name for OpenStack imports - Reduce waiting time to recheck if created VM is running from 5min to 2min - Rename variable `uuid` to `serverUUID` in the OpenStack client code to do not collide with the imported uuid module - Improve log messages - Fix typos - Add comments Related to: harvester/harvester#6500 Related to: harvester/harvester#6505 Signed-off-by: Volker Theile <[email protected]>
Pre Ready-For-Testing Checklist
|
Automation e2e test issue: harvester/tests#1519 |
- Import OpenStack server by UUID - Import OpenStack server with upper case characters in its name The following improvements have been done: - Sanitize the configured `VirtualMachineName` field, e.g. convert upper case to lower case to make it RFC 1123 compliant. - Convert UUID to real name for OpenStack imports - Reduce waiting time to recheck if created VM is running from 5min to 2min - Rename variable `uuid` to `serverUUID` in the OpenStack client code to do not collide with the imported uuid module - Improve log messages - Fix typos - Add comments Related to: harvester/harvester#6500 Related to: harvester/harvester#6505 Signed-off-by: Volker Theile <[email protected]>
- Import OpenStack server by UUID - Import OpenStack server with upper case characters in its name The following improvements have been done: - Sanitize the configured `VirtualMachineName` field, e.g. convert upper case to lower case to make it RFC 1123 compliant. - Convert UUID to real name for OpenStack imports - Reduce waiting time to recheck if created VM is running from 5min to 2min - Rename variable `uuid` to `serverUUID` in the OpenStack client code to do not collide with the imported uuid module - Improve log messages - Fix typos - Add comments Related to: harvester/harvester#6500 Related to: harvester/harvester#6505 Signed-off-by: Volker Theile <[email protected]>
- Import OpenStack server by UUID - Import OpenStack server with upper case characters in its name The following improvements have been done: - Sanitize the configured `VirtualMachineName` field, e.g. convert upper case to lower case to make it RFC 1123 compliant. - Convert UUID to real name for OpenStack imports - Reduce waiting time to recheck if created VM is running from 5min to 2min - Rename variable `uuid` to `serverUUID` in the OpenStack client code to do not collide with the imported uuid module - Improve log messages - Fix typos - Add comments Related to: harvester/harvester#6500 Related to: harvester/harvester#6505 Signed-off-by: Volker Theile <[email protected]>
- Import OpenStack server by UUID - Import OpenStack server with upper case characters in its name The following improvements have been done: - Sanitize the configured `VirtualMachineName` field, e.g. convert upper case to lower case to make it RFC 1123 compliant. - Convert UUID to real name for OpenStack imports - Reduce waiting time to recheck if created VM is running from 5min to 2min - Rename variable `uuid` to `serverUUID` in the OpenStack client code to do not collide with the imported uuid module - Improve log messages - Fix typos - Add comments Related to: harvester/harvester#6500 Related to: harvester/harvester#6505 Signed-off-by: Volker Theile <[email protected]>
- Import OpenStack server by UUID - Import OpenStack server with upper case characters in its name The following improvements have been done: - Sanitize the configured `VirtualMachineName` field, e.g. convert upper case to lower case to make it RFC 1123 compliant. - Convert UUID to real name for OpenStack imports - Reduce waiting time to recheck if created VM is running from 5min to 2min - Rename variable `uuid` to `serverUUID` in the OpenStack client code to do not collide with the imported uuid module - Improve log messages - Fix typos - Add comments Related to: harvester/harvester#6500 Related to: harvester/harvester#6505 Signed-off-by: Volker Theile <[email protected]>
- Import OpenStack server by UUID - Import OpenStack server with upper case characters in its name The following improvements have been done: - Sanitize the configured `VirtualMachineName` field, e.g. convert upper case to lower case to make it RFC 1123 compliant. - Convert UUID to real name for OpenStack imports - Reduce waiting time to recheck if created VM is running from 5min to 2min - Rename variable `uuid` to `serverUUID` in the OpenStack client code to do not collide with the imported uuid module - Improve log messages - Fix typos - Add comments Related to: harvester/harvester#6500 Related to: harvester/harvester#6505 Signed-off-by: Volker Theile <[email protected]>
- Import OpenStack server by UUID - Import OpenStack server with upper case characters in its name The following improvements have been done: - Sanitize the configured `VirtualMachineName` field, e.g. convert upper case to lower case to make it RFC 1123 compliant. - Convert UUID to real name for OpenStack imports - Reduce waiting time to recheck if created VM is running from 5min to 2min - Rename variable `uuid` to `serverUUID` in the OpenStack client code to do not collide with the imported uuid module - Improve log messages - Fix typos - Add comments Related to: harvester/harvester#6500 Related to: harvester/harvester#6505 Signed-off-by: Volker Theile <[email protected]>
- Import OpenStack server by UUID - Import OpenStack server with upper case characters in its name The following improvements have been done: - Sanitize the configured `VirtualMachineName` field, e.g. convert upper case to lower case to make it RFC 1123 compliant. - Convert UUID to real name for OpenStack imports - Reduce waiting time to recheck if created VM is running from 5min to 2min - Rename variable `uuid` to `serverUUID` in the OpenStack client code to do not collide with the imported uuid module - Improve log messages - Fix typos - Add comments Related to: harvester/harvester#6500 Related to: harvester/harvester#6505 Signed-off-by: Volker Theile <[email protected]>
- Import OpenStack server by UUID - Import OpenStack server with upper case characters in its name The following improvements have been done: - Sanitize the configured `VirtualMachineName` field, e.g. convert upper case to lower case to make it RFC 1123 compliant. - Convert UUID to real name for OpenStack imports - Reduce waiting time to recheck if created VM is running from 5min to 2min - Rename variable `uuid` to `serverUUID` in the OpenStack client code to do not collide with the imported uuid module - Improve log messages - Fix typos - Add comments Related to: harvester/harvester#6500 Related to: harvester/harvester#6505 Signed-off-by: Volker Theile <[email protected]>
- Import OpenStack server by UUID - Import OpenStack server with upper case characters in its name The following improvements have been done: - Sanitize the configured `VirtualMachineName` field, e.g. convert upper case to lower case to make it RFC 1123 compliant. - Convert UUID to real name for OpenStack imports - Reduce waiting time to recheck if created VM is running from 5min to 2min - Rename variable `uuid` to `serverUUID` in the OpenStack client code to do not collide with the imported uuid module - Improve log messages - Fix typos - Add comments Related to: harvester/harvester#6500 Related to: harvester/harvester#6505 Signed-off-by: Volker Theile <[email protected]> (cherry picked from commit 6e6b619) Signed-off-by: Volker Theile <[email protected]>
- Import OpenStack server by UUID - Import OpenStack server with upper case characters in its name The following improvements have been done: - Sanitize the configured `VirtualMachineName` field, e.g. convert upper case to lower case to make it RFC 1123 compliant. - Convert UUID to real name for OpenStack imports - Reduce waiting time to recheck if created VM is running from 5min to 2min - Rename variable `uuid` to `serverUUID` in the OpenStack client code to do not collide with the imported uuid module - Improve error and log messages - Fix typos - Add comments Related to: harvester/harvester#6500 Related to: harvester/harvester#6505 Signed-off-by: Volker Theile <[email protected]>
- Import OpenStack server by UUID - Import OpenStack server with upper case characters in its name The following improvements have been done: - Sanitize the configured `VirtualMachineName` field, e.g. convert upper case to lower case to make it RFC 1123 compliant. - Convert UUID to real name for OpenStack imports - Reduce waiting time to recheck if created VM is running from 5min to 2min - Rename variable `uuid` to `serverUUID` in the OpenStack client code to do not collide with the imported uuid module - Improve error and log messages - Fix typos - Add comments Related to: harvester/harvester#6500 Related to: harvester/harvester#6505 Signed-off-by: Volker Theile <[email protected]>
- Import OpenStack server by UUID - Import OpenStack server with upper case characters in its name The following improvements have been done: - Sanitize the configured `VirtualMachineName` field, e.g. convert upper case to lower case to make it RFC 1123 compliant. - Convert UUID to real name for OpenStack imports - Reduce waiting time to recheck if created VM is running from 5min to 2min - Rename variable `uuid` to `serverUUID` in the OpenStack client code to do not collide with the imported uuid module - Improve error and log messages - Fix typos - Add comments Related to: harvester/harvester#6500 Related to: harvester/harvester#6505 Signed-off-by: Volker Theile <[email protected]>
- Import OpenStack server by UUID - Import OpenStack server with upper case characters in its name The following improvements have been done: - Sanitize the configured `VirtualMachineName` field, e.g. convert upper case to lower case to make it RFC 1123 compliant. - Convert UUID to real name for OpenStack imports - Reduce waiting time to recheck if created VM is running from 5min to 2min - Rename variable `uuid` to `serverUUID` in the OpenStack client code to do not collide with the imported uuid module - Improve error and log messages - Fix typos - Add comments Related to: harvester/harvester#6500 Related to: harvester/harvester#6505 Signed-off-by: Volker Theile <[email protected]>
Describe the bug
In:
The VM Import won't work by "source machine's virttual vm name" -> so in OpenStack, if the source VM name is camelCased -> we can only import by UUID and not by name.
To Reproduce
Steps to reproduce the behavior:
kubectl logs svc/vm-import-controller
it will complain that the source vm isn't meeting RFC naming conventions, but the source VM may have been out of the control of the Harvester user/admin/org, so they were just using an already present nameWorkaround
Expected behavior
Maybe some sanitization on RFC compliance with names from VMs from OpenStack I'm not sure...
Environment
cc: @TachunLin
The text was updated successfully, but these errors were encountered: