Uploaded image for project: 'CloudStack'
  1. CloudStack
  2. CLOUDSTACK-8328

NPE while deleteing instance which has custom compute offering

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Critical
    • Resolution: Unresolved
    • 4.4.2
    • 4.5.1
    • None
    • Security Level: Public (Anyone can view this level - this is the default.)
    • None

    Description

      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?

      Attachments

        Activity

          People

            aprateek Abhinandan Prateek
            sonaliJ Sonali Jadhav
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: