Running single instance e2-Micro, followed instruction to install it using cloud shell. Installation seems successful, but the agent still shows legacy. Anyone else run into this issue yet, how did you fix it?
---------------------Getting output-------------------------
Progress: |==================================================| 100.0% [1/1] (100.0%) completed; [1/1] (100.0%) succeeded; [0/1] (0.0%) failed;
Instance: projects/x/zones/us-east1-b/instances/instance-1 successfully runs ops-agent. See log file in: ./google_cloud_ops_agent_provisioning/20220109-184625_752756/x_us-east1-b_instance-1.log
SUCCEEDED: [1/1] (100.0%)
FAILED: [0/1] (0.0%)
COMPLETED: [1/1] (100.0%)
See script log file: ./google_cloud_ops_agent_provisioning/20220109-184625_752756/wrapper_script.log
Here are the wrapper_script.log output
022-01-09T18:46:25.753 INFO Starting to read entries from file agents_to_install.csv.
2022-01-09T18:46:25.753 INFO Finished reading entried from file agents_to_install.csv.
2022-01-09T18:46:25.753 INFO Starting to parse and validate entries.
2022-01-09T18:46:25.753 INFO Parsed and validated all entries successfully.
2022-01-09T18:46:25.753 INFO Starting tasks on instances.
2022-01-09T18:46:25.753 INFO Starting process on instance: projects/x/zones/us-east1-b/instances/instance-1.
2022-01-09T18:46:25.753 INFO Instance: instance-1 - Starting process to run command: gcloud compute ssh instance-1 --x --zone us-east1-b --strict-host-key-checking=no --ssh-flag '-o ConnectTimeout=20' --command "echo \"$(date -Ins) Starting running commands.\";curl -sSO
https://dl.google.com/cloudagents/add-google-cloud-ops-agent-repo.sh; sudo bash add-google-cloud-ops-agent-repo.sh --also-install --uninstall-standalone-logging-agent --uninstall-standalone-monitoring-agent; :; for i in {1..3}; do if (ps aux | grep 'opt[/].*google-cloud-ops-agent.*bin/'); then echo 'google-cloud-ops-agent runs successfully.'; break; fi; sleep 1s; done;echo \"$(date -Ins) Finished running commands.\"".
2022-01-09T18:46:40.321 INFO Processed 1 VMs in 14.56937837600708 seconds.