2025-04-13 14:24:59,560 - INFO - Domain Default found not creating
2025-04-13 14:24:59,718 - INFO - Project ctest-TestBasicPolicy-75325429 not found, creating it
2025-04-13 14:25:00,186 - INFO - Created Project:ctest-TestBasicPolicy-75325429, ID : 218e927e-7b4f-4037-8f77-7e8674989464
2025-04-13 14:25:01,827 - INFO - ================================================================================
2025-04-13 14:25:01,827 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-13 14:25:01,828 - 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-04-13 14:25:02,094 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-04-13 14:25:02,094 - INFO - Initial checks done. Running the testcase now
2025-04-13 14:25:02,094 - INFO -
2025-04-13 14:25:02,702 - DEBUG - Response for create_network : {'network': {'id': '245ad4b7-a891-40ef-a9da-1407dd1c9f16', 'name': 'ctest-vn-94583907', 'tenant_id': '218e927e7b4f40378f777e8674989464', 'project_id': '218e927e7b4f40378f777e8674989464', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-75325429', 'ctest-vn-94583907'], 'port_security_enabled': True, 'description': ''}}
2025-04-13 14:25:02,871 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a63e4015-8541-4499-b21f-7ccc4c1f2093', 'name': '', 'tenant_id': '218e927e7b4f40378f777e8674989464', 'network_id': '245ad4b7-a891-40ef-a9da-1407dd1c9f16', 'ip_version': 4, 'cidr': '212.147.183.64/26', 'allocation_pools': [{'start': '212.147.183.66', 'end': '212.147.183.126'}], 'gateway_ip': '212.147.183.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '212.147.183.66', 'tags': [], 'project_id': '218e927e7b4f40378f777e8674989464'}}
2025-04-13 14:25:02,891 - INFO - Created VN ctest-vn-94583907
2025-04-13 14:25:02,950 - DEBUG - VN ctest-vn-94583907 UUID is 245ad4b7-a891-40ef-a9da-1407dd1c9f16
2025-04-13 14:25:03,274 - DEBUG - Response for create_network : {'network': {'id': '353328f0-b64e-4cd5-a667-a13a13969d32', 'name': 'ctest-vn-79841450', 'tenant_id': '218e927e7b4f40378f777e8674989464', 'project_id': '218e927e7b4f40378f777e8674989464', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-75325429', 'ctest-vn-79841450'], 'port_security_enabled': True, 'description': ''}}
2025-04-13 14:25:03,498 - DEBUG - Response for create_subnet : {'subnet': {'id': '2d1e9160-8940-460b-945a-814eb4a7e167', 'name': '', 'tenant_id': '218e927e7b4f40378f777e8674989464', 'network_id': '353328f0-b64e-4cd5-a667-a13a13969d32', 'ip_version': 4, 'cidr': '177.238.223.192/26', 'allocation_pools': [{'start': '177.238.223.194', 'end': '177.238.223.254'}], 'gateway_ip': '177.238.223.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '177.238.223.194', 'tags': [], 'project_id': '218e927e7b4f40378f777e8674989464'}}
2025-04-13 14:25:03,521 - INFO - Created VN ctest-vn-79841450
2025-04-13 14:25:03,574 - DEBUG - VN ctest-vn-79841450 UUID is 353328f0-b64e-4cd5-a667-a13a13969d32
2025-04-13 14:25:03,717 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-75325429:ctest-vn-94583907, 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-75325429:ctest-vn-79841450, 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-04-13 14:25:04,061 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '245ad4b7-a891-40ef-a9da-1407dd1c9f16', 'name': 'ctest-vn-94583907', 'tenant_id': '218e927e7b4f40378f777e8674989464', 'project_id': '218e927e7b4f40378f777e8674989464', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a63e4015-8541-4499-b21f-7ccc4c1f2093'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-75325429', 'ctest-vn-94583907'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-75325429', 'ctest-policy-allow-all-27372068']], 'subnet_ipam': [{'subnet_cidr': '212.147.183.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-13 14:25:04,352 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '353328f0-b64e-4cd5-a667-a13a13969d32', 'name': 'ctest-vn-79841450', 'tenant_id': '218e927e7b4f40378f777e8674989464', 'project_id': '218e927e7b4f40378f777e8674989464', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2d1e9160-8940-460b-945a-814eb4a7e167'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-75325429', 'ctest-vn-79841450'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-75325429', 'ctest-policy-allow-all-27372068']], 'subnet_ipam': [{'subnet_cidr': '177.238.223.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-13 14:25:04,498 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-13 14:25:04,801 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-13 14:25:04,834 - DEBUG - Requesting: http://10.0.0.254:8082/domain/95b255ab-72a1-4bbf-988d-44191bb9fb10
2025-04-13 14:25:04,854 - DEBUG - Requesting: http://10.0.0.254:8082/project/218e927e-7b4f-4037-8f77-7e8674989464
2025-04-13 14:25:04,935 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/245ad4b7-a891-40ef-a9da-1407dd1c9f16
2025-04-13 14:25:04,949 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/245ad4b7-a891-40ef-a9da-1407dd1c9f16
2025-04-13 14:25:04,961 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/59c7f7ac-84f2-45f6-992b-6494d26d4541
2025-04-13 14:25:04,973 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/59c7f7ac-84f2-45f6-992b-6494d26d4541
2025-04-13 14:25:04,984 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/af7e9108-a74d-4ef9-8609-2692a3dc3e9c
2025-04-13 14:25:04,996 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-13 14:25:04,996 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/245ad4b7-a891-40ef-a9da-1407dd1c9f16
2025-04-13 14:25:05,009 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/59c7f7ac-84f2-45f6-992b-6494d26d4541
2025-04-13 14:25:05,029 - INFO - Verified VN network id 8 for VN 245ad4b7-a891-40ef-a9da-1407dd1c9f16
2025-04-13 14:25:05,029 - INFO - Verifications in API Server for VN ctest-vn-94583907 passed
2025-04-13 14:25:05,029 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/245ad4b7-a891-40ef-a9da-1407dd1c9f16
2025-04-13 14:25:05,041 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/59c7f7ac-84f2-45f6-992b-6494d26d4541
2025-04-13 14:25:05,049 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/59c7f7ac-84f2-45f6-992b-6494d26d4541
2025-04-13 14:25:05,059 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/af7e9108-a74d-4ef9-8609-2692a3dc3e9c
2025-04-13 14:25:05,073 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-75325429:ctest-vn-94583907', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-75325429', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2619640018541560047', 'uuid-lslong': '12239116961339711254'}, 'enable': 'true', 'created': '2025-04-13T14:25:02', 'last-modified': '2025-04-13T14:25:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.053736'}
2025-04-13 14:25:05,080 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-13 14:25:05,081 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-94583907 passed
2025-04-13 14:25:05,081 - DEBUG - ====Verifying policy data for ctest-vn-94583907 in API_Server ======
2025-04-13 14:25:05,081 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-13 14:25:05,088 - DEBUG - Requesting: http://10.0.0.254:8082/domain/95b255ab-72a1-4bbf-988d-44191bb9fb10
2025-04-13 14:25:05,104 - DEBUG - Requesting: http://10.0.0.254:8082/project/218e927e-7b4f-4037-8f77-7e8674989464
2025-04-13 14:25:05,187 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/245ad4b7-a891-40ef-a9da-1407dd1c9f16
2025-04-13 14:25:05,199 - DEBUG - ==>Verifying data for policy with id: 1797ed7f-23e6-47b1-b7ae-7468963548db, fqn: ['default-domain', 'ctest-TestBasicPolicy-75325429', 'ctest-policy-allow-all-27372068']
2025-04-13 14:25:05,199 - INFO - VN ctest-vn-94583907 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-13 14:25:05,199 - DEBUG - Verifying the vn in opserver
2025-04-13 14:25:05,199 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-75325429:ctest-vn-94583907 virtual network link through opserver 10.0.0.254
2025-04-13 14:25:05,199 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-04-13 14:25:05,496 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-04-13 14:25:05,561 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-75325429:ctest-vn-94583907', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-75325429:ctest-vn-94583907?flat'}
2025-04-13 14:25:05,561 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-75325429:ctest-vn-94583907 is found in opserver
2025-04-13 14:25:05,575 - DEBUG - Do not have enough data to verify VN in agent
2025-04-13 14:25:05,581 - DEBUG - VRF ids for VN ctest-vn-94583907: {}
2025-04-13 14:25:05,581 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-13 14:25:05,589 - DEBUG - Requesting: http://10.0.0.254:8082/domain/95b255ab-72a1-4bbf-988d-44191bb9fb10
2025-04-13 14:25:05,603 - DEBUG - Requesting: http://10.0.0.254:8082/project/218e927e-7b4f-4037-8f77-7e8674989464
2025-04-13 14:25:05,688 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/353328f0-b64e-4cd5-a667-a13a13969d32
2025-04-13 14:25:05,702 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/353328f0-b64e-4cd5-a667-a13a13969d32
2025-04-13 14:25:05,714 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/66637ab7-0481-4685-a441-0379972b27aa
2025-04-13 14:25:05,723 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/66637ab7-0481-4685-a441-0379972b27aa
2025-04-13 14:25:05,732 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/e8630bb2-0f8c-4ed2-9495-92482900bd85
2025-04-13 14:25:05,740 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-13 14:25:05,740 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/353328f0-b64e-4cd5-a667-a13a13969d32
2025-04-13 14:25:05,753 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/66637ab7-0481-4685-a441-0379972b27aa
2025-04-13 14:25:05,772 - INFO - Verified VN network id 9 for VN 353328f0-b64e-4cd5-a667-a13a13969d32
2025-04-13 14:25:05,772 - INFO - Verifications in API Server for VN ctest-vn-79841450 passed
2025-04-13 14:25:05,772 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/353328f0-b64e-4cd5-a667-a13a13969d32
2025-04-13 14:25:05,783 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/66637ab7-0481-4685-a441-0379972b27aa
2025-04-13 14:25:05,792 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/66637ab7-0481-4685-a441-0379972b27aa
2025-04-13 14:25:05,800 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/e8630bb2-0f8c-4ed2-9495-92482900bd85
2025-04-13 14:25:05,814 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-75325429:ctest-vn-79841450', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-75325429', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3833452722138270933', 'uuid-lslong': '11990729803706047794'}, 'enable': 'true', 'created': '2025-04-13T14:25:03', 'last-modified': '2025-04-13T14:25:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.538155'}
2025-04-13 14:25:05,826 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-13 14:25:05,826 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-79841450 passed
2025-04-13 14:25:05,826 - DEBUG - ====Verifying policy data for ctest-vn-79841450 in API_Server ======
2025-04-13 14:25:05,826 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-13 14:25:05,833 - DEBUG - Requesting: http://10.0.0.254:8082/domain/95b255ab-72a1-4bbf-988d-44191bb9fb10
2025-04-13 14:25:05,846 - DEBUG - Requesting: http://10.0.0.254:8082/project/218e927e-7b4f-4037-8f77-7e8674989464
2025-04-13 14:25:05,919 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/353328f0-b64e-4cd5-a667-a13a13969d32
2025-04-13 14:25:05,936 - DEBUG - ==>Verifying data for policy with id: 1797ed7f-23e6-47b1-b7ae-7468963548db, fqn: ['default-domain', 'ctest-TestBasicPolicy-75325429', 'ctest-policy-allow-all-27372068']
2025-04-13 14:25:05,936 - INFO - VN ctest-vn-79841450 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-13 14:25:05,937 - DEBUG - Verifying the vn in opserver
2025-04-13 14:25:05,937 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-75325429:ctest-vn-79841450 virtual network link through opserver 10.0.0.254
2025-04-13 14:25:05,937 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-04-13 14:25:05,956 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-75325429:ctest-vn-79841450', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-75325429:ctest-vn-79841450?flat'}
2025-04-13 14:25:05,956 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-75325429:ctest-vn-79841450 is found in opserver
2025-04-13 14:25:05,968 - DEBUG - Do not have enough data to verify VN in agent
2025-04-13 14:25:05,974 - DEBUG - VRF ids for VN ctest-vn-79841450: {}
2025-04-13 14:25:06,038 - DEBUG - Services list from nova: [