Skip to content

add IDns to New-Nic #536

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jul 10, 2015
Merged

add IDns to New-Nic #536

merged 3 commits into from
Jul 10, 2015

Conversation

DeepakRajendranMsft
Copy link
Contributor

Update network package
dnssettings -> networkinterfaceDnsSettings
enable Idns on networkinterface
Test location had to be hardcoded because Idns is enabled only 1 region. have an RDbug to change in the future

@azurecla
Copy link

Hi @DeepakRajendranMsft, I'm your friendly neighborhood Azure Pull Request Bot (You can call me AZPRBOT). Thanks for your contribution!
You've already signed the contribution license agreement. Thanks!
We will now validate the agreement and then real humans will evaluate your PR.

TTYL, AZPRBOT;

@hovsepm
Copy link
Contributor

hovsepm commented Jun 26, 2015

Please address Ogail's comments:

"Network mocked tests are taking ~23 sec to execute and as you know these are just mocked tests which should be executed in microsecs, could u please try to reduce the time? Here are some hints:

  • Verify no hard coded timeouts in the code/test script
  • Verify that MAML client's property DefaultLongRunningOperationTimeout and RetryTimeout are set to 0

Cheers,
Ogail
"

@DeepakRajendranMsft
Copy link
Contributor Author

working on it.

@DeepakRajendranMsft
Copy link
Contributor Author

I looked at this, and we dont have any hard coded timeouts in the tests. The tests take similar time for compute.tests as well.
Regarding the client, the MAML tests seem to be quicker (meaning the default configuration should be fine right?). I am not changing the configuration of the client in the PS tests.

For example:https://github.com/Azure/hydra-specs-pr/blob/master/Network2/Microsoft.Azure.Management.Network.Specification/NetworkResourceProvider/PublicIpAddress/PublicIpAddressOperations.Put.cs

[LongRunningOperation("BeginCreateOrUpdating", typeof(Models.OperationStatus), 30, 15,
DerivedInitialDelayInSeconds = "{$beginResponse.RetryAfter}",
DerivedRetryDelayInSeconds = "{$result.RetryAfter}", RequestIdName = "AzureAsyncOperation",
ThrowOnError = true, OperationStatusName = "GetLongRunningOperationStatus")]

is there anything wrong with this configuration.

The network tests make multiple calls to service (each PUT in itself has 3 calls Get, Put and Get). I am wondering if the sheer size of the mocked json files is affecting the time taken.

I also tried profiling the tests but it only tells me that powershell.Invoke is the major consumer.

Could we deal with the time taken for compute and network tests offline?

@ogail
Copy link
Contributor

ogail commented Jul 7, 2015

@DeepakRajendranMsft have u tried to change LongRunningOperationDefaultTimeout to 0?

@DeepakRajendranMsft
Copy link
Contributor Author

@ogail where do we set this property "LongRunningOperationDefaultTimeout"?

I can only see
public LongRunningOperation(string operation, Type operationStatusType, int initialDelayInSeconds, int retryDelayInSeconds);

I couldnt find it in any of the hydra specs either

@DeepakRajendranMsft
Copy link
Contributor Author

@ogail ping...

Ogail, since this is not a regression, could we work on improving the timing after the release?

ogail added a commit that referenced this pull request Jul 10, 2015
@ogail ogail merged commit 0bfed89 into Azure:dev Jul 10, 2015
@DeepakRajendranMsft DeepakRajendranMsft deleted the IdnsOnNic branch July 13, 2015 21:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants