[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-9657?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15882107#comment-15882107
 ] 

ASF GitHub Bot commented on CLOUDSTACK-9657:
--------------------------------------------

Github user kishankavala commented on a diff in the pull request:

    https://github.com/apache/cloudstack/pull/1824#discussion_r101981147
  
    --- Diff: scripts/vm/hypervisor/xenserver/vmops ---
    @@ -232,28 +233,50 @@ def deleteFile(session, args):
     
         return txt
     
    +#using all the iptables chain names length to 24 because cleanup_rules 
groups the vm chain excluding -def,-eg
    +#to avoid multiple iptables chains for single vm there using length 24
     def chain_name(vm_name):
         if vm_name.startswith('i-') or vm_name.startswith('r-'):
             if vm_name.endswith('untagged'):
                 return '-'.join(vm_name.split('-')[:-1])
         if len(vm_name) > 28:
    -        vm_name = vm_name[0:27]
    +        vm_name = vm_name[0:24]
         return vm_name
     
     def chain_name_def(vm_name):
    +    #iptables chain length max is 29 chars
    +    if len(vm_name) > 28:
    --- End diff --
    
    Check should be > 25, "-def" is suffixed


> Ipset command fails for VM's with long internal name
> ----------------------------------------------------
>
>                 Key: CLOUDSTACK-9657
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9657
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the 
> default.) 
>            Reporter: Jayapal Reddy
>            Assignee: Jayapal Reddy
>             Fix For: 4.9.1.0
>
>
> ipset rules configuration in security groups is failing for the VM with 
> longer name 
> ipset -N 11111222223333344444555556666677 nethash
> ipset v6.11: Syntax error: setname '11111222223333344444555556666677' is 
> longer than 31 characters



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to