2024-09-17 10:37:58,267 - INFO - Domain Default found not creating
2024-09-17 10:37:58,453 - INFO - Project ctest-TestBasicPolicy-05684815 not found, creating it
2024-09-17 10:37:58,971 - INFO - Created Project:ctest-TestBasicPolicy-05684815, ID : d0338d06-5d7d-448c-99f9-d661c929b846
2024-09-17 10:38:00,522 - INFO - ================================================================================
2024-09-17 10:38:00,522 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-09-17 10:38:00,523 - INFO - TEST DESCRIPTION :
Create 2 Vns and allow icmp traffic between them and validate with pings
Update the policy to deny the same traffic
Check that pings fail
2024-09-17 10:38:00,778 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.21': '0'}} with
2024-09-17 10:38:00,779 - INFO - Initial checks done. Running the testcase now
2024-09-17 10:38:00,779 - INFO -
2024-09-17 10:38:01,362 - DEBUG - Response for create_network : {'network': {'id': '334e109c-8631-4528-bc5e-2a85622d750c', 'name': 'ctest-vn-67290418', 'tenant_id': 'd0338d065d7d448c99f9d661c929b846', 'project_id': 'd0338d065d7d448c99f9d661c929b846', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-05684815', 'ctest-vn-67290418'], 'port_security_enabled': True, 'description': ''}}
2024-09-17 10:38:01,564 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b9e9049a-198c-403e-975d-90c4e7e59820', 'name': '', 'tenant_id': 'd0338d065d7d448c99f9d661c929b846', 'network_id': '334e109c-8631-4528-bc5e-2a85622d750c', 'ip_version': 4, 'cidr': '54.142.153.0/26', 'allocation_pools': [{'start': '54.142.153.2', 'end': '54.142.153.62'}], 'gateway_ip': '54.142.153.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '54.142.153.2', 'tags': [], 'project_id': 'd0338d065d7d448c99f9d661c929b846'}}
2024-09-17 10:38:01,589 - INFO - Created VN ctest-vn-67290418
2024-09-17 10:38:01,648 - DEBUG - VN ctest-vn-67290418 UUID is 334e109c-8631-4528-bc5e-2a85622d750c
2024-09-17 10:38:01,976 - DEBUG - Response for create_network : {'network': {'id': '4d9e6813-7d7b-4cde-a7e1-e24aaa9a06e5', 'name': 'ctest-vn-44990531', 'tenant_id': 'd0338d065d7d448c99f9d661c929b846', 'project_id': 'd0338d065d7d448c99f9d661c929b846', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-05684815', 'ctest-vn-44990531'], 'port_security_enabled': True, 'description': ''}}
2024-09-17 10:38:02,189 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c86f24a4-0f29-4f90-b747-551debcebedd', 'name': '', 'tenant_id': 'd0338d065d7d448c99f9d661c929b846', 'network_id': '4d9e6813-7d7b-4cde-a7e1-e24aaa9a06e5', 'ip_version': 4, 'cidr': '106.196.222.64/26', 'allocation_pools': [{'start': '106.196.222.66', 'end': '106.196.222.126'}], 'gateway_ip': '106.196.222.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '106.196.222.66', 'tags': [], 'project_id': 'd0338d065d7d448c99f9d661c929b846'}}
2024-09-17 10:38:02,211 - INFO - Created VN ctest-vn-44990531
2024-09-17 10:38:02,269 - DEBUG - VN ctest-vn-44990531 UUID is 4d9e6813-7d7b-4cde-a7e1-e24aaa9a06e5
2024-09-17 10:38:02,398 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-05684815:ctest-vn-67290418, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-05684815:ctest-vn-44990531, security_group = None, network_policy = None, subnet_list = []], dst_ports = [start_port = -1, end_port = -1], action_list = simple_action = pass, gateway_name = None, apply_service = [], service_properties = None, mirror_to = None, assign_routing_instance = None, log = False, alert = False, qos_action = None, host_based_service = False, ethertype = None, created = None, last_modified = None, description = None]
2024-09-17 10:38:02,722 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '334e109c-8631-4528-bc5e-2a85622d750c', 'name': 'ctest-vn-67290418', 'tenant_id': 'd0338d065d7d448c99f9d661c929b846', 'project_id': 'd0338d065d7d448c99f9d661c929b846', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b9e9049a-198c-403e-975d-90c4e7e59820'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-05684815', 'ctest-vn-67290418'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-05684815', 'ctest-policy-allow-all-72097399']], 'subnet_ipam': [{'subnet_cidr': '54.142.153.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-17 10:38:02,978 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4d9e6813-7d7b-4cde-a7e1-e24aaa9a06e5', 'name': 'ctest-vn-44990531', 'tenant_id': 'd0338d065d7d448c99f9d661c929b846', 'project_id': 'd0338d065d7d448c99f9d661c929b846', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c86f24a4-0f29-4f90-b747-551debcebedd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-05684815', 'ctest-vn-44990531'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-05684815', 'ctest-policy-allow-all-72097399']], 'subnet_ipam': [{'subnet_cidr': '106.196.222.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-17 10:38:03,161 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2024-09-17 10:38:03,478 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2024-09-17 10:38:03,510 - DEBUG - Requesting: http://10.0.0.33:8082/domain/b2642e4d-8548-4485-a2f2-01267c16b0cf
2024-09-17 10:38:03,526 - DEBUG - Requesting: http://10.0.0.33:8082/project/d0338d06-5d7d-448c-99f9-d661c929b846
2024-09-17 10:38:03,609 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/334e109c-8631-4528-bc5e-2a85622d750c
2024-09-17 10:38:03,627 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/334e109c-8631-4528-bc5e-2a85622d750c
2024-09-17 10:38:03,642 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/89ae6cf7-474c-4968-8ab0-13813f53476d
2024-09-17 10:38:03,652 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/89ae6cf7-474c-4968-8ab0-13813f53476d
2024-09-17 10:38:03,662 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/b132ee98-ee45-4859-8861-184bccbc2a87
2024-09-17 10:38:03,670 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-17 10:38:03,670 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/334e109c-8631-4528-bc5e-2a85622d750c
2024-09-17 10:38:03,684 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/89ae6cf7-474c-4968-8ab0-13813f53476d
2024-09-17 10:38:03,705 - INFO - Verified VN network id 8 for VN 334e109c-8631-4528-bc5e-2a85622d750c
2024-09-17 10:38:03,705 - INFO - Verifications in API Server for VN ctest-vn-67290418 passed
2024-09-17 10:38:03,705 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/334e109c-8631-4528-bc5e-2a85622d750c
2024-09-17 10:38:03,720 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/89ae6cf7-474c-4968-8ab0-13813f53476d
2024-09-17 10:38:03,729 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/89ae6cf7-474c-4968-8ab0-13813f53476d
2024-09-17 10:38:03,737 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/b132ee98-ee45-4859-8861-184bccbc2a87
2024-09-17 10:38:03,751 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-05684815:ctest-vn-67290418', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-05684815', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3696910608570074408', 'uuid-lslong': '13573333079307416844'}, 'enable': 'true', 'created': '2024-09-17T10:38:01', 'last-modified': '2024-09-17T10:38:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.056117'}
2024-09-17 10:38:03,758 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-17 10:38:03,758 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-67290418 passed
2024-09-17 10:38:03,758 - DEBUG - ====Verifying policy data for ctest-vn-67290418 in API_Server ======
2024-09-17 10:38:03,758 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2024-09-17 10:38:03,765 - DEBUG - Requesting: http://10.0.0.33:8082/domain/b2642e4d-8548-4485-a2f2-01267c16b0cf
2024-09-17 10:38:03,779 - DEBUG - Requesting: http://10.0.0.33:8082/project/d0338d06-5d7d-448c-99f9-d661c929b846
2024-09-17 10:38:03,864 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/334e109c-8631-4528-bc5e-2a85622d750c
2024-09-17 10:38:03,878 - DEBUG - ==>Verifying data for policy with id: 8550623f-257c-460a-b4e7-a8c5bd5fe5d6, fqn: ['default-domain', 'ctest-TestBasicPolicy-05684815', 'ctest-policy-allow-all-72097399']
2024-09-17 10:38:03,878 - INFO - VN ctest-vn-67290418 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-17 10:38:03,878 - DEBUG - Verifying the vn in opserver
2024-09-17 10:38:03,878 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-05684815:ctest-vn-67290418 virtual network link through opserver 10.0.0.33
2024-09-17 10:38:03,879 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2024-09-17 10:38:04,172 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2024-09-17 10:38:04,239 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-05684815:ctest-vn-67290418', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-05684815:ctest-vn-67290418?flat'}
2024-09-17 10:38:04,239 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-05684815:ctest-vn-67290418 is found in opserver
2024-09-17 10:38:04,250 - DEBUG - Do not have enough data to verify VN in agent
2024-09-17 10:38:04,255 - DEBUG - VRF ids for VN ctest-vn-67290418: {}
2024-09-17 10:38:04,256 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2024-09-17 10:38:04,262 - DEBUG - Requesting: http://10.0.0.33:8082/domain/b2642e4d-8548-4485-a2f2-01267c16b0cf
2024-09-17 10:38:04,276 - DEBUG - Requesting: http://10.0.0.33:8082/project/d0338d06-5d7d-448c-99f9-d661c929b846
2024-09-17 10:38:04,359 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/4d9e6813-7d7b-4cde-a7e1-e24aaa9a06e5
2024-09-17 10:38:04,376 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/4d9e6813-7d7b-4cde-a7e1-e24aaa9a06e5
2024-09-17 10:38:04,393 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/67a88b11-6737-47f3-a66a-6a0511e33b5e
2024-09-17 10:38:04,404 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/67a88b11-6737-47f3-a66a-6a0511e33b5e
2024-09-17 10:38:04,415 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/4ccc6dc2-60ae-4af1-9bb3-2dc259e9d2f6
2024-09-17 10:38:04,424 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-17 10:38:04,424 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/4d9e6813-7d7b-4cde-a7e1-e24aaa9a06e5
2024-09-17 10:38:04,440 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/67a88b11-6737-47f3-a66a-6a0511e33b5e
2024-09-17 10:38:04,478 - INFO - Verified VN network id 9 for VN 4d9e6813-7d7b-4cde-a7e1-e24aaa9a06e5
2024-09-17 10:38:04,479 - INFO - Verifications in API Server for VN ctest-vn-44990531 passed
2024-09-17 10:38:04,479 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/4d9e6813-7d7b-4cde-a7e1-e24aaa9a06e5
2024-09-17 10:38:04,508 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/67a88b11-6737-47f3-a66a-6a0511e33b5e
2024-09-17 10:38:04,518 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/67a88b11-6737-47f3-a66a-6a0511e33b5e
2024-09-17 10:38:04,527 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/4ccc6dc2-60ae-4af1-9bb3-2dc259e9d2f6
2024-09-17 10:38:04,542 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-05684815:ctest-vn-44990531', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-05684815', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5593022220159634654', 'uuid-lslong': '12097198884411541221'}, 'enable': 'true', 'created': '2024-09-17T10:38:01', 'last-modified': '2024-09-17T10:38:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.585555'}
2024-09-17 10:38:04,549 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-17 10:38:04,549 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-44990531 passed
2024-09-17 10:38:04,549 - DEBUG - ====Verifying policy data for ctest-vn-44990531 in API_Server ======
2024-09-17 10:38:04,549 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2024-09-17 10:38:04,555 - DEBUG - Requesting: http://10.0.0.33:8082/domain/b2642e4d-8548-4485-a2f2-01267c16b0cf
2024-09-17 10:38:04,568 - DEBUG - Requesting: http://10.0.0.33:8082/project/d0338d06-5d7d-448c-99f9-d661c929b846
2024-09-17 10:38:04,646 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/4d9e6813-7d7b-4cde-a7e1-e24aaa9a06e5
2024-09-17 10:38:04,660 - DEBUG - ==>Verifying data for policy with id: 8550623f-257c-460a-b4e7-a8c5bd5fe5d6, fqn: ['default-domain', 'ctest-TestBasicPolicy-05684815', 'ctest-policy-allow-all-72097399']
2024-09-17 10:38:04,660 - INFO - VN ctest-vn-44990531 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-17 10:38:04,660 - DEBUG - Verifying the vn in opserver
2024-09-17 10:38:04,660 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-05684815:ctest-vn-44990531 virtual network link through opserver 10.0.0.33
2024-09-17 10:38:04,660 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2024-09-17 10:38:04,672 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-05684815:ctest-vn-44990531', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-05684815:ctest-vn-44990531?flat'}
2024-09-17 10:38:04,672 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-05684815:ctest-vn-44990531 is found in opserver
2024-09-17 10:38:04,684 - DEBUG - Do not have enough data to verify VN in agent
2024-09-17 10:38:04,689 - DEBUG - VRF ids for VN ctest-vn-44990531: {}
2024-09-17 10:38:04,753 - DEBUG - Services list from nova: [