Граф коммитов

24 Коммитов

Автор SHA1 Сообщение Дата
QxBytes fc4da42d66
refactor: create safer command execution method (#2899)
* rename ExecuteCommand to ExecuteRawCommand

* add safer execute command method

* fix windows platform command test

* add uts and comments

* address feedback

* add parent context to execute command
2024-08-06 21:36:55 +00:00
Paul Yu ae37d40982
[CNI] zap logger for platform package (#2233)
* zap logger for platform package
2023-10-13 12:08:58 -07:00
Paul Yu 49431986ee
[CNI] zap logger migration for store package (#2231)
* zap logger migration for store package
2023-09-25 15:59:56 +00:00
Behzad Mirkhanzadeh 3ad4c65bb1
perf: Store Lock timeout for CNI in Windows is increased to 1 minute. (#1924)
* fix: Store Lock timeout for CNI in Windows is increased to 1 minute.

* rollback the telemtry lock timeout to 10 sec.
2023-06-29 10:04:59 -07:00
tamilmani1989 ba3bbe0f26
Remove azure-vnet-telemetry for windows multitenancy (#1430)
* Remove azure-vne-telemetry for windows multitenancy and telemetry service for windows multitenancy will be started from cns.

* start telemetry service from cns

* lint and log fix

* minor change

* addressed comment
2022-07-01 15:09:39 -07:00
Evan Baker 45ae9581f6
add hostname and version in the correct field in ai logs (#1280)
Signed-off-by: Evan Baker <rbtr@users.noreply.github.com>
2022-03-16 18:35:34 +00:00
tamilmani1989 cdab7d0241
Use Lockedfile api to acquire lock (#1070)
* added lockedfileapi support for CNI

* fixed interface changes

* addressed comments
fixed ut

* addressed comments

* fixed copy to buffer part in writer api

* fixed copy to buffer part in writer api

* keeping old code not changing it.
2021-11-09 08:19:44 -08:00
tamilmani1989 279911c94a
Support for Dualstack transparent (#1046)
* ipv6 dualstack support transparent mode

* golint fixes

* fixed linter errors

* enable ipv6 setting

* dualstack transparent changes

* abstracted platform execute command

* lint fixes
fix compilation issues

* addressed comments

* fixed a bug
2021-10-15 14:28:37 -07:00
Evan Baker 96bec09d41
chore: appease the linter (3/?), the big gofumpt (#987)
* gofumpt -w -s .

* small addtl cleanups after gofumpt

* rerun after rebase
2021-09-02 16:33:18 -05:00
Evan Baker 1087201b28
chore: appease the linter, pt 2 of ? (#925) 2021-09-01 18:28:17 -05:00
Jaeryn 86aabb0101
Add flush func for AITelemetryWrapper (#976)
Co-authored-by: Jaeryn <tsun.chu@microsoft.com>
2021-08-20 09:22:13 -07:00
Mathew Merrick 41232c134d
CNI using CNS IPAM (#597)
* Configure CNI to use CNS IPAM
2020-09-29 14:43:19 -07:00
tamilmani1989 6ac5e8c9f0
CNI Ipv6 Dualstack Support (#538)
* added cniv6 plugin

* cni ipv6 base framework

* removed unwanted changes

* added ipv6 change

* added cni ipv6 changes

* drop neighbor discovery messages to other VMs

* fixed issues

* fixed unit tests

* fix nil dereference

* addressed comments

* ipv6 fixes and changes

* addressed comments
2020-04-15 22:30:48 -07:00
Sathya Singh ef49759d52 Addressed review comments. 2020-02-13 13:36:36 -08:00
Sathya Singh a4c1463ea0 Addressed review comments and added UTs. 2020-02-12 19:15:10 -08:00
Sathya Singh 74aa0393c6 Addressed review comments. 2020-02-12 13:03:00 -08:00
Sathya Singh 0308cd07db Add AI Events and CNS NC Snapshots. 2020-02-11 18:24:40 -08:00
Ashvin Deodhar ca00635a6b
Fix CNS regression (#489)
log.SetTarget creates the log file under log directory using golang os package. Whenever code sets the log directory, it needed to call SetTarget to create the actual log file under that directory. In the recent logger changes, InitLogger by default set the log directory to the current folder. This created the log file in the current folder. The code then set the log directory to a different location without a subsequent call to log.SetTarget. This resulted into the logger to not find the actual log file in the set log directory.

This fix updates the logger InitLogger function to accept the log directory to create the file in correct log directory. To avoid having such issue, this fix also combines the function calls to set log directory and set target into a single function. This prevents any out of order calls resulting into such issue.
2020-01-30 09:33:35 -08:00
tamilmani1989 a151c83894
AITelemetry support for CNS (#455)
* Added logger package for CNS

* added aitelemetry for cns

* Added AI Telemetry for CNS

* added respective folders in makefile and added config file

* added all config fields

* addressed review comments

* removing repetitive log

* logged configpath

* reverted to keep old telemetry channel and pulled new ai package

* removed unwanted logs..added log file
2020-01-24 13:29:52 -08:00
tamilmani1989 546b0b0b7a Added resourcegroup and vmid as default dimension in AI metrics (#476)
* added resourcegroup as default dimension in metrics

* added vmid as dimension
2020-01-16 14:24:54 -08:00
tamilmani1989 2d619b78fe
AppInsightTelemetry support for CNI (#458)
* Added AITelemetry support for CNI

* added new files

* added other configs in config file

* fixed ut

* updated disableall similar to cns

* added container name to report

* addressed review comments

* addressed review comments

* added check for azure environment

* added log

* close log handle in unit test

* addressed review comments

* addressed review comments

* fixed a condition

* keep the netagent channel for logs

* fixed error

* addressed review comments
2020-01-14 14:53:24 -08:00
tamilmani1989 19720a1a97
updated package path. Changed to caps (#429) 2019-10-31 11:08:51 -07:00
tamilmani1989 ea079b0724
addressed concerns discussed during brownbag session (#425)
* addressed concerns discussed during brownbag session

* updated fields in aitelemetry

* addressed review comments

* flipped the metadata thread field

* fixed compilation errors

* added default refresh timeout

* moved out of for loop

* added unittest

* added disableall field which disables everything(trace,metric)

* removed disable logic from ai package

* added an error check for getting metadata
2019-10-23 17:13:15 -07:00
tamilmani1989 e0605e90f6
added application insights telemetry package to send metrics and logs (#421)
* added application insights telemetry package to send metrics and logs to appinsights

* moved a function common to both packages
acquired a lock before writing to file

* added read write lock as per chandan comment. Addressed jaeryn comments

* fixed telemetry unit test

* defined interface and added appinsights package as vendor to acn

* added vendor package.go(appinsights)

* dependencies of appinsights

* added AI dependencies

* updated unit tests

* addressed review comments
2019-10-16 13:08:42 -07:00