-
Notifications
You must be signed in to change notification settings - Fork 448
Description
Description
Briefly describe the issue
We are facing an issue with al-2023-arm64 with fips mode enabled
Getting ERROR: shard_seed: Failed to get dmi property serial_number: is dmidecode installed?
Ohai Version
Ohai: 18.1.11
Tell us which version of Ohai you are using.
Ohai: 18.1.11
Platform Version
[root@ip-10-152-140-24 bin]# uname -a
Linux ip-10-152-140-24.ec2.internal 6.1.106-116.188.amzn2023.aarch64 #1 SMP Tue Aug 27 07:00:04 UTC 2024 aarch64 aarch64 aarch64 GNU/Linux
Tell us which Operating System distribution and version Ohai is running on.
Ohai Output
If relevant please include your complete Ohai output or link to a gist. Make sure to change any values that may be sensitive.
The debug output (ohai -l debug) may be useful, but please link to a gist, or truncate it.
[root@ip-10-152-140-24 bin]# ohai -l debug
[2024-09-13T07:05:07+00:00] DEBUG: Running Ohai with the following configuration: {:disabled_plugins=>[], :hints_path=>["/etc/chef/ohai/hints"], :log_level=>:debug, :log_location=>nil, :plugin=>{}, :plugin_path=>["/opt/cinc/embedded/lib/ruby/gems/3.1.0/gems/ohai-18.1.11/lib/ohai/plugins", "/etc/chef/ohai/plugins"], :critical_plugins=>[], :run_all_plugins=>false, :optional_plugins=>[], :shellout_timeout=>30, :config_file=>nil, :node_name=>"root", :chef_server_url=>"https://localhost:443", :config_dir=>"/root/.cinc/", :formatters=>[], :cookbook_path=>"/var/cinc/cookbooks", :chef_repo_path=>"/var/cinc", :acl_path=>"/var/cinc/acls", :client_path=>"/var/cinc/clients", :client_key_path=>"/var/cinc/client_keys", :container_path=>"/var/cinc/containers", :cookbook_artifact_path=>"/var/cinc/cookbook_artifacts", :data_bag_path=>"/var/cinc/data_bags", :environment_path=>"/var/cinc/environments", :group_path=>"/var/cinc/groups", :node_path=>"/var/cinc/nodes", :policy_path=>"/var/cinc/policies", :policy_group_path=>"/var/cinc/policy_groups", :role_path=>"/var/cinc/roles", :user_path=>"/var/cinc/users", :enforce_path_sanity=>false, :enforce_default_paths=>false, :formatter=>"null", :client_registration_retries=>5, :script_path=>[], :cache_path=>"/var/cinc", :checksum_path=>"/var/cinc/checksums", :file_cache_path=>"/var/cinc/cache", :unix_bootstrap_file_cache_path=>"/var/cinc/cache", :windows_bootstrap_file_cache_path=>"C:\cinc\cache", :file_backup_path=>"/var/cinc/backup", :unix_bootstrap_file_backup_path=>"/var/cinc/backup", :windows_bootstrap_file_backup_path=>"C:\cinc\backup", :lockfile=>"/var/cinc/cache/cinc-client-running.pid", :user=>nil, :group=>nil, :umask=>18, :force_formatter=>false, :force_logger=>false, :always_dump_stacktrace=>false, :stream_execute_output=>false, :show_download_progress=>false, :download_progress_interval=>10, :http_retry_count=>5, :http_retry_delay=>5, :http_disable_auth_on_redirect=>true, :interval=>nil, :once=>nil, :json_attribs=>nil, :verbose_logging=>true, :diff_disabled=>false, :diff_filesize_threshold=>10000000, :diff_output_threshold=>1000000, :local_mode=>false, :repo_mode=>"everything", :pid_file=>nil, :listen=>false, :chef_server_root=>"https://localhost:443", :rest_timeout=>300, :solo=>false, :solo_legacy_mode=>false, :splay=>nil, :why_run=>false, :color=>false, :client_fork=>nil, :ez=>false, :enable_reporting=>true, :enable_reporting_url_fatals=>false, :minimal_ohai=>false, :ohai_segment_plugin_path=>"/root/.cinc/ohai/cookbook_plugins", :policy_name=>nil, :policy_group=>nil, :named_run_list=>nil, :policy_document_native_api=>true, :deployment_group=>nil, :policy_persist_run_list=>false, :ssl_client_cert=>nil, :ssl_client_key=>nil, :ssl_verify_mode=>:verify_peer, :verify_api_cert=>false, :ssl_ca_path=>nil, :ssl_ca_file=>nil, :trusted_certs_dir=>"/root/.cinc/trusted_certs", :client_d_dir=>"/root/.cinc/client.d", :solo_d_dir=>"/root/.cinc/solo.d", :config_d_dir=>"/root/.cinc/config.d", :recipe_url=>nil, :fips=>true, :authentication_protocol_version=>"1.3", :client_key=>"/etc/cinc/client.pem", :client_key_contents=>nil, :migrate_key_to_keystore=>false, :auth_key_registry_type=>nil, :follow_client_key_symlink=>false, :ssh_agent_signing=>false, :encrypted_data_bag_secret=>nil, :data_bag_encrypt_version=>3, :data_bag_decrypt_minimum_version=>0, :validation_key=>"/etc/cinc/validation.pem", :validation_client_name=>"cinc-validator", :validation_key_contents=>nil, :local_key_generation=>true, :zypper_check_gpg=>true, :report_handlers=>[], :event_handlers=>[], :disable_event_loggers=>false, :exception_handlers=>[], :start_handlers=>[], :syntax_check_cache_path=>"/root/.cinc/syntaxcache", :cache_options=>{:path=>"/root/.cinc/syntaxcache"}, :treat_deprecation_warnings_as_errors=>false, :silence_deprecation_warnings=>[], :count_log_resource_updates=>false, :profile=>nil, :chef_guid_path=>"/root/.cinc/cinc_guid", :chef_guid=>nil, :user_valid_regex=>[/^[^-+~:,\t\r\n\f\0]+[^:,\t\r\n\f\0]$/], :group_valid_regex=>[/^[^-+~:,\t\r\n\f\0]+[^:,\t\r\n\f\0]$/], :user_home=>"/root", :enable_selinux_file_permission_fixup=>true, :file_atomic_update=>true, :file_staging_uses_destdir=>:auto, :run_lock_timeout=>nil, :cookbook_sync_threads=>10, :resource_unified_mode_default=>true, :no_lazy_load=>true, :allowed_automatic_attributes=>nil, :allowed_default_attributes=>nil, :allowed_normal_attributes=>nil, :allowed_override_attributes=>nil, :blocked_automatic_attributes=>nil, :blocked_default_attributes=>nil, :blocked_normal_attributes=>nil, :blocked_override_attributes=>nil, :rubygems_cache_enabled=>false, :internal_locale=>"en_US.UTF-8", :ruby_encoding=>#Encoding:UTF-8, :rubygems_url=>nil, :clear_gem_sources=>nil, :chef_zero=>{:enabled=>false, :host=>"localhost", :port=>#<Enumerator: 8889:upto(9999)>, :single_org=>"chef", :osc_compat=>false}, :target_mode=>{:enabled=>false}, :knife=>{:hints=>{}}, :windows_service=>{:watchdog_timeout=>7200}, :chefdk=>{}, :chefcli=>{}, :data_collector=>{:server_url=>"https://localhost:443/data-collector", :token=>nil, :mode=>:both, :raise_on_failure=>false, :organization=>"cinc_solo"}, :ohai=>{:disabled_plugins=>[], :hints_path=>["/etc/chef/ohai/hints"], :log_level=>:auto, :log_location=>#<IO:>, :plugin=>{}, :plugin_path=>["/opt/cinc/embedded/lib/ruby/gems/3.1.0/gems/ohai-18.1.11/lib/ohai/plugins", "/etc/chef/ohai/plugins"], :critical_plugins=>[], :run_all_plugins=>false, :optional_plugins=>[], :shellout_timeout=>30}, :invoked_from_cli=>true, :logger=>#<Mixlib::Log::Child:0x0000ffffa838a7e0 @parent=Ohai::Log, @metadata={:system=>"ohai", :version=>"18.1.11"}>}
[2024-09-13T07:05:07+00:00] DEBUG: The plugin path /etc/chef/ohai/plugins does not exist. Skipping...
[2024-09-13T07:05:08+00:00] ERROR: shard_seed: Failed to get dmi property serial_number: is dmidecode installed?
[2024-09-13T07:05:08+00:00] DEBUG: Plugin Zpools: Could not shell_out "zpool list -H -o name,size,alloc,free,cap,dedup,health,version". Skipping plugin.
{
"kernel": {
"name": "Linux",
"release": "6.1.106-116.188.amzn2023.aarch64",