2025-06-21 10:07:17,629 - INFO - Domain Default found not creating
2025-06-21 10:07:17,789 - INFO - Project ctest-TestBasicPolicy-92269193 not found, creating it
2025-06-21 10:07:18,269 - INFO - Created Project:ctest-TestBasicPolicy-92269193, ID : b6729482-361d-4f50-adcc-967495415cc8
2025-06-21 10:07:19,773 - INFO - ================================================================================
2025-06-21 10:07:19,774 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-21 10:07:19,774 - 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-06-21 10:07:20,046 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-06-21 10:07:20,046 - INFO - Initial checks done. Running the testcase now
2025-06-21 10:07:20,046 - INFO -
2025-06-21 10:07:20,627 - DEBUG - Response for create_network : {'network': {'id': '6a1e7740-b609-47d5-a450-38a4ae97d835', 'name': 'ctest-vn-43274226', 'tenant_id': 'b6729482361d4f50adcc967495415cc8', 'project_id': 'b6729482361d4f50adcc967495415cc8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-92269193', 'ctest-vn-43274226'], 'port_security_enabled': True, 'description': ''}}
2025-06-21 10:07:20,833 - DEBUG - Response for create_subnet : {'subnet': {'id': '28378798-9c3a-4654-8395-7d17463a1155', 'name': '', 'tenant_id': 'b6729482361d4f50adcc967495415cc8', 'network_id': '6a1e7740-b609-47d5-a450-38a4ae97d835', 'ip_version': 4, 'cidr': '210.124.164.0/26', 'allocation_pools': [{'start': '210.124.164.2', 'end': '210.124.164.62'}], 'gateway_ip': '210.124.164.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '210.124.164.2', 'tags': [], 'project_id': 'b6729482361d4f50adcc967495415cc8'}}
2025-06-21 10:07:20,853 - INFO - Created VN ctest-vn-43274226
2025-06-21 10:07:20,908 - DEBUG - VN ctest-vn-43274226 UUID is 6a1e7740-b609-47d5-a450-38a4ae97d835
2025-06-21 10:07:21,254 - DEBUG - Response for create_network : {'network': {'id': 'b195d679-d4dc-42b9-b848-1ae91c4be481', 'name': 'ctest-vn-45732798', 'tenant_id': 'b6729482361d4f50adcc967495415cc8', 'project_id': 'b6729482361d4f50adcc967495415cc8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-92269193', 'ctest-vn-45732798'], 'port_security_enabled': True, 'description': ''}}
2025-06-21 10:07:21,425 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a770ca18-abde-4ab8-a539-d9866dca2e4e', 'name': '', 'tenant_id': 'b6729482361d4f50adcc967495415cc8', 'network_id': 'b195d679-d4dc-42b9-b848-1ae91c4be481', 'ip_version': 4, 'cidr': '122.88.104.128/26', 'allocation_pools': [{'start': '122.88.104.130', 'end': '122.88.104.190'}], 'gateway_ip': '122.88.104.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '122.88.104.130', 'tags': [], 'project_id': 'b6729482361d4f50adcc967495415cc8'}}
2025-06-21 10:07:21,444 - INFO - Created VN ctest-vn-45732798
2025-06-21 10:07:21,496 - DEBUG - VN ctest-vn-45732798 UUID is b195d679-d4dc-42b9-b848-1ae91c4be481
2025-06-21 10:07:21,618 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-92269193:ctest-vn-43274226, 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-92269193:ctest-vn-45732798, 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-06-21 10:07:21,948 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6a1e7740-b609-47d5-a450-38a4ae97d835', 'name': 'ctest-vn-43274226', 'tenant_id': 'b6729482361d4f50adcc967495415cc8', 'project_id': 'b6729482361d4f50adcc967495415cc8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['28378798-9c3a-4654-8395-7d17463a1155'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-92269193', 'ctest-vn-43274226'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-92269193', 'ctest-policy-allow-all-95081965']], 'subnet_ipam': [{'subnet_cidr': '210.124.164.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-21 10:07:22,211 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b195d679-d4dc-42b9-b848-1ae91c4be481', 'name': 'ctest-vn-45732798', 'tenant_id': 'b6729482361d4f50adcc967495415cc8', 'project_id': 'b6729482361d4f50adcc967495415cc8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a770ca18-abde-4ab8-a539-d9866dca2e4e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-92269193', 'ctest-vn-45732798'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-92269193', 'ctest-policy-allow-all-95081965']], 'subnet_ipam': [{'subnet_cidr': '122.88.104.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-21 10:07:22,384 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-21 10:07:22,683 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-21 10:07:22,720 - DEBUG - Requesting: http://10.0.0.254:8082/domain/0bb1e9b5-0306-4716-bae9-4ceaa292eecf
2025-06-21 10:07:22,735 - DEBUG - Requesting: http://10.0.0.254:8082/project/b6729482-361d-4f50-adcc-967495415cc8
2025-06-21 10:07:22,816 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/6a1e7740-b609-47d5-a450-38a4ae97d835
2025-06-21 10:07:22,828 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/6a1e7740-b609-47d5-a450-38a4ae97d835
2025-06-21 10:07:22,839 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/add42dfc-bb88-4f82-8571-2e01069b0626
2025-06-21 10:07:22,849 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/add42dfc-bb88-4f82-8571-2e01069b0626
2025-06-21 10:07:22,858 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/74bcce8e-5e0b-43f6-98b3-9e7d80b434b7
2025-06-21 10:07:22,866 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-21 10:07:22,866 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/6a1e7740-b609-47d5-a450-38a4ae97d835
2025-06-21 10:07:22,878 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/add42dfc-bb88-4f82-8571-2e01069b0626
2025-06-21 10:07:22,899 - INFO - Verified VN network id 8 for VN 6a1e7740-b609-47d5-a450-38a4ae97d835
2025-06-21 10:07:22,900 - INFO - Verifications in API Server for VN ctest-vn-43274226 passed
2025-06-21 10:07:22,900 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/6a1e7740-b609-47d5-a450-38a4ae97d835
2025-06-21 10:07:22,911 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/add42dfc-bb88-4f82-8571-2e01069b0626
2025-06-21 10:07:22,920 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/add42dfc-bb88-4f82-8571-2e01069b0626
2025-06-21 10:07:22,930 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/74bcce8e-5e0b-43f6-98b3-9e7d80b434b7
2025-06-21 10:07:22,943 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-92269193:ctest-vn-43274226', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-92269193', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7646680337137354709', 'uuid-lslong': '11840025700312012853'}, 'enable': 'true', 'created': '2025-06-21T10:07:20', 'last-modified': '2025-06-21T10:07:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.030147'}
2025-06-21 10:07:22,950 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-21 10:07:22,950 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-43274226 passed
2025-06-21 10:07:22,950 - DEBUG - ====Verifying policy data for ctest-vn-43274226 in API_Server ======
2025-06-21 10:07:22,950 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-21 10:07:22,956 - DEBUG - Requesting: http://10.0.0.254:8082/domain/0bb1e9b5-0306-4716-bae9-4ceaa292eecf
2025-06-21 10:07:22,969 - DEBUG - Requesting: http://10.0.0.254:8082/project/b6729482-361d-4f50-adcc-967495415cc8
2025-06-21 10:07:23,056 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/6a1e7740-b609-47d5-a450-38a4ae97d835
2025-06-21 10:07:23,068 - DEBUG - ==>Verifying data for policy with id: 7b088cf0-1593-4d84-a461-a9979a0a54fe, fqn: ['default-domain', 'ctest-TestBasicPolicy-92269193', 'ctest-policy-allow-all-95081965']
2025-06-21 10:07:23,068 - INFO - VN ctest-vn-43274226 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-21 10:07:23,068 - DEBUG - Verifying the vn in opserver
2025-06-21 10:07:23,068 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-92269193:ctest-vn-43274226 virtual network link through opserver 10.0.0.254
2025-06-21 10:07:23,069 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-21 10:07:23,363 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-21 10:07:23,426 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-92269193:ctest-vn-43274226', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-92269193:ctest-vn-43274226?flat'}
2025-06-21 10:07:23,426 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-92269193:ctest-vn-43274226 is found in opserver
2025-06-21 10:07:23,438 - DEBUG - Do not have enough data to verify VN in agent
2025-06-21 10:07:23,444 - DEBUG - VRF ids for VN ctest-vn-43274226: {}
2025-06-21 10:07:23,444 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-21 10:07:23,451 - DEBUG - Requesting: http://10.0.0.254:8082/domain/0bb1e9b5-0306-4716-bae9-4ceaa292eecf
2025-06-21 10:07:23,465 - DEBUG - Requesting: http://10.0.0.254:8082/project/b6729482-361d-4f50-adcc-967495415cc8
2025-06-21 10:07:23,540 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b195d679-d4dc-42b9-b848-1ae91c4be481
2025-06-21 10:07:23,553 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b195d679-d4dc-42b9-b848-1ae91c4be481
2025-06-21 10:07:23,570 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/66c101d3-9c64-4700-b5f2-623305fee00e
2025-06-21 10:07:23,581 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/66c101d3-9c64-4700-b5f2-623305fee00e
2025-06-21 10:07:23,588 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/9a722f5e-b941-4527-b5eb-e52dc1230627
2025-06-21 10:07:23,596 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-21 10:07:23,596 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b195d679-d4dc-42b9-b848-1ae91c4be481
2025-06-21 10:07:23,608 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/66c101d3-9c64-4700-b5f2-623305fee00e
2025-06-21 10:07:23,624 - INFO - Verified VN network id 9 for VN b195d679-d4dc-42b9-b848-1ae91c4be481
2025-06-21 10:07:23,624 - INFO - Verifications in API Server for VN ctest-vn-45732798 passed
2025-06-21 10:07:23,624 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b195d679-d4dc-42b9-b848-1ae91c4be481
2025-06-21 10:07:23,637 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/66c101d3-9c64-4700-b5f2-623305fee00e
2025-06-21 10:07:23,646 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/66c101d3-9c64-4700-b5f2-623305fee00e
2025-06-21 10:07:23,655 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/9a722f5e-b941-4527-b5eb-e52dc1230627
2025-06-21 10:07:23,670 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-92269193:ctest-vn-45732798', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-92269193', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12796369734993724089', 'uuid-lslong': '13278893089806345345'}, 'enable': 'true', 'created': '2025-06-21T10:07:21', 'last-modified': '2025-06-21T10:07:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.482031'}
2025-06-21 10:07:23,678 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-21 10:07:23,678 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-45732798 passed
2025-06-21 10:07:23,678 - DEBUG - ====Verifying policy data for ctest-vn-45732798 in API_Server ======
2025-06-21 10:07:23,678 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-21 10:07:23,686 - DEBUG - Requesting: http://10.0.0.254:8082/domain/0bb1e9b5-0306-4716-bae9-4ceaa292eecf
2025-06-21 10:07:23,699 - DEBUG - Requesting: http://10.0.0.254:8082/project/b6729482-361d-4f50-adcc-967495415cc8
2025-06-21 10:07:23,775 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b195d679-d4dc-42b9-b848-1ae91c4be481
2025-06-21 10:07:23,788 - DEBUG - ==>Verifying data for policy with id: 7b088cf0-1593-4d84-a461-a9979a0a54fe, fqn: ['default-domain', 'ctest-TestBasicPolicy-92269193', 'ctest-policy-allow-all-95081965']
2025-06-21 10:07:23,789 - INFO - VN ctest-vn-45732798 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-21 10:07:23,789 - DEBUG - Verifying the vn in opserver
2025-06-21 10:07:23,789 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-92269193:ctest-vn-45732798 virtual network link through opserver 10.0.0.254
2025-06-21 10:07:23,789 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-21 10:07:23,802 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-92269193:ctest-vn-45732798', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-92269193:ctest-vn-45732798?flat'}
2025-06-21 10:07:23,802 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-92269193:ctest-vn-45732798 is found in opserver
2025-06-21 10:07:23,816 - DEBUG - Do not have enough data to verify VN in agent
2025-06-21 10:07:23,823 - DEBUG - VRF ids for VN ctest-vn-45732798: {}
2025-06-21 10:07:23,890 - DEBUG - Services list from nova: [