2025-04-22 12:41:48,445 - INFO - Domain Default found not creating
2025-04-22 12:41:48,659 - INFO - Project ctest-TestBasicPolicy-41898399 not found, creating it
2025-04-22 12:41:48,954 - INFO - Created Project:ctest-TestBasicPolicy-41898399, ID : f01fc141-d5f3-4c51-897d-e59a36505be8
2025-04-22 12:41:50,351 - INFO - ================================================================================
2025-04-22 12:41:50,351 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-22 12:41:50,352 - 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
2025-04-22 12:41:50,459 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.17': '0'}} with
2025-04-22 12:41:50,459 - INFO - Initial checks done. Running the testcase now
2025-04-22 12:41:50,459 - INFO -
2025-04-22 12:41:50,947 - DEBUG - Response for create_network : {'network': {'id': '39f38fc8-e6f1-4d59-a62f-70545ced8439', 'name': 'ctest-vn-51589354', 'tenant_id': 'f01fc141d5f34c51897de59a36505be8', 'project_id': 'f01fc141d5f34c51897de59a36505be8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-41898399', 'ctest-vn-51589354'], 'port_security_enabled': True, 'description': ''}}
2025-04-22 12:41:51,106 - DEBUG - Response for create_subnet : {'subnet': {'id': '8bbd7279-92f5-4419-b918-2f74bb0135a3', 'name': '', 'tenant_id': 'f01fc141d5f34c51897de59a36505be8', 'network_id': '39f38fc8-e6f1-4d59-a62f-70545ced8439', 'ip_version': 4, 'cidr': '31.109.156.0/26', 'allocation_pools': [{'start': '31.109.156.2', 'end': '31.109.156.62'}], 'gateway_ip': '31.109.156.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '31.109.156.2', 'tags': [], 'project_id': 'f01fc141d5f34c51897de59a36505be8'}}
2025-04-22 12:41:51,125 - INFO - Created VN ctest-vn-51589354
2025-04-22 12:41:51,135 - DEBUG - VN ctest-vn-51589354 UUID is 39f38fc8-e6f1-4d59-a62f-70545ced8439
2025-04-22 12:41:51,360 - DEBUG - Response for create_network : {'network': {'id': '11192bbe-a6e0-4abc-bcb2-ff78577a5f00', 'name': 'ctest-vn-45348179', 'tenant_id': 'f01fc141d5f34c51897de59a36505be8', 'project_id': 'f01fc141d5f34c51897de59a36505be8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-41898399', 'ctest-vn-45348179'], 'port_security_enabled': True, 'description': ''}}
2025-04-22 12:41:51,520 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd7f70efe-f72a-4c97-8efe-9d8935b95fc2', 'name': '', 'tenant_id': 'f01fc141d5f34c51897de59a36505be8', 'network_id': '11192bbe-a6e0-4abc-bcb2-ff78577a5f00', 'ip_version': 4, 'cidr': '160.132.129.64/26', 'allocation_pools': [{'start': '160.132.129.66', 'end': '160.132.129.126'}], 'gateway_ip': '160.132.129.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '160.132.129.66', 'tags': [], 'project_id': 'f01fc141d5f34c51897de59a36505be8'}}
2025-04-22 12:41:51,537 - INFO - Created VN ctest-vn-45348179
2025-04-22 12:41:51,588 - DEBUG - VN ctest-vn-45348179 UUID is 11192bbe-a6e0-4abc-bcb2-ff78577a5f00
2025-04-22 12:41:51,653 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-41898399:ctest-vn-51589354, 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-41898399:ctest-vn-45348179, 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]
2025-04-22 12:41:51,868 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '39f38fc8-e6f1-4d59-a62f-70545ced8439', 'name': 'ctest-vn-51589354', 'tenant_id': 'f01fc141d5f34c51897de59a36505be8', 'project_id': 'f01fc141d5f34c51897de59a36505be8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8bbd7279-92f5-4419-b918-2f74bb0135a3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-41898399', 'ctest-vn-51589354'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-41898399', 'ctest-policy-allow-all-79963976']], 'subnet_ipam': [{'subnet_cidr': '31.109.156.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-22 12:41:52,043 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '11192bbe-a6e0-4abc-bcb2-ff78577a5f00', 'name': 'ctest-vn-45348179', 'tenant_id': 'f01fc141d5f34c51897de59a36505be8', 'project_id': 'f01fc141d5f34c51897de59a36505be8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d7f70efe-f72a-4c97-8efe-9d8935b95fc2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-41898399', 'ctest-vn-45348179'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-41898399', 'ctest-policy-allow-all-79963976']], 'subnet_ipam': [{'subnet_cidr': '160.132.129.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-22 12:41:52,132 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-04-22 12:41:52,422 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-04-22 12:41:52,450 - DEBUG - Requesting: http://10.0.0.130:8082/domain/b27e9d36-f0e4-4304-9a2b-93f86c6e1a7d
2025-04-22 12:41:52,462 - DEBUG - Requesting: http://10.0.0.130:8082/project/f01fc141-d5f3-4c51-897d-e59a36505be8
2025-04-22 12:41:52,492 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/39f38fc8-e6f1-4d59-a62f-70545ced8439
2025-04-22 12:41:52,502 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/39f38fc8-e6f1-4d59-a62f-70545ced8439
2025-04-22 12:41:52,511 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/15612b4d-7929-4c6e-98a0-16d793c2b472
2025-04-22 12:41:52,518 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/15612b4d-7929-4c6e-98a0-16d793c2b472
2025-04-22 12:41:52,525 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/99b0f82f-c2ac-482c-b4d6-9bd114591b0f
2025-04-22 12:41:52,531 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-22 12:41:52,531 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/39f38fc8-e6f1-4d59-a62f-70545ced8439
2025-04-22 12:41:52,540 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/15612b4d-7929-4c6e-98a0-16d793c2b472
2025-04-22 12:41:52,554 - INFO - Verified VN network id 8 for VN 39f38fc8-e6f1-4d59-a62f-70545ced8439
2025-04-22 12:41:52,554 - INFO - Verifications in API Server for VN ctest-vn-51589354 passed
2025-04-22 12:41:52,554 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/39f38fc8-e6f1-4d59-a62f-70545ced8439
2025-04-22 12:41:52,563 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/15612b4d-7929-4c6e-98a0-16d793c2b472
2025-04-22 12:41:52,570 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/15612b4d-7929-4c6e-98a0-16d793c2b472
2025-04-22 12:41:52,577 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/99b0f82f-c2ac-482c-b4d6-9bd114591b0f
2025-04-22 12:41:52,588 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-41898399:ctest-vn-51589354', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-41898399', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4175839372533386585', 'uuid-lslong': '11974913441840071737'}, 'enable': 'true', 'created': '2025-04-22T12:41:50', 'last-modified': '2025-04-22T12:41:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.752028'}
2025-04-22 12:41:52,595 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-22 12:41:52,595 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-51589354 passed
2025-04-22 12:41:52,595 - DEBUG - ====Verifying policy data for ctest-vn-51589354 in API_Server ======
2025-04-22 12:41:52,595 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-04-22 12:41:52,601 - DEBUG - Requesting: http://10.0.0.130:8082/domain/b27e9d36-f0e4-4304-9a2b-93f86c6e1a7d
2025-04-22 12:41:52,612 - DEBUG - Requesting: http://10.0.0.130:8082/project/f01fc141-d5f3-4c51-897d-e59a36505be8
2025-04-22 12:41:52,657 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/39f38fc8-e6f1-4d59-a62f-70545ced8439
2025-04-22 12:41:52,667 - DEBUG - ==>Verifying data for policy with id: ee6800df-aef3-47bc-887b-f267eac3716c, fqn: ['default-domain', 'ctest-TestBasicPolicy-41898399', 'ctest-policy-allow-all-79963976']
2025-04-22 12:41:52,667 - INFO - VN ctest-vn-51589354 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-22 12:41:52,667 - DEBUG - Verifying the vn in opserver
2025-04-22 12:41:52,667 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-41898399:ctest-vn-51589354 virtual network link through opserver 10.0.0.130
2025-04-22 12:41:52,667 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2025-04-22 12:41:53,211 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2025-04-22 12:41:53,284 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-41898399:ctest-vn-51589354', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-41898399:ctest-vn-51589354?flat'}
2025-04-22 12:41:53,284 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-41898399:ctest-vn-51589354 is found in opserver
2025-04-22 12:41:53,295 - DEBUG - Do not have enough data to verify VN in agent
2025-04-22 12:41:53,300 - DEBUG - VRF ids for VN ctest-vn-51589354: {}
2025-04-22 12:41:53,300 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-04-22 12:41:53,306 - DEBUG - Requesting: http://10.0.0.130:8082/domain/b27e9d36-f0e4-4304-9a2b-93f86c6e1a7d
2025-04-22 12:41:53,318 - DEBUG - Requesting: http://10.0.0.130:8082/project/f01fc141-d5f3-4c51-897d-e59a36505be8
2025-04-22 12:41:53,352 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/11192bbe-a6e0-4abc-bcb2-ff78577a5f00
2025-04-22 12:41:53,364 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/11192bbe-a6e0-4abc-bcb2-ff78577a5f00
2025-04-22 12:41:53,374 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/936065d9-c702-4b90-9d0a-4bb2e7c57549
2025-04-22 12:41:53,382 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/936065d9-c702-4b90-9d0a-4bb2e7c57549
2025-04-22 12:41:53,390 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/c2ef3994-9765-429f-9eba-1ce5b839aaeb
2025-04-22 12:41:53,397 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-22 12:41:53,397 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/11192bbe-a6e0-4abc-bcb2-ff78577a5f00
2025-04-22 12:41:53,406 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/936065d9-c702-4b90-9d0a-4bb2e7c57549
2025-04-22 12:41:53,419 - INFO - Verified VN network id 9 for VN 11192bbe-a6e0-4abc-bcb2-ff78577a5f00
2025-04-22 12:41:53,420 - INFO - Verifications in API Server for VN ctest-vn-45348179 passed
2025-04-22 12:41:53,420 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/11192bbe-a6e0-4abc-bcb2-ff78577a5f00
2025-04-22 12:41:53,428 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/936065d9-c702-4b90-9d0a-4bb2e7c57549
2025-04-22 12:41:53,434 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/936065d9-c702-4b90-9d0a-4bb2e7c57549
2025-04-22 12:41:53,441 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/c2ef3994-9765-429f-9eba-1ce5b839aaeb
2025-04-22 12:41:53,452 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-41898399:ctest-vn-45348179', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-41898399', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1232064070906038972', 'uuid-lslong': '13597211117313744640'}, 'enable': 'true', 'created': '2025-04-22T12:41:51', 'last-modified': '2025-04-22T12:41:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.469969'}
2025-04-22 12:41:53,457 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-22 12:41:53,458 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-45348179 passed
2025-04-22 12:41:53,458 - DEBUG - ====Verifying policy data for ctest-vn-45348179 in API_Server ======
2025-04-22 12:41:53,458 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-04-22 12:41:53,463 - DEBUG - Requesting: http://10.0.0.130:8082/domain/b27e9d36-f0e4-4304-9a2b-93f86c6e1a7d
2025-04-22 12:41:53,474 - DEBUG - Requesting: http://10.0.0.130:8082/project/f01fc141-d5f3-4c51-897d-e59a36505be8
2025-04-22 12:41:53,545 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/11192bbe-a6e0-4abc-bcb2-ff78577a5f00
2025-04-22 12:41:53,555 - DEBUG - ==>Verifying data for policy with id: ee6800df-aef3-47bc-887b-f267eac3716c, fqn: ['default-domain', 'ctest-TestBasicPolicy-41898399', 'ctest-policy-allow-all-79963976']
2025-04-22 12:41:53,555 - INFO - VN ctest-vn-45348179 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-22 12:41:53,556 - DEBUG - Verifying the vn in opserver
2025-04-22 12:41:53,556 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-41898399:ctest-vn-45348179 virtual network link through opserver 10.0.0.130
2025-04-22 12:41:53,556 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2025-04-22 12:41:53,566 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-41898399:ctest-vn-45348179', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-41898399:ctest-vn-45348179?flat'}
2025-04-22 12:41:53,566 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-41898399:ctest-vn-45348179 is found in opserver
2025-04-22 12:41:53,577 - DEBUG - Do not have enough data to verify VN in agent
2025-04-22 12:41:53,582 - DEBUG - VRF ids for VN ctest-vn-45348179: {}
2025-04-22 12:41:53,636 - DEBUG - Services list from nova: [