Delete an existing router connection with "skmange"

25 views
Skip to first unread message

GABOR DOZSA

unread,
Jul 9, 2024, 10:50:38 AM7/9/24
to sku...@googlegroups.com

Hi,

 

I would like to delete an existing (tcp) connection with the “skmanage” utility but it always returns “ForbiddenStatus: Forbidden” error, even if I try to execute the command as “root” in the router container.

 

I can query the connections successfully:

=====

sh-5.1# skmanage query --type connection

[…]

{                        

    "name": "connection/10.244.120.104:3333",

    "identity": "933",

    "host": "10.244.120.104:3333",

    "role": "normal",                                        

    "protocol": "tcp",

    "dir": "out",                                            

    "container": "TcpAdaptor", 

    "sasl": "",        

    "isAuthenticated": false,

    "user": "",                                              

    "isEncrypted": false,    

    "properties": {     

      "qd.adaptor": "tcp"                                    

    },                                                       

    "sslSsf": 0,                                             

    "type": "io.skupper.router.connection",

    "ssl": false,                                            

    "opened": true,                                          

    "active": true,                                          

    "adminStatus": "enabled",                                

    "operStatus": "up",                                      

    "uptimeSeconds": 4770,                                   

    "lastDlvSeconds": 4770,                                  

    "enableProtocolTrace": false

  },

[…]
=====

 

But the delete attempt returns error:
=====

sh-5.1# skmanage delete --type connection --identity 933

ForbiddenStatus: Forbidden

=====

 

Is it possible to delete the connection with skmanage? If so, what would be the correct syntax?

 

Thanks,

-Gabor

Unless otherwise stated above:

International Business Machines, S.A.
Plaza Pablo Ruiz Picasso 11
Plantas 4a y 5a
28020 Madrid
Registro Mercantil de Madrid; Folio 1; Tomo 1525; Hoja M-28146
CIF A-28010791

Ganesh Murthy

unread,
Jul 17, 2024, 12:08:33 PM7/17/24
to Noe Luaces, sku...@googlegroups.com
Hi Gabor,
     You will need to set the adminStatus field on the connection to 'deleted' via an skmanage update command.
An example is available in the system_tests_tcp_adaptor.py here - https://github.com/skupperproject/skupper-router/blob/main/tests/system_tests_tcp_adaptor.py#L2202
Thanks.

On Wed, Jul 17, 2024 at 10:54 AM Noe Luaces <nlu...@redhat.com> wrote:
fyi, just in case you haven't seen this

--
You received this message because you are subscribed to the Google Groups "Skupper" group.
To unsubscribe from this group and stop receiving emails from it, send an email to skupper+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/skupper/SJ0PR15MB420191B36262891D5AC6F8DCE7DB2%40SJ0PR15MB4201.namprd15.prod.outlook.com.
Reply all
Reply to author
Forward
0 new messages