Skip to content

Commit 36583ed

Browse files
committed
Merge pull request #15 from MSOpenTech/host-management
Cleaned up Azure driver output
2 parents 5f68d07 + 0ed3e89 commit 36583ed

3 files changed

Lines changed: 3 additions & 15 deletions

File tree

hack/vendor.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ clone hg code.google.com/p/goauth2 afe77d958c70
6363

6464
clone git github.com/mitchellh/go-homedir 7d2d8c8a4e078ce3c58736ab521a40b37a504c52
6565

66-
clone git github.com/MSOpenTech/azure-sdk-for-go 457e677b69de60016b2cbf3fb7aa41a923ab0e63
66+
clone git github.com/MSOpenTech/azure-sdk-for-go 814812a21a49da38c5cc808ec0958277e33c81d3
6767

6868
# get Go tip's archive/tar, for xattr support and improved performance
6969
# TODO after Go 1.4 drops, bump our minimum supported version and drop this vendored dep

hosts/drivers/azure/azure.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ func (driver *Driver) Create() error {
192192
return err
193193
}
194194

195+
log.Infof("Creating Azure host...")
195196
vmConfig, err := vmClient.CreateAzureVMConfiguration(driver.Name, driver.Size, driver.Image, driver.Location)
196197
if err != nil {
197198
return err
@@ -439,7 +440,7 @@ func (driver *Driver) waitForSSH() error {
439440
}
440441

441442
func (driver *Driver) waitForDocker() error {
442-
log.Infof("Waiting for docker daemon on host to be available")
443+
log.Infof("Waiting for docker daemon on host to be available...")
443444
maxRepeats := 48
444445
url := fmt.Sprintf("%s:%v", driver.Name+".cloudapp.net", driver.DockerPort)
445446
success := waitForDockerEndpoint(url, maxRepeats)
@@ -452,7 +453,6 @@ func (driver *Driver) waitForDocker() error {
452453
func waitForDockerEndpoint(url string, maxRepeats int) bool {
453454
counter := 0
454455
for {
455-
fmt.Print(".")
456456
conn, err := net.Dial("tcp", url)
457457
if err != nil {
458458
time.Sleep(10 * time.Second)

vendor/src/github.com/MSOpenTech/azure-sdk-for-go/clients/vmClient/vmClient.go

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,6 @@ func CreateAzureVM(azureVMConfiguration *Role, dnsName, location string) error {
5959
return fmt.Errorf(azure.ParamNotSpecifiedError, "location")
6060
}
6161

62-
fmt.Println("Creating hosted service... ")
63-
6462
err := verifyDNSname(dnsName)
6563
if err != nil {
6664
return err
@@ -74,17 +72,13 @@ func CreateAzureVM(azureVMConfiguration *Role, dnsName, location string) error {
7472
azure.WaitAsyncOperation(requestId)
7573

7674
if azureVMConfiguration.UseCertAuth {
77-
fmt.Println("Uploading cert...")
78-
7975
err = uploadServiceCert(dnsName, azureVMConfiguration.CertPath)
8076
if err != nil {
8177
DeleteHostedService(dnsName)
8278
return err
8379
}
8480
}
8581

86-
fmt.Println("Deploying azure VM configuration... ")
87-
8882
vMDeployment := createVMDeploymentConfig(azureVMConfiguration)
8983
vMDeploymentBytes, err := xml.Marshal(vMDeployment)
9084
if err != nil {
@@ -204,8 +198,6 @@ func CreateAzureVMConfiguration(dnsName, instanceSize, imageName, location strin
204198
return nil, fmt.Errorf(azure.ParamNotSpecifiedError, "location")
205199
}
206200

207-
fmt.Println("Creating azure VM configuration... ")
208-
209201
err := verifyDNSname(dnsName)
210202
if err != nil {
211203
return nil, err
@@ -237,8 +229,6 @@ func AddAzureLinuxProvisioningConfig(azureVMConfiguration *Role, userName, passw
237229
return nil, fmt.Errorf(azure.ParamNotSpecifiedError, "userName")
238230
}
239231

240-
fmt.Println("Adding azure provisioning configuration... ")
241-
242232
configurationSets := ConfigurationSets{}
243233
provisioningConfig, err := createLinuxProvisioningConfig(azureVMConfiguration.RoleName, userName, password, certPath)
244234
if err != nil {
@@ -281,8 +271,6 @@ func SetAzureVMExtension(azureVMConfiguration *Role, name string, publisher stri
281271
return nil, fmt.Errorf(azure.ParamNotSpecifiedError, "referenceName")
282272
}
283273

284-
fmt.Printf("Setting azure VM extension: %s... \n", name)
285-
286274
extension := ResourceExtensionReference{}
287275
extension.Name = name
288276
extension.Publisher = publisher

0 commit comments

Comments
 (0)