-
Notifications
You must be signed in to change notification settings - Fork 175
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
Add --syslog to vic-machine configure #8512
Conversation
62f9285
to
93d2c20
Compare
2a54428
to
93d2c20
Compare
@@ -373,6 +373,8 @@ func (d *Data) CopyNonEmpty(src *Data) error { | |||
|
|||
d.RegistryCAs = src.RegistryCAs | |||
|
|||
d.SyslogConfig = src.SyslogConfig |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
93d2c20
to
415c8fd
Compare
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
415c8fd
to
3463371
Compare
This reverts commit 1d749af.
attribute to extraconfig
Creating base file structure
Calling GET /info
not to occurFixes #8501
[specific ci=6-15-Syslog]