OpenIxia / IxNetwork

A central location for IxNetwork sample scripts and utilities. Please also visit http://openixia.com
MIT License
50 stars 59 forks source link

API server fails to assign port #65

Closed pwlodawi closed 5 years ago

pwlodawi commented 5 years ago

Assigning port to Linux API server session fails with error "Port Statistics for assigned ports not ready after 90 seconds.\nThe following ports are down: /vport:1 "

Here is my code: https://gist.github.com/pwlodawi/7d1c7512e1bc8e1f3f1a615214371ec8 here is log https://gist.github.com/pwlodawi/1f087f1db23b631f17f64667883279cd

I'm using: ixnetwork-restpy version 1.0.32 API server: Application Version: 8.52.2.34 IxNetwork API Server Version: 8.52.2.3

Best Regards,

hubertgee commented 5 years ago

Your line is incorrect: new_vport = ixn.Vport.find().add(Name='My port 3/2')

It should be: new_vport = ixn.Vport.add(Name='My port 3/2')

Hubert

From: pw notifications@github.com Reply-To: OpenIxia/IxNetwork reply@reply.github.com Date: Wednesday, June 19, 2019 at 5:03 AM To: OpenIxia/IxNetwork IxNetwork@noreply.github.com Cc: Subscribed subscribed@noreply.github.com Subject: [OpenIxia/IxNetwork] API server fails to assign port (#65)

[EXTERNAL]

Assigning port to Linux API server session fails with error "Port Statistics for assigned ports not ready after 90 seconds.\nThe following ports are down: /vport:1 "

Here is my code: https://gist.github.com/pwlodawi/7d1c7512e1bc8e1f3f1a615214371ec8https://nam05.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgist.github.com%2Fpwlodawi%2F7d1c7512e1bc8e1f3f1a615214371ec8&data=02%7C01%7C%7C8ad9c0be53dd406ee35108d6f4ae1d33%7C63545f2732324d74a44dcdd457063402%7C1%7C0%7C636965425982669673&sdata=oaAanCtfaJs%2FAoPkJnEZ5%2BoEnDYEqeGDV2vVfjq148w%3D&reserved=0 here is log https://gist.github.com/pwlodawi/1f087f1db23b631f17f64667883279cdhttps://nam05.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgist.github.com%2Fpwlodawi%2F1f087f1db23b631f17f64667883279cd&data=02%7C01%7C%7C8ad9c0be53dd406ee35108d6f4ae1d33%7C63545f2732324d74a44dcdd457063402%7C1%7C0%7C636965425982669673&sdata=Q8PfzF6EGecKtI8595oc9HBbMMeYTtLhr89tZhjOrb0%3D&reserved=0

Best Regards,

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://nam05.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FOpenIxia%2FIxNetwork%2Fissues%2F65%3Femail_source%3Dnotifications%26email_token%3DAINVQX47XLGNEW4WKQAQUMLP3IOAJA5CNFSM4HZI36BKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4G2MDSSQ&data=02%7C01%7C%7C8ad9c0be53dd406ee35108d6f4ae1d33%7C63545f2732324d74a44dcdd457063402%7C1%7C0%7C636965425982679685&sdata=SGjg5SIrR3y4cU%2BhTRIHCrXUrWhBqJXo2v%2B7ZrJL6Ds%3D&reserved=0, or mute the threadhttps://nam05.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAINVQXY7VHFVS537J7NFJ3TP3IOAJANCNFSM4HZI36BA&data=02%7C01%7C%7C8ad9c0be53dd406ee35108d6f4ae1d33%7C63545f2732324d74a44dcdd457063402%7C1%7C0%7C636965425982689694&sdata=aV2qQsyVKImqXfO5RiT9NuT%2F%2FleZcP%2F8gxLKRjzoi7U%3D&reserved=0.

pwlodawi commented 5 years ago

Removing find() changes nothing. ` ixn.NewConfig() new_vport = ixn.Vport.add(Name='My port 3/2')

ixn.AssignPorts([dict(Arg1='11.0.1.250', Arg2=3, Arg3=2)], [], [new_vport], True) `

Again the same error.

Log with find() removed: https://gist.github.com/pwlodawi/21ad49526b75b1d3be10fd7bd799ed40

therkong commented 5 years ago

Can you take a look at the ixNet API Browser? Are there any error? See below for example:

[cid:image001.png@01D5267E.2C61CF40] Regards,

Theresa Kong Senior Tech Support Engineer Keysight Technologies

From: pw notifications@github.com Sent: Wednesday, June 19, 2019 8:58 AM To: OpenIxia/IxNetwork IxNetwork@noreply.github.com Cc: Subscribed subscribed@noreply.github.com Subject: Re: [OpenIxia/IxNetwork] API server fails to assign port (#65)

[EXTERNAL]

Removing find() changes nothing. Again the same error.

Log with find() removed: https://gist.github.com/pwlodawi/21ad49526b75b1d3be10fd7bd799ed40https://nam05.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgist.github.com%2Fpwlodawi%2F21ad49526b75b1d3be10fd7bd799ed40&data=02%7C01%7C%7Cb384ef133f9f40dbc6c708d6f4cedc65%7C63545f2732324d74a44dcdd457063402%7C1%7C0%7C636965566631310618&sdata=DFjdwuM4Cet78i0FeeeSuAClBASMCjVmafroVm%2FNPDU%3D&reserved=0

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://nam05.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FOpenIxia%2FIxNetwork%2Fissues%2F65%3Femail_source%3Dnotifications%26email_token%3DAIRRUUPC2XPSFEKIS5OBLFLP3JJPJA5CNFSM4HZI36BKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYCKT3A%23issuecomment-503622124&data=02%7C01%7C%7Cb384ef133f9f40dbc6c708d6f4cedc65%7C63545f2732324d74a44dcdd457063402%7C1%7C0%7C636965566631320626&sdata=uAorm4JqB4zn3hcNXQFi20QHnyImq%2BKwGv76EeDFMB0%3D&reserved=0, or mute the threadhttps://nam05.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAIRRUUIYW6OQ2FXQCU6PKF3P3JJPJANCNFSM4HZI36BA&data=02%7C01%7C%7Cb384ef133f9f40dbc6c708d6f4cedc65%7C63545f2732324d74a44dcdd457063402%7C1%7C0%7C636965566631320626&sdata=4tG6IA%2B8VbYX85yKj3SmZu3iyZuvgESKvVRrFeEBmm0%3D&reserved=0.

pwlodawi commented 5 years ago

What example ?

pwlodawi commented 5 years ago

Error was caused by version mismatch between API server (8.52) and chassis (8.50-SP1).