[Fuego] Fuego v1.1 setup queries

Bird, Timothy Tim.Bird at sony.com
Mon Apr 10 19:33:57 UTC 2017



> -----Original Message-----
> From: dhinakar k on  Monday, April 10, 2017 12:21 PM
>
> After 'git pull' and getting the recent 1.1.0 version of ftc, I get the below error
> while trying to add nodes.
> 
> root at Ubuntu-RC510:/fuego-ro/boards# ftc add-nodes dhinakar docker
> Error in request. Possibly authentication failed [403]: Forbidden
> Usage: ftc add-nodes [-f] <board1> <board2> ...
>   By convention the name of the node and board is the same. Also,
>   the corresponding board file (<board_name>.board) must exist.
>   Use list-boards to see available boards.
> 
>   Use -f for "force" mode. This tries to remove the node before adding it
> 
> 
> '-f' option also give error (check below)
> 
> root at Ubuntu-RC510:/fuego-ro/boards# ftc add-nodes -f dhinakar
> dockerError in request. Possibly authentication failed [403]: Forbidden
> Usage: ftc add-nodes [-f] <board1> <board2> ...
>   By convention the name of the node and board is the same. Also,
>   the corresponding board file (<board_name>.board) must exist.
>   Use list-boards to see available boards.
> 
>   Use -f for "force" mode. This tries to remove the node before adding it
> 
> 
> ftc list-boards output is shown below,
> 
> root at Ubuntu-RC510:/fuego-ro/boards# ftc list-boards
> Boards in this system:
>    bbb
>    beaglebone-serial
>    dhinakar
>    docker
>    lager
>    qemu-arm
>    template-dev
> 
> 
> but ftc list-nodes output show error (as shown below)
> 
> root at Ubuntu-RC510:/fuego-ro/boards# ftc list-nodes
> Traceback (most recent call last):
>   File "/usr/local/bin/ftc", line 2982, in <module>
>     main()
>   File "/usr/local/bin/ftc", line 2868, in main
>     do_list_nodes(conf)
>   File "/usr/local/bin/ftc", line 1065, in do_list_nodes
>     node_list = [node['name'] for node in server.get_nodes()]
>   File "/usr/local/lib/python2.7/dist-packages/jenkins/__init__.py", line 1170,
> in get_nodes
>     nodes_data =
> json.loads(self.jenkins_open(Request(self._build_url(NODE_LIST))))
>   File "/usr/local/lib/python2.7/dist-packages/jenkins/__init__.py", line 430,
> in jenkins_open
>     self.maybe_add_crumb(req)
>   File "/usr/local/lib/python2.7/dist-packages/jenkins/__init__.py", line 303,
> in maybe_add_crumb
>     self._build_url(CRUMB_URL)), add_crumb=False)
>   File "/usr/local/lib/python2.7/dist-packages/jenkins/__init__.py", line 448,
> in jenkins_open
>     e.code, e.msg)
> jenkins.JenkinsException: Error in request. Possibly authentication failed
> [403]: Forbidden
>  
> Looks like when there are no new nodes initially this exception happens.
> 
> Please check and let me know.
> 
> 
> Note: Jenkins version shown in the Dashboard home page is 2.54. Could that
> be an issue?

It might be that, or it might be something to do with changing the port.
It looks like all remote Jenkins operations are failing, with the authentication
failure.  We default to using the 'anonymous' user in Jenkins (as run by Fuego).

One thing to check is whether you are talking to the correct Jenkins.
If I recall correctly, you have a different Jenkins running on port 8080, and
the Fuego Jenkins running on port 8081.  Is that correct?

If this is the case, can you edit the following line in ftc:

self.JENKINS_URL = "http://localhost:8080/fuego"
and change it to:
self.JENKINS_URL = "http://localhost:8081/fuego"

Let me know if that works.
 -- Tim




More information about the Fuego mailing list