Closed skupjoe closed 4 years ago
Seems to be similar to #112
It seems that I was also getting similar errors for the following columns:
'hardware_cpu_mhz' 'hardware_num_hba' 'hardware_num_nic'
However, my CPU's processor type (Intel(R) Xeon(R) CPU E3-1240 v3 @ 3.40GHz), rated capacity (GHz used & total), as well as my storage adapter names & nic name are definitely visible from the vsphere web console.
My host's "Hardware manufacturer" & "Hardware model" both display as "To Be Filled By O.E.M."
I was able to work around the issue (sort of) by making these adjustments to my database:
ALTER TABLE vspheredb.host_system MODIFY COLUMN hardware_cpu_model varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL;
ALTER TABLE vspheredb.host_system MODIFY COLUMN hardware_cpu_mhz int(10) unsigned NULL;
ALTER TABLE vspheredb.host_system MODIFY COLUMN hardware_num_hba smallint(5) unsigned NULL;
ALTER TABLE vspheredb.host_system MODIFY COLUMN hardware_num_nic smallint(5) unsigned NULL;
Now I don't get any more violation errors in the logs, and my ESX host appears in the GUI. However, I am left with the following view:
Same here. You can fix the "Oops" by inserting the values for CPU, MHz, HBAs and NICs in the database (table host_system).
Having a similar issue:
This happens on my work's 6.5 ESX server as well.
Sorry, I broke this when implementing customValue support. Problem is here:
Replace return $this;
with continue;
and you'll be covered. I'll immediately push a fix. And please revert your changes to the database in case you applied any.
@ACAYspace: your problem happens after changing the DB schema and allowing NULL values where not expected. Sorry for causing this issue.
Works well now- thanks for fixing
I get the following error in my logs after adding my ESX host.
The error repeats during sync cycles, and my Hosts list is empty as a result.
Everything else in the module seems to be working.
Also worth noting, this used to be working on v6.5 of this module.
Your Environment