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

Import of VMs failed with: 1406 Data too long for column 'guest_full_name' at row 1 #146

Closed
NeverUsedID opened this issue Jan 16, 2020 · 2 comments
Assignees
Labels
Milestone

Comments

@NeverUsedID
Copy link

Current Behavior

15:22:59: Task virtualMachines failed: Storing virtual_machine[m�:�!=b�] failed: SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'guest_full_name' at row 1, query was: INSERT INTO virtual_machine (uuid, vcenter_uuid, annotation, hardware_memorymb, hardware_numcpu, hardware_numcorespersocket, template, bios_uuid, instance_uuid, version, connection_state, online_standby, paused, guest_id, guest_full_name, guest_state, guest_host_name, guest_ip_address, guest_tools_status, guest_tools_running_status, resource_pool_uuid, runtime_host_uuid, runtime_last_boot_time, runtime_last_suspend_time, runtime_power_state, boot_network_protocol, boot_order, cpu_hot_add_enabled, memory_hot_add_enabled) VALUES ([...]

Possible Solution

Solved by raising VARCHAR from 128 to 255 for table guest_full_name at table virtual_machine.

Steps to Reproduce (for bugs)

Import an Virtual Appliance with an ugly guest full name like:

"Linux 4.9.194 NAME=Buildroot
VERSION=20xx.xx.x
ID=buildroot
VERSION_ID=20xx.xx.x
PRETTY_NAME="Buildroot 20xx.xx.x"
APPLIANCE_VERSION="vx.x.x"'
"

Your Environment

  • Version/GIT-Hash of this module: 1.1.0
@Thomas-Gelf
Copy link
Contributor

@NeverUsedID: out of curiosity, where can I get such an Appliance? guest_full_name usually refers the operating system, like 'Microsoft Windows Server 2016 or later (64-bit)'. What you're showing looks more like a candidate for custom fields or annotations?!

@Thomas-Gelf Thomas-Gelf added the feedback Waiting for feedback label Apr 29, 2020
@NeverUsedID
Copy link
Author

NeverUsedID commented May 4, 2020

Its was Vendor Appliance that was deployed directly from their image. No idea how they created that. Looks like they used something like buildroot.org to create there own embedded linux

@Thomas-Gelf Thomas-Gelf self-assigned this Sep 14, 2020
@Thomas-Gelf Thomas-Gelf added bug and removed feedback Waiting for feedback labels Sep 14, 2020
@Thomas-Gelf Thomas-Gelf added this to the v1.2.0 milestone Sep 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants