-
Notifications
You must be signed in to change notification settings - Fork 46
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
feat: add a datasource for vm_host #181
base: master
Are you sure you want to change the base?
Conversation
Hi @seb54000. Thank you for the PR and the contribution spirit. I want to diff it with my branch to better review all the changes on top. I have no problem to merge yours and actually I will support this 🙂 . Some comments:
|
Some extra comments:
|
Hi @skatsaounis and thanks for your positive feedback :
I'm really happy that this provider exists, thus I'm not sure about the remaining effort and time to have it covering several use case and reach good maturity level (and a broad community of users) |
Hi @skatsaounis , how can I help to get this merged ? |
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.
Hi @seb54000 . Sorry for the long delay in my review. Among other things, I am also hunting some CI issues that are causing integration test failures irrelevant with changes in PRs. I was able to solve some of them but not everything. Overall the PR looks good and thank you for reviving it.
Some things to get this PR merged:
- Please take care of the
project
field as requested. - Please sign the Canonical CLA so that our CI check (yes I added one) is happy. You can start from this page: https://ubuntu.com/legal/contributors
- Please add acceptance tests. We will need two tests. One that is adding a virsh VM host with a terraform resource and another one for a LXD host. Both tests will use terraform data source to fetch the VM host from MAAS and also confirm that the fields are populated with expected values.
maas/data_source_maas_resource_pool_test.go
is a good source for inspiration. If you face any problem, I can always add a skeleton in your PR so that you can finalize it. Please let me know 🙂
Co-authored-by: Stamatis Katsaounis <katsaouniss@gmail.com>
Hey! seb54000 has not signed the Canonical CLA which is required to get this contribution merged on this project.
Please head over to https://ubuntu.com/legal/contributors to read more about it. |
This is intended to resolve : #122
First, all the credits should go to @skatsaounis who opened a PR #147 that needs some fix as reported by @sparkiegeek
I apologize but I don't know how to push on @skatsaounis PR so I did a new one here with the fixes and one improvement + some questions
improvement :
key
is now a sensitive value (as it is the private key for the LXD connection)questions :
I tested this code on our maas install with a lxd host and a virsh one. Everything seems to work well.
Thanks a lot for your review, I will update the PR accordingly to the answers you may provide to my question (if needed before merging)