Difference: RetireAzureVM ( vs. 1)

Revision 12016-11-26 - rsobie

Line: 1 to 1
Added:
>
>
META TOPICPARENT name="RandallSobie"

How to retire Azure VMs that are not registered in CS

Two step process:

Step 1: Find running VMs on condor (but not registered in CS)

condor_status -wide | grep azure
slot1@azure-bdca59de-61a8-41aa-8d52-822e63422f95   LINUX      X86_64 Unclaimed Idle      0.000 13033   5+23:39:48
slot1_1@azure-bdca59de-61a8-41aa-8d52-822e63422f95 LINUX      X86_64 Claimed   Busy      8.020 15104   0+05:20:30

Retrieve address for startd and issue shutdown command:

condor_status -l slot1@azure-bdca59de-61a8-41aa-8d52-822e63422f95 | grep MyAddress
MyAddress = "<40.76.219.218:49855?CCBID=206.12.154.240:9618%3faddrs%3d206.12.154.240-9618#675000&PrivAddr=%3c10.94.214.70:49855%3e&PrivNet=azure-bdca59de-61a8-41aa-8d52-822e63422f95&addrs=40.76.219.218-49855&noUDP>"

condor_off -peaceful -startd -addr "<40.76.219.218:49855?CCBID=206.12.154.240:9618%3faddrs%3d206.12.154.240-9618#675000&PrivAddr=%3c10.94.214.70:49855%3e&PrivNet=azure-bdca59de-61a8-41aa-8d52-822e63422f95&addrs=40.76.219.218-49855&noUDP>"
Sent "Set-Peaceful-Shutdown" command to startd at <40.76.219.218:49855>

Step 2: Get master daemon information for all resources

condor_status -l -master  > 1.out
grep azure 1.out

Copy MasterIpAddr for desired resource

MasterIpAddr = "<40.76.219.218:42336?CCBID=206.12.154.240:9618%3faddrs%3d206.12.154.240-9618#674999&PrivAddr=%3c10.94.214.70:42336%3e&PrivNet=azure-bdca59de-61a8-41aa-8d52-822e63422f95&addrs=40.76.219.218-42336&noUDP>"

condor_off -peaceful -master -addr "<40.76.219.218:42336?CCBID=206.12.154.240:9618%3faddrs%3d206.12.154.240-9618#674999&PrivAddr=%3c10.94.214.70:42336%3e&PrivNet=azure-bdca59de-61a8-41aa-8d52-822e63422f95&addrs=40.76.219.218-42336&noUDP>"

Sent "Kill-Daemon-Peacefully" command to master at <40.76.219.218:42336>

Step 3: Verify resources are retiring

condor_status -wide | grep azure
slot1@azure-bdca59de-61a8-41aa-8d52-822e63422f95   LINUX      X86_64 Unclaimed Idle      0.400 13033   5+23:55:31
slot1_1@azure-bdca59de-61a8-41aa-8d52-822e63422f95 LINUX      X86_64 Claimed   Retiring  0.440 15104   0+00:00:24
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback