Skip to content
This repository was archived by the owner on Oct 24, 2023. It is now read-only.

fix: fixing nssm logging in windows CSE#2890

Merged
jackfrancis merged 1 commit intoAzure:masterfrom
marosset:windows-cse-logging-fixes
Mar 12, 2020
Merged

fix: fixing nssm logging in windows CSE#2890
jackfrancis merged 1 commit intoAzure:masterfrom
marosset:windows-cse-logging-fixes

Conversation

@marosset
Copy link
Contributor

@marosset marosset commented Mar 12, 2020

Reason for Change:

nssm.exe output when captured in powershell contains null characters which mangle the log files.
This PR removes the null characters before they get logged.

Issue Fixed:

Requirements:

Notes:

@marosset
Copy link
Contributor Author

Before change parts of the CSE log would look like
image

After the change the same part of the log looks like
image

@marosset marosset requested a review from ksubrmnn March 12, 2020 19:39
@codecov
Copy link

codecov bot commented Mar 12, 2020

Codecov Report

Merging #2890 into master will increase coverage by 0.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2890      +/-   ##
==========================================
+ Coverage   72.46%   72.48%   +0.01%     
==========================================
  Files         140      140              
  Lines       25675    25694      +19     
==========================================
+ Hits        18606    18624      +18     
- Misses       5993     5994       +1     
  Partials     1076     1076              
Impacted Files Coverage Δ
pkg/engine/templates_generated.go 33.68% <ø> (ø)
pkg/engine/vmextensions.go 93.59% <0.00%> (ø)
pkg/api/vlabs/validate.go 78.82% <0.00%> (+0.02%) ⬆️
cmd/upgrade.go 47.09% <0.00%> (+0.03%) ⬆️
pkg/api/defaults.go 92.23% <0.00%> (+0.08%) ⬆️
pkg/operations/kubernetesupgrade/upgrader.go 61.06% <0.00%> (+0.23%) ⬆️
pkg/operations/kubernetesupgrade/upgradecluster.go 82.70% <0.00%> (+0.44%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 96c8c3e...b24199b. Read the comment docs.

Copy link
Member

@jackfrancis jackfrancis left a comment

Choose a reason for hiding this comment

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

lgtm

@marosset
Copy link
Contributor Author

This was really starting to bug me.

@jackfrancis jackfrancis merged commit 44e353d into Azure:master Mar 12, 2020
AbelHu pushed a commit to AbelHu/aks-engine that referenced this pull request Apr 20, 2020
andyliuliming pushed a commit that referenced this pull request Apr 21, 2020
* chore: adding azure-cni v1.0.33 artifacts to VHDs (#2790)

* chore: update Azure CNI to v1.0.33 (#2825)

* feat: collect Windows CSE logs during log collection (#2858)

* fix: Windows no outbound fixes (#2883)

* fix: fixing nssm logging in windows CSE (#2890)

* fix: Get WindowsVersion from registry instead of calling Get-ComputerInfo (#2954)

* feat: Updating AKS to use April 2020 Windows VHDs by default (#3060)

Co-authored-by: Mark Rossetti <marosset@microsoft.com>
Co-authored-by: Jaeryn <13284103+jaer-tsun@users.noreply.github.com>
Co-authored-by: Kalya Subramanian <42158129+ksubrmnn@users.noreply.github.com>
AbelHu added a commit to AbelHu/aks-engine that referenced this pull request Apr 22, 2020
* chore: adding azure-cni v1.0.33 artifacts to VHDs (Azure#2790)

* chore: update Azure CNI to v1.0.33 (Azure#2825)

* feat: collect Windows CSE logs during log collection (Azure#2858)

* fix: Windows no outbound fixes (Azure#2883)

* fix: fixing nssm logging in windows CSE (Azure#2890)

* fix: Get WindowsVersion from registry instead of calling Get-ComputerInfo (Azure#2954)

* feat: Updating AKS to use April 2020 Windows VHDs by default (Azure#3060)

Co-authored-by: Mark Rossetti <marosset@microsoft.com>
Co-authored-by: Jaeryn <13284103+jaer-tsun@users.noreply.github.com>
Co-authored-by: Kalya Subramanian <42158129+ksubrmnn@users.noreply.github.com>
xuto2 pushed a commit that referenced this pull request Apr 23, 2020
* Upgrade Windows VHD image to April release (#3111)

* chore: adding azure-cni v1.0.33 artifacts to VHDs (#2790)

* chore: update Azure CNI to v1.0.33 (#2825)

* feat: collect Windows CSE logs during log collection (#2858)

* fix: Windows no outbound fixes (#2883)

* fix: fixing nssm logging in windows CSE (#2890)

* fix: Get WindowsVersion from registry instead of calling Get-ComputerInfo (#2954)

* feat: Updating AKS to use April 2020 Windows VHDs by default (#3060)

Co-authored-by: Mark Rossetti <marosset@microsoft.com>
Co-authored-by: Jaeryn <13284103+jaer-tsun@users.noreply.github.com>
Co-authored-by: Kalya Subramanian <42158129+ksubrmnn@users.noreply.github.com>

* feat: adding kubelet and csi-proxy-server as windows defender excluded processes (#2967) (#3118)

Co-authored-by: Mark Rossetti <marosset@microsoft.com>

Co-authored-by: Mark Rossetti <marosset@microsoft.com>
Co-authored-by: Jaeryn <13284103+jaer-tsun@users.noreply.github.com>
Co-authored-by: Kalya Subramanian <42158129+ksubrmnn@users.noreply.github.com>
AbelHu pushed a commit to AbelHu/aks-engine that referenced this pull request Apr 23, 2020
andyliuliming pushed a commit that referenced this pull request Apr 23, 2020
* feat: Adding WindowsNodeReset.ps1 script to reset/cleanup state for nodes (#2457)

* Adding WindowsNodeReset.ps1 script to reset/cleanup state for windox^C nodes

* fix linting errors

* fixing  comments per CR feedback

* chore: adding azure-cni v1.0.33 artifacts to VHDs (#2790)

* chore: update Azure CNI to v1.0.33 (#2825)

* feat: collect Windows CSE logs during log collection (#2858)

* fix: Windows no outbound fixes (#2883)

* fix: fixing nssm logging in windows CSE (#2890)

* fix: Get WindowsVersion from registry instead of calling Get-ComputerInfo (#2954)

* feat: adding kubelet and csi-proxy-server as windows defender excluded processes (#2967)

* feat: Updating AKS to use April 2020 Windows VHDs by default (#3060)

* feat: Updating Windows VHDs with 4B patches (#3115)

Co-authored-by: Mark Rossetti <marosset@microsoft.com>
Co-authored-by: Jaeryn <13284103+jaer-tsun@users.noreply.github.com>
Co-authored-by: Kalya Subramanian <42158129+ksubrmnn@users.noreply.github.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants