2025-08-20 09:14:06,613 - INFO - Domain Default found not creating
2025-08-20 09:14:06,737 - INFO - Project ctest-TestBasicPolicy-86688638 not found, creating it
2025-08-20 09:14:07,200 - INFO - Created Project:ctest-TestBasicPolicy-86688638, ID : 19f58e2d-568e-4276-b996-fa076ecb961f
2025-08-20 09:14:08,475 - INFO - ================================================================================
2025-08-20 09:14:08,475 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-20 09:14:08,475 - 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-20 09:14:08,733 - DEBUG - Nothing to compare xmpp stats {'10.0.0.49': {'10.20.0.17': '0'}} with
2025-08-20 09:14:08,733 - INFO - Initial checks done. Running the testcase now
2025-08-20 09:14:08,733 - INFO -
2025-08-20 09:14:09,240 - DEBUG - Response for create_network : {'network': {'id': 'ac412f68-fecd-45c9-9a80-6d9865433602', 'name': 'ctest-vn-66749230', 'tenant_id': '19f58e2d568e4276b996fa076ecb961f', 'project_id': '19f58e2d568e4276b996fa076ecb961f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-86688638', 'ctest-vn-66749230'], 'port_security_enabled': True, 'description': ''}}
2025-08-20 09:14:09,429 - DEBUG - Response for create_subnet : {'subnet': {'id': '5dd330f7-eecc-4dc3-9482-57ba4a3fa3cd', 'name': '', 'tenant_id': '19f58e2d568e4276b996fa076ecb961f', 'network_id': 'ac412f68-fecd-45c9-9a80-6d9865433602', 'ip_version': 4, 'cidr': '85.145.54.0/26', 'allocation_pools': [{'start': '85.145.54.2', 'end': '85.145.54.62'}], 'gateway_ip': '85.145.54.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '85.145.54.2', 'tags': [], 'project_id': '19f58e2d568e4276b996fa076ecb961f'}}
2025-08-20 09:14:09,444 - INFO - Created VN ctest-vn-66749230
2025-08-20 09:14:09,496 - DEBUG - VN ctest-vn-66749230 UUID is ac412f68-fecd-45c9-9a80-6d9865433602
2025-08-20 09:14:09,789 - DEBUG - Response for create_network : {'network': {'id': '3955d6ad-7aac-42f9-ab61-e71d26f5ffed', 'name': 'ctest-vn-91053408', 'tenant_id': '19f58e2d568e4276b996fa076ecb961f', 'project_id': '19f58e2d568e4276b996fa076ecb961f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-86688638', 'ctest-vn-91053408'], 'port_security_enabled': True, 'description': ''}}
2025-08-20 09:14:09,982 - DEBUG - Response for create_subnet : {'subnet': {'id': '37a7f405-2699-43de-b8c4-666add33b86a', 'name': '', 'tenant_id': '19f58e2d568e4276b996fa076ecb961f', 'network_id': '3955d6ad-7aac-42f9-ab61-e71d26f5ffed', 'ip_version': 4, 'cidr': '147.64.7.0/26', 'allocation_pools': [{'start': '147.64.7.2', 'end': '147.64.7.62'}], 'gateway_ip': '147.64.7.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '147.64.7.2', 'tags': [], 'project_id': '19f58e2d568e4276b996fa076ecb961f'}}
2025-08-20 09:14:09,998 - INFO - Created VN ctest-vn-91053408
2025-08-20 09:14:10,052 - DEBUG - VN ctest-vn-91053408 UUID is 3955d6ad-7aac-42f9-ab61-e71d26f5ffed
2025-08-20 09:14:10,195 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-86688638:ctest-vn-66749230, 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-86688638:ctest-vn-91053408, 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-20 09:14:10,481 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ac412f68-fecd-45c9-9a80-6d9865433602', 'name': 'ctest-vn-66749230', 'tenant_id': '19f58e2d568e4276b996fa076ecb961f', 'project_id': '19f58e2d568e4276b996fa076ecb961f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5dd330f7-eecc-4dc3-9482-57ba4a3fa3cd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-86688638', 'ctest-vn-66749230'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-86688638', 'ctest-policy-allow-all-38747654']], 'subnet_ipam': [{'subnet_cidr': '85.145.54.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-20 09:14:10,754 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3955d6ad-7aac-42f9-ab61-e71d26f5ffed', 'name': 'ctest-vn-91053408', 'tenant_id': '19f58e2d568e4276b996fa076ecb961f', 'project_id': '19f58e2d568e4276b996fa076ecb961f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['37a7f405-2699-43de-b8c4-666add33b86a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-86688638', 'ctest-vn-91053408'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-86688638', 'ctest-policy-allow-all-38747654']], 'subnet_ipam': [{'subnet_cidr': '147.64.7.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-20 09:14:10,908 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-08-20 09:14:11,199 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-08-20 09:14:11,223 - DEBUG - Requesting: http://10.0.0.49:8082/domain/ac2afb38-e6a2-4bc9-84a0-5630d8cad4fc
2025-08-20 09:14:11,234 - DEBUG - Requesting: http://10.0.0.49:8082/project/19f58e2d-568e-4276-b996-fa076ecb961f
2025-08-20 09:14:11,303 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/ac412f68-fecd-45c9-9a80-6d9865433602
2025-08-20 09:14:11,312 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/ac412f68-fecd-45c9-9a80-6d9865433602
2025-08-20 09:14:11,319 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/70b9a000-6774-4699-b0f0-943e5baa774b
2025-08-20 09:14:11,324 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/70b9a000-6774-4699-b0f0-943e5baa774b
2025-08-20 09:14:11,329 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/42f60be3-9f21-4ae6-bcba-f3802fbd8073
2025-08-20 09:14:11,334 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-20 09:14:11,334 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/ac412f68-fecd-45c9-9a80-6d9865433602
2025-08-20 09:14:11,340 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/70b9a000-6774-4699-b0f0-943e5baa774b
2025-08-20 09:14:11,351 - INFO - Verified VN network id 12 for VN ac412f68-fecd-45c9-9a80-6d9865433602
2025-08-20 09:14:11,351 - INFO - Verifications in API Server for VN ctest-vn-66749230 passed
2025-08-20 09:14:11,351 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/ac412f68-fecd-45c9-9a80-6d9865433602
2025-08-20 09:14:11,358 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/70b9a000-6774-4699-b0f0-943e5baa774b
2025-08-20 09:14:11,363 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/70b9a000-6774-4699-b0f0-943e5baa774b
2025-08-20 09:14:11,368 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/42f60be3-9f21-4ae6-bcba-f3802fbd8073
2025-08-20 09:14:11,377 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-86688638:ctest-vn-66749230', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-86688638', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12412254176007767497', 'uuid-lslong': '11133018780161226242'}, 'enable': 'true', 'created': '2025-08-20T09:14:09', 'last-modified': '2025-08-20T09:14:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.915311'}
2025-08-20 09:14:11,382 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-20 09:14:11,382 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-66749230 passed
2025-08-20 09:14:11,383 - DEBUG - ====Verifying policy data for ctest-vn-66749230 in API_Server ======
2025-08-20 09:14:11,383 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-08-20 09:14:11,386 - DEBUG - Requesting: http://10.0.0.49:8082/domain/ac2afb38-e6a2-4bc9-84a0-5630d8cad4fc
2025-08-20 09:14:11,395 - DEBUG - Requesting: http://10.0.0.49:8082/project/19f58e2d-568e-4276-b996-fa076ecb961f
2025-08-20 09:14:11,465 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/ac412f68-fecd-45c9-9a80-6d9865433602
2025-08-20 09:14:11,473 - DEBUG - ==>Verifying data for policy with id: 4ac408af-e302-4ed2-9095-2769ccc5d742, fqn: ['default-domain', 'ctest-TestBasicPolicy-86688638', 'ctest-policy-allow-all-38747654']
2025-08-20 09:14:11,473 - INFO - VN ctest-vn-66749230 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-20 09:14:11,473 - DEBUG - Verifying the vn in opserver
2025-08-20 09:14:11,473 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-86688638:ctest-vn-66749230 virtual network link through opserver 10.0.0.49
2025-08-20 09:14:11,473 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-08-20 09:14:11,761 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-08-20 09:14:11,808 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-86688638:ctest-vn-66749230', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-86688638:ctest-vn-66749230?flat'}
2025-08-20 09:14:11,808 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-86688638:ctest-vn-66749230 is found in opserver
2025-08-20 09:14:11,817 - DEBUG - Do not have enough data to verify VN in agent
2025-08-20 09:14:11,821 - DEBUG - VRF ids for VN ctest-vn-66749230: {}
2025-08-20 09:14:11,821 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-08-20 09:14:11,825 - DEBUG - Requesting: http://10.0.0.49:8082/domain/ac2afb38-e6a2-4bc9-84a0-5630d8cad4fc
2025-08-20 09:14:11,835 - DEBUG - Requesting: http://10.0.0.49:8082/project/19f58e2d-568e-4276-b996-fa076ecb961f
2025-08-20 09:14:11,903 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/3955d6ad-7aac-42f9-ab61-e71d26f5ffed
2025-08-20 09:14:11,914 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/3955d6ad-7aac-42f9-ab61-e71d26f5ffed
2025-08-20 09:14:11,922 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/f923376d-41cb-4b2b-b63c-3ffb2ae5d8ea
2025-08-20 09:14:11,928 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/f923376d-41cb-4b2b-b63c-3ffb2ae5d8ea
2025-08-20 09:14:11,933 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/e6ea6508-577d-4b0f-990b-84580258bdf6
2025-08-20 09:14:11,938 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-20 09:14:11,938 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/3955d6ad-7aac-42f9-ab61-e71d26f5ffed
2025-08-20 09:14:11,945 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/f923376d-41cb-4b2b-b63c-3ffb2ae5d8ea
2025-08-20 09:14:11,956 - INFO - Verified VN network id 13 for VN 3955d6ad-7aac-42f9-ab61-e71d26f5ffed
2025-08-20 09:14:11,956 - INFO - Verifications in API Server for VN ctest-vn-91053408 passed
2025-08-20 09:14:11,956 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/3955d6ad-7aac-42f9-ab61-e71d26f5ffed
2025-08-20 09:14:11,964 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/f923376d-41cb-4b2b-b63c-3ffb2ae5d8ea
2025-08-20 09:14:11,969 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/f923376d-41cb-4b2b-b63c-3ffb2ae5d8ea
2025-08-20 09:14:11,974 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/e6ea6508-577d-4b0f-990b-84580258bdf6
2025-08-20 09:14:11,983 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-86688638:ctest-vn-91053408', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-86688638', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4131444273758094073', 'uuid-lslong': '12349405765620334573'}, 'enable': 'true', 'created': '2025-08-20T09:14:09', 'last-modified': '2025-08-20T09:14:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.295080'}
2025-08-20 09:14:11,988 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-20 09:14:11,988 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-91053408 passed
2025-08-20 09:14:11,988 - DEBUG - ====Verifying policy data for ctest-vn-91053408 in API_Server ======
2025-08-20 09:14:11,988 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-08-20 09:14:11,992 - DEBUG - Requesting: http://10.0.0.49:8082/domain/ac2afb38-e6a2-4bc9-84a0-5630d8cad4fc
2025-08-20 09:14:12,003 - DEBUG - Requesting: http://10.0.0.49:8082/project/19f58e2d-568e-4276-b996-fa076ecb961f
2025-08-20 09:14:12,076 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/3955d6ad-7aac-42f9-ab61-e71d26f5ffed
2025-08-20 09:14:12,084 - DEBUG - ==>Verifying data for policy with id: 4ac408af-e302-4ed2-9095-2769ccc5d742, fqn: ['default-domain', 'ctest-TestBasicPolicy-86688638', 'ctest-policy-allow-all-38747654']
2025-08-20 09:14:12,084 - INFO - VN ctest-vn-91053408 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-20 09:14:12,084 - DEBUG - Verifying the vn in opserver
2025-08-20 09:14:12,084 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-86688638:ctest-vn-91053408 virtual network link through opserver 10.0.0.49
2025-08-20 09:14:12,084 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-08-20 09:14:12,094 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-86688638:ctest-vn-91053408', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-86688638:ctest-vn-91053408?flat'}
2025-08-20 09:14:12,094 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-86688638:ctest-vn-91053408 is found in opserver
2025-08-20 09:14:12,103 - DEBUG - Do not have enough data to verify VN in agent
2025-08-20 09:14:12,108 - DEBUG - VRF ids for VN ctest-vn-91053408: {}
2025-08-20 09:14:12,156 - DEBUG - Services list from nova: [