You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "Prasanna Santhanam (JIRA)" <ji...@apache.org> on 2013/06/10 09:13:19 UTC

[jira] [Commented] (CLOUDSTACK-2915) NPE when creating network ACL item

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

Prasanna Santhanam commented on CLOUDSTACK-2915:
------------------------------------------------

Seems we need to associate the aclid (derived from networkid) when creating a network ACL. If not specified this is derived from the network, but previously deployed networks will have aclid as NULL

mysql> select * from networks where uuid='228aa30b-a36d-460f-b2fe-3891040047bc'\G
*************************** 1. row ***************************
                   id: 209
                 name: Test Network
                 uuid: 228aa30b-a36d-460f-b2fe-3891040047bc
         display_text: Test Network
         traffic_type: Guest
broadcast_domain_type: Vlan
        broadcast_uri: vlan://104
              gateway: 10.1.1.1
                 cidr: 10.1.1.0/24
                 mode: Dhcp
  network_offering_id: 19
  physical_network_id: 200
       data_center_id: 1
            guru_name: ExternalGuestNetworkGuru
                state: Implemented
              related: 209
            domain_id: 1
           account_id: 7
                 dns1: NULL
                 dns2: NULL
            guru_data: NULL
           set_fields: 0
             acl_type: Account
       network_domain: cs7sandbox.simulator
       reservation_id: a2479c0b-f8ba-4d82-aebe-26aadb9a9379
           guest_type: Isolated
     restart_required: 0
              created: 2013-06-10 07:05:04
              removed: NULL
    specify_ip_ranges: 0
               vpc_id: 6
          ip6_gateway: NULL
             ip6_cidr: NULL
         network_cidr: NULL
      display_network: 1
       network_acl_id: NULL
1 row in set (0.00 sec)

                
> NPE when creating network ACL item
> ----------------------------------
>
>                 Key: CLOUDSTACK-2915
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-2915
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: Network Controller
>    Affects Versions: 4.2.0
>            Reporter: Prasanna Santhanam
>            Priority: Critical
>             Fix For: 4.2.0
>
>
> On creating a network ACL item following NPE is encountered and network ACL creation fails
> 2013-06-10 12:12:59,172 DEBUG [cloud.api.ApiServlet] (1886622491@qtp-675153853-10:null) ===START===  0:0:0:0:0:0:0:1%0 -- GET  networkid=84182b2d-52c0-4f47-bdf3-11df09cbd022&apiKey=tXflShMkw-k6smFTwQZ3Dq4MoyZNQzy2YqEU3STFIPdAEua9hSuLkldDG7AaJaYWKcaobhvMpLmk6v26X-j1fw&protocol=TCP&endport=2222&cidrlist=0.0.0.0%2F0&traffictype=Ingress&command=createNetworkACL&signature=MLJVyCeko3NydqcbEku833c9aOg%3D&action=Allow&startport=22&response=json
> 2013-06-10 12:12:59,194 ERROR [cloud.api.ApiServer] (1886622491@qtp-675153853-10:null) unhandled exception executing api command: createNetworkACL
> java.lang.NullPointerException
> 	at com.cloud.network.vpc.NetworkACLServiceImpl.createNetworkACLItem(NetworkACLServiceImpl.java:252)
> 	at org.apache.cloudstack.api.command.user.network.CreateNetworkACLCmd.create(CreateNetworkACLCmd.java:213)
> 	at com.cloud.api.ApiDispatcher.dispatchCreateCmd(ApiDispatcher.java:101)
> 	at com.cloud.api.ApiServer.queueCommand(ApiServer.java:475)
> 	at com.cloud.api.ApiServer.handleRequest(ApiServer.java:371)
> 	at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:304)
> 	at com.cloud.api.ApiServlet.doGet(ApiServlet.java:66)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
> 	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
> 	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:401)
> 	at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
> 	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
> 	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)
> 	at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450)
> 	at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
> 	at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
> 	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
> 	at org.mortbay.jetty.Server.handle(Server.java:326)
> 	at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
> 	at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:928)
> 	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549)
> 	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
> 	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
> 	at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:410)
> 	at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
> 2013-06-10 12:12:59,195 DEBUG [cloud.api.ApiServlet] (1886622491@qtp-675153853-10:null) ===END===  0:0:0:0:0:0:0:1%0 -- GET  networkid=84182b2d-52c0-4f47-bdf3-11df09cbd022&apiKey=tXflShMkw-k6smFTwQZ3Dq4MoyZNQzy2YqEU3STFIPdAEua9hSuLkldDG7AaJaYWKcaobhvMpLmk6v26X-j1fw&protocol=TCP&endport=2222&cidrlist=0.0.0.0%2F0&traffictype=Ingress&command=createNetworkACL&signature=MLJVyCeko3NydqcbEku833c9aOg%3D&action=Allow&startport=22&response=json

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira