-
Notifications
You must be signed in to change notification settings - Fork 55
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
Changes to DBus and engine APIs for idempotence #1614
Conversation
2069422
to
3431426
Compare
@mulkieran All tests are good to go. |
@mulkieran I know I said this last time, but I think changes are finally good to review and merge once I've made any edits you request. Just pushed a commit cleaning up the rest. |
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.
I'm still working through this. Here is a very minor formatting comment, 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.
Rename filesystem is a bit inconsistent right now, see points...
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.
All requested changes have been made.
33d64e3
to
efdd131
Compare
Restarting the build that failed due to a Travis error. |
@bgurney-rh Hm there's a reproducible failure on the Travis side with apt-get as displayed here. I'm not entirely sure how to work around it, but I've retried the build a few times and this error message is consistent. Any ideas? |
We have the occasional error (not failure) on the Travis cross-compilation target. Usually it's Java-related(!), but this error is a new one on me. Maybe it will simply go away shortly, as it seems like an error in Travis resources. |
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.
Just a few more, as I'm working my way through it.
From looking around this issue can come up if apt-get is looking at the update repo for information on the packages, but installing local copies of the packages. If they are not in sync then the size of the old local package
Looking around it seems this issue happens when the apt-get update repo reflects a different package size then the local copy of the package being installed. Solutions seems to be either install the local copy of the package that apt-get is throwing this error for or use the No-Cache=True option for apt-get example "sudo apt -o Acquire::https::No-Cache=True update" |
|
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.
Still working...here's a few minor stylistic requests.
189e0bf
to
9db5c99
Compare
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.
I resolved all of the requested changes and have also removed all references and imports for Uuid
in src/dbus_api/pool.rs
and have replaced them with the type
declarations from the engine.
9db5c99
to
1db9f15
Compare
Rebased |
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.
I did an end-to-end from the CLI down through the changes in the engine for creating filesystems and it all looks good. Next comes destroying filesystems. I have just one renaming request to make an easier read.
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.
Just checked off destroy filesystems. A few further requests.
1db9f15
to
0795b56
Compare
41d2b94
to
9d3fb00
Compare
@jbaublitz Please rebase, just to get rid of the Travis failure. |
@mulkieran The PR is already fully up to date. I'm going to restart the failed job, and if it fails again, I think I'll need to do further investigation. |
It turns out this was my fault. I added an unnecesary list comprehension and pylint seems to have just started picking that up as we saw in some of the other PRs. This is now resolved and pushed. |
@jbaublitz Please take a look at #1650 edits. One is minor and obvious. The other is where I discovered that there was on additional place where we should enforce idempotency. It turns out that that fits easily into the rename category. Please take a close look at it. I took a look at the CLI and find that we don't actually use that part of the D-Bus API anywhere so I filed an issue: stratis-storage/stratis-cli#922; it's outside the scope of this PR. I've also put the D-Bus doc changes up for review: stratis-storage/stratis-docs#129. I expect I'll need one more pass over the PR after this one, but we're definitely on the downhill now. |
4ab4b4d
to
5e4ddf6
Compare
I've reviewed the changes and incorporated them into this PR. This all looks good to me. |
Please take a look at: #1650. |
@mulkieran All of the requested changes make sense to me other than the removal of
With |
@jbaublitz You're correct that |
I've updated this PR with all other requested changes and kept |
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! Please squash and make a final version.
Make internal changes to the engine to better support idempotent operations using the DBus API so that the return value of DBus methods provides information on what was changed and omits resources that were not changed. Co-Authored-By: mulhern <[email protected]>
074036f
to
ed57a38
Compare
Squashed and ready for merge. |
Whoops! I spoke loosely. It should have been something more like "...make a final version, squashed". |
Ok, I'll close this out. |
This PR is a continuation of #1597 which was closed as Github was not updating the branch and kicking off CI for new commits.
The current state of this PR is:
EngineActions
to provide the return types of the idempotent engine API