You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "Sonali Jadhav (JIRA)" <ji...@apache.org> on 2015/04/08 08:28:12 UTC

[jira] [Commented] (CLOUDSTACK-8328) NPE while deleteing instance which has custom compute offering

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

Sonali Jadhav commented on CLOUDSTACK-8328:
-------------------------------------------

is it possible to get it fixed is 4.5.1 ?

> NPE while deleteing instance which has custom compute offering
> --------------------------------------------------------------
>
>                 Key: CLOUDSTACK-8328
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-8328
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>    Affects Versions: 4.4.2
>            Reporter: Sonali Jadhav
>            Assignee: Abhinandan Prateek
>            Priority: Critical
>
> I was trying to remove nic of a instance, which had two nics. I was unable to delete one nic, and i got this NPE. Here are logs http://pastebin.com/j1rfEq5s 
> mysql> select  service_offering_id, id from vm_instance where instance_name="i-9-24-VM" \G
>                        id: 24
>       service_offering_id: 14
> > mysql> select * from nics where instance_id=24 \G
> > *************************** 1. row ***************************
> >             id: 60
> >           uuid: 99378e9f-ba64-4c76-ac16-d9ac977d979f
> >    instance_id: 24
> >    mac_address: 06:by:bg:00:01:33
> >    ip4_address: 1.1.1.1
> >        netmask: 255.255.0.0
> >        gateway: 1.1.1.1
> >        ip_type: Ip4
> >  broadcast_uri: vlan://201
> >     network_id: 207
> >           mode: Dhcp
> >          state: Allocated
> >       strategy: Create
> >  reserver_name: DirectNetworkGuru
> > reservation_id: NULL
> >      device_id: 1
> >    update_time: 2015-02-23 07:25:40
> >  isolation_uri: vlan://201
> >    ip6_address: NULL
> >    default_nic: 0
> >        vm_type: User
> >        created: 2015-02-20 11:24:26
> >        removed: NULL
> >    ip6_gateway: NULL
> >       ip6_cidr: NULL
> >   secondary_ip: 0
> >    display_nic: 1
> > *************************** 2. row ***************************
> >             id: 61
> >           uuid: 42178ae9-1c4c-43be-8a05-5d6259ee9ee4
> >    instance_id: 24
> >    mac_address: 02:00:3f:a4:00:01
> >    ip4_address: 10.1.1.14
> >        netmask: 255.255.255.0
> >        gateway: 10.1.1.1
> >        ip_type: Ip4
> >  broadcast_uri: NULL
> >     network_id: 211
> >           mode: Dhcp
> >          state: Allocated
> >       strategy: Start
> >  reserver_name: ExternalGuestNetworkGuru
> > reservation_id: c59c1ead-fd98-4822-b7bb-71124fbf0018
> >      device_id: 0
> >    update_time: 2015-02-23 07:25:41
> >  isolation_uri: NULL
> >    ip6_address: NULL
> >    default_nic: 1
> >        vm_type: User
> >        created: 2015-02-20 13:21:07
> >        removed: NULL
> >    ip6_gateway: NULL
> >       ip6_cidr: NULL
> >   secondary_ip: 0
> >    display_nic: 1
> > 2 rows in set (0.00 sec)
> >
> > mysql>
> So as per NPE this is causing problem,
> mysql> select ram_size from service_offering where id=14;
> +----------+
> | ram_size |
> +----------+
> |     NULL |
> +----------+
> 1 row in set (0.00 sec)
> But I checked that, service_offering where id=14, is nothing but "Custom" compute offering I created. That’s why ram_size value is set to NULL.  So basically I cant/don’t want to change value of ram_size service offering, Is this bug? 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)