2025-11-12 05:36:32,390 - INFO - Domain Default found not creating
2025-11-12 05:36:32,523 - INFO - Project ctest-TestBasicPolicy-87940158 not found, creating it
2025-11-12 05:36:32,940 - INFO - Created Project:ctest-TestBasicPolicy-87940158, ID : d3b289f2-e166-4222-a8a5-b1c95c03bd1d
2025-11-12 05:36:34,306 - INFO - ================================================================================
2025-11-12 05:36:34,306 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-12 05:36:34,306 - 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-11-12 05:36:34,559 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.254': '0'}} with
2025-11-12 05:36:34,560 - INFO - Initial checks done. Running the testcase now
2025-11-12 05:36:34,560 - INFO -
2025-11-12 05:36:35,085 - DEBUG - Response for create_network : {'network': {'id': 'ba823977-c7e2-421d-bc0d-a068da925333', 'name': 'ctest-vn-54499451', 'tenant_id': 'd3b289f2e1664222a8a5b1c95c03bd1d', 'project_id': 'd3b289f2e1664222a8a5b1c95c03bd1d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87940158', 'ctest-vn-54499451'], 'port_security_enabled': True, 'description': ''}}
2025-11-12 05:36:35,253 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e05c8175-cd7b-412b-8c95-ee40aa6ed592', 'name': '', 'tenant_id': 'd3b289f2e1664222a8a5b1c95c03bd1d', 'network_id': 'ba823977-c7e2-421d-bc0d-a068da925333', 'ip_version': 4, 'cidr': '32.19.178.192/26', 'allocation_pools': [{'start': '32.19.178.194', 'end': '32.19.178.254'}], 'gateway_ip': '32.19.178.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '32.19.178.194', 'tags': [], 'project_id': 'd3b289f2e1664222a8a5b1c95c03bd1d'}}
2025-11-12 05:36:35,273 - INFO - Created VN ctest-vn-54499451
2025-11-12 05:36:35,323 - DEBUG - VN ctest-vn-54499451 UUID is ba823977-c7e2-421d-bc0d-a068da925333
2025-11-12 05:36:35,611 - DEBUG - Response for create_network : {'network': {'id': '5163c9f5-7f61-4b99-8efa-71b54600872a', 'name': 'ctest-vn-06173404', 'tenant_id': 'd3b289f2e1664222a8a5b1c95c03bd1d', 'project_id': 'd3b289f2e1664222a8a5b1c95c03bd1d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87940158', 'ctest-vn-06173404'], 'port_security_enabled': True, 'description': ''}}
2025-11-12 05:36:35,779 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e102cb96-4d28-4cf5-bc2b-c96acd22a710', 'name': '', 'tenant_id': 'd3b289f2e1664222a8a5b1c95c03bd1d', 'network_id': '5163c9f5-7f61-4b99-8efa-71b54600872a', 'ip_version': 4, 'cidr': '85.124.231.192/26', 'allocation_pools': [{'start': '85.124.231.194', 'end': '85.124.231.254'}], 'gateway_ip': '85.124.231.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '85.124.231.194', 'tags': [], 'project_id': 'd3b289f2e1664222a8a5b1c95c03bd1d'}}
2025-11-12 05:36:35,796 - INFO - Created VN ctest-vn-06173404
2025-11-12 05:36:35,855 - DEBUG - VN ctest-vn-06173404 UUID is 5163c9f5-7f61-4b99-8efa-71b54600872a
2025-11-12 05:36:35,999 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-87940158:ctest-vn-54499451, 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-87940158:ctest-vn-06173404, 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-11-12 05:36:36,287 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ba823977-c7e2-421d-bc0d-a068da925333', 'name': 'ctest-vn-54499451', 'tenant_id': 'd3b289f2e1664222a8a5b1c95c03bd1d', 'project_id': 'd3b289f2e1664222a8a5b1c95c03bd1d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e05c8175-cd7b-412b-8c95-ee40aa6ed592'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87940158', 'ctest-vn-54499451'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-87940158', 'ctest-policy-allow-all-08261792']], 'subnet_ipam': [{'subnet_cidr': '32.19.178.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-12 05:36:36,542 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5163c9f5-7f61-4b99-8efa-71b54600872a', 'name': 'ctest-vn-06173404', 'tenant_id': 'd3b289f2e1664222a8a5b1c95c03bd1d', 'project_id': 'd3b289f2e1664222a8a5b1c95c03bd1d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e102cb96-4d28-4cf5-bc2b-c96acd22a710'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87940158', 'ctest-vn-06173404'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-87940158', 'ctest-policy-allow-all-08261792']], 'subnet_ipam': [{'subnet_cidr': '85.124.231.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-12 05:36:36,691 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-12 05:36:36,991 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-12 05:36:37,021 - DEBUG - Requesting: http://10.0.0.22:8082/domain/104012f9-749f-4233-94a0-8a492408f805
2025-11-12 05:36:37,032 - DEBUG - Requesting: http://10.0.0.22:8082/project/d3b289f2-e166-4222-a8a5-b1c95c03bd1d
2025-11-12 05:36:37,105 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/ba823977-c7e2-421d-bc0d-a068da925333
2025-11-12 05:36:37,119 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/ba823977-c7e2-421d-bc0d-a068da925333
2025-11-12 05:36:37,128 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/198b9ecc-2ffd-4078-bd4e-d78436692c8b
2025-11-12 05:36:37,136 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/198b9ecc-2ffd-4078-bd4e-d78436692c8b
2025-11-12 05:36:37,145 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/d94b248e-c2eb-4cd8-94e2-9b3b7ac49bba
2025-11-12 05:36:37,152 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-12 05:36:37,152 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/ba823977-c7e2-421d-bc0d-a068da925333
2025-11-12 05:36:37,164 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/198b9ecc-2ffd-4078-bd4e-d78436692c8b
2025-11-12 05:36:37,178 - INFO - Verified VN network id 12 for VN ba823977-c7e2-421d-bc0d-a068da925333
2025-11-12 05:36:37,178 - INFO - Verifications in API Server for VN ctest-vn-54499451 passed
2025-11-12 05:36:37,178 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/ba823977-c7e2-421d-bc0d-a068da925333
2025-11-12 05:36:37,185 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/198b9ecc-2ffd-4078-bd4e-d78436692c8b
2025-11-12 05:36:37,191 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/198b9ecc-2ffd-4078-bd4e-d78436692c8b
2025-11-12 05:36:37,197 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/d94b248e-c2eb-4cd8-94e2-9b3b7ac49bba
2025-11-12 05:36:37,208 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-87940158:ctest-vn-54499451', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-87940158', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13439367424644366877', 'uuid-lslong': '13550663226031756083'}, 'enable': 'true', 'created': '2025-11-12T05:36:35', 'last-modified': '2025-11-12T05:36:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.943212'}
2025-11-12 05:36:37,214 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-12 05:36:37,214 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-54499451 passed
2025-11-12 05:36:37,214 - DEBUG - ====Verifying policy data for ctest-vn-54499451 in API_Server ======
2025-11-12 05:36:37,214 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-12 05:36:37,219 - DEBUG - Requesting: http://10.0.0.22:8082/domain/104012f9-749f-4233-94a0-8a492408f805
2025-11-12 05:36:37,228 - DEBUG - Requesting: http://10.0.0.22:8082/project/d3b289f2-e166-4222-a8a5-b1c95c03bd1d
2025-11-12 05:36:37,299 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/ba823977-c7e2-421d-bc0d-a068da925333
2025-11-12 05:36:37,308 - DEBUG - ==>Verifying data for policy with id: a2c35704-1d84-4418-ac8c-10aa0f3e3a1d, fqn: ['default-domain', 'ctest-TestBasicPolicy-87940158', 'ctest-policy-allow-all-08261792']
2025-11-12 05:36:37,308 - INFO - VN ctest-vn-54499451 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-12 05:36:37,308 - DEBUG - Verifying the vn in opserver
2025-11-12 05:36:37,308 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-87940158:ctest-vn-54499451 virtual network link through opserver 10.0.0.22
2025-11-12 05:36:37,309 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-11-12 05:36:37,598 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-11-12 05:36:37,650 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-87940158:ctest-vn-54499451', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-87940158:ctest-vn-54499451?flat'}
2025-11-12 05:36:37,650 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-87940158:ctest-vn-54499451 is found in opserver
2025-11-12 05:36:37,660 - DEBUG - Do not have enough data to verify VN in agent
2025-11-12 05:36:37,664 - DEBUG - VRF ids for VN ctest-vn-54499451: {}
2025-11-12 05:36:37,664 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-12 05:36:37,668 - DEBUG - Requesting: http://10.0.0.22:8082/domain/104012f9-749f-4233-94a0-8a492408f805
2025-11-12 05:36:37,678 - DEBUG - Requesting: http://10.0.0.22:8082/project/d3b289f2-e166-4222-a8a5-b1c95c03bd1d
2025-11-12 05:36:37,746 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/5163c9f5-7f61-4b99-8efa-71b54600872a
2025-11-12 05:36:37,755 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/5163c9f5-7f61-4b99-8efa-71b54600872a
2025-11-12 05:36:37,763 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/cf86d3bf-a174-45ac-baa9-48909d0d889a
2025-11-12 05:36:37,768 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/cf86d3bf-a174-45ac-baa9-48909d0d889a
2025-11-12 05:36:37,772 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/d796453b-78e7-461a-ab04-e3588591f5d8
2025-11-12 05:36:37,777 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-12 05:36:37,777 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/5163c9f5-7f61-4b99-8efa-71b54600872a
2025-11-12 05:36:37,783 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/cf86d3bf-a174-45ac-baa9-48909d0d889a
2025-11-12 05:36:37,795 - INFO - Verified VN network id 13 for VN 5163c9f5-7f61-4b99-8efa-71b54600872a
2025-11-12 05:36:37,795 - INFO - Verifications in API Server for VN ctest-vn-06173404 passed
2025-11-12 05:36:37,795 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/5163c9f5-7f61-4b99-8efa-71b54600872a
2025-11-12 05:36:37,803 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/cf86d3bf-a174-45ac-baa9-48909d0d889a
2025-11-12 05:36:37,808 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/cf86d3bf-a174-45ac-baa9-48909d0d889a
2025-11-12 05:36:37,814 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/d796453b-78e7-461a-ab04-e3588591f5d8
2025-11-12 05:36:37,823 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-87940158:ctest-vn-06173404', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-87940158', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5864753196007771033', 'uuid-lslong': '10302672120940889898'}, 'enable': 'true', 'created': '2025-11-12T05:36:35', 'last-modified': '2025-11-12T05:36:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.341627'}
2025-11-12 05:36:37,829 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-12 05:36:37,829 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-06173404 passed
2025-11-12 05:36:37,829 - DEBUG - ====Verifying policy data for ctest-vn-06173404 in API_Server ======
2025-11-12 05:36:37,829 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-12 05:36:37,834 - DEBUG - Requesting: http://10.0.0.22:8082/domain/104012f9-749f-4233-94a0-8a492408f805
2025-11-12 05:36:37,843 - DEBUG - Requesting: http://10.0.0.22:8082/project/d3b289f2-e166-4222-a8a5-b1c95c03bd1d
2025-11-12 05:36:37,911 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/5163c9f5-7f61-4b99-8efa-71b54600872a
2025-11-12 05:36:37,919 - DEBUG - ==>Verifying data for policy with id: a2c35704-1d84-4418-ac8c-10aa0f3e3a1d, fqn: ['default-domain', 'ctest-TestBasicPolicy-87940158', 'ctest-policy-allow-all-08261792']
2025-11-12 05:36:37,919 - INFO - VN ctest-vn-06173404 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-12 05:36:37,919 - DEBUG - Verifying the vn in opserver
2025-11-12 05:36:37,919 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-87940158:ctest-vn-06173404 virtual network link through opserver 10.0.0.22
2025-11-12 05:36:37,919 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-11-12 05:36:37,928 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-87940158:ctest-vn-06173404', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-87940158:ctest-vn-06173404?flat'}
2025-11-12 05:36:37,928 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-87940158:ctest-vn-06173404 is found in opserver
2025-11-12 05:36:37,936 - DEBUG - Do not have enough data to verify VN in agent
2025-11-12 05:36:37,940 - DEBUG - VRF ids for VN ctest-vn-06173404: {}
2025-11-12 05:36:37,994 - DEBUG - Services list from nova: [