Skip to content

Commit

Permalink
Revert workaround for mdsd bug
Browse files Browse the repository at this point in the history
Remove workaround that reset log permissions to syslog.
Once Microsoft fixes race condition in https://dev.azure.com/msazure/One/_workitems/edit/12512148 this PR will be ready to merge.
  • Loading branch information
s-fairchild committed Oct 26, 2022
1 parent 3f62877 commit a8edffe
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 20 deletions.
10 changes: 0 additions & 10 deletions pkg/deploy/generator/scripts/gatewayVMSS.sh
Original file line number Diff line number Diff line change
Expand Up @@ -418,16 +418,6 @@ cat >/etc/default/vsa-nodescan-agent.config <<EOF
}
EOF

# we start a cron job to run every hour to ensure the said directory is accessible
# by the correct user as it gets created by root and may cause a race condition
# where root owns the dir instead of syslog
# TODO: https://msazure.visualstudio.com/AzureRedHatOpenShift/_workitems/edit/12591207
cat >/etc/cron.d/mdsd-chown-workaround <<EOF
SHELL=/bin/bash
PATH=/bin
0 * * * * root chown syslog:syslog /var/opt/microsoft/linuxmonagent/eh/EventNotice/arorplogs*
EOF

for service in aro-gateway auoms azsecd azsecmond mdsd mdm chronyd fluentbit; do
systemctl enable $service.service
done
Expand Down
10 changes: 0 additions & 10 deletions pkg/deploy/generator/scripts/rpVMSS.sh
Original file line number Diff line number Diff line change
Expand Up @@ -600,16 +600,6 @@ cat >/etc/default/vsa-nodescan-agent.config <<EOF
}
EOF

# we start a cron job to run every hour to ensure the said directory is accessible
# by the correct user as it gets created by root and may cause a race condition
# where root owns the dir instead of syslog
# TODO: https://msazure.visualstudio.com/AzureRedHatOpenShift/_workitems/edit/12591207
cat >/etc/cron.d/mdsd-chown-workaround <<EOF
SHELL=/bin/bash
PATH=/bin
0 * * * * root chown syslog:syslog /var/opt/microsoft/linuxmonagent/eh/EventNotice/arorplogs*
EOF

for service in aro-dbtoken aro-monitor aro-portal aro-rp auoms azsecd azsecmond mdsd mdm chronyd fluentbit; do
systemctl enable $service.service
done
Expand Down

0 comments on commit a8edffe

Please sign in to comment.