Skip to content

Deletion of Mapping does not actually delete it #12

@cn-mayank

Description

@cn-mayank

I created a mapping, did a telnet to the service and used escape character to quit the telnet connection.
After that when i tried to delete the mapping, the kubectl returned message that successfully deleted but I could still get/describe the mapping in next kubectl command.
Logs on smartNat service showed following error message:

Jun 10 14:22:05 aurea-dvsp-smartnat-5 smartnat-manager[3614]: time="2019-06-10T14:22:05Z" level=debug msg="Starting
 to delete system configuration" name=mapping-sample9 namespace=devspaces-deploy-dev type=Mapping
Jun 10 14:22:05 aurea-dvsp-smartnat-5 smartnat-manager[3614]: time="2019-06-10T14:22:05Z" level=debug msg="Starting
 to delete DNAT rules" name=mapping-sample9 namespace=devspaces-deploy-dev type=Mapping
Jun 10 14:22:05 aurea-dvsp-smartnat-5 smartnat-manager[3614]: time="2019-06-10T14:22:05Z" level=debug msg="Starting
 to delete per-service DNAT with chain name MAP-WQVIHMDAZHKRBDJBYMBE3KFU" name=mapping-sample9 namespace=devspaces-
deploy-dev type=Mapping
Jun 10 14:22:05 aurea-dvsp-smartnat-5 smartnat-manager[3614]: time="2019-06-10T14:22:05Z" level=debug msg="Flushing
 chain MAP-WQVIHMDAZHKRBDJBYMBE3KFU" name=mapping-sample9 namespace=devspaces-deploy-dev type=Mapping
Jun 10 14:22:05 aurea-dvsp-smartnat-5 smartnat-manager[3614]: time="2019-06-10T14:22:05Z" level=debug msg="Executin
g iptables in table nat and chain MAP-WQVIHMDAZHKRBDJBYMBE3KFU; rule option -F, selector: , action: , comment: "
Jun 10 14:22:05 aurea-dvsp-smartnat-5 smartnat-manager[3614]: time="2019-06-10T14:22:05Z" level=debug msg="Destroyi
ng ipset DNAT-WQVIHMDAZHKRBDJBYMBE3KFU"
Jun 10 14:22:05 aurea-dvsp-smartnat-5 smartnat-manager[3614]: time="2019-06-10T14:22:05Z" level=debug msg="Error re
moving ipset DNAT-WQVIHMDAZHKRBDJBYMBE3KFU: exit status 1, stdErr: ipset v6.30: Set cannot be destroyed: it is in u
se by a kernel component\n"
Jun 10 14:22:05 aurea-dvsp-smartnat-5 smartnat-manager[3614]: time="2019-06-10T14:22:05Z" level=error msg="Error re
moving ipset DNAT-WQVIHMDAZHKRBDJBYMBE3KFU: exit status 1" name=mapping-sample9 namespace=devspaces-deploy-dev type
=Mapping
Jun 10 14:22:05 aurea-dvsp-smartnat-5 smartnat-manager[3614]: time="2019-06-10T14:22:05Z" level=error msg="Error de
leting DNAT: exit status 1" name=mapping-sample9 namespace=devspaces-deploy-dev type=Mapping
Jun 10 14:22:05 aurea-dvsp-smartnat-5 smartnat-manager[3614]: time="2019-06-10T14:22:05Z" level=warning msg="Failed
 to cleanup mapping from the operating system: &{%!c(*os.ProcessState=&{8187 256 0xc4202fc990}) [i p s e t   v 6 . 
3 0 :   S e t   c a n n o t   b e   d e s t r o y e d :   i t   i s   i n   u s e   b y   a   k e r n e l   c o m p
 o n e n t \n]}" name=mapping-sample9 namespace=devspaces-deploy-dev type=Mapping

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions