Dont know if someone have the same error, but when i want to create new repo i cant select any content type.
hammer repository create --organization ‘X’ --product ‘CentOS7’ --name ‘CentOS 7 OS’ --label ‘CentOS7_OS’ --content-type ‘yum’ --download-policy ‘on_demand’ --gpg-key-id ‘2’ --url ‘CentOS Mirror’ --mirror-on-sync ‘no’
Could not create the repository:
Validation failed: Content type is not enabled. must be one of the following:
Seems a problem with smart proxy, i don0t have indepedent installation of smart proxy.
Is just the same server. That could be possible?
2021-10-27 17:57:35 [ERROR ] [configure] Error making POST request to Foreman at https://repouxlg01.example.com/api/v2/smart_proxies: Unable to communicate with the proxy: ERF12-2530 [ProxyAPI::ProxyException]: Unable to detect features ([RestClient::Exceptions::ReadTimeout]: Timed out reading data from server) for proxy https://repouxlg01.example.com:9090/v2/features Please check the proxy is configured and running on the host.
2021-10-27 17:57:35 [ERROR ] [configure] /Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[repouxlg01.example.com]/ensure: change from ‘absent’ to ‘present’ failed: Error making POST request to Foreman a
Anybody found solution for this issue?
I have done a fresh setup and now stuck at this.
“Validation failed: Content type is not enabled. must be one of the following:”
This might happen if the pulpcore services are running into some issues on the capsule or the ordering of certain calls we make to determine available plugins on the smart proxy.
Would you mind restarting services on the proxy with foreman-maintain service restart and see if that resolves it.