Skip to content

config: add isdynamic flag in configuration response#3729

Merged
DaanHoogland merged 1 commit into
apache:4.13from
ustcweizhou:4.13-add-isdynamic-configuration-reponse
Dec 20, 2019
Merged

config: add isdynamic flag in configuration response#3729
DaanHoogland merged 1 commit into
apache:4.13from
ustcweizhou:4.13-add-isdynamic-configuration-reponse

Conversation

@ustcweizhou
Copy link
Copy Markdown
Contributor

Description

Some configurations are dynamic so it does not require restart of mgt server when we change it.
Add isdynamic in configuration response, and does not pop up dialog "restart mgt server" if config is dynamic on UI.

Fixes: #3683

Types of changes

  • Breaking change (fix or feature that would cause existing functionality to change)
  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (improves an existing feature and functionality)
  • Cleanup (Code refactoring and cleanup, that may add test cases)

Screenshots (if appropriate):

How Has This Been Tested?

Tested with global configuration "xen.vm.vcpu.max", it works fine (no pop up dialog).

Copy link
Copy Markdown
Contributor

@DaanHoogland DaanHoogland left a comment

Choose a reason for hiding this comment

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

nice

@DaanHoogland
Copy link
Copy Markdown
Contributor

@blueorangutan package

@andrijapanicsb
Copy link
Copy Markdown
Contributor

thx Wei.

Copy link
Copy Markdown
Member

@GabrielBrascher GabrielBrascher left a comment

Choose a reason for hiding this comment

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

Code LGTM. Thanks @ustcweizhou :)

@andrijapanicsb
Copy link
Copy Markdown
Contributor

@blueorangutan package

@blueorangutan
Copy link
Copy Markdown

@andrijapanicsb a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress.

@blueorangutan
Copy link
Copy Markdown

Packaging result: ✔centos6 ✔centos7 ✔debian. JID-412

@andrijapanicsb
Copy link
Copy Markdown
Contributor

LGTM

Tested manually on 10-15 different settings.

@yadvr yadvr added this to the 4.13.1.0 milestone Nov 30, 2019
@yadvr
Copy link
Copy Markdown
Member

yadvr commented Nov 30, 2019

This will largely work for most global settings, however, there are configkeys that are defined to not be dynamic in nature and sometimes configkey which are are dynamic are used while creating a scheduled thread or executor service whose values only apply when a cloudstack component (managerbase etc.) is configured but not during/after the component has started. To accept this, will require codebase wide search and changing any configkeys which are declared as dynamic but not used dynamically.

@weizhouapache
Copy link
Copy Markdown
Member

weizhouapache commented Nov 30, 2019

@rhtyd
this change is based on the assumption that the "dynamic" is set correctly for the configurations.
We need to check all global configurations , especially the configurations which were added in Config.java before ConfigKey is introduced in cloudstack. it is another story I think.

@DaanHoogland
Copy link
Copy Markdown
Contributor

good catch @rhtyd , however, will this be harmful? Or can we merge and plan the small fixes that will follow as they come up?

@yadvr
Copy link
Copy Markdown
Member

yadvr commented Dec 7, 2019

@blueorangutan package

@blueorangutan
Copy link
Copy Markdown

@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress.

@blueorangutan
Copy link
Copy Markdown

Packaging result: ✖centos6 ✖centos7 ✔debian. JID-440

@yadvr
Copy link
Copy Markdown
Member

yadvr commented Dec 8, 2019

@blueorangutan package

@blueorangutan
Copy link
Copy Markdown

@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress.

@blueorangutan
Copy link
Copy Markdown

Packaging result: ✖centos6 ✖centos7 ✔debian. JID-444

@yadvr
Copy link
Copy Markdown
Member

yadvr commented Dec 12, 2019

@blueorangutan package

@blueorangutan
Copy link
Copy Markdown

@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress.

@blueorangutan
Copy link
Copy Markdown

Packaging result: ✔centos6 ✔centos7 ✔debian. JID-461

@yadvr
Copy link
Copy Markdown
Member

yadvr commented Dec 20, 2019

cc @PaulAngus this adds feature to know if restarting mgmt server is needed after updating a global setting. I'll see what we can do to detect/fix this in Primate.

@DaanHoogland
Copy link
Copy Markdown
Contributor

discussed with @Rohit offline. this is a significant improvement over the current situation in spite of his remarks. We'll need to deal with the 10% of exceptions as we encounter them.

@DaanHoogland DaanHoogland merged commit 2712dec into apache:4.13 Dec 20, 2019
DaanHoogland added a commit that referenced this pull request Dec 20, 2019
* create template from snapshot regression (partly reverted) (#3767)

* Once again allow a VM to be on multiple networks from VPCs (#3754)

to once again allow a VM to be on multiple networks from VPCs

* convert protocal names to be found as labels (#3747)

* convert protocal names to be found as labels

* format

* filter hosts to query on zone wide storage (#3733)

* config: add isdynamic flag in configuration response (#3729)

Co-authored-by: Wei Zhou <ustcweizhou@gmail.com>
DaanHoogland added a commit that referenced this pull request Dec 23, 2019
* 4.13:
  Added zone check for attach iso (#3755)
  config: add isdynamic flag in configuration response (#3729)
  filter hosts to query on zone wide storage (#3733)
  convert protocal names to be found as labels (#3747)
  Once again allow a VM to be on multiple networks from VPCs (#3754)
  create template from snapshot regression (partly reverted) (#3767)
ustcweizhou added a commit to ustcweizhou/cloudstack that referenced this pull request Feb 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants