-
Notifications
You must be signed in to change notification settings - Fork 657
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
[qemu] ensure dnsmasq.hosts
exists
#2099
Conversation
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 @surahman!
Thanks for this! I have a couple of inline niggles and I would also like to ask you to add a test under tests/qemu/test_dnsmasq_server.cpp
please.
Codecov Report
@@ Coverage Diff @@
## main #2099 +/- ##
=======================================
Coverage 81.48% 81.48%
=======================================
Files 184 184
Lines 9456 9459 +3
=======================================
+ Hits 7705 7708 +3
Misses 1751 1751
Continue to review full report at Codecov.
|
Will reopen to kick the CLA check. |
dnsmasq.hosts
existingdnsmasq.hosts
exists
@Saviq sorry about that, privacy settings on Github were complaining about email address exposure before. |
@surahman the |
@Saviq I am hoping that has corrected the issue... |
@surahman it did, thanks! Now we just need you to actually go through the process of signing it: :) |
@Saviq sorry I thought I already had - I just filled it out again. |
Thanks, maybe it didn't go through our legal wheels… Now I know you did, I'll follow up our side. Thanks a bunch, again, for your help! |
bors try |
tryBuild failed: |
Ok, all we're missing a simple little test to ensure the |
I have added a quick test. Is there anything I need to do to fix the CI issue? |
Thanks!
I'll for this CI run to complete and then look at the error, if there is one. |
Looks like CI passed fine with your added test. I'm not sure where you saw that failure before though. |
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.
Ok, this looks good. Thanks!
bors merge
2094: [network] Better handle network caching r=luis4a0 a=townsend2010 This better handles trying to get cached network data if the network is unreachable. Also adds unit testing to URLDownloader. 2099: [qemu] ensure `dnsmasq.hosts` exists r=townsend2010 a=surahman **_With respect to issue #1118:_** Added a check on `DNSMasq` bootstrapping for `dnsmasq.hosts` file in the constructor. If absent, an empty file will be created in the `data_dir`. Co-authored-by: Chris Townsend <christopher.townsend@canonical.com> Co-authored-by: Saad Ur Rahman <saad.ur.rahman@gmail.com>
Build failed (retrying...): |
2099: [qemu] ensure `dnsmasq.hosts` exists r=townsend2010 a=surahman **_With respect to issue #1118:_** Added a check on `DNSMasq` bootstrapping for `dnsmasq.hosts` file in the constructor. If absent, an empty file will be created in the `data_dir`. 2101: Fix eclipsing vms in ctor r=townsend2010 a=ricab Let exceptions that arise when creating a VM in the daemon constructor through. This avoids erasing instance data that could be recoverable and important for the user, but aborts the daemon since it can't honor its database, which would otherwise be out of sync. More robust approaches for particular causes can always added. Fixes #1658. Co-authored-by: Saad Ur Rahman <saad.ur.rahman@gmail.com> Co-authored-by: Ricardo Abreu <ricardo.abreu@canonical.com>
Build failed (retrying...): |
2099: [qemu] ensure `dnsmasq.hosts` exists r=townsend2010 a=surahman **_With respect to issue #1118:_** Added a check on `DNSMasq` bootstrapping for `dnsmasq.hosts` file in the constructor. If absent, an empty file will be created in the `data_dir`. Co-authored-by: Saad Ur Rahman <saad.ur.rahman@gmail.com>
Build failed: |
Sorry @surahman, we're having some reliability issues with a couple tests in CI… bors retry |
2099: [qemu] ensure `dnsmasq.hosts` exists r=townsend2010 a=surahman **_With respect to issue #1118:_** Added a check on `DNSMasq` bootstrapping for `dnsmasq.hosts` file in the constructor. If absent, an empty file will be created in the `data_dir`. Co-authored-by: Saad Ur Rahman <saad.ur.rahman@gmail.com>
@Saviq no worries, it is interesting to see the workflow :) |
Build failed: |
bors retry |
2099: [qemu] ensure `dnsmasq.hosts` exists r=townsend2010 a=surahman **_With respect to issue #1118:_** Added a check on `DNSMasq` bootstrapping for `dnsmasq.hosts` file in the constructor. If absent, an empty file will be created in the `data_dir`. 2101: Fix eclipsing vms in ctor r=townsend2010 a=ricab Let exceptions that arise when creating a VM in the daemon constructor through. This avoids erasing instance data that could be recoverable and important for the user, but aborts the daemon since it can't honor its database, which would otherwise be out of sync. More robust approaches for particular causes can always added. Fixes #1658. Co-authored-by: Saad Ur Rahman <saad.ur.rahman@gmail.com> Co-authored-by: Ricardo Abreu <ricardo.abreu@canonical.com>
Build failed (retrying...): |
Build succeeded: |
With respect to issue #1118:
Added a check on
DNSMasq
bootstrapping fordnsmasq.hosts
file in the constructor. If absent, an empty file will be created in thedata_dir
.