pass --flavor satellite when deploying using foremanctl - #22356
Conversation
Reviewer's guide (collapsed on small PRs)Reviewer's GuideEnsure Satellite installation via foremanctl always passes the Sequence diagram for Satellite installation via foremanctl with flavor optionsequenceDiagram
actor Tester
participant robottelo_hosts as install_satellite_foremanctl
participant foremanctl
Tester->>robottelo_hosts: install_satellite_foremanctl
robottelo_hosts->>robottelo_hosts: build default_parameters
robottelo_hosts->>robottelo_hosts: add --flavor satellite
robottelo_hosts->>foremanctl: execute foremanctl with default_parameters
foremanctl-->>Tester: return installation result
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Hey - I've left some high level feedback:
- The new
'--flavor satellite'entry bundles flag and value into a single string, which may not match howdefault_parametersis consumed elsewhere (e.g., as separate args); consider splitting into'--flavor'and'satellite'to align with typical argument handling. - If different flavors might be needed in the future, consider making the flavor value configurable (e.g., via
settingsor a function parameter) instead of hardcoding'satellite'here.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- The new `'--flavor satellite'` entry bundles flag and value into a single string, which may not match how `default_parameters` is consumed elsewhere (e.g., as separate args); consider splitting into `'--flavor'` and `'satellite'` to align with typical argument handling.
- If different flavors might be needed in the future, consider making the flavor value configurable (e.g., via `settings` or a function parameter) instead of hardcoding `'satellite'` here.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
Before this PR, the default_parameters = [
f'--initial-admin-username {settings.server.admin_username}',
f'--initial-admin-password {settings.server.admin_password}',
]I'll leave it as an exercise to the reader to define "typical". |
|
|
PRT Result |
seems its not picking up the packit build, why? |
This is because of https://gitlab.cee.redhat.com/satelliteqe/satlab-tower/-/merge_requests/1554 . |
|
|
PRT Result |
39c292d to
30ff674
Compare
|
|
PRT Result |
30ff674 to
4381a4b
Compare
|
|
The remaining error is |
But it's failing to tear down a content host, and we don't need a content host here. |
Signed-off-by: Shubham Ganar <shubhamsg123m@gmail.com>
4381a4b to
4c7e822
Compare
|
|
PRT Result |
|
Which SQL injection sourcery is complaining about https://github.com/SatelliteQE/robottelo/pull/22356/checks?check_run_id=92851528305 , i don't see any possibilities as such :strange |
| overrides_dir = '/usr/share/foremanctl/src/playbooks/_vendor_overrides/' | ||
| self.execute(f'mkdir -p {overrides_dir}/deploy/') | ||
| self.put( | ||
| 'variables:\n flavor:\n choices:\n - satellite', | ||
| f'{overrides_dir}/deploy/metadata.obsah.yaml', | ||
| temp_file=True, | ||
| ) | ||
|
|
There was a problem hiding this comment.
Shouldn't this be handled in packaging instead of tests?
There was a problem hiding this comment.
At some point it will. And then I'll remove it here.
There was a problem hiding this comment.
I think we should create jira for it to track then use is_open('SAT-xxx') logic here for that so we don't need to handle that removal immediately
Problem Statement
Solution
Related Issues
Summary by Sourcery
New Features: