Katello / katello-client-bootstrap

Bootstrap Script for migrating systems to Foreman & Katello
GNU General Public License v2.0
52 stars 63 forks source link

keep connection open to API #79

Open Rocco83 opened 8 years ago

Rocco83 commented 8 years ago

There are currently several call to katello/foreman API, and, in my understanding, every call is asking for a new authentication. It would be a good improvement to have one initial "login", perform operations, and "logout" at the end of the script. In example, in case of LDAP connection Foreman/Katello give sometimes 500 error in authentication. This can be a workaround.

What do you think about it? Do you have any suggestion on how to handle the 1st time auth with Katello/Foreman API? I can for sure work on the PR.

evgeni commented 8 years ago

The API currently does not support any kind of non user/pass login:

Until this is resolved, I do not really see a way for bootstrap to fix your issue.

Keeping the TCP conenction open could also help, but that would pull in way too much state into bootstrap.