[jira] [Created] (CLOUDSTACK-9809) No Usageid in Volume Usagerecords when detached

2017-03-01 Thread Alexander Stock (JIRA)
Alexander Stock created CLOUDSTACK-9809:
---

 Summary: No Usageid in Volume Usagerecords when detached
 Key: CLOUDSTACK-9809
 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9809
 Project: CloudStack
  Issue Type: Bug
  Security Level: Public (Anyone can view this level - this is the default.)
  Components: Usage
Affects Versions: 4.9.0
Reporter: Alexander Stock
 Fix For: Future


Hi,

we discovered some strange behavior with the creation of UsageRecords of 
Volumes which are not attached to a VM. 
There is no  UsageID(UUID of Volume) or the name of the Volume in the records. 

I don't know if this is a bug or if there was some reason for this but for 
billing of these Volumes it would be nice to have these values available.

BR
Alexander



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


[jira] [Created] (CLOUDSTACK-9845) [Usage] Usage Records getting created for already deleted Volumes

2017-03-21 Thread Alexander Stock (JIRA)
Alexander Stock created CLOUDSTACK-9845:
---

 Summary: [Usage] Usage Records getting created for already deleted 
Volumes 
 Key: CLOUDSTACK-9845
 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9845
 Project: CloudStack
  Issue Type: Bug
  Security Level: Public (Anyone can view this level - this is the default.)
  Components: Usage
Affects Versions: 4.9.2.0
Reporter: Alexander Stock


Hi,

today we found some strange records in our Usage Database.
We habe usagerecords of volumes which were already deleted (some of them 2 
years ago.

Database entry of volume:

id: 593
account_id: 89
domain_id: 9
pool_id: NULL
last_pool_id: NULL
instance_id: 483
device_id: 0
name: ROOT-483
uuid: 6a415648-a3c2-4e4c-a956-9fb74c16d251
size: 5368709120
folder: NULL
path: NULL
pod_id: NULL
data_center_id: 2
iscsi_name: NULL
host_ip: NULL
volume_type: ROOT
pool_type: NULL
disk_offering_id: 39
template_id: 266
first_snapshot_backup_uuid: NULL
recreatable: 0
created: 2014-06-17 11:12:53
attached: NULL
updated: 2014-06-17 11:12:53
removed: 2014-06-17 11:12:53
state: Destroy
chain_info: NULL
update_count: 1
disk_type: NULL
vm_snapshot_chain_size: NULL
iso_id: NULL
display_volume: 1
format: QCOW2
min_iops: NULL
max_iops: NULL
hv_ss_reserve: NULL
provisioning_type: thin


Usage Record from this year:

  "description": "Volume Id: 593 usage time",
  "domainid": "42541338-8704-4a6d-8b45-7f7eb2996e06",
  "enddate": "2017-03-20'T'23:59:59+00:00",
  "project": "*",
  "projectid": "61b4c398-6320-4867-b6f2-05611d879675",
  "rawusage": "24",
  "size": 5368709120,
  "startdate": "2017-03-20'T'00:00:00+00:00",
  "usage": "24 Hrs",
  "usageid": "6a415648-a3c2-4e4c-a956-9fb74c16d251",
  "usagetype": 6,
  "zoneid": "10992277-e637-4795-ab02-be57cca0c66a"

Can please somebody take a look here.

BR
Alexander



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