2025-11-03 01:49:07,208 - INFO - Reading existing Domain with UUID 5e346e6a-000a-45ec-ad9d-44dfc9f4db48
2025-11-03 01:49:07,218 - INFO - Using existing domain ['admin_domain'](5e346e6a-000a-45ec-ad9d-44dfc9f4db48)
2025-11-03 01:49:07,428 - INFO - Project ctest-TestBasicPolicy-43718354 not found, creating it
2025-11-03 01:49:07,932 - INFO - Created Project:ctest-TestBasicPolicy-43718354, ID : 1fcdfdc1-02fd-4809-a83b-a22f2484460b
2025-11-03 01:49:09,655 - INFO - ================================================================================
2025-11-03 01:49:09,656 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-03 01:49:09,656 - 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-11-03 01:49:10,051 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.0.0.22': '0'}} with
2025-11-03 01:49:10,051 - INFO - Initial checks done. Running the testcase now
2025-11-03 01:49:10,051 - INFO -
2025-11-03 01:49:10,791 - DEBUG - Response for create_network : {'network': {'id': 'ec50c078-5eca-47e3-b855-bbfdbdd90d7b', 'name': 'ctest-vn-41640660', 'tenant_id': '1fcdfdc102fd4809a83ba22f2484460b', 'project_id': '1fcdfdc102fd4809a83ba22f2484460b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-43718354', 'ctest-vn-41640660'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}}
2025-11-03 01:49:11,006 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd73ee909-5458-4db7-ace8-18fd64731850', 'name': '', 'tenant_id': '1fcdfdc102fd4809a83ba22f2484460b', 'network_id': 'ec50c078-5eca-47e3-b855-bbfdbdd90d7b', 'ip_version': 4, 'cidr': '156.36.74.0/26', 'allocation_pools': [{'start': '156.36.74.2', 'end': '156.36.74.62'}], 'gateway_ip': '156.36.74.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-11-03T01:49:10.911061', 'updated_at': '2025-11-03T01:49:10.911061', 'dns_server_address': '156.36.74.2', 'tags': [], 'project_id': '1fcdfdc102fd4809a83ba22f2484460b'}}
2025-11-03 01:49:11,071 - INFO - Created VN ctest-vn-41640660
2025-11-03 01:49:11,125 - DEBUG - VN ctest-vn-41640660 UUID is ec50c078-5eca-47e3-b855-bbfdbdd90d7b
2025-11-03 01:49:11,594 - DEBUG - Response for create_network : {'network': {'id': '4ce7b5b8-d9f8-4fd8-990b-61d4b2b966e1', 'name': 'ctest-vn-25910132', 'tenant_id': '1fcdfdc102fd4809a83ba22f2484460b', 'project_id': '1fcdfdc102fd4809a83ba22f2484460b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-43718354', 'ctest-vn-25910132'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}}
2025-11-03 01:49:11,866 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c2f31ce4-0c69-4474-9f0f-38fb7c2ea51f', 'name': '', 'tenant_id': '1fcdfdc102fd4809a83ba22f2484460b', 'network_id': '4ce7b5b8-d9f8-4fd8-990b-61d4b2b966e1', 'ip_version': 4, 'cidr': '121.192.202.0/26', 'allocation_pools': [{'start': '121.192.202.2', 'end': '121.192.202.62'}], 'gateway_ip': '121.192.202.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-11-03T01:49:11.761028', 'updated_at': '2025-11-03T01:49:11.761028', 'dns_server_address': '121.192.202.2', 'tags': [], 'project_id': '1fcdfdc102fd4809a83ba22f2484460b'}}
2025-11-03 01:49:11,934 - INFO - Created VN ctest-vn-25910132
2025-11-03 01:49:11,985 - DEBUG - VN ctest-vn-25910132 UUID is 4ce7b5b8-d9f8-4fd8-990b-61d4b2b966e1
2025-11-03 01:49:12,193 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-43718354:ctest-vn-41640660, 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-43718354:ctest-vn-25910132, 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-11-03 01:49:12,593 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ec50c078-5eca-47e3-b855-bbfdbdd90d7b', 'name': 'ctest-vn-41640660', 'tenant_id': '1fcdfdc102fd4809a83ba22f2484460b', 'project_id': '1fcdfdc102fd4809a83ba22f2484460b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d73ee909-5458-4db7-ace8-18fd64731850'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-43718354', 'ctest-vn-41640660'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-43718354', 'ctest-policy-allow-all-30995656']], 'subnet_ipam': [{'subnet_cidr': '156.36.74.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2025-11-03T01:49:10.713577', 'updated_at': '2025-11-03T01:49:10.926482'}}
2025-11-03 01:49:12,945 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4ce7b5b8-d9f8-4fd8-990b-61d4b2b966e1', 'name': 'ctest-vn-25910132', 'tenant_id': '1fcdfdc102fd4809a83ba22f2484460b', 'project_id': '1fcdfdc102fd4809a83ba22f2484460b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c2f31ce4-0c69-4474-9f0f-38fb7c2ea51f'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-43718354', 'ctest-vn-25910132'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-43718354', 'ctest-policy-allow-all-30995656']], 'subnet_ipam': [{'subnet_cidr': '121.192.202.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2025-11-03T01:49:11.519511', 'updated_at': '2025-11-03T01:49:11.776195'}}
2025-11-03 01:49:13,129 - DEBUG - Requesting: https://10.0.0.22:8082/domains
2025-11-03 01:49:13,474 - DEBUG - Requesting: https://10.0.0.22:8082/domains
2025-11-03 01:49:13,562 - DEBUG - Requesting: https://10.0.0.22:8082/domain/5e346e6a-000a-45ec-ad9d-44dfc9f4db48
2025-11-03 01:49:13,618 - DEBUG - Requesting: https://10.0.0.22:8082/project/1fcdfdc1-02fd-4809-a83b-a22f2484460b
2025-11-03 01:49:13,699 - DEBUG - Requesting: https://10.0.0.22:8082/virtual-network/ec50c078-5eca-47e3-b855-bbfdbdd90d7b
2025-11-03 01:49:13,756 - DEBUG - Requesting: https://10.0.0.22:8082/virtual-network/ec50c078-5eca-47e3-b855-bbfdbdd90d7b
2025-11-03 01:49:13,811 - DEBUG - Requesting: https://10.0.0.22:8082/routing-instance/8ddc482e-8088-4418-ae31-920ba36febd5
2025-11-03 01:49:13,866 - DEBUG - Requesting: https://10.0.0.22:8082/routing-instance/8ddc482e-8088-4418-ae31-920ba36febd5
2025-11-03 01:49:13,918 - DEBUG - Requesting: https://10.0.0.22:8082/route-target/12925683-a2f9-47b4-9ebf-2ba5c3c99c86
2025-11-03 01:49:13,974 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-03 01:49:13,974 - DEBUG - Requesting: https://10.0.0.22:8082/virtual-network/ec50c078-5eca-47e3-b855-bbfdbdd90d7b
2025-11-03 01:49:14,031 - DEBUG - Requesting: https://10.0.0.22:8082/routing-instance/8ddc482e-8088-4418-ae31-920ba36febd5
2025-11-03 01:49:14,095 - INFO - Verified VN network id 11 for VN ec50c078-5eca-47e3-b855-bbfdbdd90d7b
2025-11-03 01:49:14,095 - INFO - Verifications in API Server for VN ctest-vn-41640660 passed
2025-11-03 01:49:14,095 - DEBUG - Requesting: https://10.0.0.22:8082/virtual-network/ec50c078-5eca-47e3-b855-bbfdbdd90d7b
2025-11-03 01:49:14,155 - DEBUG - Requesting: https://10.0.0.22:8082/routing-instance/8ddc482e-8088-4418-ae31-920ba36febd5
2025-11-03 01:49:14,210 - DEBUG - Requesting: https://10.0.0.22:8082/routing-instance/8ddc482e-8088-4418-ae31-920ba36febd5
2025-11-03 01:49:14,262 - DEBUG - Requesting: https://10.0.0.22:8082/route-target/12925683-a2f9-47b4-9ebf-2ba5c3c99c86
2025-11-03 01:49:14,366 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-43718354:ctest-vn-41640660', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-43718354', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17028321814306768867', 'uuid-lslong': '13282729374485384571'}, 'enable': 'true', 'created': '2025-11-03T01:49:10', 'last-modified': '2025-11-03T01:49:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.785805'}
2025-11-03 01:49:14,419 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-03 01:49:14,419 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-41640660 passed
2025-11-03 01:49:14,420 - DEBUG - ====Verifying policy data for ctest-vn-41640660 in API_Server ======
2025-11-03 01:49:14,420 - DEBUG - Requesting: https://10.0.0.22:8082/domains
2025-11-03 01:49:14,474 - DEBUG - Requesting: https://10.0.0.22:8082/domain/5e346e6a-000a-45ec-ad9d-44dfc9f4db48
2025-11-03 01:49:14,535 - DEBUG - Requesting: https://10.0.0.22:8082/project/1fcdfdc1-02fd-4809-a83b-a22f2484460b
2025-11-03 01:49:14,614 - DEBUG - Requesting: https://10.0.0.22:8082/virtual-network/ec50c078-5eca-47e3-b855-bbfdbdd90d7b
2025-11-03 01:49:14,671 - DEBUG - ==>Verifying data for policy with id: 2f6b2a3e-9f42-441b-8a48-7eea8bf2e61d, fqn: ['admin_domain', 'ctest-TestBasicPolicy-43718354', 'ctest-policy-allow-all-30995656']
2025-11-03 01:49:14,671 - INFO - VN ctest-vn-41640660 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-03 01:49:14,671 - DEBUG - Verifying the vn in opserver
2025-11-03 01:49:14,671 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-43718354:ctest-vn-41640660 virtual network link through opserver 10.0.0.22
2025-11-03 01:49:14,671 - DEBUG - Requesting: https://10.0.0.22:8081/analytics/uves/virtual-networks
2025-11-03 01:49:15,022 - DEBUG - Requesting: https://10.0.0.22:8081/analytics/uves/virtual-networks
2025-11-03 01:49:15,138 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-43718354:ctest-vn-41640660', 'href': 'https://10.0.0.22:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-43718354:ctest-vn-41640660?flat'}
2025-11-03 01:49:15,138 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-43718354:ctest-vn-41640660 is found in opserver
2025-11-03 01:49:15,242 - DEBUG - Do not have enough data to verify VN in agent
2025-11-03 01:49:15,290 - DEBUG - VRF ids for VN ctest-vn-41640660: {}
2025-11-03 01:49:15,290 - DEBUG - Requesting: https://10.0.0.22:8082/domains
2025-11-03 01:49:15,342 - DEBUG - Requesting: https://10.0.0.22:8082/domain/5e346e6a-000a-45ec-ad9d-44dfc9f4db48
2025-11-03 01:49:15,402 - DEBUG - Requesting: https://10.0.0.22:8082/project/1fcdfdc1-02fd-4809-a83b-a22f2484460b
2025-11-03 01:49:15,475 - DEBUG - Requesting: https://10.0.0.22:8082/virtual-network/4ce7b5b8-d9f8-4fd8-990b-61d4b2b966e1
2025-11-03 01:49:15,531 - DEBUG - Requesting: https://10.0.0.22:8082/virtual-network/4ce7b5b8-d9f8-4fd8-990b-61d4b2b966e1
2025-11-03 01:49:15,591 - DEBUG - Requesting: https://10.0.0.22:8082/routing-instance/3e1df3bb-4f03-4eec-b29e-aeea5b8002a3
2025-11-03 01:49:15,646 - DEBUG - Requesting: https://10.0.0.22:8082/routing-instance/3e1df3bb-4f03-4eec-b29e-aeea5b8002a3
2025-11-03 01:49:15,698 - DEBUG - Requesting: https://10.0.0.22:8082/route-target/21c21f02-da84-439c-beb2-5691d63bdad6
2025-11-03 01:49:15,750 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-03 01:49:15,750 - DEBUG - Requesting: https://10.0.0.22:8082/virtual-network/4ce7b5b8-d9f8-4fd8-990b-61d4b2b966e1
2025-11-03 01:49:15,804 - DEBUG - Requesting: https://10.0.0.22:8082/routing-instance/3e1df3bb-4f03-4eec-b29e-aeea5b8002a3
2025-11-03 01:49:15,872 - INFO - Verified VN network id 12 for VN 4ce7b5b8-d9f8-4fd8-990b-61d4b2b966e1
2025-11-03 01:49:15,873 - INFO - Verifications in API Server for VN ctest-vn-25910132 passed
2025-11-03 01:49:15,873 - DEBUG - Requesting: https://10.0.0.22:8082/virtual-network/4ce7b5b8-d9f8-4fd8-990b-61d4b2b966e1
2025-11-03 01:49:15,931 - DEBUG - Requesting: https://10.0.0.22:8082/routing-instance/3e1df3bb-4f03-4eec-b29e-aeea5b8002a3
2025-11-03 01:49:15,987 - DEBUG - Requesting: https://10.0.0.22:8082/routing-instance/3e1df3bb-4f03-4eec-b29e-aeea5b8002a3
2025-11-03 01:49:16,042 - DEBUG - Requesting: https://10.0.0.22:8082/route-target/21c21f02-da84-439c-beb2-5691d63bdad6
2025-11-03 01:49:16,142 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-43718354:ctest-vn-25910132', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-43718354', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5541597672038223832', 'uuid-lslong': '11028015678706247393'}, 'enable': 'true', 'created': '2025-11-03T01:49:11', 'last-modified': '2025-11-03T01:49:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:03.224437'}
2025-11-03 01:49:16,195 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-03 01:49:16,195 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-25910132 passed
2025-11-03 01:49:16,195 - DEBUG - ====Verifying policy data for ctest-vn-25910132 in API_Server ======
2025-11-03 01:49:16,195 - DEBUG - Requesting: https://10.0.0.22:8082/domains
2025-11-03 01:49:16,245 - DEBUG - Requesting: https://10.0.0.22:8082/domain/5e346e6a-000a-45ec-ad9d-44dfc9f4db48
2025-11-03 01:49:16,306 - DEBUG - Requesting: https://10.0.0.22:8082/project/1fcdfdc1-02fd-4809-a83b-a22f2484460b
2025-11-03 01:49:16,382 - DEBUG - Requesting: https://10.0.0.22:8082/virtual-network/4ce7b5b8-d9f8-4fd8-990b-61d4b2b966e1
2025-11-03 01:49:16,439 - DEBUG - ==>Verifying data for policy with id: 2f6b2a3e-9f42-441b-8a48-7eea8bf2e61d, fqn: ['admin_domain', 'ctest-TestBasicPolicy-43718354', 'ctest-policy-allow-all-30995656']
2025-11-03 01:49:16,439 - INFO - VN ctest-vn-25910132 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-03 01:49:16,440 - DEBUG - Verifying the vn in opserver
2025-11-03 01:49:16,440 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-43718354:ctest-vn-25910132 virtual network link through opserver 10.0.0.22
2025-11-03 01:49:16,440 - DEBUG - Requesting: https://10.0.0.22:8081/analytics/uves/virtual-networks
2025-11-03 01:49:16,494 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-43718354:ctest-vn-25910132', 'href': 'https://10.0.0.22:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-43718354:ctest-vn-25910132?flat'}
2025-11-03 01:49:16,494 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-43718354:ctest-vn-25910132 is found in opserver
2025-11-03 01:49:16,598 - DEBUG - Do not have enough data to verify VN in agent
2025-11-03 01:49:16,646 - DEBUG - VRF ids for VN ctest-vn-25910132: {}
2025-11-03 01:49:16,711 - DEBUG - Services list from nova: [