Hi @iballou,
I was just investigating that. It fails in Actions::Pulp3::Repository::SaveVersion. When I skip all the failed actions, the content view is created, but I don’t know yet if it is usable.
Here is all the info about this step from DynFlow.
9: Actions::Pulp3::Repository::SaveVersion (skipped) [ 401.59s / 0.40s ]
Queue: default
Started at: 2023-05-09 11:56:20 UTC
Ended at: 2023-05-09 12:03:01 UTC
Real time: 401.59s
Execution time (excluding suspended state): 0.40s
Input:
repository_id: 1337
tasks:
repository_details:
force_fetch_version: false
remote_user: admin
remote_cp_user: admin
current_request_id: b160a3ba-7d46-4c91-8618-1e31766f8e54
current_timezone: Berlin
current_organization_id:
current_location_id:
current_user_id: 4
Output:
— {}
Chunked output:
—
Error:
PulpRpmClient::ApiError
Error message: the server returns an error HTTP status code: 404 Response headers: {“date”=>“Tue, 09 May 2023 11:56:21 GMT”, “server”=>“gunicorn”, “content-type”=>“application/json”, “vary”=>“Accept,Cookie”, “allow”=>“GET, PUT, PATCH, DELETE, HEAD, OPTIONS”, “x-frame-options”=>“DENY”, “content-length”=>“23”, “x-content-type-options”=>“nosniff”, “referrer-policy”=>“same-origin”, “correlation-id”=>“b160a3ba-7d46-4c91-8618-1e31766f8e54”, “access-control-expose-headers”=>“Correlation-ID”, “via”=>“1.1 operator.aqua.cjt”, “connection”=>“close”} Response body: {“detail”:“Not found.”}
- “/opt/theforeman/tfm/root/usr/share/gems/gems/pulp_rpm_client-3.17.4/lib/pulp_rpm_client/api_client.rb:83:in
`call_api’”
- “/opt/theforeman/tfm/root/usr/share/gems/gems/pulp_rpm_client-3.17.4/lib/pulp_rpm_client/api/repositories_rpm_api.rb:438:in
`read_with_http_info’”
- “/opt/theforeman/tfm/root/usr/share/gems/gems/pulp_rpm_client-3.17.4/lib/pulp_rpm_client/api/repositories_rpm_api.rb:385:in
`read’”
- “/opt/theforeman/tfm/root/usr/share/gems/gems/katello-4.4.2.2/app/lib/actions/pulp3/repository/save_version.rb:45:in
`fetch_version_href’”
- “/opt/theforeman/tfm/root/usr/share/gems/gems/katello-4.4.2.2/app/lib/actions/pulp3/repository/save_version.rb:19:in
`run’”
- “/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.6.4/lib/dynflow/action.rb:582:in
`block (3 levels) in execute_run’”
- “/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.6.4/lib/dynflow/middleware/stack.rb:27:in
`pass’”
- “/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.6.4/lib/dynflow/middleware.rb:19:in
`pass’”
- “/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.6.4/lib/dynflow/middleware.rb:32:in
`run’”
- “/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.6.4/lib/dynflow/middleware/stack.rb:23:in
`call’”
- “/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.6.4/lib/dynflow/middleware/stack.rb:27:in
`pass’”
- “/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.6.4/lib/dynflow/middleware.rb:19:in
`pass’”
- “/opt/theforeman/tfm/root/usr/share/gems/gems/katello-4.4.2.2/app/lib/actions/middleware/remote_action.rb:16:in
`block in run’”
- “/opt/theforeman/tfm/root/usr/share/gems/gems/katello-4.4.2.2/app/lib/actions/middleware/remote_action.rb:40:in
`block in as_remote_user’”
- “/opt/theforeman/tfm/root/usr/share/gems/gems/katello-4.4.2.2/app/models/katello/concerns/user_extensions.rb:21:in
`cp_config’”
- “/opt/theforeman/tfm/root/usr/share/gems/gems/katello-4.4.2.2/app/lib/actions/middleware/remote_action.rb:27:in
`as_cp_user’”
- “/opt/theforeman/tfm/root/usr/share/gems/gems/katello-4.4.2.2/app/lib/actions/middleware/remote_action.rb:39:in
`as_remote_user’”
- “/opt/theforeman/tfm/root/usr/share/gems/gems/katello-4.4.2.2/app/lib/actions/middleware/remote_action.rb:16:in
`run’”
- “/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.6.4/lib/dynflow/middleware/stack.rb:23:in
`call’”
- “/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.6.4/lib/dynflow/middleware/stack.rb:27:in
`pass’”
- “/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.6.4/lib/dynflow/middleware.rb:19:in
`pass’”
- “/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-6.0.1/app/lib/actions/middleware/rails_executor_wrap.rb:14:in
`block in run’”
- “/opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/execution_wrapper.rb:88:in
`wrap’”
- “/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-6.0.1/app/lib/actions/middleware/rails_executor_wrap.rb:13:in
`run’”
- “/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.6.4/lib/dynflow/middleware/stack.rb:23:in
`call’”
…
I looked up the repository_id in PostgreSQL:
select * from katello_repositories where id = 1337;
id | pulp_id | library_instance_id | content_view_version_id | relative_pa
th | environment_id | saved_checksum_type | distribution_version | distribution_arch | distribution_bootable | distribution_family
| distribution_variant | container_repository_name | root_id | remote_href | publication_href |
version_href | last_contents_changed | last_applicability_regen | last_indexed
------±--------------------------------------------------------------±--------------------±------------------------±-------------------------------------------
-----------------------------------±---------------±--------------------±---------------------±------------------±----------------------±--------------------
±---------------------±--------------------------±--------±------------±------------------------------------------------------------------------±------------
-----------------------------------------------------------------------±----------------------±-------------------------±---------------------------
1337 | 1-AQuA_Server_Base-v11_8-4e0e86f1-0670-4a8e-80b1-bfef3fb313f7 | 4 | 90 | AQuA/content_views/AQuA_Server_Base/11.8/cu
stom/CentOS7/centos7_extras_x86_64 | | | | | |
| | | 4 | | /pulp/api/v3/publications/rpm/rpm/6fee8e0d-74cd-4792-ac25-a8d07da21a7a/ | /pulp/api/v3
/repositories/rpm/rpm/8caf4c27-f1df-4619-ac3b-996c5f3d69f0/versions/6/ | 1970-01-01 00:00:00 | 1970-01-01 00:00:00 | 2023-05-09 12:03:05.538785
And here’s the command I used to create the content view:
hammer content-view publish --id 2 --major 11 --minor 8 --description “CentOS 7.9/Foreman Client 3.3”
Thanks for your help.
Best regards,
Hans-Joachim