2025-10-31 14:47:22,341 - INFO - Domain Default found not creating
2025-10-31 14:47:22,500 - INFO - Project ctest-TestBasicPolicy-13497072 not found, creating it
2025-10-31 14:47:22,963 - INFO - Created Project:ctest-TestBasicPolicy-13497072, ID : bd5a28a0-e6d3-482e-bd2f-6afa2557826d
2025-10-31 14:47:24,517 - INFO - ================================================================================
2025-10-31 14:47:24,517 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-31 14:47:24,517 - 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-31 14:47:24,781 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.254': '0'}} with
2025-10-31 14:47:24,781 - INFO - Initial checks done. Running the testcase now
2025-10-31 14:47:24,781 - INFO -
2025-10-31 14:47:25,375 - DEBUG - Response for create_network : {'network': {'id': '722a2a3f-c043-4b9b-883f-6c545bdd24ac', 'name': 'ctest-vn-30184479', 'tenant_id': 'bd5a28a0e6d3482ebd2f6afa2557826d', 'project_id': 'bd5a28a0e6d3482ebd2f6afa2557826d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13497072', 'ctest-vn-30184479'], 'port_security_enabled': True, 'description': ''}}
2025-10-31 14:47:25,572 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd353bc5a-5135-4d4f-b977-e1037a883628', 'name': '', 'tenant_id': 'bd5a28a0e6d3482ebd2f6afa2557826d', 'network_id': '722a2a3f-c043-4b9b-883f-6c545bdd24ac', 'ip_version': 4, 'cidr': '100.183.138.64/26', 'allocation_pools': [{'start': '100.183.138.66', 'end': '100.183.138.126'}], 'gateway_ip': '100.183.138.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '100.183.138.66', 'tags': [], 'project_id': 'bd5a28a0e6d3482ebd2f6afa2557826d'}}
2025-10-31 14:47:25,590 - INFO - Created VN ctest-vn-30184479
2025-10-31 14:47:25,644 - DEBUG - VN ctest-vn-30184479 UUID is 722a2a3f-c043-4b9b-883f-6c545bdd24ac
2025-10-31 14:47:25,966 - DEBUG - Response for create_network : {'network': {'id': '3f96c937-6dac-4843-9bf4-e425ddd4b137', 'name': 'ctest-vn-35361453', 'tenant_id': 'bd5a28a0e6d3482ebd2f6afa2557826d', 'project_id': 'bd5a28a0e6d3482ebd2f6afa2557826d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13497072', 'ctest-vn-35361453'], 'port_security_enabled': True, 'description': ''}}
2025-10-31 14:47:26,137 - DEBUG - Response for create_subnet : {'subnet': {'id': '2b96125d-b97c-4120-aa61-dd098c19465a', 'name': '', 'tenant_id': 'bd5a28a0e6d3482ebd2f6afa2557826d', 'network_id': '3f96c937-6dac-4843-9bf4-e425ddd4b137', 'ip_version': 4, 'cidr': '173.26.219.64/26', 'allocation_pools': [{'start': '173.26.219.66', 'end': '173.26.219.126'}], 'gateway_ip': '173.26.219.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '173.26.219.66', 'tags': [], 'project_id': 'bd5a28a0e6d3482ebd2f6afa2557826d'}}
2025-10-31 14:47:26,154 - INFO - Created VN ctest-vn-35361453
2025-10-31 14:47:26,212 - DEBUG - VN ctest-vn-35361453 UUID is 3f96c937-6dac-4843-9bf4-e425ddd4b137
2025-10-31 14:47:26,359 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-13497072:ctest-vn-30184479, 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-13497072:ctest-vn-35361453, 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-31 14:47:26,664 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '722a2a3f-c043-4b9b-883f-6c545bdd24ac', 'name': 'ctest-vn-30184479', 'tenant_id': 'bd5a28a0e6d3482ebd2f6afa2557826d', 'project_id': 'bd5a28a0e6d3482ebd2f6afa2557826d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d353bc5a-5135-4d4f-b977-e1037a883628'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13497072', 'ctest-vn-30184479'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-13497072', 'ctest-policy-allow-all-62385585']], 'subnet_ipam': [{'subnet_cidr': '100.183.138.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-31 14:47:26,894 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3f96c937-6dac-4843-9bf4-e425ddd4b137', 'name': 'ctest-vn-35361453', 'tenant_id': 'bd5a28a0e6d3482ebd2f6afa2557826d', 'project_id': 'bd5a28a0e6d3482ebd2f6afa2557826d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2b96125d-b97c-4120-aa61-dd098c19465a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13497072', 'ctest-vn-35361453'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-13497072', 'ctest-policy-allow-all-62385585']], 'subnet_ipam': [{'subnet_cidr': '173.26.219.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-31 14:47:27,060 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-10-31 14:47:27,394 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-10-31 14:47:27,421 - DEBUG - Requesting: http://10.0.0.33:8082/domain/35167de3-d7c7-45ca-826a-f8f3a55fa466
2025-10-31 14:47:27,433 - DEBUG - Requesting: http://10.0.0.33:8082/project/bd5a28a0-e6d3-482e-bd2f-6afa2557826d
2025-10-31 14:47:27,503 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/722a2a3f-c043-4b9b-883f-6c545bdd24ac
2025-10-31 14:47:27,513 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/722a2a3f-c043-4b9b-883f-6c545bdd24ac
2025-10-31 14:47:27,521 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/1bfb7f36-ad93-44d5-b8aa-75cd96e1740f
2025-10-31 14:47:27,528 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/1bfb7f36-ad93-44d5-b8aa-75cd96e1740f
2025-10-31 14:47:27,534 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/95c23d61-1180-4039-b749-a943f0f6794b
2025-10-31 14:47:27,540 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-31 14:47:27,540 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/722a2a3f-c043-4b9b-883f-6c545bdd24ac
2025-10-31 14:47:27,548 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/1bfb7f36-ad93-44d5-b8aa-75cd96e1740f
2025-10-31 14:47:27,560 - INFO - Verified VN network id 11 for VN 722a2a3f-c043-4b9b-883f-6c545bdd24ac
2025-10-31 14:47:27,560 - INFO - Verifications in API Server for VN ctest-vn-30184479 passed
2025-10-31 14:47:27,560 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/722a2a3f-c043-4b9b-883f-6c545bdd24ac
2025-10-31 14:47:27,568 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/1bfb7f36-ad93-44d5-b8aa-75cd96e1740f
2025-10-31 14:47:27,574 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/1bfb7f36-ad93-44d5-b8aa-75cd96e1740f
2025-10-31 14:47:27,579 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/95c23d61-1180-4039-b749-a943f0f6794b
2025-10-31 14:47:27,591 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-13497072:ctest-vn-30184479', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-13497072', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8226434122642574235', 'uuid-lslong': '9817684822265242796'}, 'enable': 'true', 'created': '2025-10-31T14:47:25', 'last-modified': '2025-10-31T14:47:26', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.965957'}
2025-10-31 14:47:27,597 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-31 14:47:27,597 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-30184479 passed
2025-10-31 14:47:27,597 - DEBUG - ====Verifying policy data for ctest-vn-30184479 in API_Server ======
2025-10-31 14:47:27,597 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-10-31 14:47:27,602 - DEBUG - Requesting: http://10.0.0.33:8082/domain/35167de3-d7c7-45ca-826a-f8f3a55fa466
2025-10-31 14:47:27,612 - DEBUG - Requesting: http://10.0.0.33:8082/project/bd5a28a0-e6d3-482e-bd2f-6afa2557826d
2025-10-31 14:47:27,684 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/722a2a3f-c043-4b9b-883f-6c545bdd24ac
2025-10-31 14:47:27,693 - DEBUG - ==>Verifying data for policy with id: f84705dc-024d-41d3-85f0-4d414a1ca376, fqn: ['default-domain', 'ctest-TestBasicPolicy-13497072', 'ctest-policy-allow-all-62385585']
2025-10-31 14:47:27,693 - INFO - VN ctest-vn-30184479 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-31 14:47:27,693 - DEBUG - Verifying the vn in opserver
2025-10-31 14:47:27,693 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-13497072:ctest-vn-30184479 virtual network link through opserver 10.0.0.33
2025-10-31 14:47:27,693 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-10-31 14:47:28,023 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-10-31 14:47:28,078 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-13497072:ctest-vn-30184479', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-13497072:ctest-vn-30184479?flat'}
2025-10-31 14:47:28,078 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-13497072:ctest-vn-30184479 is found in opserver
2025-10-31 14:47:28,091 - DEBUG - Do not have enough data to verify VN in agent
2025-10-31 14:47:28,096 - DEBUG - VRF ids for VN ctest-vn-30184479: {}
2025-10-31 14:47:28,096 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-10-31 14:47:28,101 - DEBUG - Requesting: http://10.0.0.33:8082/domain/35167de3-d7c7-45ca-826a-f8f3a55fa466
2025-10-31 14:47:28,110 - DEBUG - Requesting: http://10.0.0.33:8082/project/bd5a28a0-e6d3-482e-bd2f-6afa2557826d
2025-10-31 14:47:28,177 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/3f96c937-6dac-4843-9bf4-e425ddd4b137
2025-10-31 14:47:28,189 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/3f96c937-6dac-4843-9bf4-e425ddd4b137
2025-10-31 14:47:28,198 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/2cb2fb71-8fa0-47f9-a27b-acf26f5905e9
2025-10-31 14:47:28,205 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/2cb2fb71-8fa0-47f9-a27b-acf26f5905e9
2025-10-31 14:47:28,215 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/392e54e5-059f-4be1-9392-c11bde5528b3
2025-10-31 14:47:28,222 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-31 14:47:28,222 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/3f96c937-6dac-4843-9bf4-e425ddd4b137
2025-10-31 14:47:28,233 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/2cb2fb71-8fa0-47f9-a27b-acf26f5905e9
2025-10-31 14:47:28,248 - INFO - Verified VN network id 12 for VN 3f96c937-6dac-4843-9bf4-e425ddd4b137
2025-10-31 14:47:28,248 - INFO - Verifications in API Server for VN ctest-vn-35361453 passed
2025-10-31 14:47:28,248 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/3f96c937-6dac-4843-9bf4-e425ddd4b137
2025-10-31 14:47:28,260 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/2cb2fb71-8fa0-47f9-a27b-acf26f5905e9
2025-10-31 14:47:28,268 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/2cb2fb71-8fa0-47f9-a27b-acf26f5905e9
2025-10-31 14:47:28,276 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/392e54e5-059f-4be1-9392-c11bde5528b3
2025-10-31 14:47:28,289 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-13497072:ctest-vn-35361453', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-13497072', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4582070910796449859', 'uuid-lslong': '11237857821482856759'}, 'enable': 'true', 'created': '2025-10-31T14:47:25', 'last-modified': '2025-10-31T14:47:26', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.426031'}
2025-10-31 14:47:28,296 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-31 14:47:28,296 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-35361453 passed
2025-10-31 14:47:28,296 - DEBUG - ====Verifying policy data for ctest-vn-35361453 in API_Server ======
2025-10-31 14:47:28,296 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-10-31 14:47:28,302 - DEBUG - Requesting: http://10.0.0.33:8082/domain/35167de3-d7c7-45ca-826a-f8f3a55fa466
2025-10-31 14:47:28,314 - DEBUG - Requesting: http://10.0.0.33:8082/project/bd5a28a0-e6d3-482e-bd2f-6afa2557826d
2025-10-31 14:47:28,385 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/3f96c937-6dac-4843-9bf4-e425ddd4b137
2025-10-31 14:47:28,394 - DEBUG - ==>Verifying data for policy with id: f84705dc-024d-41d3-85f0-4d414a1ca376, fqn: ['default-domain', 'ctest-TestBasicPolicy-13497072', 'ctest-policy-allow-all-62385585']
2025-10-31 14:47:28,394 - INFO - VN ctest-vn-35361453 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-31 14:47:28,394 - DEBUG - Verifying the vn in opserver
2025-10-31 14:47:28,394 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-13497072:ctest-vn-35361453 virtual network link through opserver 10.0.0.33
2025-10-31 14:47:28,394 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-10-31 14:47:28,404 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-13497072:ctest-vn-35361453', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-13497072:ctest-vn-35361453?flat'}
2025-10-31 14:47:28,404 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-13497072:ctest-vn-35361453 is found in opserver
2025-10-31 14:47:28,414 - DEBUG - Do not have enough data to verify VN in agent
2025-10-31 14:47:28,419 - DEBUG - VRF ids for VN ctest-vn-35361453: {}
2025-10-31 14:47:28,490 - DEBUG - Services list from nova: [