Don't log VNC password in VirtualMachineTO#7291
Conversation
Signed-off-by: Marcus Sorensen <mls@apple.com>
|
Kudos, SonarCloud Quality Gate passed!
|
Codecov Report
@@ Coverage Diff @@
## main #7291 +/- ##
============================================
+ Coverage 12.67% 12.69% +0.01%
- Complexity 8641 8655 +14
============================================
Files 2716 2716
Lines 256112 256117 +5
Branches 39926 39927 +1
============================================
+ Hits 32461 32503 +42
+ Misses 219522 219482 -40
- Partials 4129 4132 +3
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
|
@blueorangutan package |
|
@harikrishna-patnala a Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
|
Packaging result: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 5657 |
|
@blueorangutan test |
|
@rohityadavcloud a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
Trillian test result (tid-6235)
|
|
I checked the management-server.log in the trillian test results . there is no vncPassword in the log .
|
|
@kiranchavala can you prioritize this please |
|
Tested this LGTM on 4.17.2 build There is vncPassword parameter getting passed to the vm when it starts up grep "vncPassword" /var/log/cloudstack/management/management-server.log vncPassword :3a54p4tPNbDxy**5JN9FtmMQ 2023-03-02 11:28:58,873 DEBUG [c.c.a.t.Request] (AgentManager-Handler-20:null) (logid:) Seq 2-7958142016540377725: Processing: { Ans: , MgmtId: 32986993000843, via: 2, Ver: v1, Flags: 10, [{"com.cloud.agent.api.StartAnswer":{"vm":{"id":"3","name":"i-2-3-VM","state":"Starting","type":"User","cpus":"1","minSpeed":"250","maxSpeed":"500","minRam":"(512.00 MB) 536870912","maxRam":"(512.00 MB) 536870912","arch":"x86_64","os":"CentOS 5.5 (64-bit)","platformEmulator":"CentOS 5.5","bootArgs":"","enableHA":"false","limitCpuUse":"false","enableDynamicallyScaleVm":"false","vncPassword":"3a54p4tPNbDxy5JN9FtmMQ","vncAddr":"10.0.32.176","params":{"deployvm":"true","cpuOvercommitRatio":"2.0","m or Pr-7291 build , There is no " vncPassword " parameter getting passed to the vm when it starts up 2023-03-02 12:10:42,413 DEBUG [c.c.a.t.Request] (AgentManager-Handler-15:null) (logid:) Seq 1-1401463909042356305: Processing: { Ans: , MgmtId: 32989408919868, via: 1, Ver: v1, Flags: 10, [{"com.cloud.agent.api.StartAnswer":{"vm":{"id":"3","name":"i-2-3-VM","state":"Starting","type":"User","cpus":"1","minSpeed":"250","maxSpeed":"500","minRam":"(512.00 MB) 536870912","maxRam":"(512.00 MB) 536870912","arch":"x86_64","os":"CentOS 5.5 (64-bit)","platformEmulator":"CentOS 5.5","bootArgs":"","enableHA":"false","limitCpuUse":"false","enableDynamicallyScaleVm":"false","vncAddr":"10.0.32.168","params":{"cpuOvercommitRatio":"2.0","memoryOvercommitRatio":"1.0","Message.ReservedCapacityFreed.Flag":"false"},"uuid":"c977c7bc-21c0-4795-bfe2-4f9fd0d2b989","enterHardwareSetup":"false","disks":[{"data":{"org.apache.cloudstack.storage.to.VolumeObjectTO":{"uuid":"75e12f98-2e34-43dd-903d-2574fc008549","volumeType":"ROOT","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"33be8404-a958-303b-b44c-c867bd508902","name":"pr7291-t6256-kvm-centos7-kvm-pri2","id":"2","poolType":"NetworkFilesystem","host":"10.0.32.4","path":"/acs/primary/pr7291-t6256-kvm-centos7/pr7291-t6256-kvm-centos7-kvm-pri2","port":"2049","url":"NetworkFilesystem://10.0.32.4/acs/primary/pr7291-t6256-kvm-centos7/pr7291-t6256- |
|
Trillian test result (tid-6255)
|
|
@blueorangutan test |
|
@rohityadavcloud a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
Trillian test result (tid-6260)
|








Description
This PR turns logging off for the VNC password on VirtualMachineTO
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity