borisstoyanov opened a new issue #3176: Usage records are not being created for 
L2 networks
URL: https://github.com/apache/cloudstack/issues/3176
 
 
   <!--
   Verify first that your issue/request is not already reported on GitHub.
   Also test if the latest release and master branch are affected too.
   Always add information AFTER of these HTML comments, but no need to delete 
the comments.
   -->
   
   ##### ISSUE TYPE
   <!-- Pick one below and delete the rest -->
    * Bug Report
   
   ##### COMPONENT NAME
   <!--
   Categorize the issue, e.g. API, VR, VPN, UI, etc.
   -->
   ~~~
   Usage
   ~~~
   
   ##### CLOUDSTACK VERSION
   <!--
   New line separated list of affected versions, commit ID for issues on master 
branch.
   -->
   
   ~~~
   4.11
   ~~~
   
   ##### CONFIGURATION
   <!--
   Information about the configuration if relevant, e.g. basic network, 
advanced networking, etc.  N/A otherwise
   -->
   
   
   ##### OS / ENVIRONMENT
   <!--
   Information about the environment if relevant, N/A otherwise
   -->
   
   
   ##### SUMMARY
   <!-- Explain the problem/feature briefly -->
   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
   <!--
   For bugs, show exactly how to reproduce the problem, using a minimal 
test-case. Use Screenshots if accurate.
   
   For new features, show how the feature would be used.
   -->
   
   <!-- Paste example playbooks or commands between quotes below -->
   ~~~
   1. Create a couple of L2 networks and deploy VMs in them
   2. Let the usage job run
   3. List the usage records 
   ~~~
   
   <!-- You can also paste gist.github.com links for larger files -->
   
   ##### EXPECTED RESULTS
   <!-- What did you expect to happen when running the steps above? -->
   
   ~~~
   I should see usage records for these networks
   ~~~
   
   ##### ACTUAL RESULTS
   <!-- What actually happened? -->
   
   <!-- Paste verbatim command output between quotes below -->
   ~~~
   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](https://github.com/apache/cloudstack/files/2860653/test.log)
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to