2025-06-24 12:32:01,753 - INFO - Domain Default found not creating
2025-06-24 12:32:01,912 - INFO - Project ctest-TestBasicPolicy-03406933 not found, creating it
2025-06-24 12:32:02,413 - INFO - Created Project:ctest-TestBasicPolicy-03406933, ID : f3f4a911-5dc7-4ec7-9fc5-a73e579ebbdf
2025-06-24 12:32:03,966 - INFO - ================================================================================
2025-06-24 12:32:03,966 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-24 12:32:03,966 - 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-24 12:32:04,227 - DEBUG - Nothing to compare xmpp stats {'10.0.0.241': {'10.20.0.254': '0'}} with
2025-06-24 12:32:04,228 - INFO - Initial checks done. Running the testcase now
2025-06-24 12:32:04,228 - INFO -
2025-06-24 12:32:04,803 - DEBUG - Response for create_network : {'network': {'id': '80235d4c-40cf-47ca-aa25-b2e40a8591e4', 'name': 'ctest-vn-55206133', 'tenant_id': 'f3f4a9115dc74ec79fc5a73e579ebbdf', 'project_id': 'f3f4a9115dc74ec79fc5a73e579ebbdf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03406933', 'ctest-vn-55206133'], 'port_security_enabled': True, 'description': ''}}
2025-06-24 12:32:05,007 - DEBUG - Response for create_subnet : {'subnet': {'id': 'aef02944-94a1-4441-8e85-6240481bf9ad', 'name': '', 'tenant_id': 'f3f4a9115dc74ec79fc5a73e579ebbdf', 'network_id': '80235d4c-40cf-47ca-aa25-b2e40a8591e4', 'ip_version': 4, 'cidr': '209.188.158.64/26', 'allocation_pools': [{'start': '209.188.158.66', 'end': '209.188.158.126'}], 'gateway_ip': '209.188.158.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '209.188.158.66', 'tags': [], 'project_id': 'f3f4a9115dc74ec79fc5a73e579ebbdf'}}
2025-06-24 12:32:05,030 - INFO - Created VN ctest-vn-55206133
2025-06-24 12:32:05,084 - DEBUG - VN ctest-vn-55206133 UUID is 80235d4c-40cf-47ca-aa25-b2e40a8591e4
2025-06-24 12:32:05,395 - DEBUG - Response for create_network : {'network': {'id': '082062bf-db13-4dde-8494-04ee3a48efcc', 'name': 'ctest-vn-33019922', 'tenant_id': 'f3f4a9115dc74ec79fc5a73e579ebbdf', 'project_id': 'f3f4a9115dc74ec79fc5a73e579ebbdf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03406933', 'ctest-vn-33019922'], 'port_security_enabled': True, 'description': ''}}
2025-06-24 12:32:05,635 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bc77f9ea-c48a-4a60-a1f3-7cf6f83c4135', 'name': '', 'tenant_id': 'f3f4a9115dc74ec79fc5a73e579ebbdf', 'network_id': '082062bf-db13-4dde-8494-04ee3a48efcc', 'ip_version': 4, 'cidr': '19.135.22.128/26', 'allocation_pools': [{'start': '19.135.22.130', 'end': '19.135.22.190'}], 'gateway_ip': '19.135.22.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '19.135.22.130', 'tags': [], 'project_id': 'f3f4a9115dc74ec79fc5a73e579ebbdf'}}
2025-06-24 12:32:05,657 - INFO - Created VN ctest-vn-33019922
2025-06-24 12:32:05,716 - DEBUG - VN ctest-vn-33019922 UUID is 082062bf-db13-4dde-8494-04ee3a48efcc
2025-06-24 12:32:05,863 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-03406933:ctest-vn-55206133, 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-03406933:ctest-vn-33019922, 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-24 12:32:06,201 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '80235d4c-40cf-47ca-aa25-b2e40a8591e4', 'name': 'ctest-vn-55206133', 'tenant_id': 'f3f4a9115dc74ec79fc5a73e579ebbdf', 'project_id': 'f3f4a9115dc74ec79fc5a73e579ebbdf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['aef02944-94a1-4441-8e85-6240481bf9ad'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03406933', 'ctest-vn-55206133'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-03406933', 'ctest-policy-allow-all-12939111']], 'subnet_ipam': [{'subnet_cidr': '209.188.158.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-24 12:32:06,450 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '082062bf-db13-4dde-8494-04ee3a48efcc', 'name': 'ctest-vn-33019922', 'tenant_id': 'f3f4a9115dc74ec79fc5a73e579ebbdf', 'project_id': 'f3f4a9115dc74ec79fc5a73e579ebbdf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['bc77f9ea-c48a-4a60-a1f3-7cf6f83c4135'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03406933', 'ctest-vn-33019922'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-03406933', 'ctest-policy-allow-all-12939111']], 'subnet_ipam': [{'subnet_cidr': '19.135.22.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-24 12:32:06,641 - DEBUG - Requesting: http://10.0.0.241:8082/domains
2025-06-24 12:32:06,951 - DEBUG - Requesting: http://10.0.0.241:8082/domains
2025-06-24 12:32:06,986 - DEBUG - Requesting: http://10.0.0.241:8082/domain/b7be96f3-3f30-4082-aef5-8dcb469b59f6
2025-06-24 12:32:07,003 - DEBUG - Requesting: http://10.0.0.241:8082/project/f3f4a911-5dc7-4ec7-9fc5-a73e579ebbdf
2025-06-24 12:32:07,080 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/80235d4c-40cf-47ca-aa25-b2e40a8591e4
2025-06-24 12:32:07,096 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/80235d4c-40cf-47ca-aa25-b2e40a8591e4
2025-06-24 12:32:07,109 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/124fc9cb-f571-4f54-879b-09a1a22f8b36
2025-06-24 12:32:07,120 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/124fc9cb-f571-4f54-879b-09a1a22f8b36
2025-06-24 12:32:07,130 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/09cfc690-f907-4d63-bd71-905e414ed966
2025-06-24 12:32:07,139 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-24 12:32:07,140 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/80235d4c-40cf-47ca-aa25-b2e40a8591e4
2025-06-24 12:32:07,151 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/124fc9cb-f571-4f54-879b-09a1a22f8b36
2025-06-24 12:32:07,169 - INFO - Verified VN network id 8 for VN 80235d4c-40cf-47ca-aa25-b2e40a8591e4
2025-06-24 12:32:07,170 - INFO - Verifications in API Server for VN ctest-vn-55206133 passed
2025-06-24 12:32:07,170 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/80235d4c-40cf-47ca-aa25-b2e40a8591e4
2025-06-24 12:32:07,182 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/124fc9cb-f571-4f54-879b-09a1a22f8b36
2025-06-24 12:32:07,191 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/124fc9cb-f571-4f54-879b-09a1a22f8b36
2025-06-24 12:32:07,200 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/09cfc690-f907-4d63-bd71-905e414ed966
2025-06-24 12:32:07,217 - DEBUG - Control-node 10.0.0.241 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-03406933:ctest-vn-55206133', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-03406933', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9233326243125872586', 'uuid-lslong': '12260402253084856804'}, 'enable': 'true', 'created': '2025-06-24T12:32:04', 'last-modified': '2025-06-24T12:32:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.051294'}
2025-06-24 12:32:07,225 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-24 12:32:07,225 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-55206133 passed
2025-06-24 12:32:07,225 - DEBUG - ====Verifying policy data for ctest-vn-55206133 in API_Server ======
2025-06-24 12:32:07,225 - DEBUG - Requesting: http://10.0.0.241:8082/domains
2025-06-24 12:32:07,232 - DEBUG - Requesting: http://10.0.0.241:8082/domain/b7be96f3-3f30-4082-aef5-8dcb469b59f6
2025-06-24 12:32:07,245 - DEBUG - Requesting: http://10.0.0.241:8082/project/f3f4a911-5dc7-4ec7-9fc5-a73e579ebbdf
2025-06-24 12:32:07,321 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/80235d4c-40cf-47ca-aa25-b2e40a8591e4
2025-06-24 12:32:07,333 - DEBUG - ==>Verifying data for policy with id: 123ae36c-056a-4505-8c40-095692d0da40, fqn: ['default-domain', 'ctest-TestBasicPolicy-03406933', 'ctest-policy-allow-all-12939111']
2025-06-24 12:32:07,333 - INFO - VN ctest-vn-55206133 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-24 12:32:07,333 - DEBUG - Verifying the vn in opserver
2025-06-24 12:32:07,333 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-03406933:ctest-vn-55206133 virtual network link through opserver 10.0.0.241
2025-06-24 12:32:07,334 - DEBUG - Requesting: http://10.0.0.241:8081/analytics/uves/virtual-networks
2025-06-24 12:32:07,626 - DEBUG - Requesting: http://10.0.0.241:8081/analytics/uves/virtual-networks
2025-06-24 12:32:07,688 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-03406933:ctest-vn-55206133', 'href': 'http://10.0.0.241:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-03406933:ctest-vn-55206133?flat'}
2025-06-24 12:32:07,688 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-03406933:ctest-vn-55206133 is found in opserver
2025-06-24 12:32:07,701 - DEBUG - Do not have enough data to verify VN in agent
2025-06-24 12:32:07,708 - DEBUG - VRF ids for VN ctest-vn-55206133: {}
2025-06-24 12:32:07,708 - DEBUG - Requesting: http://10.0.0.241:8082/domains
2025-06-24 12:32:07,716 - DEBUG - Requesting: http://10.0.0.241:8082/domain/b7be96f3-3f30-4082-aef5-8dcb469b59f6
2025-06-24 12:32:07,730 - DEBUG - Requesting: http://10.0.0.241:8082/project/f3f4a911-5dc7-4ec7-9fc5-a73e579ebbdf
2025-06-24 12:32:07,811 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/082062bf-db13-4dde-8494-04ee3a48efcc
2025-06-24 12:32:07,826 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/082062bf-db13-4dde-8494-04ee3a48efcc
2025-06-24 12:32:07,838 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/8b4f0893-e0ca-45f0-b8cc-404a31cc0683
2025-06-24 12:32:07,849 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/8b4f0893-e0ca-45f0-b8cc-404a31cc0683
2025-06-24 12:32:07,860 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/eb24e01b-cdd8-418f-bf9b-42bd47484c4a
2025-06-24 12:32:07,870 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-24 12:32:07,870 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/082062bf-db13-4dde-8494-04ee3a48efcc
2025-06-24 12:32:07,884 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/8b4f0893-e0ca-45f0-b8cc-404a31cc0683
2025-06-24 12:32:07,905 - INFO - Verified VN network id 9 for VN 082062bf-db13-4dde-8494-04ee3a48efcc
2025-06-24 12:32:07,905 - INFO - Verifications in API Server for VN ctest-vn-33019922 passed
2025-06-24 12:32:07,905 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/082062bf-db13-4dde-8494-04ee3a48efcc
2025-06-24 12:32:07,919 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/8b4f0893-e0ca-45f0-b8cc-404a31cc0683
2025-06-24 12:32:07,929 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/8b4f0893-e0ca-45f0-b8cc-404a31cc0683
2025-06-24 12:32:07,939 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/eb24e01b-cdd8-418f-bf9b-42bd47484c4a
2025-06-24 12:32:07,956 - DEBUG - Control-node 10.0.0.241 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-03406933:ctest-vn-33019922', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-03406933', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '585576527711915486', 'uuid-lslong': '9553266130786250700'}, 'enable': 'true', 'created': '2025-06-24T12:32:05', 'last-modified': '2025-06-24T12:32:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.530625'}
2025-06-24 12:32:07,964 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-24 12:32:07,964 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-33019922 passed
2025-06-24 12:32:07,964 - DEBUG - ====Verifying policy data for ctest-vn-33019922 in API_Server ======
2025-06-24 12:32:07,964 - DEBUG - Requesting: http://10.0.0.241:8082/domains
2025-06-24 12:32:07,971 - DEBUG - Requesting: http://10.0.0.241:8082/domain/b7be96f3-3f30-4082-aef5-8dcb469b59f6
2025-06-24 12:32:07,988 - DEBUG - Requesting: http://10.0.0.241:8082/project/f3f4a911-5dc7-4ec7-9fc5-a73e579ebbdf
2025-06-24 12:32:08,067 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/082062bf-db13-4dde-8494-04ee3a48efcc
2025-06-24 12:32:08,077 - DEBUG - ==>Verifying data for policy with id: 123ae36c-056a-4505-8c40-095692d0da40, fqn: ['default-domain', 'ctest-TestBasicPolicy-03406933', 'ctest-policy-allow-all-12939111']
2025-06-24 12:32:08,078 - INFO - VN ctest-vn-33019922 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-24 12:32:08,078 - DEBUG - Verifying the vn in opserver
2025-06-24 12:32:08,078 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-03406933:ctest-vn-33019922 virtual network link through opserver 10.0.0.241
2025-06-24 12:32:08,078 - DEBUG - Requesting: http://10.0.0.241:8081/analytics/uves/virtual-networks
2025-06-24 12:32:08,092 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-03406933:ctest-vn-33019922', 'href': 'http://10.0.0.241:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-03406933:ctest-vn-33019922?flat'}
2025-06-24 12:32:08,092 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-03406933:ctest-vn-33019922 is found in opserver
2025-06-24 12:32:08,105 - DEBUG - Do not have enough data to verify VN in agent
2025-06-24 12:32:08,111 - DEBUG - VRF ids for VN ctest-vn-33019922: {}
2025-06-24 12:32:08,174 - DEBUG - Services list from nova: [