Skip to content

Conversation

anoopcs9
Copy link
Collaborator

@anoopcs9 anoopcs9 commented Jul 25, 2025

  • Actually we could build on --install-custom-repo rather than new --custom-repos.
  • In the absence of forcedevbuilds value for --package-selection, by default we failed to install some important packages for custom package source.
  • Install samba-vfs-glusterfs for CentOS.
  • Remove an unwanted --enablerepo=epel.
  • Cleanup detection logic for repo file name collision.

Copy link
Collaborator

@phlogistonjohn phlogistonjohn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like the general direction this is going but I have some quibbles with the way the names a little confused WRT to plurals.
But one issues is do we want to change all the variable names or is that too much of a pain.

@phlogistonjohn
Copy link
Collaborator

I forgot to mention: with regards to the naming, since we've added long options I think it'd be OK to have alises if we want like --install-custom-repo and --custom-repos could store to the same variable IF it makes things clearer and easier to use.

@phlogistonjohn
Copy link
Collaborator

Also also, since #210 got merged the script relies on build args and the build args map to the existing options, so I think both ought to be updated to match (probably in one PR, but not necessarily one patch)

Copy link
Collaborator Author

@anoopcs9 anoopcs9 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like the general direction this is going but I have some quibbles with the way the names a little confused WRT to plurals. But one issues is do we want to change all the variable names or is that too much of a pain.

I've made changes to indicate the plural nature both internally and for options.

I forgot to mention: with regards to the naming, since we've added long options I think it'd be OK to have alises if we want like --install-custom-repo and --custom-repos could store to the same variable IF it makes things clearer and easier to use.

I hope the rename to --install-custom-repos is good enough for now.

Also also, since #210 got merged the script relies on build args and the build args map to the existing options, so I think both ought to be updated to match (probably in one PR, but not necessarily one patch)

Can you please check the updated version?

anoopcs9 added 2 commits July 28, 2025 12:58
We could avoid the need for `--custom-repos` optional argument by
modifying install_custom_repo option to accept more than one space
separated urls.

Best reviewed with `git show -w`.

Signed-off-by: Anoop C S <[email protected]>
@anoopcs9 anoopcs9 force-pushed the rm-custom-repos-arg branch from 5e2a347 to f5b81d6 Compare July 28, 2025 07:36
@anoopcs9 anoopcs9 changed the title images/server: Improvements to install-pacakges.sh images/server: Improvements to install-packages.sh Jul 28, 2025
phlogistonjohn
phlogistonjohn previously approved these changes Jul 28, 2025
Copy link
Collaborator

@phlogistonjohn phlogistonjohn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm thanks.

@phlogistonjohn
Copy link
Collaborator

phlogistonjohn commented Jul 29, 2025

@anoopcs9 are you OK to merge this? Either one of us can follow up on the ceph repo option aspect in a follow up pr. Do you want to get a 2nd review?

@anoopcs9
Copy link
Collaborator Author

@anoopcs9 are you OK to merge this? Either one of us can follow up on the ceph repo option aspect in a follow up pr. Do you want to get a 2nd review?

As we speak I've almost incorporated that pending change. I'll shortly update the PR.

@anoopcs9 anoopcs9 force-pushed the rm-custom-repos-arg branch from f5b81d6 to 747951b Compare July 29, 2025 14:16
@mergify mergify bot dismissed phlogistonjohn’s stale review July 29, 2025 14:16

Pull request has been modified.

@anoopcs9 anoopcs9 requested a review from phlogistonjohn July 29, 2025 14:19
@anoopcs9 anoopcs9 force-pushed the rm-custom-repos-arg branch from 747951b to 76183d3 Compare July 30, 2025 06:16
phlogistonjohn
phlogistonjohn previously approved these changes Jul 30, 2025
Copy link
Collaborator

@phlogistonjohn phlogistonjohn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks ok to me.

@anoopcs9
Copy link
Collaborator Author

Updated once again with two additional commits (not related to custom repo management).

@anoopcs9 anoopcs9 requested a review from phlogistonjohn July 31, 2025 10:59
phlogistonjohn
phlogistonjohn previously approved these changes Jul 31, 2025
Copy link
Collaborator

@phlogistonjohn phlogistonjohn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@anoopcs9 anoopcs9 force-pushed the rm-custom-repos-arg branch from 06b35ef to 8d27cde Compare August 1, 2025 09:53
@mergify mergify bot dismissed phlogistonjohn’s stale review August 1, 2025 09:53

Pull request has been modified.

Reduce the assumption level a bit by making it explicit that we need
to install ceph from custom repos with the help of an extra option
`--ceph-from-custom`.

Signed-off-by: Anoop C S <[email protected]>
With package_selection set to `custom` for custom-repos source we
failed to install libcephfs-proxy2, samba-vfs-cephfs and few other
required packages due to non satisfying switch case down the line.
Instead we rename package_selection to `custom-repos-devbuilds` so
as to enter the relevant switch case to install crucial packages.

Signed-off-by: Anoop C S <[email protected]>
EPEL repository is enabled by default after installation.

Signed-off-by: Anoop C S <[email protected]>
There's a possibility of an infinite loop if the hashed repo name for
the url happens to exist at the destination. Therefore replace `while`
loop with basic `if` condition and skip the url altogether when hashed
repo name exists.

Signed-off-by: Anoop C S <[email protected]>
@anoopcs9 anoopcs9 force-pushed the rm-custom-repos-arg branch from 8d27cde to 9a48755 Compare August 1, 2025 13:47
Copy link
Collaborator

@phlogistonjohn phlogistonjohn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks. looks good to me

@phlogistonjohn
Copy link
Collaborator

@Mergifyio refresh

Copy link

mergify bot commented Aug 1, 2025

refresh

✅ Pull request refreshed

@phlogistonjohn
Copy link
Collaborator

mergify!! :shakingfist:

@phlogistonjohn
Copy link
Collaborator

Mergiyf is complaining:

The branch protection setting Require branches to be up to date before merging is not compatible with max_parallel_checks>1, queue_conditions != merge_conditions and must be unset.

Something to follow up with later as I am very disappointed in mergify lately. Manually merging now.

@phlogistonjohn phlogistonjohn merged commit 4bbb290 into samba-in-kubernetes:master Aug 1, 2025
39 of 40 checks passed
@anoopcs9 anoopcs9 deleted the rm-custom-repos-arg branch August 1, 2025 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants