Skip to content
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

Package requirements on host are not verified at start of playbook execution #169

Open
spuiuk opened this issue May 13, 2021 · 5 comments
Open

Comments

@spuiuk
Copy link
Contributor

spuiuk commented May 13, 2021

When attempting to build packages in the samba-build branch on a fresh machine, the build failed because I did not have the
mock and rpm-build
packages installed. Should we check for these packages or install them before proceeding with the build?

@anoopcs9
Copy link
Contributor

When attempting to build packages in the samba-build branch on a fresh machine, the build failed because I did not have the
mock and rpm-build
packages installed. Should we check for these packages or install them before proceeding with the build?

These are additional set of dependencies(see this line from centos-ci script) for building rpms. And I guess we do many other package installations for setting up our test environment using the script from centos-ci branch. I don't think we check for the presence of those packages while test environment is setup on a fresh machine.

So I would say we expect mock and rpm-build in addition to other requirements like vagrant, ansible, qemu-kvm, libvirt etc on the node prior to building rpms from samba-build branch. May be we can update README to reflect requirements in respective branches?

@spuiuk
Copy link
Contributor Author

spuiuk commented May 14, 2021

I think a check for the packages before we proceed is a good idea. I propose we discuss this in the next meeting.

@anoopcs9
Copy link
Contributor

Updating issue title to reflect the idea in a more generic manner.

@anoopcs9 anoopcs9 changed the title samba-build: Build script doesn't check for mock and rpmbuild packages Package requirements on host are not verified at start of playbook execution May 17, 2021
@anoopcs9
Copy link
Contributor

I think a check for the packages before we proceed is a good idea. I propose we discuss this in the next meeting.

So what do you suggest? Check for each and every package that we usually install on host node(centos-ci test run script and samba build script) during start of playbook execution?

@spuiuk
Copy link
Contributor Author

spuiuk commented Aug 24, 2021

The aim is to make the ansible playbook as re-usable as possible. For example, we could re-use these playbooks in the container build environment. An install action to install all the dependencies required by the build playbook therefore would be a very good addition to the ansible playbook.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants