New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[pulpcore] add plugin for pulp-3 #2512
Conversation
|
This is so far a WIP version of the plugin, that needs some review from pulp devels and some more testing. @goosemania , could you please (ask for a) review of the plugin? For testing on a sos-3.9 version, it is sufficient to:
Points to consider:
cc @jjansky1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Initial comments below, very minor points. Only other question I have is why pulpcore instead of pulp3? I don't necessarily mind using the former, I'm just curious as to the reasoning.
sos/report/plugins/pulpcore.py
Outdated
| @@ -0,0 +1,121 @@ | |||
| # Copyright (C) 2018 Red Hat, Inc., Jake Hunsaker <jhunsake@redhat.com> | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm. ;-)
sos/report/plugins/pulpcore.py
Outdated
| _hname = self.exec_cmd('hostname')['output'] | ||
| _hname = _hname.strip() | ||
| self.add_cmd_output("rq info -u redis://localhost:6379/8", | ||
| env={"LC_ALL": "en_US.UTF-8"}, | ||
| suggest_filename="rq_info") | ||
| self.add_cmd_output("curl -s https://%s/pulp/api/v3/status/" % _hname, | ||
| suggest_filename="pulp_status") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a reason we use localhost in one place and the actual hostname in another? Can both not use localhost?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes and no: curl-ing localhost fails on SSL certificate/hostname check. But --insecure option skips that check, so I will use it.
Technically, the very proper solution is to use CONTENT_HOST = "my.fqdn" from /etc/pulp/settings.py but 1) we would have to have a failover value and 2) the hostname will very rarely differ from the local host. So till --insecure works, I am in favour of localhost, for the sake of simplicity.
No strong argument or opinion here. IMHO short description should have both terms, plugin name: no much preference (now I tend to |
Pulp-3 / pulpcore as a revolution from pulp-2 needs a separate plugin, since both plugins have nothing in common and there might be deployments where is active both pulp-2 and pulp-3. Resolves: sosreport#2278 Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
fc0d4d9
to
6563091
Compare
|
We've been using "pulpcore" in various places (Puppet module, Repository name, etc), as we didn't want to hardcode the 3 to differentiate from pulp(2) which is usually referred to as "Pulp". |
|
Merged via 808d9f3 |
Backport sosreport#2512 to add pulpcore plugin also to legacy-3.9 branch. Related: sosreport#2512 Resolves: sosreport#2520 Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
|
I missed this PR. Is there a good way to stay on top of these (Foreman, Pulp and the subsystems it depends on)? |
Yeah I thought we get some feedback before merging the PR, but never mind, we can iterate / fine-tune the plugin further, for sure. Let open an issue if you spot something (and we can make the filename a variable as well, as a side-fix). |
|
Next time, feel free to ping me in a PR. |
Pulp-3 / pulpcore as a revolution from pulp-2 needs a separate
plugin, since both plugins have nothing in common and there might
be deployments where is active both pulp-2 and pulp-3.
Resolves: #2278
Signed-off-by: Pavel Moravec pmoravec@redhat.com
Please place an 'X' inside each '[]' to confirm you adhere to our Contributor Guidelines
Closes: #ISSUENUMBERincluded in an independent line?Resolves: #PRNUMBERincluded in an independent line?