2025-10-23 23:45:04,030 - INFO - Domain Default found not creating
2025-10-23 23:45:04,421 - INFO - Project ctest-TestBasicPolicy-74660269 not found, creating it
2025-10-23 23:45:05,127 - INFO - Created Project:ctest-TestBasicPolicy-74660269, ID : a639c915-37d7-42b5-9c94-4413e44e3e2f
2025-10-23 23:45:07,090 - INFO - ================================================================================
2025-10-23 23:45:07,090 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-23 23:45:07,091 - 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-10-23 23:45:07,430 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.254': '0'}} with
2025-10-23 23:45:07,430 - INFO - Initial checks done. Running the testcase now
2025-10-23 23:45:07,431 - INFO -
2025-10-23 23:45:08,305 - DEBUG - Response for create_network : {'network': {'id': '797089bf-63c1-48f4-8cc0-5b0dfc1dcf0c', 'name': 'ctest-vn-94451488', 'tenant_id': 'a639c91537d742b59c944413e44e3e2f', 'project_id': 'a639c91537d742b59c944413e44e3e2f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-74660269', 'ctest-vn-94451488'], 'port_security_enabled': True, 'description': ''}}
2025-10-23 23:45:08,625 - DEBUG - Response for create_subnet : {'subnet': {'id': '719cf5e2-be5b-400e-a04a-06dd991f4db9', 'name': '', 'tenant_id': 'a639c91537d742b59c944413e44e3e2f', 'network_id': '797089bf-63c1-48f4-8cc0-5b0dfc1dcf0c', 'ip_version': 4, 'cidr': '117.44.231.192/26', 'allocation_pools': [{'start': '117.44.231.194', 'end': '117.44.231.254'}], 'gateway_ip': '117.44.231.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '117.44.231.194', 'tags': [], 'project_id': 'a639c91537d742b59c944413e44e3e2f'}}
2025-10-23 23:45:08,651 - INFO - Created VN ctest-vn-94451488
2025-10-23 23:45:08,708 - DEBUG - VN ctest-vn-94451488 UUID is 797089bf-63c1-48f4-8cc0-5b0dfc1dcf0c
2025-10-23 23:45:09,217 - DEBUG - Response for create_network : {'network': {'id': '03f25ff2-a671-4bc2-8e30-46f4cfb1710c', 'name': 'ctest-vn-69289507', 'tenant_id': 'a639c91537d742b59c944413e44e3e2f', 'project_id': 'a639c91537d742b59c944413e44e3e2f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-74660269', 'ctest-vn-69289507'], 'port_security_enabled': True, 'description': ''}}
2025-10-23 23:45:09,436 - DEBUG - Response for create_subnet : {'subnet': {'id': '3913caf5-e16f-4fb8-98b0-89b590f9ad54', 'name': '', 'tenant_id': 'a639c91537d742b59c944413e44e3e2f', 'network_id': '03f25ff2-a671-4bc2-8e30-46f4cfb1710c', 'ip_version': 4, 'cidr': '97.149.220.192/26', 'allocation_pools': [{'start': '97.149.220.194', 'end': '97.149.220.254'}], 'gateway_ip': '97.149.220.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '97.149.220.194', 'tags': [], 'project_id': 'a639c91537d742b59c944413e44e3e2f'}}
2025-10-23 23:45:09,455 - INFO - Created VN ctest-vn-69289507
2025-10-23 23:45:09,511 - DEBUG - VN ctest-vn-69289507 UUID is 03f25ff2-a671-4bc2-8e30-46f4cfb1710c
2025-10-23 23:45:09,691 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-74660269:ctest-vn-94451488, 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-74660269:ctest-vn-69289507, 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-10-23 23:45:10,054 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '797089bf-63c1-48f4-8cc0-5b0dfc1dcf0c', 'name': 'ctest-vn-94451488', 'tenant_id': 'a639c91537d742b59c944413e44e3e2f', 'project_id': 'a639c91537d742b59c944413e44e3e2f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['719cf5e2-be5b-400e-a04a-06dd991f4db9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-74660269', 'ctest-vn-94451488'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-74660269', 'ctest-policy-allow-all-72408484']], 'subnet_ipam': [{'subnet_cidr': '117.44.231.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-23 23:45:10,350 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '03f25ff2-a671-4bc2-8e30-46f4cfb1710c', 'name': 'ctest-vn-69289507', 'tenant_id': 'a639c91537d742b59c944413e44e3e2f', 'project_id': 'a639c91537d742b59c944413e44e3e2f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3913caf5-e16f-4fb8-98b0-89b590f9ad54'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-74660269', 'ctest-vn-69289507'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-74660269', 'ctest-policy-allow-all-72408484']], 'subnet_ipam': [{'subnet_cidr': '97.149.220.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-23 23:45:10,515 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-23 23:45:10,885 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-23 23:45:10,929 - DEBUG - Requesting: http://10.0.0.254:8082/domain/01b32d2f-6958-4fe1-99c5-1c25744ed448
2025-10-23 23:45:10,956 - DEBUG - Requesting: http://10.0.0.254:8082/project/a639c915-37d7-42b5-9c94-4413e44e3e2f
2025-10-23 23:45:11,081 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/797089bf-63c1-48f4-8cc0-5b0dfc1dcf0c
2025-10-23 23:45:11,118 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/797089bf-63c1-48f4-8cc0-5b0dfc1dcf0c
2025-10-23 23:45:11,148 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/618cd181-8cae-45b3-8ea3-d43976c8de73
2025-10-23 23:45:11,171 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/618cd181-8cae-45b3-8ea3-d43976c8de73
2025-10-23 23:45:11,191 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/a4423456-e6e6-4eb0-91ff-9878e3d59a1c
2025-10-23 23:45:11,209 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-23 23:45:11,209 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/797089bf-63c1-48f4-8cc0-5b0dfc1dcf0c
2025-10-23 23:45:11,236 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/618cd181-8cae-45b3-8ea3-d43976c8de73
2025-10-23 23:45:11,271 - INFO - Verified VN network id 11 for VN 797089bf-63c1-48f4-8cc0-5b0dfc1dcf0c
2025-10-23 23:45:11,272 - INFO - Verifications in API Server for VN ctest-vn-94451488 passed
2025-10-23 23:45:11,272 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/797089bf-63c1-48f4-8cc0-5b0dfc1dcf0c
2025-10-23 23:45:11,295 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/618cd181-8cae-45b3-8ea3-d43976c8de73
2025-10-23 23:45:11,312 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/618cd181-8cae-45b3-8ea3-d43976c8de73
2025-10-23 23:45:11,330 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/a4423456-e6e6-4eb0-91ff-9878e3d59a1c
2025-10-23 23:45:11,363 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-74660269:ctest-vn-94451488', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-74660269', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8750645531086244084', 'uuid-lslong': '10142206476460871436'}, 'enable': 'true', 'created': '2025-10-23T23:45:08', 'last-modified': '2025-10-23T23:45:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.338442'}
2025-10-23 23:45:11,384 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-23 23:45:11,384 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-94451488 passed
2025-10-23 23:45:11,384 - DEBUG - ====Verifying policy data for ctest-vn-94451488 in API_Server ======
2025-10-23 23:45:11,385 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-23 23:45:11,400 - DEBUG - Requesting: http://10.0.0.254:8082/domain/01b32d2f-6958-4fe1-99c5-1c25744ed448
2025-10-23 23:45:11,432 - DEBUG - Requesting: http://10.0.0.254:8082/project/a639c915-37d7-42b5-9c94-4413e44e3e2f
2025-10-23 23:45:11,550 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/797089bf-63c1-48f4-8cc0-5b0dfc1dcf0c
2025-10-23 23:45:11,582 - DEBUG - ==>Verifying data for policy with id: deeeeda2-b825-4c41-82d4-9c746364a106, fqn: ['default-domain', 'ctest-TestBasicPolicy-74660269', 'ctest-policy-allow-all-72408484']
2025-10-23 23:45:11,583 - INFO - VN ctest-vn-94451488 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-23 23:45:11,583 - DEBUG - Verifying the vn in opserver
2025-10-23 23:45:11,583 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-74660269:ctest-vn-94451488 virtual network link through opserver 10.0.0.254
2025-10-23 23:45:11,583 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-23 23:45:11,911 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-23 23:45:12,023 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-74660269:ctest-vn-94451488', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-74660269:ctest-vn-94451488?flat'}
2025-10-23 23:45:12,023 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-74660269:ctest-vn-94451488 is found in opserver
2025-10-23 23:45:12,046 - DEBUG - Do not have enough data to verify VN in agent
2025-10-23 23:45:12,056 - DEBUG - VRF ids for VN ctest-vn-94451488: {}
2025-10-23 23:45:12,056 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-23 23:45:12,071 - DEBUG - Requesting: http://10.0.0.254:8082/domain/01b32d2f-6958-4fe1-99c5-1c25744ed448
2025-10-23 23:45:12,092 - DEBUG - Requesting: http://10.0.0.254:8082/project/a639c915-37d7-42b5-9c94-4413e44e3e2f
2025-10-23 23:45:12,189 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/03f25ff2-a671-4bc2-8e30-46f4cfb1710c
2025-10-23 23:45:12,211 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/03f25ff2-a671-4bc2-8e30-46f4cfb1710c
2025-10-23 23:45:12,224 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/94c5a270-ea20-4e41-959f-8c96de5371bc
2025-10-23 23:45:12,236 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/94c5a270-ea20-4e41-959f-8c96de5371bc
2025-10-23 23:45:12,244 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/1124706a-4c97-4be3-b995-0efa763569aa
2025-10-23 23:45:12,251 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-23 23:45:12,251 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/03f25ff2-a671-4bc2-8e30-46f4cfb1710c
2025-10-23 23:45:12,261 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/94c5a270-ea20-4e41-959f-8c96de5371bc
2025-10-23 23:45:12,279 - INFO - Verified VN network id 12 for VN 03f25ff2-a671-4bc2-8e30-46f4cfb1710c
2025-10-23 23:45:12,279 - INFO - Verifications in API Server for VN ctest-vn-69289507 passed
2025-10-23 23:45:12,280 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/03f25ff2-a671-4bc2-8e30-46f4cfb1710c
2025-10-23 23:45:12,289 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/94c5a270-ea20-4e41-959f-8c96de5371bc
2025-10-23 23:45:12,299 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/94c5a270-ea20-4e41-959f-8c96de5371bc
2025-10-23 23:45:12,307 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/1124706a-4c97-4be3-b995-0efa763569aa
2025-10-23 23:45:12,320 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-74660269:ctest-vn-69289507', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-74660269', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '284395222256929730', 'uuid-lslong': '10245767169538355468'}, 'enable': 'true', 'created': '2025-10-23T23:45:09', 'last-modified': '2025-10-23T23:45:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.010880'}
2025-10-23 23:45:12,330 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-23 23:45:12,330 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-69289507 passed
2025-10-23 23:45:12,331 - DEBUG - ====Verifying policy data for ctest-vn-69289507 in API_Server ======
2025-10-23 23:45:12,331 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-23 23:45:12,341 - DEBUG - Requesting: http://10.0.0.254:8082/domain/01b32d2f-6958-4fe1-99c5-1c25744ed448
2025-10-23 23:45:12,365 - DEBUG - Requesting: http://10.0.0.254:8082/project/a639c915-37d7-42b5-9c94-4413e44e3e2f
2025-10-23 23:45:12,472 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/03f25ff2-a671-4bc2-8e30-46f4cfb1710c
2025-10-23 23:45:12,496 - DEBUG - ==>Verifying data for policy with id: deeeeda2-b825-4c41-82d4-9c746364a106, fqn: ['default-domain', 'ctest-TestBasicPolicy-74660269', 'ctest-policy-allow-all-72408484']
2025-10-23 23:45:12,496 - INFO - VN ctest-vn-69289507 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-23 23:45:12,496 - DEBUG - Verifying the vn in opserver
2025-10-23 23:45:12,496 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-74660269:ctest-vn-69289507 virtual network link through opserver 10.0.0.254
2025-10-23 23:45:12,497 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-23 23:45:12,517 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-74660269:ctest-vn-69289507', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-74660269:ctest-vn-69289507?flat'}
2025-10-23 23:45:12,517 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-74660269:ctest-vn-69289507 is found in opserver
2025-10-23 23:45:12,540 - DEBUG - Do not have enough data to verify VN in agent
2025-10-23 23:45:12,555 - DEBUG - VRF ids for VN ctest-vn-69289507: {}
2025-10-23 23:45:12,711 - DEBUG - Services list from nova: [