2025-11-13 13:16:52,671 - INFO - Domain Default found not creating
2025-11-13 13:16:52,861 - INFO - Project ctest-TestBasicPolicy-15341523 not found, creating it
2025-11-13 13:16:53,511 - INFO - Created Project:ctest-TestBasicPolicy-15341523, ID : 8f061b74-0db7-496a-8765-dccb18b66446
2025-11-13 13:16:54,889 - INFO - ================================================================================
2025-11-13 13:16:54,890 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-13 13:16:54,890 - 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-13 13:16:55,146 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.14': '0'}} with
2025-11-13 13:16:55,146 - INFO - Initial checks done. Running the testcase now
2025-11-13 13:16:55,146 - INFO -
2025-11-13 13:16:55,674 - DEBUG - Response for create_network : {'network': {'id': 'ee7a15a8-69fa-4799-b827-b59e79514b49', 'name': 'ctest-vn-07187161', 'tenant_id': '8f061b740db7496a8765dccb18b66446', 'project_id': '8f061b740db7496a8765dccb18b66446', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15341523', 'ctest-vn-07187161'], 'port_security_enabled': True, 'description': ''}}
2025-11-13 13:16:55,819 - DEBUG - Response for create_subnet : {'subnet': {'id': '496997e3-d4c4-4158-8539-14bfbf62e478', 'name': '', 'tenant_id': '8f061b740db7496a8765dccb18b66446', 'network_id': 'ee7a15a8-69fa-4799-b827-b59e79514b49', 'ip_version': 4, 'cidr': '137.76.195.0/26', 'allocation_pools': [{'start': '137.76.195.2', 'end': '137.76.195.62'}], 'gateway_ip': '137.76.195.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '137.76.195.2', 'tags': [], 'project_id': '8f061b740db7496a8765dccb18b66446'}}
2025-11-13 13:16:55,835 - INFO - Created VN ctest-vn-07187161
2025-11-13 13:16:55,888 - DEBUG - VN ctest-vn-07187161 UUID is ee7a15a8-69fa-4799-b827-b59e79514b49
2025-11-13 13:16:56,172 - DEBUG - Response for create_network : {'network': {'id': '4f740a75-598c-496e-b9d0-71c70d08c2e0', 'name': 'ctest-vn-69411915', 'tenant_id': '8f061b740db7496a8765dccb18b66446', 'project_id': '8f061b740db7496a8765dccb18b66446', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15341523', 'ctest-vn-69411915'], 'port_security_enabled': True, 'description': ''}}
2025-11-13 13:16:56,349 - DEBUG - Response for create_subnet : {'subnet': {'id': '7618c770-e3f0-482d-b370-4bc6e6b1416d', 'name': '', 'tenant_id': '8f061b740db7496a8765dccb18b66446', 'network_id': '4f740a75-598c-496e-b9d0-71c70d08c2e0', 'ip_version': 4, 'cidr': '135.95.100.192/26', 'allocation_pools': [{'start': '135.95.100.194', 'end': '135.95.100.254'}], 'gateway_ip': '135.95.100.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '135.95.100.194', 'tags': [], 'project_id': '8f061b740db7496a8765dccb18b66446'}}
2025-11-13 13:16:56,366 - INFO - Created VN ctest-vn-69411915
2025-11-13 13:16:56,416 - DEBUG - VN ctest-vn-69411915 UUID is 4f740a75-598c-496e-b9d0-71c70d08c2e0
2025-11-13 13:16:56,568 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-15341523:ctest-vn-07187161, 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-15341523:ctest-vn-69411915, 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-13 13:16:56,849 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ee7a15a8-69fa-4799-b827-b59e79514b49', 'name': 'ctest-vn-07187161', 'tenant_id': '8f061b740db7496a8765dccb18b66446', 'project_id': '8f061b740db7496a8765dccb18b66446', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['496997e3-d4c4-4158-8539-14bfbf62e478'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15341523', 'ctest-vn-07187161'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-15341523', 'ctest-policy-allow-all-24972876']], 'subnet_ipam': [{'subnet_cidr': '137.76.195.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-13 13:16:57,123 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4f740a75-598c-496e-b9d0-71c70d08c2e0', 'name': 'ctest-vn-69411915', 'tenant_id': '8f061b740db7496a8765dccb18b66446', 'project_id': '8f061b740db7496a8765dccb18b66446', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7618c770-e3f0-482d-b370-4bc6e6b1416d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15341523', 'ctest-vn-69411915'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-15341523', 'ctest-policy-allow-all-24972876']], 'subnet_ipam': [{'subnet_cidr': '135.95.100.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-13 13:16:57,268 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-13 13:16:57,561 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-13 13:16:57,590 - DEBUG - Requesting: http://10.0.0.50:8082/domain/486ad687-db18-4f82-a090-aa9e5ba25272
2025-11-13 13:16:57,600 - DEBUG - Requesting: http://10.0.0.50:8082/project/8f061b74-0db7-496a-8765-dccb18b66446
2025-11-13 13:16:57,671 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ee7a15a8-69fa-4799-b827-b59e79514b49
2025-11-13 13:16:57,680 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ee7a15a8-69fa-4799-b827-b59e79514b49
2025-11-13 13:16:57,688 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/65258e48-8d6f-4832-9aba-c04226861761
2025-11-13 13:16:57,694 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/65258e48-8d6f-4832-9aba-c04226861761
2025-11-13 13:16:57,700 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/2b2d0126-7a84-47d9-834f-414f6b89fb6a
2025-11-13 13:16:57,706 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-13 13:16:57,706 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ee7a15a8-69fa-4799-b827-b59e79514b49
2025-11-13 13:16:57,714 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/65258e48-8d6f-4832-9aba-c04226861761
2025-11-13 13:16:57,727 - INFO - Verified VN network id 12 for VN ee7a15a8-69fa-4799-b827-b59e79514b49
2025-11-13 13:16:57,727 - INFO - Verifications in API Server for VN ctest-vn-07187161 passed
2025-11-13 13:16:57,727 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ee7a15a8-69fa-4799-b827-b59e79514b49
2025-11-13 13:16:57,735 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/65258e48-8d6f-4832-9aba-c04226861761
2025-11-13 13:16:57,741 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/65258e48-8d6f-4832-9aba-c04226861761
2025-11-13 13:16:57,747 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/2b2d0126-7a84-47d9-834f-414f6b89fb6a
2025-11-13 13:16:57,757 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-15341523:ctest-vn-07187161', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-15341523', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17184071141262247833', 'uuid-lslong': '13269774519315286857'}, 'enable': 'true', 'created': '2025-11-13T13:16:55', 'last-modified': '2025-11-13T13:16:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.927239'}
2025-11-13 13:16:57,762 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-13 13:16:57,763 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-07187161 passed
2025-11-13 13:16:57,763 - DEBUG - ====Verifying policy data for ctest-vn-07187161 in API_Server ======
2025-11-13 13:16:57,763 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-13 13:16:57,768 - DEBUG - Requesting: http://10.0.0.50:8082/domain/486ad687-db18-4f82-a090-aa9e5ba25272
2025-11-13 13:16:57,777 - DEBUG - Requesting: http://10.0.0.50:8082/project/8f061b74-0db7-496a-8765-dccb18b66446
2025-11-13 13:16:57,843 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ee7a15a8-69fa-4799-b827-b59e79514b49
2025-11-13 13:16:57,852 - DEBUG - ==>Verifying data for policy with id: 9b902f1f-3235-4b8a-b25e-9ad91666eff7, fqn: ['default-domain', 'ctest-TestBasicPolicy-15341523', 'ctest-policy-allow-all-24972876']
2025-11-13 13:16:57,852 - INFO - VN ctest-vn-07187161 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-13 13:16:57,852 - DEBUG - Verifying the vn in opserver
2025-11-13 13:16:57,852 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-15341523:ctest-vn-07187161 virtual network link through opserver 10.0.0.50
2025-11-13 13:16:57,852 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-11-13 13:16:58,140 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-11-13 13:16:58,190 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-15341523:ctest-vn-07187161', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-15341523:ctest-vn-07187161?flat'}
2025-11-13 13:16:58,190 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-15341523:ctest-vn-07187161 is found in opserver
2025-11-13 13:16:58,198 - DEBUG - Do not have enough data to verify VN in agent
2025-11-13 13:16:58,202 - DEBUG - VRF ids for VN ctest-vn-07187161: {}
2025-11-13 13:16:58,203 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-13 13:16:58,207 - DEBUG - Requesting: http://10.0.0.50:8082/domain/486ad687-db18-4f82-a090-aa9e5ba25272
2025-11-13 13:16:58,217 - DEBUG - Requesting: http://10.0.0.50:8082/project/8f061b74-0db7-496a-8765-dccb18b66446
2025-11-13 13:16:58,285 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4f740a75-598c-496e-b9d0-71c70d08c2e0
2025-11-13 13:16:58,296 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4f740a75-598c-496e-b9d0-71c70d08c2e0
2025-11-13 13:16:58,304 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/800a335f-8385-4432-892d-5e0978c09bc2
2025-11-13 13:16:58,312 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/800a335f-8385-4432-892d-5e0978c09bc2
2025-11-13 13:16:58,318 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/ac80e654-d1b4-416e-98cd-7a9c1cf66d7d
2025-11-13 13:16:58,324 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-13 13:16:58,324 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4f740a75-598c-496e-b9d0-71c70d08c2e0
2025-11-13 13:16:58,332 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/800a335f-8385-4432-892d-5e0978c09bc2
2025-11-13 13:16:58,343 - INFO - Verified VN network id 13 for VN 4f740a75-598c-496e-b9d0-71c70d08c2e0
2025-11-13 13:16:58,344 - INFO - Verifications in API Server for VN ctest-vn-69411915 passed
2025-11-13 13:16:58,344 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4f740a75-598c-496e-b9d0-71c70d08c2e0
2025-11-13 13:16:58,352 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/800a335f-8385-4432-892d-5e0978c09bc2
2025-11-13 13:16:58,357 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/800a335f-8385-4432-892d-5e0978c09bc2
2025-11-13 13:16:58,363 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/ac80e654-d1b4-416e-98cd-7a9c1cf66d7d
2025-11-13 13:16:58,372 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-15341523:ctest-vn-69411915', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-15341523', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5725212525424560494', 'uuid-lslong': '13389326791903593184'}, 'enable': 'true', 'created': '2025-11-13T13:16:56', 'last-modified': '2025-11-13T13:16:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.312260'}
2025-11-13 13:16:58,377 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-13 13:16:58,377 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-69411915 passed
2025-11-13 13:16:58,377 - DEBUG - ====Verifying policy data for ctest-vn-69411915 in API_Server ======
2025-11-13 13:16:58,377 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-13 13:16:58,383 - DEBUG - Requesting: http://10.0.0.50:8082/domain/486ad687-db18-4f82-a090-aa9e5ba25272
2025-11-13 13:16:58,393 - DEBUG - Requesting: http://10.0.0.50:8082/project/8f061b74-0db7-496a-8765-dccb18b66446
2025-11-13 13:16:58,460 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4f740a75-598c-496e-b9d0-71c70d08c2e0
2025-11-13 13:16:58,467 - DEBUG - ==>Verifying data for policy with id: 9b902f1f-3235-4b8a-b25e-9ad91666eff7, fqn: ['default-domain', 'ctest-TestBasicPolicy-15341523', 'ctest-policy-allow-all-24972876']
2025-11-13 13:16:58,468 - INFO - VN ctest-vn-69411915 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-13 13:16:58,468 - DEBUG - Verifying the vn in opserver
2025-11-13 13:16:58,468 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-15341523:ctest-vn-69411915 virtual network link through opserver 10.0.0.50
2025-11-13 13:16:58,468 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-11-13 13:16:58,476 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-15341523:ctest-vn-69411915', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-15341523:ctest-vn-69411915?flat'}
2025-11-13 13:16:58,476 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-15341523:ctest-vn-69411915 is found in opserver
2025-11-13 13:16:58,484 - DEBUG - Do not have enough data to verify VN in agent
2025-11-13 13:16:58,488 - DEBUG - VRF ids for VN ctest-vn-69411915: {}
2025-11-13 13:16:58,541 - DEBUG - Services list from nova: [