2025-08-15 18:50:03,385 - INFO - Domain Default found not creating
2025-08-15 18:50:03,542 - INFO - Project ctest-TestBasicPolicy-96242727 not found, creating it
2025-08-15 18:50:04,335 - INFO - Created Project:ctest-TestBasicPolicy-96242727, ID : be670a3a-41fb-4443-948b-089d2e9fd467
2025-08-15 18:50:06,025 - INFO - ================================================================================
2025-08-15 18:50:06,025 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-15 18:50:06,025 - 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-08-15 18:50:06,283 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-08-15 18:50:06,283 - INFO - Initial checks done. Running the testcase now
2025-08-15 18:50:06,284 - INFO -
2025-08-15 18:50:06,861 - DEBUG - Response for create_network : {'network': {'id': '7eb36bc6-9551-413e-85c3-a0d905772591', 'name': 'ctest-vn-68343343', 'tenant_id': 'be670a3a41fb4443948b089d2e9fd467', 'project_id': 'be670a3a41fb4443948b089d2e9fd467', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96242727', 'ctest-vn-68343343'], 'port_security_enabled': True, 'description': ''}}
2025-08-15 18:50:07,090 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b6fa1a5a-c644-4bfd-b9e6-447583aea9d0', 'name': '', 'tenant_id': 'be670a3a41fb4443948b089d2e9fd467', 'network_id': '7eb36bc6-9551-413e-85c3-a0d905772591', 'ip_version': 4, 'cidr': '28.224.17.192/26', 'allocation_pools': [{'start': '28.224.17.194', 'end': '28.224.17.254'}], 'gateway_ip': '28.224.17.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '28.224.17.194', 'tags': [], 'project_id': 'be670a3a41fb4443948b089d2e9fd467'}}
2025-08-15 18:50:07,109 - INFO - Created VN ctest-vn-68343343
2025-08-15 18:50:07,160 - DEBUG - VN ctest-vn-68343343 UUID is 7eb36bc6-9551-413e-85c3-a0d905772591
2025-08-15 18:50:07,486 - DEBUG - Response for create_network : {'network': {'id': '2262d316-87f9-4125-83ee-fdbcbc40519b', 'name': 'ctest-vn-23916822', 'tenant_id': 'be670a3a41fb4443948b089d2e9fd467', 'project_id': 'be670a3a41fb4443948b089d2e9fd467', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96242727', 'ctest-vn-23916822'], 'port_security_enabled': True, 'description': ''}}
2025-08-15 18:50:07,671 - DEBUG - Response for create_subnet : {'subnet': {'id': '48d98ade-eaa4-46e8-b7d8-4fedad858697', 'name': '', 'tenant_id': 'be670a3a41fb4443948b089d2e9fd467', 'network_id': '2262d316-87f9-4125-83ee-fdbcbc40519b', 'ip_version': 4, 'cidr': '146.50.156.192/26', 'allocation_pools': [{'start': '146.50.156.194', 'end': '146.50.156.254'}], 'gateway_ip': '146.50.156.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '146.50.156.194', 'tags': [], 'project_id': 'be670a3a41fb4443948b089d2e9fd467'}}
2025-08-15 18:50:07,689 - INFO - Created VN ctest-vn-23916822
2025-08-15 18:50:07,740 - DEBUG - VN ctest-vn-23916822 UUID is 2262d316-87f9-4125-83ee-fdbcbc40519b
2025-08-15 18:50:07,856 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-96242727:ctest-vn-68343343, 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-96242727:ctest-vn-23916822, 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-08-15 18:50:08,164 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7eb36bc6-9551-413e-85c3-a0d905772591', 'name': 'ctest-vn-68343343', 'tenant_id': 'be670a3a41fb4443948b089d2e9fd467', 'project_id': 'be670a3a41fb4443948b089d2e9fd467', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b6fa1a5a-c644-4bfd-b9e6-447583aea9d0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96242727', 'ctest-vn-68343343'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-96242727', 'ctest-policy-allow-all-53082104']], 'subnet_ipam': [{'subnet_cidr': '28.224.17.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-15 18:50:08,452 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2262d316-87f9-4125-83ee-fdbcbc40519b', 'name': 'ctest-vn-23916822', 'tenant_id': 'be670a3a41fb4443948b089d2e9fd467', 'project_id': 'be670a3a41fb4443948b089d2e9fd467', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['48d98ade-eaa4-46e8-b7d8-4fedad858697'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96242727', 'ctest-vn-23916822'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-96242727', 'ctest-policy-allow-all-53082104']], 'subnet_ipam': [{'subnet_cidr': '146.50.156.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-15 18:50:08,608 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-15 18:50:08,953 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-15 18:50:08,982 - DEBUG - Requesting: http://10.0.0.254:8082/domain/ca9b6dff-67aa-4683-a989-40dabf59d627
2025-08-15 18:50:08,996 - DEBUG - Requesting: http://10.0.0.254:8082/project/be670a3a-41fb-4443-948b-089d2e9fd467
2025-08-15 18:50:09,078 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/7eb36bc6-9551-413e-85c3-a0d905772591
2025-08-15 18:50:09,092 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/7eb36bc6-9551-413e-85c3-a0d905772591
2025-08-15 18:50:09,104 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/3c635cb4-4e1b-43fe-a443-554323224695
2025-08-15 18:50:09,112 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/3c635cb4-4e1b-43fe-a443-554323224695
2025-08-15 18:50:09,126 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/ad446e7c-96d9-4dcb-982b-34811303212e
2025-08-15 18:50:09,133 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-15 18:50:09,133 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/7eb36bc6-9551-413e-85c3-a0d905772591
2025-08-15 18:50:09,144 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/3c635cb4-4e1b-43fe-a443-554323224695
2025-08-15 18:50:09,159 - INFO - Verified VN network id 10 for VN 7eb36bc6-9551-413e-85c3-a0d905772591
2025-08-15 18:50:09,159 - INFO - Verifications in API Server for VN ctest-vn-68343343 passed
2025-08-15 18:50:09,159 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/7eb36bc6-9551-413e-85c3-a0d905772591
2025-08-15 18:50:09,171 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/3c635cb4-4e1b-43fe-a443-554323224695
2025-08-15 18:50:09,179 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/3c635cb4-4e1b-43fe-a443-554323224695
2025-08-15 18:50:09,190 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/ad446e7c-96d9-4dcb-982b-34811303212e
2025-08-15 18:50:09,206 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-96242727:ctest-vn-68343343', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-96242727', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9129759370262954302', 'uuid-lslong': '9638724481463035281'}, 'enable': 'true', 'created': '2025-08-15T18:50:06', 'last-modified': '2025-08-15T18:50:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.070493'}
2025-08-15 18:50:09,218 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-15 18:50:09,218 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-68343343 passed
2025-08-15 18:50:09,218 - DEBUG - ====Verifying policy data for ctest-vn-68343343 in API_Server ======
2025-08-15 18:50:09,218 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-15 18:50:09,224 - DEBUG - Requesting: http://10.0.0.254:8082/domain/ca9b6dff-67aa-4683-a989-40dabf59d627
2025-08-15 18:50:09,235 - DEBUG - Requesting: http://10.0.0.254:8082/project/be670a3a-41fb-4443-948b-089d2e9fd467
2025-08-15 18:50:09,318 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/7eb36bc6-9551-413e-85c3-a0d905772591
2025-08-15 18:50:09,331 - DEBUG - ==>Verifying data for policy with id: b36c5298-83ea-48d2-a0b6-92d5727dbbb0, fqn: ['default-domain', 'ctest-TestBasicPolicy-96242727', 'ctest-policy-allow-all-53082104']
2025-08-15 18:50:09,331 - INFO - VN ctest-vn-68343343 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-15 18:50:09,331 - DEBUG - Verifying the vn in opserver
2025-08-15 18:50:09,331 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-96242727:ctest-vn-68343343 virtual network link through opserver 10.0.0.254
2025-08-15 18:50:09,332 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-08-15 18:50:09,664 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-08-15 18:50:09,723 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-96242727:ctest-vn-68343343', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-96242727:ctest-vn-68343343?flat'}
2025-08-15 18:50:09,723 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-96242727:ctest-vn-68343343 is found in opserver
2025-08-15 18:50:09,737 - DEBUG - Do not have enough data to verify VN in agent
2025-08-15 18:50:09,743 - DEBUG - VRF ids for VN ctest-vn-68343343: {}
2025-08-15 18:50:09,743 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-15 18:50:09,750 - DEBUG - Requesting: http://10.0.0.254:8082/domain/ca9b6dff-67aa-4683-a989-40dabf59d627
2025-08-15 18:50:09,762 - DEBUG - Requesting: http://10.0.0.254:8082/project/be670a3a-41fb-4443-948b-089d2e9fd467
2025-08-15 18:50:09,845 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/2262d316-87f9-4125-83ee-fdbcbc40519b
2025-08-15 18:50:09,858 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/2262d316-87f9-4125-83ee-fdbcbc40519b
2025-08-15 18:50:09,869 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/80d90701-215d-4224-8a2f-5854ec895240
2025-08-15 18:50:09,876 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/80d90701-215d-4224-8a2f-5854ec895240
2025-08-15 18:50:09,884 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/a61f3493-b398-4ddd-9174-996b895563d7
2025-08-15 18:50:09,891 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-15 18:50:09,891 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/2262d316-87f9-4125-83ee-fdbcbc40519b
2025-08-15 18:50:09,901 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/80d90701-215d-4224-8a2f-5854ec895240
2025-08-15 18:50:09,916 - INFO - Verified VN network id 11 for VN 2262d316-87f9-4125-83ee-fdbcbc40519b
2025-08-15 18:50:09,916 - INFO - Verifications in API Server for VN ctest-vn-23916822 passed
2025-08-15 18:50:09,916 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/2262d316-87f9-4125-83ee-fdbcbc40519b
2025-08-15 18:50:09,926 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/80d90701-215d-4224-8a2f-5854ec895240
2025-08-15 18:50:09,933 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/80d90701-215d-4224-8a2f-5854ec895240
2025-08-15 18:50:09,940 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/a61f3493-b398-4ddd-9174-996b895563d7
2025-08-15 18:50:09,952 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-96242727:ctest-vn-23916822', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-96242727', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2477774838731194661', 'uuid-lslong': '9506814850479706523'}, 'enable': 'true', 'created': '2025-08-15T18:50:07', 'last-modified': '2025-08-15T18:50:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.570383'}
2025-08-15 18:50:09,959 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-15 18:50:09,959 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-23916822 passed
2025-08-15 18:50:09,959 - DEBUG - ====Verifying policy data for ctest-vn-23916822 in API_Server ======
2025-08-15 18:50:09,959 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-15 18:50:09,965 - DEBUG - Requesting: http://10.0.0.254:8082/domain/ca9b6dff-67aa-4683-a989-40dabf59d627
2025-08-15 18:50:09,976 - DEBUG - Requesting: http://10.0.0.254:8082/project/be670a3a-41fb-4443-948b-089d2e9fd467
2025-08-15 18:50:10,049 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/2262d316-87f9-4125-83ee-fdbcbc40519b
2025-08-15 18:50:10,060 - DEBUG - ==>Verifying data for policy with id: b36c5298-83ea-48d2-a0b6-92d5727dbbb0, fqn: ['default-domain', 'ctest-TestBasicPolicy-96242727', 'ctest-policy-allow-all-53082104']
2025-08-15 18:50:10,061 - INFO - VN ctest-vn-23916822 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-15 18:50:10,061 - DEBUG - Verifying the vn in opserver
2025-08-15 18:50:10,061 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-96242727:ctest-vn-23916822 virtual network link through opserver 10.0.0.254
2025-08-15 18:50:10,061 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-08-15 18:50:10,072 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-96242727:ctest-vn-23916822', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-96242727:ctest-vn-23916822?flat'}
2025-08-15 18:50:10,072 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-96242727:ctest-vn-23916822 is found in opserver
2025-08-15 18:50:10,084 - DEBUG - Do not have enough data to verify VN in agent
2025-08-15 18:50:10,089 - DEBUG - VRF ids for VN ctest-vn-23916822: {}
2025-08-15 18:50:10,153 - DEBUG - Services list from nova: [