2025-10-09 13:44:52,407 - INFO - Reading existing Domain with UUID 8ad80d2d-2369-4ab9-896f-7a17fd6c7f55
2025-10-09 13:44:52,422 - INFO - Using existing domain ['admin_domain'](8ad80d2d-2369-4ab9-896f-7a17fd6c7f55)
2025-10-09 13:44:52,644 - INFO - Project ctest-TestBasicPolicy-98788352 not found, creating it
2025-10-09 13:44:53,280 - INFO - Created Project:ctest-TestBasicPolicy-98788352, ID : cc678cee-bbab-4b05-b9e9-bef5b6c65931
2025-10-09 13:44:57,313 - INFO - ================================================================================
2025-10-09 13:44:57,314 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-09 13:44:57,314 - 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-09 13:44:57,829 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.0.0.41': '0'}} with
2025-10-09 13:44:57,829 - INFO - Initial checks done. Running the testcase now
2025-10-09 13:44:57,829 - INFO -
2025-10-09 13:45:00,073 - DEBUG - Response for create_network : {'network': {'id': 'af507168-6dd8-4c8f-9f52-7572cbfb0a6f', 'name': 'ctest-vn-31196518', 'tenant_id': 'cc678ceebbab4b05b9e9bef5b6c65931', 'project_id': 'cc678ceebbab4b05b9e9bef5b6c65931', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-98788352', 'ctest-vn-31196518'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}}
2025-10-09 13:45:00,445 - DEBUG - Response for create_subnet : {'subnet': {'id': '7e5d0dfe-0163-4b4e-a86a-c51cc69303a9', 'name': '', 'tenant_id': 'cc678ceebbab4b05b9e9bef5b6c65931', 'network_id': 'af507168-6dd8-4c8f-9f52-7572cbfb0a6f', 'ip_version': 4, 'cidr': '59.45.207.0/26', 'allocation_pools': [{'start': '59.45.207.2', 'end': '59.45.207.62'}], 'gateway_ip': '59.45.207.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-10-09T13:45:00.276820', 'updated_at': '2025-10-09T13:45:00.276820', 'dns_server_address': '59.45.207.2', 'tags': [], 'project_id': 'cc678ceebbab4b05b9e9bef5b6c65931'}}
2025-10-09 13:45:00,525 - INFO - Created VN ctest-vn-31196518
2025-10-09 13:45:00,610 - DEBUG - VN ctest-vn-31196518 UUID is af507168-6dd8-4c8f-9f52-7572cbfb0a6f
2025-10-09 13:45:01,320 - DEBUG - Response for create_network : {'network': {'id': '18f5b267-e1ad-4508-a8f3-f4095883579e', 'name': 'ctest-vn-05796562', 'tenant_id': 'cc678ceebbab4b05b9e9bef5b6c65931', 'project_id': 'cc678ceebbab4b05b9e9bef5b6c65931', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-98788352', 'ctest-vn-05796562'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}}
2025-10-09 13:45:01,652 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a713d129-ec0f-4100-a677-4d058faf3973', 'name': '', 'tenant_id': 'cc678ceebbab4b05b9e9bef5b6c65931', 'network_id': '18f5b267-e1ad-4508-a8f3-f4095883579e', 'ip_version': 4, 'cidr': '46.179.48.0/26', 'allocation_pools': [{'start': '46.179.48.2', 'end': '46.179.48.62'}], 'gateway_ip': '46.179.48.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-10-09T13:45:01.510939', 'updated_at': '2025-10-09T13:45:01.510939', 'dns_server_address': '46.179.48.2', 'tags': [], 'project_id': 'cc678ceebbab4b05b9e9bef5b6c65931'}}
2025-10-09 13:45:01,731 - INFO - Created VN ctest-vn-05796562
2025-10-09 13:45:01,791 - DEBUG - VN ctest-vn-05796562 UUID is 18f5b267-e1ad-4508-a8f3-f4095883579e
2025-10-09 13:45:02,070 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-98788352:ctest-vn-31196518, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-98788352:ctest-vn-05796562, 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-09 13:45:02,607 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'af507168-6dd8-4c8f-9f52-7572cbfb0a6f', 'name': 'ctest-vn-31196518', 'tenant_id': 'cc678ceebbab4b05b9e9bef5b6c65931', 'project_id': 'cc678ceebbab4b05b9e9bef5b6c65931', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7e5d0dfe-0163-4b4e-a86a-c51cc69303a9'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-98788352', 'ctest-vn-31196518'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-98788352', 'ctest-policy-allow-all-08575227']], 'subnet_ipam': [{'subnet_cidr': '59.45.207.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2025-10-09T13:44:59.773575', 'updated_at': '2025-10-09T13:45:00.309037'}}
2025-10-09 13:45:03,094 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '18f5b267-e1ad-4508-a8f3-f4095883579e', 'name': 'ctest-vn-05796562', 'tenant_id': 'cc678ceebbab4b05b9e9bef5b6c65931', 'project_id': 'cc678ceebbab4b05b9e9bef5b6c65931', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a713d129-ec0f-4100-a677-4d058faf3973'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-98788352', 'ctest-vn-05796562'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-98788352', 'ctest-policy-allow-all-08575227']], 'subnet_ipam': [{'subnet_cidr': '46.179.48.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2025-10-09T13:45:01.187036', 'updated_at': '2025-10-09T13:45:01.528224'}}
2025-10-09 13:45:03,299 - DEBUG - Requesting: https://10.0.0.41:8082/domains
2025-10-09 13:45:03,721 - DEBUG - Requesting: https://10.0.0.41:8082/domains
2025-10-09 13:45:03,811 - DEBUG - Requesting: https://10.0.0.41:8082/domain/8ad80d2d-2369-4ab9-896f-7a17fd6c7f55
2025-10-09 13:45:03,872 - DEBUG - Requesting: https://10.0.0.41:8082/project/cc678cee-bbab-4b05-b9e9-bef5b6c65931
2025-10-09 13:45:03,994 - DEBUG - Requesting: https://10.0.0.41:8082/virtual-network/af507168-6dd8-4c8f-9f52-7572cbfb0a6f
2025-10-09 13:45:04,081 - DEBUG - Requesting: https://10.0.0.41:8082/virtual-network/af507168-6dd8-4c8f-9f52-7572cbfb0a6f
2025-10-09 13:45:04,145 - DEBUG - Requesting: https://10.0.0.41:8082/routing-instance/7b55474a-f511-4885-8584-6d6e71292ada
2025-10-09 13:45:04,216 - DEBUG - Requesting: https://10.0.0.41:8082/routing-instance/7b55474a-f511-4885-8584-6d6e71292ada
2025-10-09 13:45:04,283 - DEBUG - Requesting: https://10.0.0.41:8082/route-target/d393a381-818b-4b3e-86d4-7e4c08497ce5
2025-10-09 13:45:04,359 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-09 13:45:04,359 - DEBUG - Requesting: https://10.0.0.41:8082/virtual-network/af507168-6dd8-4c8f-9f52-7572cbfb0a6f
2025-10-09 13:45:04,426 - DEBUG - Requesting: https://10.0.0.41:8082/routing-instance/7b55474a-f511-4885-8584-6d6e71292ada
2025-10-09 13:45:04,508 - INFO - Verified VN network id 11 for VN af507168-6dd8-4c8f-9f52-7572cbfb0a6f
2025-10-09 13:45:04,508 - INFO - Verifications in API Server for VN ctest-vn-31196518 passed
2025-10-09 13:45:04,508 - DEBUG - Requesting: https://10.0.0.41:8082/virtual-network/af507168-6dd8-4c8f-9f52-7572cbfb0a6f
2025-10-09 13:45:04,580 - DEBUG - Requesting: https://10.0.0.41:8082/routing-instance/7b55474a-f511-4885-8584-6d6e71292ada
2025-10-09 13:45:04,640 - DEBUG - Requesting: https://10.0.0.41:8082/routing-instance/7b55474a-f511-4885-8584-6d6e71292ada
2025-10-09 13:45:04,705 - DEBUG - Requesting: https://10.0.0.41:8082/route-target/d393a381-818b-4b3e-86d4-7e4c08497ce5
2025-10-09 13:45:04,832 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-98788352:ctest-vn-31196518', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-98788352', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12632721648107670671', 'uuid-lslong': '11480367536029764207'}, 'enable': 'true', 'created': '2025-10-09T13:44:59', 'last-modified': '2025-10-09T13:45:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.264520'}
2025-10-09 13:45:04,894 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-09 13:45:04,894 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-31196518 passed
2025-10-09 13:45:04,894 - DEBUG - ====Verifying policy data for ctest-vn-31196518 in API_Server ======
2025-10-09 13:45:04,894 - DEBUG - Requesting: https://10.0.0.41:8082/domains
2025-10-09 13:45:04,955 - DEBUG - Requesting: https://10.0.0.41:8082/domain/8ad80d2d-2369-4ab9-896f-7a17fd6c7f55
2025-10-09 13:45:05,019 - DEBUG - Requesting: https://10.0.0.41:8082/project/cc678cee-bbab-4b05-b9e9-bef5b6c65931
2025-10-09 13:45:05,109 - DEBUG - Requesting: https://10.0.0.41:8082/virtual-network/af507168-6dd8-4c8f-9f52-7572cbfb0a6f
2025-10-09 13:45:05,169 - DEBUG - ==>Verifying data for policy with id: 63f5c927-2a67-4c9d-bb6b-793239e8e15a, fqn: ['admin_domain', 'ctest-TestBasicPolicy-98788352', 'ctest-policy-allow-all-08575227']
2025-10-09 13:45:05,169 - INFO - VN ctest-vn-31196518 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-09 13:45:05,169 - DEBUG - Verifying the vn in opserver
2025-10-09 13:45:05,170 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-98788352:ctest-vn-31196518 virtual network link through opserver 10.0.0.41
2025-10-09 13:45:05,170 - DEBUG - Requesting: https://10.0.0.41:8081/analytics/uves/virtual-networks
2025-10-09 13:45:05,592 - DEBUG - Requesting: https://10.0.0.41:8081/analytics/uves/virtual-networks
2025-10-09 13:45:05,739 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-98788352:ctest-vn-31196518', 'href': 'https://10.0.0.41:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-98788352:ctest-vn-31196518?flat'}
2025-10-09 13:45:05,739 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-98788352:ctest-vn-31196518 is found in opserver
2025-10-09 13:45:05,847 - DEBUG - Do not have enough data to verify VN in agent
2025-10-09 13:45:05,903 - DEBUG - VRF ids for VN ctest-vn-31196518: {}
2025-10-09 13:45:05,903 - DEBUG - Requesting: https://10.0.0.41:8082/domains
2025-10-09 13:45:05,959 - DEBUG - Requesting: https://10.0.0.41:8082/domain/8ad80d2d-2369-4ab9-896f-7a17fd6c7f55
2025-10-09 13:45:06,027 - DEBUG - Requesting: https://10.0.0.41:8082/project/cc678cee-bbab-4b05-b9e9-bef5b6c65931
2025-10-09 13:45:06,132 - DEBUG - Requesting: https://10.0.0.41:8082/virtual-network/18f5b267-e1ad-4508-a8f3-f4095883579e
2025-10-09 13:45:06,205 - DEBUG - Requesting: https://10.0.0.41:8082/virtual-network/18f5b267-e1ad-4508-a8f3-f4095883579e
2025-10-09 13:45:06,265 - DEBUG - Requesting: https://10.0.0.41:8082/routing-instance/a23643f5-e729-42fa-a4b1-9dfa1d6d3663
2025-10-09 13:45:06,325 - DEBUG - Requesting: https://10.0.0.41:8082/routing-instance/a23643f5-e729-42fa-a4b1-9dfa1d6d3663
2025-10-09 13:45:06,391 - DEBUG - Requesting: https://10.0.0.41:8082/route-target/5a6c23e2-7a7c-48d7-beaf-93f14fdc9dde
2025-10-09 13:45:06,451 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-09 13:45:06,451 - DEBUG - Requesting: https://10.0.0.41:8082/virtual-network/18f5b267-e1ad-4508-a8f3-f4095883579e
2025-10-09 13:45:06,508 - DEBUG - Requesting: https://10.0.0.41:8082/routing-instance/a23643f5-e729-42fa-a4b1-9dfa1d6d3663
2025-10-09 13:45:06,585 - INFO - Verified VN network id 12 for VN 18f5b267-e1ad-4508-a8f3-f4095883579e
2025-10-09 13:45:06,586 - INFO - Verifications in API Server for VN ctest-vn-05796562 passed
2025-10-09 13:45:06,586 - DEBUG - Requesting: https://10.0.0.41:8082/virtual-network/18f5b267-e1ad-4508-a8f3-f4095883579e
2025-10-09 13:45:06,652 - DEBUG - Requesting: https://10.0.0.41:8082/routing-instance/a23643f5-e729-42fa-a4b1-9dfa1d6d3663
2025-10-09 13:45:06,708 - DEBUG - Requesting: https://10.0.0.41:8082/routing-instance/a23643f5-e729-42fa-a4b1-9dfa1d6d3663
2025-10-09 13:45:06,767 - DEBUG - Requesting: https://10.0.0.41:8082/route-target/5a6c23e2-7a7c-48d7-beaf-93f14fdc9dde
2025-10-09 13:45:06,880 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-98788352:ctest-vn-05796562', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-98788352', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1798539785441985800', 'uuid-lslong': '12174342538689468318'}, 'enable': 'true', 'created': '2025-10-09T13:45:01', 'last-modified': '2025-10-09T13:45:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:03.835134'}
2025-10-09 13:45:06,941 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-09 13:45:06,941 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-05796562 passed
2025-10-09 13:45:06,941 - DEBUG - ====Verifying policy data for ctest-vn-05796562 in API_Server ======
2025-10-09 13:45:06,942 - DEBUG - Requesting: https://10.0.0.41:8082/domains
2025-10-09 13:45:06,995 - DEBUG - Requesting: https://10.0.0.41:8082/domain/8ad80d2d-2369-4ab9-896f-7a17fd6c7f55
2025-10-09 13:45:07,064 - DEBUG - Requesting: https://10.0.0.41:8082/project/cc678cee-bbab-4b05-b9e9-bef5b6c65931
2025-10-09 13:45:07,160 - DEBUG - Requesting: https://10.0.0.41:8082/virtual-network/18f5b267-e1ad-4508-a8f3-f4095883579e
2025-10-09 13:45:07,218 - DEBUG - ==>Verifying data for policy with id: 63f5c927-2a67-4c9d-bb6b-793239e8e15a, fqn: ['admin_domain', 'ctest-TestBasicPolicy-98788352', 'ctest-policy-allow-all-08575227']
2025-10-09 13:45:07,218 - INFO - VN ctest-vn-05796562 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-09 13:45:07,218 - DEBUG - Verifying the vn in opserver
2025-10-09 13:45:07,219 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-98788352:ctest-vn-05796562 virtual network link through opserver 10.0.0.41
2025-10-09 13:45:07,219 - DEBUG - Requesting: https://10.0.0.41:8081/analytics/uves/virtual-networks
2025-10-09 13:45:07,288 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-98788352:ctest-vn-05796562', 'href': 'https://10.0.0.41:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-98788352:ctest-vn-05796562?flat'}
2025-10-09 13:45:07,288 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-98788352:ctest-vn-05796562 is found in opserver
2025-10-09 13:45:07,395 - DEBUG - Do not have enough data to verify VN in agent
2025-10-09 13:45:07,447 - DEBUG - VRF ids for VN ctest-vn-05796562: {}
2025-10-09 13:45:07,517 - DEBUG - Services list from nova: [