2025-07-19 08:06:59,753 - INFO - Domain Default found not creating
2025-07-19 08:06:59,887 - INFO - Project ctest-TestBasicPolicy-82269076 not found, creating it
2025-07-19 08:07:00,328 - INFO - Created Project:ctest-TestBasicPolicy-82269076, ID : 3fed6073-7a74-4e75-8627-28e207a3a513
2025-07-19 08:07:01,707 - INFO - ================================================================================
2025-07-19 08:07:01,707 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-19 08:07:01,707 - 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-07-19 08:07:01,956 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.193': '0'}} with
2025-07-19 08:07:01,956 - INFO - Initial checks done. Running the testcase now
2025-07-19 08:07:01,956 - INFO -
2025-07-19 08:07:02,480 - DEBUG - Response for create_network : {'network': {'id': '31e226a2-6998-4145-8256-1f0ac28b02e8', 'name': 'ctest-vn-47447434', 'tenant_id': '3fed60737a744e75862728e207a3a513', 'project_id': '3fed60737a744e75862728e207a3a513', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82269076', 'ctest-vn-47447434'], 'port_security_enabled': True, 'description': ''}}
2025-07-19 08:07:02,681 - DEBUG - Response for create_subnet : {'subnet': {'id': '1de58a34-46e4-4fad-877d-015800646042', 'name': '', 'tenant_id': '3fed60737a744e75862728e207a3a513', 'network_id': '31e226a2-6998-4145-8256-1f0ac28b02e8', 'ip_version': 4, 'cidr': '166.35.195.0/26', 'allocation_pools': [{'start': '166.35.195.2', 'end': '166.35.195.62'}], 'gateway_ip': '166.35.195.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '166.35.195.2', 'tags': [], 'project_id': '3fed60737a744e75862728e207a3a513'}}
2025-07-19 08:07:02,696 - INFO - Created VN ctest-vn-47447434
2025-07-19 08:07:02,750 - DEBUG - VN ctest-vn-47447434 UUID is 31e226a2-6998-4145-8256-1f0ac28b02e8
2025-07-19 08:07:03,066 - DEBUG - Response for create_network : {'network': {'id': '2ca113ae-d2c4-4b4f-b410-b8d0163b1e21', 'name': 'ctest-vn-58686601', 'tenant_id': '3fed60737a744e75862728e207a3a513', 'project_id': '3fed60737a744e75862728e207a3a513', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82269076', 'ctest-vn-58686601'], 'port_security_enabled': True, 'description': ''}}
2025-07-19 08:07:03,216 - DEBUG - Response for create_subnet : {'subnet': {'id': '76866c83-d6b1-431a-b1fe-0e4d75c27cc0', 'name': '', 'tenant_id': '3fed60737a744e75862728e207a3a513', 'network_id': '2ca113ae-d2c4-4b4f-b410-b8d0163b1e21', 'ip_version': 4, 'cidr': '107.134.192.0/26', 'allocation_pools': [{'start': '107.134.192.2', 'end': '107.134.192.62'}], 'gateway_ip': '107.134.192.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '107.134.192.2', 'tags': [], 'project_id': '3fed60737a744e75862728e207a3a513'}}
2025-07-19 08:07:03,232 - INFO - Created VN ctest-vn-58686601
2025-07-19 08:07:03,282 - DEBUG - VN ctest-vn-58686601 UUID is 2ca113ae-d2c4-4b4f-b410-b8d0163b1e21
2025-07-19 08:07:03,393 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-82269076:ctest-vn-47447434, 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-82269076:ctest-vn-58686601, 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-07-19 08:07:03,687 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '31e226a2-6998-4145-8256-1f0ac28b02e8', 'name': 'ctest-vn-47447434', 'tenant_id': '3fed60737a744e75862728e207a3a513', 'project_id': '3fed60737a744e75862728e207a3a513', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1de58a34-46e4-4fad-877d-015800646042'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82269076', 'ctest-vn-47447434'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-82269076', 'ctest-policy-allow-all-85223924']], 'subnet_ipam': [{'subnet_cidr': '166.35.195.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-19 08:07:03,920 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2ca113ae-d2c4-4b4f-b410-b8d0163b1e21', 'name': 'ctest-vn-58686601', 'tenant_id': '3fed60737a744e75862728e207a3a513', 'project_id': '3fed60737a744e75862728e207a3a513', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['76866c83-d6b1-431a-b1fe-0e4d75c27cc0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82269076', 'ctest-vn-58686601'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-82269076', 'ctest-policy-allow-all-85223924']], 'subnet_ipam': [{'subnet_cidr': '107.134.192.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-19 08:07:04,090 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-07-19 08:07:04,384 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-07-19 08:07:04,409 - DEBUG - Requesting: http://10.0.0.249:8082/domain/73353f16-fc09-42d9-913e-4911ef5c135f
2025-07-19 08:07:04,420 - DEBUG - Requesting: http://10.0.0.249:8082/project/3fed6073-7a74-4e75-8627-28e207a3a513
2025-07-19 08:07:04,495 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/31e226a2-6998-4145-8256-1f0ac28b02e8
2025-07-19 08:07:04,505 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/31e226a2-6998-4145-8256-1f0ac28b02e8
2025-07-19 08:07:04,513 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/ffd7d743-f053-47ca-b1f7-8f60ac50c669
2025-07-19 08:07:04,519 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/ffd7d743-f053-47ca-b1f7-8f60ac50c669
2025-07-19 08:07:04,525 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/8cf4ce40-9741-4c7a-a10b-d16eff7301dd
2025-07-19 08:07:04,530 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-19 08:07:04,530 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/31e226a2-6998-4145-8256-1f0ac28b02e8
2025-07-19 08:07:04,538 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/ffd7d743-f053-47ca-b1f7-8f60ac50c669
2025-07-19 08:07:04,552 - INFO - Verified VN network id 8 for VN 31e226a2-6998-4145-8256-1f0ac28b02e8
2025-07-19 08:07:04,552 - INFO - Verifications in API Server for VN ctest-vn-47447434 passed
2025-07-19 08:07:04,552 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/31e226a2-6998-4145-8256-1f0ac28b02e8
2025-07-19 08:07:04,562 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/ffd7d743-f053-47ca-b1f7-8f60ac50c669
2025-07-19 08:07:04,568 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/ffd7d743-f053-47ca-b1f7-8f60ac50c669
2025-07-19 08:07:04,575 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/8cf4ce40-9741-4c7a-a10b-d16eff7301dd
2025-07-19 08:07:04,585 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-82269076:ctest-vn-47447434', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-82269076', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3594477931593220421', 'uuid-lslong': '9391728204001772264'}, 'enable': 'true', 'created': '2025-07-19T08:07:02', 'last-modified': '2025-07-19T08:07:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.932885'}
2025-07-19 08:07:04,592 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-19 08:07:04,592 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-47447434 passed
2025-07-19 08:07:04,592 - DEBUG - ====Verifying policy data for ctest-vn-47447434 in API_Server ======
2025-07-19 08:07:04,592 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-07-19 08:07:04,598 - DEBUG - Requesting: http://10.0.0.249:8082/domain/73353f16-fc09-42d9-913e-4911ef5c135f
2025-07-19 08:07:04,609 - DEBUG - Requesting: http://10.0.0.249:8082/project/3fed6073-7a74-4e75-8627-28e207a3a513
2025-07-19 08:07:04,678 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/31e226a2-6998-4145-8256-1f0ac28b02e8
2025-07-19 08:07:04,686 - DEBUG - ==>Verifying data for policy with id: c7667636-cdc2-4524-898c-615d53dd5907, fqn: ['default-domain', 'ctest-TestBasicPolicy-82269076', 'ctest-policy-allow-all-85223924']
2025-07-19 08:07:04,686 - INFO - VN ctest-vn-47447434 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-19 08:07:04,686 - DEBUG - Verifying the vn in opserver
2025-07-19 08:07:04,686 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-82269076:ctest-vn-47447434 virtual network link through opserver 10.0.0.249
2025-07-19 08:07:04,686 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-07-19 08:07:04,975 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-07-19 08:07:05,027 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-82269076:ctest-vn-47447434', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-82269076:ctest-vn-47447434?flat'}
2025-07-19 08:07:05,027 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-82269076:ctest-vn-47447434 is found in opserver
2025-07-19 08:07:05,038 - DEBUG - Do not have enough data to verify VN in agent
2025-07-19 08:07:05,043 - DEBUG - VRF ids for VN ctest-vn-47447434: {}
2025-07-19 08:07:05,044 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-07-19 08:07:05,050 - DEBUG - Requesting: http://10.0.0.249:8082/domain/73353f16-fc09-42d9-913e-4911ef5c135f
2025-07-19 08:07:05,062 - DEBUG - Requesting: http://10.0.0.249:8082/project/3fed6073-7a74-4e75-8627-28e207a3a513
2025-07-19 08:07:05,129 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/2ca113ae-d2c4-4b4f-b410-b8d0163b1e21
2025-07-19 08:07:05,140 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/2ca113ae-d2c4-4b4f-b410-b8d0163b1e21
2025-07-19 08:07:05,150 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/ac59ca44-7f7d-4ce2-a5db-532e4f76e980
2025-07-19 08:07:05,158 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/ac59ca44-7f7d-4ce2-a5db-532e4f76e980
2025-07-19 08:07:05,164 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/6e131b5a-640e-4193-962f-06bd6dbd55f6
2025-07-19 08:07:05,170 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-19 08:07:05,170 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/2ca113ae-d2c4-4b4f-b410-b8d0163b1e21
2025-07-19 08:07:05,178 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/ac59ca44-7f7d-4ce2-a5db-532e4f76e980
2025-07-19 08:07:05,189 - INFO - Verified VN network id 9 for VN 2ca113ae-d2c4-4b4f-b410-b8d0163b1e21
2025-07-19 08:07:05,189 - INFO - Verifications in API Server for VN ctest-vn-58686601 passed
2025-07-19 08:07:05,189 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/2ca113ae-d2c4-4b4f-b410-b8d0163b1e21
2025-07-19 08:07:05,197 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/ac59ca44-7f7d-4ce2-a5db-532e4f76e980
2025-07-19 08:07:05,202 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/ac59ca44-7f7d-4ce2-a5db-532e4f76e980
2025-07-19 08:07:05,207 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/6e131b5a-640e-4193-962f-06bd6dbd55f6
2025-07-19 08:07:05,217 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-82269076:ctest-vn-58686601', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-82269076', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3215873250500561743', 'uuid-lslong': '12975073730320080417'}, 'enable': 'true', 'created': '2025-07-19T08:07:03', 'last-modified': '2025-07-19T08:07:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.320430'}
2025-07-19 08:07:05,222 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-19 08:07:05,222 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-58686601 passed
2025-07-19 08:07:05,222 - DEBUG - ====Verifying policy data for ctest-vn-58686601 in API_Server ======
2025-07-19 08:07:05,222 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-07-19 08:07:05,227 - DEBUG - Requesting: http://10.0.0.249:8082/domain/73353f16-fc09-42d9-913e-4911ef5c135f
2025-07-19 08:07:05,237 - DEBUG - Requesting: http://10.0.0.249:8082/project/3fed6073-7a74-4e75-8627-28e207a3a513
2025-07-19 08:07:05,307 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/2ca113ae-d2c4-4b4f-b410-b8d0163b1e21
2025-07-19 08:07:05,316 - DEBUG - ==>Verifying data for policy with id: c7667636-cdc2-4524-898c-615d53dd5907, fqn: ['default-domain', 'ctest-TestBasicPolicy-82269076', 'ctest-policy-allow-all-85223924']
2025-07-19 08:07:05,316 - INFO - VN ctest-vn-58686601 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-19 08:07:05,316 - DEBUG - Verifying the vn in opserver
2025-07-19 08:07:05,316 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-82269076:ctest-vn-58686601 virtual network link through opserver 10.0.0.249
2025-07-19 08:07:05,316 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-07-19 08:07:05,327 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-82269076:ctest-vn-58686601', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-82269076:ctest-vn-58686601?flat'}
2025-07-19 08:07:05,327 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-82269076:ctest-vn-58686601 is found in opserver
2025-07-19 08:07:05,336 - DEBUG - Do not have enough data to verify VN in agent
2025-07-19 08:07:05,341 - DEBUG - VRF ids for VN ctest-vn-58686601: {}
2025-07-19 08:07:05,404 - DEBUG - Services list from nova: [