Skip to content

Added Keystone restart service test#144

Closed
grebennikov wants to merge 1 commit intoopenstack-charmers:masterfrom
grebennikov:filter_pid_in_model_keystone_restart
Closed

Added Keystone restart service test#144
grebennikov wants to merge 1 commit intoopenstack-charmers:masterfrom
grebennikov:filter_pid_in_model_keystone_restart

Conversation

@grebennikov
Copy link

Also modified PID filtering when restarting service to avoid
watching duplicate PIDs in containers

Copy link
Collaborator

@fnordahl fnordahl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The way the Keystone tests are laid out they already do restart the service multiple times trough config_change of the preferred-api-version.

For OpenStack versions up until Queens the tests consume the effect of that change.

So depending on what you want to accomplish with this test it may or may not be a necessary test to add?

Please see my in-line comments too.

conf_file,
set_default,
set_alternate,
{'DEFAULT': {'debug': 'True'}},
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should correspond to what you have in the set_default variable

zaza/model.py Outdated
:raises: ServiceNotRunning
"""
cmd = "stat -c %Y /proc/$(pidof -x {} | cut -f1 -d ' ')".format(service)
cmd = ("stat -c %Y /proc/$(pgrep {} --nslist pid"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change is not directly connected to you adding a service restart test for the keystone charm. Please split out into separate PR or at least a separate commit.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fnordahl please see #145

@grebennikov grebennikov force-pushed the filter_pid_in_model_keystone_restart branch from c4cf597 to 76973c1 Compare October 11, 2018 20:32
Modifies the config of Keystone and makes sure that Apache has been
restarted.
@grebennikov grebennikov force-pushed the filter_pid_in_model_keystone_restart branch from 76973c1 to dd81ee9 Compare October 11, 2018 20:47
@grebennikov
Copy link
Author

agreed that the change is not needed

coreycb pushed a commit to coreycb/zaza that referenced this pull request Oct 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants