-
Notifications
You must be signed in to change notification settings - Fork 20
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
Enable/Disable profiling doesn't work consistently #405
Comments
Also it seems, that if you will create Gluster cluster with one Volume with enabled profiling. And then you will import the cluster into Tendrl with disabled Volume profiling (unchecked the Enable Volume profiling. check-box on Import Cluster wizard), volume profiling is not disabled during cluster import. |
@dahorak #427 would take care of the scenario if for few volumes profiling is enabled before import cluster. Based on option selected while import cluster it should enable/disable profiling for all the underlying volumes. Regarding back to back enable/disable profiling for an imported cluster, we should be cognizant about the fact that once we set the flag for the cluster, the next sync cycle of @Tendrl/tendrl-core comments? |
Volume profiling is handled by tendrl-gluster-integration and is not part of import cluster. Import cluster merely communicates the user's choice (which is enable or disable profiling). I think we can close this issue based on verification of #427 |
@nnDarshan ack. @dahorak can verify the changes and close this. |
@shtripat what is the default sync cycle interval? |
@dahorak yes. I remember now default sync interval is 180 secs. |
@dahorak Is this verified? |
@shtripat Why is this closed? I haven't time to verify it deeply yet, but I'm afraid that it is still broken - I'll try to check it today and will update this issue. |
@shtripat First quick test - try to import Gluster cluster into Tendrl with Disabled Volume Profiling. Once the cluster is imported, profiling should be disabled on all volumes, but it is enabled, so the checkbox Enable Volume profiling on Import Cluster page doesn't work. Gluster volume profiling status before importing the cluster into Tendrl:
POST data send by browser when clicking to Import button (captured by Firefox Developer Tools):
Gluster volume profiling status after cluster imported into Tendrl:
I'll try to test also additional scenarios and report potential issues here, so please reopen this issue and left it open, till all the issues will be fixed and verified. |
@dahorak can you check what is the value of If cluster level value is set as |
@shtripat you are right, the value in etcd is incorrect:
Did I understand it correctly, that this is issue for api? |
@dahorak so it was found to be a typo error in UI. @cloudbehl is sending a PR to fix the same. |
If I'll import Gluster cluster with two Volumes, the Volume Profiling is properly enabled (accordingly to the default value for respective configuration check-box in the import wizard of Tendrl web UI.
But later when I'll switch the profiling off and on multiple times (and wait some time between each step), the profiling state in Gluster is not changed (started or stopped).
I'm not sure about 100% reproduction scenario, but I was able to reproduce it multiple times generally with following steps:
gluster volume profile <VOLUME_NAME> info
).gluster volume profile <VOLUME_NAME> info
).gluster volume profile <VOLUME_NAME> info
).gluster volume profile <VOLUME_NAME> info
).Suddenly, the volume profiling state visible in Tendrl web UI for particular cluster is correct, but the real state from
gluster volume profile
command is wrong.Packages:
I'll try to debug it more and prospectively find more straightforward reproduction scenario.
Where I should look for some errors?
The text was updated successfully, but these errors were encountered: