10000 Add --syslog to vic-machine configure by YanzhaoLi · Pull Request #8512 · vmware/vic · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add --syslog to vic-machine configure #8512

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

Merged

Conversation

YanzhaoLi
Copy link
Contributor
@YanzhaoLi YanzhaoLi commented Mar 22, 2019
  1. move --syslog flag from create to common
  2. enable --syslog flag for both create and configure
  3. modify CopyNonEmpty(), copyChangedConf() which writes changed
    attribute to extraconfig
  4. uncheck Creating base file structure
  • vch create would trigger creating scratch.vmdk so that configure vch would not trigger creating scratch.vmdk again
  1. add certs={false} arguments in Install Vic Appliance To Test Server.
  • configure the tls-enabled vch without tls would cause Calling GET /info not to occur

Fixes #8501
[specific ci=6-15-Syslog]

@YanzhaoLi YanzhaoLi requested review from wjun and luwang-vmware March 22, 2019 09:45
@YanzhaoLi YanzhaoLi requested a review from a team as a code owner March 22, 2019 09:45
@YanzhaoLi YanzhaoLi force-pushed the topic/Add-syslog-param-to-configure branch 11 times, most recently from 62f9285 to 93d2c20 Compare March 24, 2019 15:59
@YanzhaoLi YanzhaoLi changed the title [do not review now]Add --syslog to vic-machine configure Add --syslog to vic-machine configure Mar 25, 2019
@YanzhaoLi YanzhaoLi force-pushed the topic/Add-syslog-param-to-configure branch 9 times, most recently from 2a54428 to 93d2c20 Compare March 26, 2019 07:11
@YanzhaoLi YanzhaoLi requested review from yuyangbj, d-e-s-o and DanielXiao and removed request for d-e-s-o March 26, 2019 07:53
@@ -373,6 +373,8 @@ func (d *Data) CopyNonEmpty(src *Data) error {

d.RegistryCAs = src.RegistryCAs

d.SyslogConfig = src.SyslogConfig
Copy link
Contributor

Choose a reason for hiding this comment

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

If --syslog-address is not set, will it be reset to empty during configure?

10000

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In func (*Configure) copyChangedConf (), I added code if c.SyslogConfig.Addr != nil to decide whether to change extraconfig.
This is the same way as RegistryCA does.

@@ -15,8 +15,8 @@
*** Settings ***
Documentation Test 6-15 - Verify remote syslog
Resource ../../resources/Util.robot
Suite Setup Install VIC Appliance To Test Server additional-args=--syslog-address tcp://%{SYSLOG_SERVER}:514 --debug 1
Suite Teardown Cleanup VIC Appliance On Test Server
#Suite Setup Install VIC Appliance To Test Server additional-args=--syslog-address tcp://%{SYSLOG_SERVER}:514 --debug 1
Copy link
Contributor

Choose a reason for hiding this comment

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

remove this line?



*** Test Cases ***
Verify VCH Configure remote syslog
Copy link
Contributor

Choose a reason for hiding this comment

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

It is better to move VCH configure test behind create test.

@@ -32,7 +32,6 @@ Get Remote PID
Should Not Be Empty ${pid}
[Return] ${pid}

*** Test Cases ***
Verify VCH remote syslog
Copy link
Contributor
@wjun wjun Mar 26, 2019

Choose a reason for hiding this comment

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

Please make sure container logs are forwarded to the syslog server too. If the test misses, please help to add. Also, 6-15-Syslog.md needs to update if required.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes. Container log is checked by this test case

@YanzhaoLi YanzhaoLi force-pushed the topic/Add-syslog-param-to-configure branch from 93d2c20 to 415c8fd Compare March 26, 2019 11:27
1. move --syslog flag from create to common
2. enable --syslog flag for both create and configure
3. modify CopyNonEmpty(), copyChangedConf() which writes changed
attribute to extraconfig
@YanzhaoLi YanzhaoLi force-pushed the topic/Add-syslog-param-to-configure branch from 415c8fd to 3463371 Compare March 27, 2019 09:51
@YanzhaoLi YanzhaoLi requested a review from renmaosheng April 1, 2019 07:20
@YanzhaoLi YanzhaoLi merged commit 1d749af into vmware:master Apr 12, 2019
YanzhaoLi added a commit to YanzhaoLi/vic that referenced this pull request Apr 26, 2019
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.

ability to configure syslog without deleting (creating a new) VCH
4 participants
0