2025-07-31 15:29:45,192 - INFO - Domain Default found not creating
2025-07-31 15:29:45,368 - INFO - Project ctest-TestBasicPolicy-89472872 not found, creating it
2025-07-31 15:29:45,867 - INFO - Created Project:ctest-TestBasicPolicy-89472872, ID : a1cfc095-0118-4df8-a4ca-d6d8de87c4b3
2025-07-31 15:29:47,382 - INFO - ================================================================================
2025-07-31 15:29:47,382 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-31 15:29:47,383 - 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-07-31 15:29:47,651 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2025-07-31 15:29:47,651 - INFO - Initial checks done. Running the testcase now
2025-07-31 15:29:47,651 - INFO -
2025-07-31 15:29:48,215 - DEBUG - Response for create_network : {'network': {'id': 'add75f84-8620-4cec-ad92-105a40bf5c7c', 'name': 'ctest-vn-48677592', 'tenant_id': 'a1cfc09501184df8a4cad6d8de87c4b3', 'project_id': 'a1cfc09501184df8a4cad6d8de87c4b3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89472872', 'ctest-vn-48677592'], 'port_security_enabled': True, 'description': ''}}
2025-07-31 15:29:48,437 - DEBUG - Response for create_subnet : {'subnet': {'id': '738d6666-43d6-410b-bf51-6ada16141e38', 'name': '', 'tenant_id': 'a1cfc09501184df8a4cad6d8de87c4b3', 'network_id': 'add75f84-8620-4cec-ad92-105a40bf5c7c', 'ip_version': 4, 'cidr': '121.149.252.0/26', 'allocation_pools': [{'start': '121.149.252.2', 'end': '121.149.252.62'}], 'gateway_ip': '121.149.252.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '121.149.252.2', 'tags': [], 'project_id': 'a1cfc09501184df8a4cad6d8de87c4b3'}}
2025-07-31 15:29:48,458 - INFO - Created VN ctest-vn-48677592
2025-07-31 15:29:48,512 - DEBUG - VN ctest-vn-48677592 UUID is add75f84-8620-4cec-ad92-105a40bf5c7c
2025-07-31 15:29:48,836 - DEBUG - Response for create_network : {'network': {'id': 'b76d9353-67e9-47e4-ad3f-7b431200677c', 'name': 'ctest-vn-73101855', 'tenant_id': 'a1cfc09501184df8a4cad6d8de87c4b3', 'project_id': 'a1cfc09501184df8a4cad6d8de87c4b3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89472872', 'ctest-vn-73101855'], 'port_security_enabled': True, 'description': ''}}
2025-07-31 15:29:49,039 - DEBUG - Response for create_subnet : {'subnet': {'id': '2df8cbba-624b-4b68-b0e9-5957a5a99398', 'name': '', 'tenant_id': 'a1cfc09501184df8a4cad6d8de87c4b3', 'network_id': 'b76d9353-67e9-47e4-ad3f-7b431200677c', 'ip_version': 4, 'cidr': '77.59.32.0/26', 'allocation_pools': [{'start': '77.59.32.2', 'end': '77.59.32.62'}], 'gateway_ip': '77.59.32.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '77.59.32.2', 'tags': [], 'project_id': 'a1cfc09501184df8a4cad6d8de87c4b3'}}
2025-07-31 15:29:49,064 - INFO - Created VN ctest-vn-73101855
2025-07-31 15:29:49,116 - DEBUG - VN ctest-vn-73101855 UUID is b76d9353-67e9-47e4-ad3f-7b431200677c
2025-07-31 15:29:49,241 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-89472872:ctest-vn-48677592, 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-89472872:ctest-vn-73101855, 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-07-31 15:29:49,553 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'add75f84-8620-4cec-ad92-105a40bf5c7c', 'name': 'ctest-vn-48677592', 'tenant_id': 'a1cfc09501184df8a4cad6d8de87c4b3', 'project_id': 'a1cfc09501184df8a4cad6d8de87c4b3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['738d6666-43d6-410b-bf51-6ada16141e38'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89472872', 'ctest-vn-48677592'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-89472872', 'ctest-policy-allow-all-62826216']], 'subnet_ipam': [{'subnet_cidr': '121.149.252.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-31 15:29:49,796 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b76d9353-67e9-47e4-ad3f-7b431200677c', 'name': 'ctest-vn-73101855', 'tenant_id': 'a1cfc09501184df8a4cad6d8de87c4b3', 'project_id': 'a1cfc09501184df8a4cad6d8de87c4b3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2df8cbba-624b-4b68-b0e9-5957a5a99398'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89472872', 'ctest-vn-73101855'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-89472872', 'ctest-policy-allow-all-62826216']], 'subnet_ipam': [{'subnet_cidr': '77.59.32.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-31 15:29:49,973 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-07-31 15:29:50,270 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-07-31 15:29:50,302 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b9b68453-0265-4b34-bd80-4ca945759a13
2025-07-31 15:29:50,319 - DEBUG - Requesting: http://10.0.0.38:8082/project/a1cfc095-0118-4df8-a4ca-d6d8de87c4b3
2025-07-31 15:29:50,401 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/add75f84-8620-4cec-ad92-105a40bf5c7c
2025-07-31 15:29:50,415 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/add75f84-8620-4cec-ad92-105a40bf5c7c
2025-07-31 15:29:50,428 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/47d10a58-ef4a-46dc-a6eb-6528dd40ee97
2025-07-31 15:29:50,438 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/47d10a58-ef4a-46dc-a6eb-6528dd40ee97
2025-07-31 15:29:50,446 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/d0d00ef1-c9ad-4910-90cf-58de37099445
2025-07-31 15:29:50,454 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-31 15:29:50,454 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/add75f84-8620-4cec-ad92-105a40bf5c7c
2025-07-31 15:29:50,464 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/47d10a58-ef4a-46dc-a6eb-6528dd40ee97
2025-07-31 15:29:50,482 - INFO - Verified VN network id 11 for VN add75f84-8620-4cec-ad92-105a40bf5c7c
2025-07-31 15:29:50,483 - INFO - Verifications in API Server for VN ctest-vn-48677592 passed
2025-07-31 15:29:50,483 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/add75f84-8620-4cec-ad92-105a40bf5c7c
2025-07-31 15:29:50,498 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/47d10a58-ef4a-46dc-a6eb-6528dd40ee97
2025-07-31 15:29:50,507 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/47d10a58-ef4a-46dc-a6eb-6528dd40ee97
2025-07-31 15:29:50,515 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/d0d00ef1-c9ad-4910-90cf-58de37099445
2025-07-31 15:29:50,530 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-89472872:ctest-vn-48677592', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-89472872', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12526585911344909548', 'uuid-lslong': '12507077094980672636'}, 'enable': 'true', 'created': '2025-07-31T15:29:48', 'last-modified': '2025-07-31T15:29:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.001489'}
2025-07-31 15:29:50,539 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-31 15:29:50,539 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-48677592 passed
2025-07-31 15:29:50,539 - DEBUG - ====Verifying policy data for ctest-vn-48677592 in API_Server ======
2025-07-31 15:29:50,539 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-07-31 15:29:50,546 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b9b68453-0265-4b34-bd80-4ca945759a13
2025-07-31 15:29:50,561 - DEBUG - Requesting: http://10.0.0.38:8082/project/a1cfc095-0118-4df8-a4ca-d6d8de87c4b3
2025-07-31 15:29:50,637 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/add75f84-8620-4cec-ad92-105a40bf5c7c
2025-07-31 15:29:50,651 - DEBUG - ==>Verifying data for policy with id: bf1ddb0d-d00e-49f3-8f41-21dcebacc5dd, fqn: ['default-domain', 'ctest-TestBasicPolicy-89472872', 'ctest-policy-allow-all-62826216']
2025-07-31 15:29:50,651 - INFO - VN ctest-vn-48677592 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-31 15:29:50,651 - DEBUG - Verifying the vn in opserver
2025-07-31 15:29:50,651 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-89472872:ctest-vn-48677592 virtual network link through opserver 10.0.0.38
2025-07-31 15:29:50,652 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-07-31 15:29:50,960 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-07-31 15:29:51,024 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-89472872:ctest-vn-48677592', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-89472872:ctest-vn-48677592?flat'}
2025-07-31 15:29:51,025 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-89472872:ctest-vn-48677592 is found in opserver
2025-07-31 15:29:51,041 - DEBUG - Do not have enough data to verify VN in agent
2025-07-31 15:29:51,048 - DEBUG - VRF ids for VN ctest-vn-48677592: {}
2025-07-31 15:29:51,048 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-07-31 15:29:51,055 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b9b68453-0265-4b34-bd80-4ca945759a13
2025-07-31 15:29:51,067 - DEBUG - Requesting: http://10.0.0.38:8082/project/a1cfc095-0118-4df8-a4ca-d6d8de87c4b3
2025-07-31 15:29:51,144 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b76d9353-67e9-47e4-ad3f-7b431200677c
2025-07-31 15:29:51,158 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b76d9353-67e9-47e4-ad3f-7b431200677c
2025-07-31 15:29:51,169 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/33bd35d5-a99d-44eb-b7d5-5985b0f51ece
2025-07-31 15:29:51,178 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/33bd35d5-a99d-44eb-b7d5-5985b0f51ece
2025-07-31 15:29:51,186 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/4eab3b0e-b352-45ed-b4bf-065f842ef999
2025-07-31 15:29:51,194 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-31 15:29:51,194 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b76d9353-67e9-47e4-ad3f-7b431200677c
2025-07-31 15:29:51,206 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/33bd35d5-a99d-44eb-b7d5-5985b0f51ece
2025-07-31 15:29:51,227 - INFO - Verified VN network id 12 for VN b76d9353-67e9-47e4-ad3f-7b431200677c
2025-07-31 15:29:51,227 - INFO - Verifications in API Server for VN ctest-vn-73101855 passed
2025-07-31 15:29:51,228 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b76d9353-67e9-47e4-ad3f-7b431200677c
2025-07-31 15:29:51,242 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/33bd35d5-a99d-44eb-b7d5-5985b0f51ece
2025-07-31 15:29:51,251 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/33bd35d5-a99d-44eb-b7d5-5985b0f51ece
2025-07-31 15:29:51,259 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/4eab3b0e-b352-45ed-b4bf-065f842ef999
2025-07-31 15:29:51,274 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-89472872:ctest-vn-73101855', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-89472872', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13217382467837183972', 'uuid-lslong': '12483832220089345916'}, 'enable': 'true', 'created': '2025-07-31T15:29:48', 'last-modified': '2025-07-31T15:29:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.502808'}
2025-07-31 15:29:51,281 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-31 15:29:51,281 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-73101855 passed
2025-07-31 15:29:51,282 - DEBUG - ====Verifying policy data for ctest-vn-73101855 in API_Server ======
2025-07-31 15:29:51,282 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-07-31 15:29:51,288 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b9b68453-0265-4b34-bd80-4ca945759a13
2025-07-31 15:29:51,302 - DEBUG - Requesting: http://10.0.0.38:8082/project/a1cfc095-0118-4df8-a4ca-d6d8de87c4b3
2025-07-31 15:29:51,380 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b76d9353-67e9-47e4-ad3f-7b431200677c
2025-07-31 15:29:51,391 - DEBUG - ==>Verifying data for policy with id: bf1ddb0d-d00e-49f3-8f41-21dcebacc5dd, fqn: ['default-domain', 'ctest-TestBasicPolicy-89472872', 'ctest-policy-allow-all-62826216']
2025-07-31 15:29:51,391 - INFO - VN ctest-vn-73101855 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-31 15:29:51,391 - DEBUG - Verifying the vn in opserver
2025-07-31 15:29:51,391 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-89472872:ctest-vn-73101855 virtual network link through opserver 10.0.0.38
2025-07-31 15:29:51,391 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-07-31 15:29:51,402 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-89472872:ctest-vn-73101855', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-89472872:ctest-vn-73101855?flat'}
2025-07-31 15:29:51,402 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-89472872:ctest-vn-73101855 is found in opserver
2025-07-31 15:29:51,414 - DEBUG - Do not have enough data to verify VN in agent
2025-07-31 15:29:51,420 - DEBUG - VRF ids for VN ctest-vn-73101855: {}
2025-07-31 15:29:51,497 - DEBUG - Services list from nova: [