2025-02-13 02:32:46,890 - INFO - Domain Default found not creating
2025-02-13 02:32:47,060 - INFO - Project ctest-TestBasicPolicy-13574937 not found, creating it
2025-02-13 02:32:47,550 - INFO - Created Project:ctest-TestBasicPolicy-13574937, ID : 4a797238-2bbc-4c41-9fa3-30139c82b3bc
2025-02-13 02:32:49,035 - INFO - ================================================================================
2025-02-13 02:32:49,036 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-02-13 02:32:49,036 - 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-02-13 02:32:49,296 - DEBUG - Nothing to compare xmpp stats {'10.0.0.45': {'10.0.0.45': '0'}} with
2025-02-13 02:32:49,296 - INFO - Initial checks done. Running the testcase now
2025-02-13 02:32:49,296 - INFO -
2025-02-13 02:32:49,863 - DEBUG - Response for create_network : {'network': {'id': '05cbf5f7-a62b-4b95-a5ba-8e46bced6724', 'name': 'ctest-vn-57907201', 'tenant_id': '4a7972382bbc4c419fa330139c82b3bc', 'project_id': '4a7972382bbc4c419fa330139c82b3bc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13574937', 'ctest-vn-57907201'], 'port_security_enabled': True, 'description': ''}}
2025-02-13 02:32:50,039 - DEBUG - Response for create_subnet : {'subnet': {'id': '97acb208-5780-4045-b0f5-9b6eb117325a', 'name': '', 'tenant_id': '4a7972382bbc4c419fa330139c82b3bc', 'network_id': '05cbf5f7-a62b-4b95-a5ba-8e46bced6724', 'ip_version': 4, 'cidr': '72.84.88.128/26', 'allocation_pools': [{'start': '72.84.88.130', 'end': '72.84.88.190'}], 'gateway_ip': '72.84.88.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '72.84.88.130', 'tags': [], 'project_id': '4a7972382bbc4c419fa330139c82b3bc'}}
2025-02-13 02:32:50,057 - INFO - Created VN ctest-vn-57907201
2025-02-13 02:32:50,112 - DEBUG - VN ctest-vn-57907201 UUID is 05cbf5f7-a62b-4b95-a5ba-8e46bced6724
2025-02-13 02:32:50,423 - DEBUG - Response for create_network : {'network': {'id': '4fdfaf63-d0f5-41e2-9e96-6fa4a3cd9f22', 'name': 'ctest-vn-42040571', 'tenant_id': '4a7972382bbc4c419fa330139c82b3bc', 'project_id': '4a7972382bbc4c419fa330139c82b3bc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13574937', 'ctest-vn-42040571'], 'port_security_enabled': True, 'description': ''}}
2025-02-13 02:32:50,607 - DEBUG - Response for create_subnet : {'subnet': {'id': '9eb9042f-85d7-4aef-8fb8-f13dddf2c1af', 'name': '', 'tenant_id': '4a7972382bbc4c419fa330139c82b3bc', 'network_id': '4fdfaf63-d0f5-41e2-9e96-6fa4a3cd9f22', 'ip_version': 4, 'cidr': '90.52.237.64/26', 'allocation_pools': [{'start': '90.52.237.66', 'end': '90.52.237.126'}], 'gateway_ip': '90.52.237.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '90.52.237.66', 'tags': [], 'project_id': '4a7972382bbc4c419fa330139c82b3bc'}}
2025-02-13 02:32:50,625 - INFO - Created VN ctest-vn-42040571
2025-02-13 02:32:50,681 - DEBUG - VN ctest-vn-42040571 UUID is 4fdfaf63-d0f5-41e2-9e96-6fa4a3cd9f22
2025-02-13 02:32:50,796 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-13574937:ctest-vn-57907201, 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-13574937:ctest-vn-42040571, 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-02-13 02:32:51,102 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '05cbf5f7-a62b-4b95-a5ba-8e46bced6724', 'name': 'ctest-vn-57907201', 'tenant_id': '4a7972382bbc4c419fa330139c82b3bc', 'project_id': '4a7972382bbc4c419fa330139c82b3bc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['97acb208-5780-4045-b0f5-9b6eb117325a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13574937', 'ctest-vn-57907201'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-13574937', 'ctest-policy-allow-all-39088990']], 'subnet_ipam': [{'subnet_cidr': '72.84.88.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-13 02:32:51,374 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4fdfaf63-d0f5-41e2-9e96-6fa4a3cd9f22', 'name': 'ctest-vn-42040571', 'tenant_id': '4a7972382bbc4c419fa330139c82b3bc', 'project_id': '4a7972382bbc4c419fa330139c82b3bc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9eb9042f-85d7-4aef-8fb8-f13dddf2c1af'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13574937', 'ctest-vn-42040571'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-13574937', 'ctest-policy-allow-all-39088990']], 'subnet_ipam': [{'subnet_cidr': '90.52.237.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-13 02:32:51,528 - DEBUG - Requesting: http://10.0.0.45:8082/domains
2025-02-13 02:32:51,824 - DEBUG - Requesting: http://10.0.0.45:8082/domains
2025-02-13 02:32:51,859 - DEBUG - Requesting: http://10.0.0.45:8082/domain/899d9b86-abcd-41ff-971c-2f46586d971a
2025-02-13 02:32:51,873 - DEBUG - Requesting: http://10.0.0.45:8082/project/4a797238-2bbc-4c41-9fa3-30139c82b3bc
2025-02-13 02:32:51,959 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/05cbf5f7-a62b-4b95-a5ba-8e46bced6724
2025-02-13 02:32:51,971 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/05cbf5f7-a62b-4b95-a5ba-8e46bced6724
2025-02-13 02:32:51,982 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/f2c2678c-1969-4b48-be61-b55dc46ca348
2025-02-13 02:32:51,991 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/f2c2678c-1969-4b48-be61-b55dc46ca348
2025-02-13 02:32:51,999 - DEBUG - Requesting: http://10.0.0.45:8082/route-target/2df39b97-95ff-4d73-8fc4-d3c4c5f3e147
2025-02-13 02:32:52,006 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-13 02:32:52,006 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/05cbf5f7-a62b-4b95-a5ba-8e46bced6724
2025-02-13 02:32:52,016 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/f2c2678c-1969-4b48-be61-b55dc46ca348
2025-02-13 02:32:52,031 - INFO - Verified VN network id 7 for VN 05cbf5f7-a62b-4b95-a5ba-8e46bced6724
2025-02-13 02:32:52,032 - INFO - Verifications in API Server for VN ctest-vn-57907201 passed
2025-02-13 02:32:52,032 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/05cbf5f7-a62b-4b95-a5ba-8e46bced6724
2025-02-13 02:32:52,044 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/f2c2678c-1969-4b48-be61-b55dc46ca348
2025-02-13 02:32:52,050 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/f2c2678c-1969-4b48-be61-b55dc46ca348
2025-02-13 02:32:52,057 - DEBUG - Requesting: http://10.0.0.45:8082/route-target/2df39b97-95ff-4d73-8fc4-d3c4c5f3e147
2025-02-13 02:32:52,069 - DEBUG - Control-node 10.0.0.45 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-13574937:ctest-vn-57907201', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-13574937', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '417697834455485333', 'uuid-lslong': '11942013796394821412'}, 'enable': 'true', 'created': '2025-02-13T02:32:49', 'last-modified': '2025-02-13T02:32:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.987336'}
2025-02-13 02:32:52,076 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-13 02:32:52,076 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-57907201 passed
2025-02-13 02:32:52,076 - DEBUG - ====Verifying policy data for ctest-vn-57907201 in API_Server ======
2025-02-13 02:32:52,076 - DEBUG - Requesting: http://10.0.0.45:8082/domains
2025-02-13 02:32:52,082 - DEBUG - Requesting: http://10.0.0.45:8082/domain/899d9b86-abcd-41ff-971c-2f46586d971a
2025-02-13 02:32:52,095 - DEBUG - Requesting: http://10.0.0.45:8082/project/4a797238-2bbc-4c41-9fa3-30139c82b3bc
2025-02-13 02:32:52,166 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/05cbf5f7-a62b-4b95-a5ba-8e46bced6724
2025-02-13 02:32:52,176 - DEBUG - ==>Verifying data for policy with id: 7b4bf2c0-8f9d-47f6-8ac1-f58cc313beaf, fqn: ['default-domain', 'ctest-TestBasicPolicy-13574937', 'ctest-policy-allow-all-39088990']
2025-02-13 02:32:52,176 - INFO - VN ctest-vn-57907201 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-13 02:32:52,176 - DEBUG - Verifying the vn in opserver
2025-02-13 02:32:52,177 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-13574937:ctest-vn-57907201 virtual network link through opserver 10.0.0.45
2025-02-13 02:32:52,177 - DEBUG - Requesting: http://10.0.0.45:8081/analytics/uves/virtual-networks
2025-02-13 02:32:52,468 - DEBUG - Requesting: http://10.0.0.45:8081/analytics/uves/virtual-networks
2025-02-13 02:32:52,521 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-13574937:ctest-vn-57907201', 'href': 'http://10.0.0.45:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-13574937:ctest-vn-57907201?flat'}
2025-02-13 02:32:52,521 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-13574937:ctest-vn-57907201 is found in opserver
2025-02-13 02:32:52,533 - DEBUG - Do not have enough data to verify VN in agent
2025-02-13 02:32:52,538 - DEBUG - VRF ids for VN ctest-vn-57907201: {}
2025-02-13 02:32:52,538 - DEBUG - Requesting: http://10.0.0.45:8082/domains
2025-02-13 02:32:52,545 - DEBUG - Requesting: http://10.0.0.45:8082/domain/899d9b86-abcd-41ff-971c-2f46586d971a
2025-02-13 02:32:52,556 - DEBUG - Requesting: http://10.0.0.45:8082/project/4a797238-2bbc-4c41-9fa3-30139c82b3bc
2025-02-13 02:32:52,626 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/4fdfaf63-d0f5-41e2-9e96-6fa4a3cd9f22
2025-02-13 02:32:52,640 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/4fdfaf63-d0f5-41e2-9e96-6fa4a3cd9f22
2025-02-13 02:32:52,651 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/cd1cfcac-8532-42da-aa52-c29191c6b800
2025-02-13 02:32:52,659 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/cd1cfcac-8532-42da-aa52-c29191c6b800
2025-02-13 02:32:52,667 - DEBUG - Requesting: http://10.0.0.45:8082/route-target/ee9865f2-a3ba-41bf-abbd-a941ce532f64
2025-02-13 02:32:52,674 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-13 02:32:52,674 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/4fdfaf63-d0f5-41e2-9e96-6fa4a3cd9f22
2025-02-13 02:32:52,684 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/cd1cfcac-8532-42da-aa52-c29191c6b800
2025-02-13 02:32:52,699 - INFO - Verified VN network id 8 for VN 4fdfaf63-d0f5-41e2-9e96-6fa4a3cd9f22
2025-02-13 02:32:52,699 - INFO - Verifications in API Server for VN ctest-vn-42040571 passed
2025-02-13 02:32:52,699 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/4fdfaf63-d0f5-41e2-9e96-6fa4a3cd9f22
2025-02-13 02:32:52,710 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/cd1cfcac-8532-42da-aa52-c29191c6b800
2025-02-13 02:32:52,717 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/cd1cfcac-8532-42da-aa52-c29191c6b800
2025-02-13 02:32:52,724 - DEBUG - Requesting: http://10.0.0.45:8082/route-target/ee9865f2-a3ba-41bf-abbd-a941ce532f64
2025-02-13 02:32:52,739 - DEBUG - Control-node 10.0.0.45 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-13574937:ctest-vn-42040571', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-13574937', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5755511692045140450', 'uuid-lslong': '11427443857412693794'}, 'enable': 'true', 'created': '2025-02-13T02:32:50', 'last-modified': '2025-02-13T02:32:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.426364'}
2025-02-13 02:32:52,745 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-13 02:32:52,745 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-42040571 passed
2025-02-13 02:32:52,746 - DEBUG - ====Verifying policy data for ctest-vn-42040571 in API_Server ======
2025-02-13 02:32:52,746 - DEBUG - Requesting: http://10.0.0.45:8082/domains
2025-02-13 02:32:52,752 - DEBUG - Requesting: http://10.0.0.45:8082/domain/899d9b86-abcd-41ff-971c-2f46586d971a
2025-02-13 02:32:52,762 - DEBUG - Requesting: http://10.0.0.45:8082/project/4a797238-2bbc-4c41-9fa3-30139c82b3bc
2025-02-13 02:32:52,837 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/4fdfaf63-d0f5-41e2-9e96-6fa4a3cd9f22
2025-02-13 02:32:52,848 - DEBUG - ==>Verifying data for policy with id: 7b4bf2c0-8f9d-47f6-8ac1-f58cc313beaf, fqn: ['default-domain', 'ctest-TestBasicPolicy-13574937', 'ctest-policy-allow-all-39088990']
2025-02-13 02:32:52,848 - INFO - VN ctest-vn-42040571 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-13 02:32:52,849 - DEBUG - Verifying the vn in opserver
2025-02-13 02:32:52,849 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-13574937:ctest-vn-42040571 virtual network link through opserver 10.0.0.45
2025-02-13 02:32:52,849 - DEBUG - Requesting: http://10.0.0.45:8081/analytics/uves/virtual-networks
2025-02-13 02:32:52,861 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-13574937:ctest-vn-42040571', 'href': 'http://10.0.0.45:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-13574937:ctest-vn-42040571?flat'}
2025-02-13 02:32:52,861 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-13574937:ctest-vn-42040571 is found in opserver
2025-02-13 02:32:52,872 - DEBUG - Do not have enough data to verify VN in agent
2025-02-13 02:32:52,879 - DEBUG - VRF ids for VN ctest-vn-42040571: {}
2025-02-13 02:32:52,954 - DEBUG - Services list from nova: [