Bug 1406711 - GNS3 server reply method not found
GNS3 server reply method not found
Status: ASSIGNED
Product: Fedora
Classification: Fedora
Component: gns3-server (Show other bugs)
25
All Unspecified
unspecified Severity high
: ---
: ---
Assigned To: Athmane Madjoudj
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2016-12-21 04:56 EST by Julien Duponchelle
Modified: 2016-12-21 13:59 EST (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Julien Duponchelle 2016-12-21 04:56:18 EST
Description of problem:
The GNS3 server is not working


Version-Release number of selected component (if applicable):
gns3 1.5.1

How reproducible: Always


Steps to Reproduce:
1. Start gns3server
2. Open a browser to http://localhost:3080

Actual results:
You get an error method not allowed


Expected results:
GNS3 informations pages

Additional info:
The problem is related to aiohttp. The version 1.5.1 of GNS3 doesn't support aiohttp 0.22. 

An 1.5.3 of GNS3 will be released in the coming weeks with support for aiohttp 1.2 (but it doesn't support aiohttp < 1.2)
Comment 1 Julien Duponchelle 2016-12-21 05:02:20 EST
Temporary fix:
sudo pip3 install aiohttp==0.21.5
Comment 2 Athmane Madjoudj 2016-12-21 13:59:33 EST
I have 1.5.2 which is in testing repo, while response to GET http://127.0.0.1:3080/ is HTTP/1.1 405 Method Not Allowed, it seems to work correctly, here's an output from gns3,  python3-aiohttp is 1.0.5


2016-12-21 19:54:34 INFO http_client.py:421 Connection to http://127.0.0.1:3080
2016-12-21 19:54:34 DEBUG http_client.py:576 GET http://127.0.0.1:3080/v1/version {}
2016-12-21 19:54:34 DEBUG http_client.py:711 Decoding response from http://Hr1ASjH6L8QEQgQVm4YosITX6Q1SL1IZbqZy3KRVGMvIiuOkP9T3tOiD7AWbZsKL@127.0.0.1:3080/v1/version response 2
00
2016-12-21 19:54:34 DEBUG http_client.py:718 {
    "local": true,  
    "version": "1.5.2"
}
2016-12-21 19:54:34 DEBUG http_client.py:576 POST http://127.0.0.1:3080/v1/projects {'name': 'unsaved', 'temporary': True, 'project_id': None, 'path': None}
2016-12-21 19:54:34 DEBUG http_client.py:711 Decoding response from http://Hr1ASjH6L8QEQgQVm4YosITX6Q1SL1IZbqZy3KRVGMvIiuOkP9T3tOiD7AWbZsKL@127.0.0.1:3080/v1/projects response 
201
2016-12-21 19:54:34 DEBUG http_client.py:718 {
    "location": "/home/athmane/GNS3/projects",
    "name": "unsaved",
    "path": "/home/athmane/GNS3/projects/c710f714-6430-49b4-b691-3376166af1eb",
    "project_id": "c710f714-6430-49b4-b691-3376166af1eb",
    "temporary": true
}
2016-12-21 19:54:34 INFO project.py:299 Server project path is /home/athmane/GNS3/projects/c710f714-6430-49b4-b691-3376166af1eb
2016-12-21 19:54:34 DEBUG http_client.py:576 GET http://127.0.0.1:3080/v1/projects/c710f714-6430-49b4-b691-3376166af1eb/notifications {}
2016-12-21 19:54:34 DEBUG http_client.py:576 POST http://127.0.0.1:3080/v1/projects/c710f714-6430-49b4-b691-3376166af1eb/dynamips/vms {'startup_config_content': '!\nservice tim
estamps debug datetime msec\nservice timestamps log datetime msec\nno service password-encryption\n!\nhostname %h\n!\nip cef\nno ip domain-lookup\nno ip icmp rate-limit unreach
able\nip tcp synwait 5\nno cdp log mismatch duplex\n!\nline con 0\n exec-timeout 0 0\n logging synchronous\n privilege level 15\n no login\nline aux 0\n exec-timeout 0 0\n logg
ing synchronous\n privilege level 15\n no login\n!\n!\nend\n', 'idlesleep': 30, 'auto_delete_disks': True, 'system_id': 'FTX0945W0MY', 'iomem': 5, 'nvram': 256, 'slot0': 'GT961
00-FE', 'disk0': 0, 'mmap': True, 'sparsemem': True, 'platform': 'c3745', 'exec_area': 64, 'idlepc': '0x60a81124', 'idlemax': 500, 'ram': 256, 'image': 'c3745-advipservicesk9-m
z.124-25d.bin', 'name': 'R1', 'disk1': 0}
2016-12-21 19:54:34 DEBUG project.py:385 Event received: {'event': {'memory_usage_percent': 25.0, 'cpu_usage_percent': 9.3}, 'action': 'ping'}
2016-12-21 19:54:34 DEBUG http_client.py:711 Decoding response from http://Hr1ASjH6L8QEQgQVm4YosITX6Q1SL1IZbqZy3KRVGMvIiuOkP9T3tOiD7AWbZsKL@127.0.0.1:3080/v1/projects/c710f714-
6430-49b4-b691-3376166af1eb/dynamips/vms response 201
2016-12-21 19:54:34 DEBUG http_client.py:718 {
    "auto_delete_disks": true,
    "aux": null,
    "clock_divisor": 8,
    "console": 5000,
    "disk0": 0,
    "disk1": 0,
    "dynamips_id": 1,

Note You need to log in before you can comment on or make changes to this bug.