Summary
When using the pulp-cli, we frequently see the message "Error: No suitable resource got created." when uploading a rpm file. It also results in a non-zero exit code.
Note: it is possible that we are seeing this error if the file has already been updated.
Steps to reproduce
- create domain
- create repo
- upload rpm
Expected behavior
- No error message should be logged
- exit code should be 0 if upload is successful
Stacktrace/Error log
+ pulp --config /tmp/cli.toml --domain rhel-primitives-dev rpm content upload --file hello-2.12.1-6.fc44.src.rpm --relative-path hello-2.12.1-6.fc44.src.rpm --repository source
....Upload complete.
Started background task /api/pulp/rhel-primitives-dev/api/v3/tasks/0199505d-6567-7489-97d5-86d578da7cc1/
..Done.
Error: No suitable resource got created.
Pulp and pulp-cli version info
$ pulp --version
Pulp3 Command Line Interface, Version 0.35.0
Plugin Versions:
common: 0.35.0