Add HEKETI_IGNORE_STALE_OPERATIONS env variable in heketi. Helps to d… #447
Add HEKETI_IGNORE_STALE_OPERATIONS env variable in heketi. Helps to d… #447
Conversation
Can one of the admins verify this patch? |
ok to test |
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 question about the doc text in the ocp templates (would apply to both heketi and deploy-heketi templates...)
@@ -121,3 +123,6 @@ parameters: | |||
displayName: heketi fstab path | |||
description: Set the fstab path, file that is populated with bricks that heketi creates | |||
value: /var/lib/heketi/fstab | |||
- name: HEKETI_IGNORE_STALE_OPERATIONS | |||
displayName: Heketi ignore stale operations |
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.
"Heketi ignore stale operations" --> "Whether to ignore stale operations at startup" ?
@@ -121,3 +123,6 @@ parameters: | |||
displayName: heketi fstab path | |||
description: Set the fstab path, file that is populated with bricks that heketi creates | |||
value: /var/lib/heketi/fstab | |||
- name: HEKETI_IGNORE_STALE_OPERATIONS | |||
displayName: Heketi ignore stale operations | |||
description: Whether to ignore the stale pending operations db entries in the database |
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.
Should we be a little more verbose?
"This allows to control whether heketi should start up when when there are stale pending operation entries present in the database."
Maybe even more (not sure how long this can/should be): " ... Setting this to true lets heketi ignore existing pending operations at startup. Setting it to false causes heketi to refuse to start if pending operations are found in the database."
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.
As discussed, please set the value to "True" in the templates.
@obnoxxx @raghavendra-talur Please check |
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.
The resulting templates LGTM now, thanks for the update!
But I have a nitpick about the commits:
- The first adds the var and an initial description.
- The second commit changes the value (which would be OK), but also changes (elaborates on) the description...
I suggest squashing the two commit or else reworking it such that the second only changes the values from true to false...
@SaravanaStorageNetwork Also, looks like we need to have the value as string and bool. Enclose true in quotes. |
20dfe26
to
cede6f8
Compare
retest this please |
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.
LGTM now.
let's see what centos-ci has to say about this. :-)
ok to test |
@SaravanaStorageNetwork centos-ci failed:
|
…ecide whether to ignore the stale pending operations db entries in the database. Default value is True. Signed-off-by: Saravanakumar <sarumuga@redhat.com>
cede6f8
to
867224b
Compare
ok to test |
nginx pod failing ? seems like network issue.. @obnoxxx |
ok to test |
retest this please |
ok to test |
why is the @centos-ci not reacting to the magic incantations? ... :-/ |
hah, it just takes a short while! :-) |
There is no change between previous run and this one - but failed during deploy-heketi - Could you retrigger @obnoxxx |
retest this please |
This is weird. Seems to be failing arbitrarily at different stages of the test run. Is it related at all? |
@obnoxxx i don't think. So network error or a package is broken. |
Also created PR #449 to test the centos-ci. That PR just changes a readme... |
retest this please |
hey, did it actually already pick up a heketi build with the HEKETI_IGNORE_STALE_OPERATIONS variable support? with value true/false? |
Whether it did or not should not matter. Isn't it? |
ugh #448 succeeded... |
hooray, it passed! |
…ecide whether to ignore the stale pending operations db entries in the database.
Default value is true.
Signed-off-by: Saravanakumar sarumuga@redhat.com
This change is