Skip to content

Usage records are not being created for L2 networks #3176

@borisstoyanov

Description

@borisstoyanov
ISSUE TYPE
  • Bug Report
COMPONENT NAME
Usage
CLOUDSTACK VERSION
4.11
CONFIGURATION
OS / ENVIRONMENT
SUMMARY

Created a 3 L2 networks and one isolated and let the usage job took place (deployed VMs in all of them). List usage records shows records for the isolated networks but not for the L2 ones..

STEPS TO REPRODUCE
1. Create a couple of L2 networks and deploy VMs in them
2. Let the usage job run
3. List the usage records 
EXPECTED RESULTS
I should see usage records for these networks
ACTUAL RESULTS
Instead no records shown
MariaDB [cloud]> select id,type,created,resource_id,offering_id from usage_event where type='NETWORK.OFFERING.ASSIGN';
+-----+-------------------------+---------------------+-------------+-------------+
| id  | type                    | created             | resource_id | offering_id |
+-----+-------------------------+---------------------+-------------+-------------+
|   5 | NETWORK.OFFERING.ASSIGN | 2019-02-04 11:11:45 |           3 |           8 |
|  19 | NETWORK.OFFERING.ASSIGN | 2019-02-04 11:15:16 |           5 |           8 |
|  41 | NETWORK.OFFERING.ASSIGN | 2019-02-04 11:26:13 |           7 |           8 |
|  60 | NETWORK.OFFERING.ASSIGN | 2019-02-04 11:35:28 |           9 |           8 |
|  74 | NETWORK.OFFERING.ASSIGN | 2019-02-04 11:37:34 |          11 |           8 |
|  88 | NETWORK.OFFERING.ASSIGN | 2019-02-04 11:39:27 |          13 |           8 |
| 100 | NETWORK.OFFERING.ASSIGN | 2019-02-04 11:41:34 |          15 |           8 |
| 114 | NETWORK.OFFERING.ASSIGN | 2019-02-04 11:46:50 |          17 |           8 |
| 130 | NETWORK.OFFERING.ASSIGN | 2019-02-04 11:51:43 |          19 |           8 |
| 141 | NETWORK.OFFERING.ASSIGN | 2019-02-04 11:53:50 |          21 |           8 |
| 147 | NETWORK.OFFERING.ASSIGN | 2019-02-04 11:55:16 |          21 |           8 |
| 159 | NETWORK.OFFERING.ASSIGN | 2019-02-04 11:58:31 |          23 |           8 |
| 173 | NETWORK.OFFERING.ASSIGN | 2019-02-04 12:28:57 |          25 |           8 |
| 191 | NETWORK.OFFERING.ASSIGN | 2019-02-04 12:40:54 |          27 |           8 |
| 211 | NETWORK.OFFERING.ASSIGN | 2019-02-12 11:10:57 |          32 |           8 |
| 215 | NETWORK.OFFERING.ASSIGN | 2019-02-12 11:19:06 |          34 |          14 |
| 219 | NETWORK.OFFERING.ASSIGN | 2019-02-12 11:25:40 |          35 |          14 |
| 221 | NETWORK.OFFERING.ASSIGN | 2019-02-12 11:48:02 |          31 |          14 |
+-----+-------------------------+---------------------+-------------+-------------+
18 rows in set (0.00 sec)

MariaDB [cloud]> select name from network_offerings where id=14;
+--------------------------+
| name                     |
+--------------------------+
| DefaultL2NetworkOffering |
+--------------------------+
1 row in set (0.00 sec)

MariaDB [cloud]> Ctrl-C -- exit!
Aborted
[root@ref-trl-915-v-M7-bstoyanov-mgmt1 ~]# cat test | grep name
      "name": "test-a-TestCreateVolume-ATVT7C-network",
      "name": "test-a-TestVolumes-test_01_create_volume-AZN10I-network",
      "name": "isolated",
      "name": "isolated",
      "name": "isolated",
      "name": "isolated",
      "name": "isolated",
      "name": "isolated",
      "name": "isolated",
      "name": "isolated",
      "name": "isolated",
      "name": "isolated",
      "name": "isolated",
      "name": "isolated",
      "name": "isolated",
      "name": "isolated",
      "name": "isolated",
      "name": "isolated",
      "name": "isolated",
      "name": "isolated",
      "name": "isolated",
      "name": "isolated",
      "name": "isolated",
      "name": "isolated",
      "name": "isolated",
      "name": "isolated",

Please note that in my test file I've listed all usage records for type 4 in the time period.
test.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions