Skip to content
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

Make ironic timeouts customizable #167

Merged
merged 1 commit into from
Aug 4, 2020

Conversation

furkatgofurov7
Copy link
Member

What this PR does / why we need it:
This commit adds some parameters for the ironic configuration

@metal3-io-bot metal3-io-bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Jun 25, 2020
@furkatgofurov7
Copy link
Member Author

/cc @maelk

@metal3-io-bot metal3-io-bot requested a review from maelk June 25, 2020 10:51
Copy link
Member

@maelk maelk left a comment

Choose a reason for hiding this comment

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

I would rather not set the values at all in the config and use the ironic default, rather than adding defaults here that might not be in sync with Ironic's at some point. So if the environment variables are unset, we should probably not add the parameters in the configuration file. we'd do that only if they are set

@maelk
Copy link
Member

maelk commented Jun 25, 2020

I didn't see that it was set this way in ironic.conf, sorry, discard what I said, since we anyways set our own settings

@furkatgofurov7
Copy link
Member Author

/test-integration

configure-ironic.sh Outdated Show resolved Hide resolved
@furkatgofurov7
Copy link
Member Author

/test-integration

@maelk
Copy link
Member

maelk commented Jun 26, 2020

/lgtm

@metal3-io-bot metal3-io-bot added the lgtm Indicates that a PR is ready to be merged. label Jun 26, 2020
@furkatgofurov7
Copy link
Member Author

/test-integration

@furkatgofurov7
Copy link
Member Author

/assign @bfournie
/cc @elfosardo
/cc @hardys

configure-ironic.sh Outdated Show resolved Hide resolved
@furkatgofurov7
Copy link
Member Author

/cc @dhellmann
/cc @dtantsur

@dhellmann
Copy link
Member

I feel a bit like we're reimplementing confd. :-)

These are oslo.config settings, right? In other places we used the automatically checked environment variables to pass values right to the daemon. Would that approach work here, too? Could we document the relevant variables names instead of modifying the config file?

@maelk
Copy link
Member

maelk commented Jul 2, 2020

That's a very good point. This change could instead be a readme explaining how to override the settings in the ironic config.

@derekhiggins
Copy link
Member

That's a very good point. This change could instead be a readme explaining how to override the settings in the ironic config.

Something like this could work
#165

@metal3-io-bot metal3-io-bot added size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. and removed lgtm Indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Jul 3, 2020
@furkatgofurov7 furkatgofurov7 requested a review from maelk July 3, 2020 10:35
README.md Outdated Show resolved Hide resolved
@furkatgofurov7
Copy link
Member Author

furkatgofurov7 commented Jul 3, 2020

I feel a bit like we're reimplementing confd. :-)

These are oslo.config settings, right? In other places we used the automatically checked environment variables to pass values right to the daemon. Would that approach work here, too? Could we document the relevant variables names instead of modifying the config file?

@dhellmann thanks for the suggestion, I have addressed your comments and it is documented now in the readme by following the format from #165

@furkatgofurov7
Copy link
Member Author

/test-integration

1 similar comment
@furkatgofurov7
Copy link
Member Author

/test-integration

@derekhiggins
Copy link
Member

I feel a bit like we're reimplementing confd. :-)
These are oslo.config settings, right? In other places we used the automatically checked environment variables to pass values right to the daemon. Would that approach work here, too? Could we document the relevant variables names instead of modifying the config file?

@dhellmann thanks for the suggestion, I have addressed your comments and it is documented now in the readme by following the format from #165

I think we should just merge #165, I don't see any reason why these Timeout values should be special and mentioned in the config.

@dhellmann
Copy link
Member

I don't have a problem with listing some variables that are commonly useful to override. Maybe we can also describe the general way to build the right name for other variables? That could be a separate PR.

This one needs a rebase.

@furkatgofurov7
Copy link
Member Author

I feel a bit like we're reimplementing confd. :-)
These are oslo.config settings, right? In other places we used the automatically checked environment variables to pass values right to the daemon. Would that approach work here, too? Could we document the relevant variables names instead of modifying the config file?

@dhellmann thanks for the suggestion, I have addressed your comments and it is documented now in the readme by following the format from #165

I think we should just merge #165, I don't see any reason why these Timeout values should be special and mentioned in the config.

I don't have a problem with listing some variables that are commonly useful to override. Maybe we can also describe the general way to build the right name for other variables? That could be a separate PR.

This one needs a rebase.

These are examples of timeout values and how can they be overridden. And also we are not mentioning them in the config but README.md file.

/test-integration

@furkatgofurov7
Copy link
Member Author

Hi @dhellmann, is there anything that needs to be changed/improved in this PR, or we can move forward with it?

@dhellmann
Copy link
Member

/lgtm

@metal3-io-bot metal3-io-bot added the lgtm Indicates that a PR is ready to be merged. label Jul 29, 2020
@furkatgofurov7
Copy link
Member Author

Hi @derekhiggins! is there anything that needs to be improved in this PR or we can proceed with it?

@derekhiggins
Copy link
Member

/lgtm

@derekhiggins
Copy link
Member

/approve

@metal3-io-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: derekhiggins, elfosardo, furkatgofurov7

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@metal3-io-bot metal3-io-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 4, 2020
@metal3-io-bot metal3-io-bot merged commit 30f277b into metal3-io:master Aug 4, 2020
elfosardo pushed a commit to elfosardo/ironic-image that referenced this pull request May 11, 2021
Bug 1957976: update ironic packages for deploy_steps timeout
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants