2025-11-06 06:32:00,411 - INFO - Domain Default found not creating
2025-11-06 06:32:00,549 - INFO - Project ctest-TestBasicPolicy-90645526 not found, creating it
2025-11-06 06:32:00,989 - INFO - Created Project:ctest-TestBasicPolicy-90645526, ID : 7b42f228-e132-4b43-ab37-c056df9f3d4e
2025-11-06 06:32:02,440 - INFO - ================================================================================
2025-11-06 06:32:02,440 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-06 06:32:02,440 - 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-11-06 06:32:02,703 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.18': '0'}} with
2025-11-06 06:32:02,703 - INFO - Initial checks done. Running the testcase now
2025-11-06 06:32:02,703 - INFO -
2025-11-06 06:32:03,234 - DEBUG - Response for create_network : {'network': {'id': '32a59e6c-7075-4fbc-9cf1-53c4947363f1', 'name': 'ctest-vn-67974025', 'tenant_id': '7b42f228e1324b43ab37c056df9f3d4e', 'project_id': '7b42f228e1324b43ab37c056df9f3d4e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90645526', 'ctest-vn-67974025'], 'port_security_enabled': True, 'description': ''}}
2025-11-06 06:32:03,399 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cdd4cbfa-e727-4b97-ade0-21bb90a0d5b3', 'name': '', 'tenant_id': '7b42f228e1324b43ab37c056df9f3d4e', 'network_id': '32a59e6c-7075-4fbc-9cf1-53c4947363f1', 'ip_version': 4, 'cidr': '191.110.142.128/26', 'allocation_pools': [{'start': '191.110.142.130', 'end': '191.110.142.190'}], 'gateway_ip': '191.110.142.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '191.110.142.130', 'tags': [], 'project_id': '7b42f228e1324b43ab37c056df9f3d4e'}}
2025-11-06 06:32:03,417 - INFO - Created VN ctest-vn-67974025
2025-11-06 06:32:03,471 - DEBUG - VN ctest-vn-67974025 UUID is 32a59e6c-7075-4fbc-9cf1-53c4947363f1
2025-11-06 06:32:03,791 - DEBUG - Response for create_network : {'network': {'id': '121b93bd-1bd2-42a0-89cc-9efb3e60cdcf', 'name': 'ctest-vn-61478082', 'tenant_id': '7b42f228e1324b43ab37c056df9f3d4e', 'project_id': '7b42f228e1324b43ab37c056df9f3d4e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90645526', 'ctest-vn-61478082'], 'port_security_enabled': True, 'description': ''}}
2025-11-06 06:32:03,948 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ae064c6e-a6ed-4506-a303-28d9c5eab8af', 'name': '', 'tenant_id': '7b42f228e1324b43ab37c056df9f3d4e', 'network_id': '121b93bd-1bd2-42a0-89cc-9efb3e60cdcf', 'ip_version': 4, 'cidr': '102.27.176.64/26', 'allocation_pools': [{'start': '102.27.176.66', 'end': '102.27.176.126'}], 'gateway_ip': '102.27.176.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '102.27.176.66', 'tags': [], 'project_id': '7b42f228e1324b43ab37c056df9f3d4e'}}
2025-11-06 06:32:03,963 - INFO - Created VN ctest-vn-61478082
2025-11-06 06:32:04,014 - DEBUG - VN ctest-vn-61478082 UUID is 121b93bd-1bd2-42a0-89cc-9efb3e60cdcf
2025-11-06 06:32:04,126 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-90645526:ctest-vn-67974025, 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-90645526:ctest-vn-61478082, 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-11-06 06:32:04,534 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '32a59e6c-7075-4fbc-9cf1-53c4947363f1', 'name': 'ctest-vn-67974025', 'tenant_id': '7b42f228e1324b43ab37c056df9f3d4e', 'project_id': '7b42f228e1324b43ab37c056df9f3d4e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cdd4cbfa-e727-4b97-ade0-21bb90a0d5b3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90645526', 'ctest-vn-67974025'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-90645526', 'ctest-policy-allow-all-46259797']], 'subnet_ipam': [{'subnet_cidr': '191.110.142.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-06 06:32:04,868 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '121b93bd-1bd2-42a0-89cc-9efb3e60cdcf', 'name': 'ctest-vn-61478082', 'tenant_id': '7b42f228e1324b43ab37c056df9f3d4e', 'project_id': '7b42f228e1324b43ab37c056df9f3d4e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ae064c6e-a6ed-4506-a303-28d9c5eab8af'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90645526', 'ctest-vn-61478082'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-90645526', 'ctest-policy-allow-all-46259797']], 'subnet_ipam': [{'subnet_cidr': '102.27.176.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-06 06:32:05,019 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-06 06:32:05,329 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-06 06:32:05,357 - DEBUG - Requesting: http://10.0.0.38:8082/domain/702902a0-bfb0-4bd4-bacd-afce93f345bd
2025-11-06 06:32:05,369 - DEBUG - Requesting: http://10.0.0.38:8082/project/7b42f228-e132-4b43-ab37-c056df9f3d4e
2025-11-06 06:32:05,447 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/32a59e6c-7075-4fbc-9cf1-53c4947363f1
2025-11-06 06:32:05,458 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/32a59e6c-7075-4fbc-9cf1-53c4947363f1
2025-11-06 06:32:05,466 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2e46f971-b3e1-443b-8816-bb23d2c21ab0
2025-11-06 06:32:05,472 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2e46f971-b3e1-443b-8816-bb23d2c21ab0
2025-11-06 06:32:05,478 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/18cd6f8e-f4bf-4662-aab2-db45f614497c
2025-11-06 06:32:05,484 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-06 06:32:05,484 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/32a59e6c-7075-4fbc-9cf1-53c4947363f1
2025-11-06 06:32:05,493 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2e46f971-b3e1-443b-8816-bb23d2c21ab0
2025-11-06 06:32:05,506 - INFO - Verified VN network id 12 for VN 32a59e6c-7075-4fbc-9cf1-53c4947363f1
2025-11-06 06:32:05,507 - INFO - Verifications in API Server for VN ctest-vn-67974025 passed
2025-11-06 06:32:05,507 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/32a59e6c-7075-4fbc-9cf1-53c4947363f1
2025-11-06 06:32:05,514 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2e46f971-b3e1-443b-8816-bb23d2c21ab0
2025-11-06 06:32:05,520 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2e46f971-b3e1-443b-8816-bb23d2c21ab0
2025-11-06 06:32:05,527 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/18cd6f8e-f4bf-4662-aab2-db45f614497c
2025-11-06 06:32:05,538 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-90645526:ctest-vn-67974025', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-90645526', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3649497261634047932', 'uuid-lslong': '11308912243073311729'}, 'enable': 'true', 'created': '2025-11-06T06:32:03', 'last-modified': '2025-11-06T06:32:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.077732'}
2025-11-06 06:32:05,543 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-06 06:32:05,543 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-67974025 passed
2025-11-06 06:32:05,543 - DEBUG - ====Verifying policy data for ctest-vn-67974025 in API_Server ======
2025-11-06 06:32:05,543 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-06 06:32:05,548 - DEBUG - Requesting: http://10.0.0.38:8082/domain/702902a0-bfb0-4bd4-bacd-afce93f345bd
2025-11-06 06:32:05,557 - DEBUG - Requesting: http://10.0.0.38:8082/project/7b42f228-e132-4b43-ab37-c056df9f3d4e
2025-11-06 06:32:05,625 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/32a59e6c-7075-4fbc-9cf1-53c4947363f1
2025-11-06 06:32:05,633 - DEBUG - ==>Verifying data for policy with id: 02d68132-7cdc-4c96-93b5-950a9228fc92, fqn: ['default-domain', 'ctest-TestBasicPolicy-90645526', 'ctest-policy-allow-all-46259797']
2025-11-06 06:32:05,633 - INFO - VN ctest-vn-67974025 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-06 06:32:05,633 - DEBUG - Verifying the vn in opserver
2025-11-06 06:32:05,633 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-90645526:ctest-vn-67974025 virtual network link through opserver 10.0.0.38
2025-11-06 06:32:05,633 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-11-06 06:32:05,923 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-11-06 06:32:05,976 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-90645526:ctest-vn-67974025', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-90645526:ctest-vn-67974025?flat'}
2025-11-06 06:32:05,976 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-90645526:ctest-vn-67974025 is found in opserver
2025-11-06 06:32:05,986 - DEBUG - Do not have enough data to verify VN in agent
2025-11-06 06:32:05,990 - DEBUG - VRF ids for VN ctest-vn-67974025: {}
2025-11-06 06:32:05,990 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-06 06:32:05,996 - DEBUG - Requesting: http://10.0.0.38:8082/domain/702902a0-bfb0-4bd4-bacd-afce93f345bd
2025-11-06 06:32:06,005 - DEBUG - Requesting: http://10.0.0.38:8082/project/7b42f228-e132-4b43-ab37-c056df9f3d4e
2025-11-06 06:32:06,069 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/121b93bd-1bd2-42a0-89cc-9efb3e60cdcf
2025-11-06 06:32:06,081 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/121b93bd-1bd2-42a0-89cc-9efb3e60cdcf
2025-11-06 06:32:06,091 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/928d99d3-8deb-407c-bf89-56a5bbd1c4a7
2025-11-06 06:32:06,098 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/928d99d3-8deb-407c-bf89-56a5bbd1c4a7
2025-11-06 06:32:06,104 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/709b3615-55c8-4f5c-b250-927db095e2f5
2025-11-06 06:32:06,109 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-06 06:32:06,109 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/121b93bd-1bd2-42a0-89cc-9efb3e60cdcf
2025-11-06 06:32:06,118 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/928d99d3-8deb-407c-bf89-56a5bbd1c4a7
2025-11-06 06:32:06,130 - INFO - Verified VN network id 13 for VN 121b93bd-1bd2-42a0-89cc-9efb3e60cdcf
2025-11-06 06:32:06,131 - INFO - Verifications in API Server for VN ctest-vn-61478082 passed
2025-11-06 06:32:06,131 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/121b93bd-1bd2-42a0-89cc-9efb3e60cdcf
2025-11-06 06:32:06,139 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/928d99d3-8deb-407c-bf89-56a5bbd1c4a7
2025-11-06 06:32:06,146 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/928d99d3-8deb-407c-bf89-56a5bbd1c4a7
2025-11-06 06:32:06,152 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/709b3615-55c8-4f5c-b250-927db095e2f5
2025-11-06 06:32:06,163 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-90645526:ctest-vn-61478082', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-90645526', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1304798957478757024', 'uuid-lslong': '9929486080365612495'}, 'enable': 'true', 'created': '2025-11-06T06:32:03', 'last-modified': '2025-11-06T06:32:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.336596'}
2025-11-06 06:32:06,168 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-06 06:32:06,168 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-61478082 passed
2025-11-06 06:32:06,168 - DEBUG - ====Verifying policy data for ctest-vn-61478082 in API_Server ======
2025-11-06 06:32:06,168 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-06 06:32:06,173 - DEBUG - Requesting: http://10.0.0.38:8082/domain/702902a0-bfb0-4bd4-bacd-afce93f345bd
2025-11-06 06:32:06,182 - DEBUG - Requesting: http://10.0.0.38:8082/project/7b42f228-e132-4b43-ab37-c056df9f3d4e
2025-11-06 06:32:06,251 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/121b93bd-1bd2-42a0-89cc-9efb3e60cdcf
2025-11-06 06:32:06,259 - DEBUG - ==>Verifying data for policy with id: 02d68132-7cdc-4c96-93b5-950a9228fc92, fqn: ['default-domain', 'ctest-TestBasicPolicy-90645526', 'ctest-policy-allow-all-46259797']
2025-11-06 06:32:06,259 - INFO - VN ctest-vn-61478082 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-06 06:32:06,259 - DEBUG - Verifying the vn in opserver
2025-11-06 06:32:06,259 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-90645526:ctest-vn-61478082 virtual network link through opserver 10.0.0.38
2025-11-06 06:32:06,259 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-11-06 06:32:06,267 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-90645526:ctest-vn-61478082', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-90645526:ctest-vn-61478082?flat'}
2025-11-06 06:32:06,267 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-90645526:ctest-vn-61478082 is found in opserver
2025-11-06 06:32:06,275 - DEBUG - Do not have enough data to verify VN in agent
2025-11-06 06:32:06,279 - DEBUG - VRF ids for VN ctest-vn-61478082: {}
2025-11-06 06:32:06,329 - DEBUG - Services list from nova: [