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

fix compliance&cyndi generator template: remove host_type altogether as the validation was changed to either allow host_type='edge' or None, nothing else. #143

Conversation

Smejky338
Copy link
Contributor

[2024-11-07 14:57:50,292] [8] [140518771590976] [inventory.app.queue.host_mq] [ERROR] Validation error while adding or updating host: {'system_profile': ["System profile does not conform to schema.\n'not_ed-ge' is not one of ['edge']\n\nFailed validating 'enum' in schema['properties']['host_type']:\n {'type': 'string',\n 'enum': ['edge'],\n 'maxLength': 4,\n 'description': 'Indicates the type of host.',\n 'example': 'edge, None'}\n\nOn instance['host_type']:\n 'not_ed-ge'"]}; Invalid data: {'system_profile': {'owner_id': 'b783079b-4aa5-4cdd-af70-8f6883c51419', 'cpu_model': 'Intel(R) I7(R) CPU I7-10900k 0 @ 4.90GHz', 'operating_system': {'major': 7, 'minor': 9, 'name': 'RHEL'}, 'installed_packages': ['python3-pip-0:9.0.3-7.el7_8.noarch', 'scrub-0:2.5.2-5.el7.x86_64', 'opensm-0:3.3.20-2.el7.x86_64', 'xcb-util-renderutil-0:0.3.9-3.el7.i686', 'msv-msv-1:2013.5.1-7.el7.noarch', 'hunspell-be-0:1.1-7.el7.noarch', 'pyOpenSSL-0:0.13.1-3.el7.x86_64', 'linuxconsoletools-0:1.4.5-3.el7.x86_64', 'k...

…as the validation was changed to either allow host_type='edge' or None, nothing else.

[2024-11-07 14:57:50,292] [8] [140518771590976] [inventory.app.queue.host_mq] [ERROR] Validation error while adding or updating host: {'system_profile': ["System profile does not conform to schema.\n'not_ed-ge' is not one of ['edge']\n\nFailed validating 'enum' in schema['properties']['host_type']:\n {'type': 'string',\n 'enum': ['edge'],\n 'maxLength': 4,\n 'description': 'Indicates the type of host.',\n 'example': 'edge, None'}\n\nOn instance['host_type']:\n 'not_ed-ge'"]}; Invalid data: {'system_profile': {'owner_id': 'b783079b-4aa5-4cdd-af70-8f6883c51419', 'cpu_model': 'Intel(R) I7(R) CPU I7-10900k 0 @ 4.90GHz', 'operating_system': {'major': 7, 'minor': 9, 'name': 'RHEL'}, 'installed_packages': ['python3-pip-0:9.0.3-7.el7_8.noarch', 'scrub-0:2.5.2-5.el7.x86_64', 'opensm-0:3.3.20-2.el7.x86_64', 'xcb-util-renderutil-0:0.3.9-3.el7.i686', 'msv-msv-1:2013.5.1-7.el7.noarch', 'hunspell-be-0:1.1-7.el7.noarch', 'pyOpenSSL-0:0.13.1-3.el7.x86_64', 'linuxconsoletools-0:1.4.5-3.el7.x86_64', 'k...
Copy link
Contributor

@jhutar jhutar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Heh :)

@jhutar jhutar merged commit 122bb3a into redhat-performance:main Nov 7, 2024
1 check passed
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

Successfully merging this pull request may close these issues.

2 participants