Uploaded image for project: 'neutron'
  1. neutron
  2. NEUTRON-71

Valid remote-ip-prefix (e.g. 192.168.50.0/24) sent by neutron security-group-rule-create is not accepted by Neutron northbound API

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • None
    • stable/lithium
    • northbound-api
    • None
    • Operating System: All
      Platform: All

    • 4363

      Related log messages:

      2015-09-25 16:27:33,090 | TRACE | tp932741097-3022 | NeutronSecurityRuleAware | 314 - org.opendaylight.groupbasedpolicy.neutron-mapper - 0.2.2.SNAPSHOT | canCreateNeutronSecurityRule - NeutronSecurityRule

      {securityRuleUUID='c77016a8-10ac-4f5d-854e-cb3ae4c58397', securityRuleDirection='ingress', securityRuleProtocol='tcp', securityRulePortMin=20202, securityRulePortMax=20208, securityRuleEthertype='IPv4', securityRuleRemoteIpPrefix='192.168.50.0/24', securityRemoteGroupID=null, securityRuleGroupID='5a816afa-fa86-4575-849c-54cc7e74c247', securityRuleTenantID='60b166c6-a167-4094-a717-149b4ee46413'}

      2015-09-25 16:27:33,091 | ERROR | tp932741097-3022 | ContainerResponse | 217 - com.sun.jersey.jersey-server - 1.17.0 | The RuntimeException could not be mapped to a response, re-throwing to the HTTP container
      java.lang.IllegalArgumentException: Cannot create IpAddress from 192.168.50.0/24
      at org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev100924.IpAddressBuilder.getDefaultInstance(IpAddressBuilder.java:41)
      at org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev100924.IpAddress.<init>(IpAddress.java:40)
      at org.opendaylight.neutron.transcriber.NeutronSecurityRuleInterface.toMd(NeutronSecurityRuleInterface.java:198)
      at org.opendaylight.neutron.transcriber.NeutronSecurityRuleInterface.toMd(NeutronSecurityRuleInterface.java:38)
      at org.opendaylight.neutron.transcriber.AbstractNeutronInterface.addMd(AbstractNeutronInterface.java:47)
      at org.opendaylight.neutron.transcriber.NeutronSecurityRuleInterface.addNeutronSecurityRule(NeutronSecurityRuleInterface.java:137)
      at org.opendaylight.neutron.northbound.api.NeutronSecurityRulesNorthbound.createSecurityRules(NeutronSecurityRulesNorthbound.java:229)[243:org.opendaylight.neutron.northbound-api:0.5.2.SNAPSHOT]
      (...)

            Unassigned Unassigned
            peter.palmar@pantheon.sk Peter Palmar
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: