aibor / marmoset

Simple HTTP API for managing stuff on libvirt hosts
GNU Affero General Public License v3.0
4 stars 4 forks source link

404 on any route #2

Closed bastelfreak closed 9 years ago

bastelfreak commented 9 years ago

Hi, my config:

[Modules]
PXE: True
VM: False

[Webserver]
Username: admin
Password: secret
BasicRealm: marmoset
Host: 10.30.7.40
Port: 8080
ServerName: dhcp01.aweso.me
Debug: True

[Libvirt]
URI: qemu:///system
XMLTemplateDirectory: 
Network:
Storage: 

[PXEConfig]
ConfigDirectory: /srv/tftp/pxelinux.cfg/

[PXELabel]
rescue: setpwhash
  1. API call:
curl -u admin:secret http://10.30.7.40:8080/v1/pxe/10.10.1.1

Output:

{
  "message": "Route not found.",
  "status": 404
}
  1. API call:
curl -u admin:secret http://10.30.7.40:8080/v1/pxe/

Output:

{
  "message": "Route not found.",
  "status": 404
}

I'm running the latest version of marmoset, flask version is:

local/python-flask 0.10.1-6
    Micro webdevelopment framework for Python
local/python-flask-restful 0.3.4-3
    A Flask extension for creating REST APIs

Marmoset output in debug mode:

10.30.7.40 - - [26/Oct/2015 15:46:59] "GET /v1/pxe/ HTTP/1.1" 404 -

Do you've got any clue what is broken here?

aibor commented 9 years ago

You have never created an PXE entry for this IP. See the README for how to create PXE entries.

akashtalole commented 6 years ago

Same error is coming. curl -u admin:secret http://localhost:5000/v1/pxe/ { "message": "Route not found.", "status": 404 }

bastelfreak commented 6 years ago

Hi @akashtalole, the used URL isn't correct, do not add a trailing /.

akashtalole commented 6 years ago

Thanks its working.