2025-09-11 14:40:00,125 - INFO - Domain Default found not creating
2025-09-11 14:40:00,334 - INFO - Project ctest-TestBasicPolicy-48073208 not found, creating it
2025-09-11 14:40:00,908 - INFO - Created Project:ctest-TestBasicPolicy-48073208, ID : e3936e56-d882-41ac-9dca-045d160bb80a
2025-09-11 14:40:02,750 - INFO - ================================================================================
2025-09-11 14:40:02,751 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-11 14:40:02,751 - 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-09-11 14:40:03,022 - DEBUG - Nothing to compare xmpp stats {'10.0.0.137': {'10.20.0.254': '0'}} with
2025-09-11 14:40:03,022 - INFO - Initial checks done. Running the testcase now
2025-09-11 14:40:03,022 - INFO -
2025-09-11 14:40:04,090 - DEBUG - Response for create_network : {'network': {'id': '036828a0-8e0e-470b-974c-1810f8f1e054', 'name': 'ctest-vn-60481034', 'tenant_id': 'e3936e56d88241ac9dca045d160bb80a', 'project_id': 'e3936e56d88241ac9dca045d160bb80a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48073208', 'ctest-vn-60481034'], 'port_security_enabled': True, 'description': ''}}
2025-09-11 14:40:04,302 - DEBUG - Response for create_subnet : {'subnet': {'id': '92f3258f-c826-4cef-a041-11f91e9818a3', 'name': '', 'tenant_id': 'e3936e56d88241ac9dca045d160bb80a', 'network_id': '036828a0-8e0e-470b-974c-1810f8f1e054', 'ip_version': 4, 'cidr': '71.211.25.128/26', 'allocation_pools': [{'start': '71.211.25.130', 'end': '71.211.25.190'}], 'gateway_ip': '71.211.25.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '71.211.25.130', 'tags': [], 'project_id': 'e3936e56d88241ac9dca045d160bb80a'}}
2025-09-11 14:40:04,327 - INFO - Created VN ctest-vn-60481034
2025-09-11 14:40:04,391 - DEBUG - VN ctest-vn-60481034 UUID is 036828a0-8e0e-470b-974c-1810f8f1e054
2025-09-11 14:40:04,747 - DEBUG - Response for create_network : {'network': {'id': '9de5a541-0877-43aa-8ceb-8c912c0397e3', 'name': 'ctest-vn-29166188', 'tenant_id': 'e3936e56d88241ac9dca045d160bb80a', 'project_id': 'e3936e56d88241ac9dca045d160bb80a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48073208', 'ctest-vn-29166188'], 'port_security_enabled': True, 'description': ''}}
2025-09-11 14:40:04,986 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c4816f18-352d-4367-8922-5eec14034c09', 'name': '', 'tenant_id': 'e3936e56d88241ac9dca045d160bb80a', 'network_id': '9de5a541-0877-43aa-8ceb-8c912c0397e3', 'ip_version': 4, 'cidr': '47.18.100.64/26', 'allocation_pools': [{'start': '47.18.100.66', 'end': '47.18.100.126'}], 'gateway_ip': '47.18.100.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '47.18.100.66', 'tags': [], 'project_id': 'e3936e56d88241ac9dca045d160bb80a'}}
2025-09-11 14:40:05,017 - INFO - Created VN ctest-vn-29166188
2025-09-11 14:40:05,075 - DEBUG - VN ctest-vn-29166188 UUID is 9de5a541-0877-43aa-8ceb-8c912c0397e3
2025-09-11 14:40:05,214 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-48073208:ctest-vn-60481034, 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-48073208:ctest-vn-29166188, 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-09-11 14:40:05,550 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '036828a0-8e0e-470b-974c-1810f8f1e054', 'name': 'ctest-vn-60481034', 'tenant_id': 'e3936e56d88241ac9dca045d160bb80a', 'project_id': 'e3936e56d88241ac9dca045d160bb80a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['92f3258f-c826-4cef-a041-11f91e9818a3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48073208', 'ctest-vn-60481034'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-48073208', 'ctest-policy-allow-all-89833090']], 'subnet_ipam': [{'subnet_cidr': '71.211.25.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-11 14:40:05,791 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9de5a541-0877-43aa-8ceb-8c912c0397e3', 'name': 'ctest-vn-29166188', 'tenant_id': 'e3936e56d88241ac9dca045d160bb80a', 'project_id': 'e3936e56d88241ac9dca045d160bb80a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c4816f18-352d-4367-8922-5eec14034c09'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48073208', 'ctest-vn-29166188'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-48073208', 'ctest-policy-allow-all-89833090']], 'subnet_ipam': [{'subnet_cidr': '47.18.100.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-11 14:40:05,963 - DEBUG - Requesting: http://10.0.0.137:8082/domains
2025-09-11 14:40:06,304 - DEBUG - Requesting: http://10.0.0.137:8082/domains
2025-09-11 14:40:06,344 - DEBUG - Requesting: http://10.0.0.137:8082/domain/04dd93ea-241f-48e6-8e53-caba2a1a15aa
2025-09-11 14:40:06,360 - DEBUG - Requesting: http://10.0.0.137:8082/project/e3936e56-d882-41ac-9dca-045d160bb80a
2025-09-11 14:40:06,446 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/036828a0-8e0e-470b-974c-1810f8f1e054
2025-09-11 14:40:06,459 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/036828a0-8e0e-470b-974c-1810f8f1e054
2025-09-11 14:40:06,470 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/f551e6d4-5fbe-4efd-9590-29c66a869390
2025-09-11 14:40:06,478 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/f551e6d4-5fbe-4efd-9590-29c66a869390
2025-09-11 14:40:06,486 - DEBUG - Requesting: http://10.0.0.137:8082/route-target/51f3ce3a-9265-419b-ac27-7ba9f0904f4e
2025-09-11 14:40:06,495 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-11 14:40:06,495 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/036828a0-8e0e-470b-974c-1810f8f1e054
2025-09-11 14:40:06,505 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/f551e6d4-5fbe-4efd-9590-29c66a869390
2025-09-11 14:40:06,521 - INFO - Verified VN network id 12 for VN 036828a0-8e0e-470b-974c-1810f8f1e054
2025-09-11 14:40:06,521 - INFO - Verifications in API Server for VN ctest-vn-60481034 passed
2025-09-11 14:40:06,521 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/036828a0-8e0e-470b-974c-1810f8f1e054
2025-09-11 14:40:06,531 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/f551e6d4-5fbe-4efd-9590-29c66a869390
2025-09-11 14:40:06,539 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/f551e6d4-5fbe-4efd-9590-29c66a869390
2025-09-11 14:40:06,548 - DEBUG - Requesting: http://10.0.0.137:8082/route-target/51f3ce3a-9265-419b-ac27-7ba9f0904f4e
2025-09-11 14:40:06,562 - DEBUG - Control-node 10.0.0.137 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-48073208:ctest-vn-60481034', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-48073208', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '245490849734870795', 'uuid-lslong': '10902115259132272724'}, 'enable': 'true', 'created': '2025-09-11T14:40:04', 'last-modified': '2025-09-11T14:40:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.046180'}
2025-09-11 14:40:06,569 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-11 14:40:06,569 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-60481034 passed
2025-09-11 14:40:06,570 - DEBUG - ====Verifying policy data for ctest-vn-60481034 in API_Server ======
2025-09-11 14:40:06,570 - DEBUG - Requesting: http://10.0.0.137:8082/domains
2025-09-11 14:40:06,576 - DEBUG - Requesting: http://10.0.0.137:8082/domain/04dd93ea-241f-48e6-8e53-caba2a1a15aa
2025-09-11 14:40:06,590 - DEBUG - Requesting: http://10.0.0.137:8082/project/e3936e56-d882-41ac-9dca-045d160bb80a
2025-09-11 14:40:06,671 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/036828a0-8e0e-470b-974c-1810f8f1e054
2025-09-11 14:40:06,684 - DEBUG - ==>Verifying data for policy with id: 49c3ae54-dfb8-4b23-9d50-686be2f1e131, fqn: ['default-domain', 'ctest-TestBasicPolicy-48073208', 'ctest-policy-allow-all-89833090']
2025-09-11 14:40:06,684 - INFO - VN ctest-vn-60481034 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-11 14:40:06,684 - DEBUG - Verifying the vn in opserver
2025-09-11 14:40:06,684 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-48073208:ctest-vn-60481034 virtual network link through opserver 10.0.0.137
2025-09-11 14:40:06,685 - DEBUG - Requesting: http://10.0.0.137:8081/analytics/uves/virtual-networks
2025-09-11 14:40:07,047 - DEBUG - Requesting: http://10.0.0.137:8081/analytics/uves/virtual-networks
2025-09-11 14:40:07,124 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-48073208:ctest-vn-60481034', 'href': 'http://10.0.0.137:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-48073208:ctest-vn-60481034?flat'}
2025-09-11 14:40:07,124 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-48073208:ctest-vn-60481034 is found in opserver
2025-09-11 14:40:07,144 - DEBUG - Do not have enough data to verify VN in agent
2025-09-11 14:40:07,152 - DEBUG - VRF ids for VN ctest-vn-60481034: {}
2025-09-11 14:40:07,153 - DEBUG - Requesting: http://10.0.0.137:8082/domains
2025-09-11 14:40:07,160 - DEBUG - Requesting: http://10.0.0.137:8082/domain/04dd93ea-241f-48e6-8e53-caba2a1a15aa
2025-09-11 14:40:07,176 - DEBUG - Requesting: http://10.0.0.137:8082/project/e3936e56-d882-41ac-9dca-045d160bb80a
2025-09-11 14:40:07,260 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/9de5a541-0877-43aa-8ceb-8c912c0397e3
2025-09-11 14:40:07,277 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/9de5a541-0877-43aa-8ceb-8c912c0397e3
2025-09-11 14:40:07,291 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/16773abf-a05e-43c2-941b-8b0e31c70311
2025-09-11 14:40:07,302 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/16773abf-a05e-43c2-941b-8b0e31c70311
2025-09-11 14:40:07,312 - DEBUG - Requesting: http://10.0.0.137:8082/route-target/f352082f-bb56-4d74-aade-16e1fb211da3
2025-09-11 14:40:07,324 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-11 14:40:07,324 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/9de5a541-0877-43aa-8ceb-8c912c0397e3
2025-09-11 14:40:07,338 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/16773abf-a05e-43c2-941b-8b0e31c70311
2025-09-11 14:40:07,360 - INFO - Verified VN network id 13 for VN 9de5a541-0877-43aa-8ceb-8c912c0397e3
2025-09-11 14:40:07,360 - INFO - Verifications in API Server for VN ctest-vn-29166188 passed
2025-09-11 14:40:07,360 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/9de5a541-0877-43aa-8ceb-8c912c0397e3
2025-09-11 14:40:07,374 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/16773abf-a05e-43c2-941b-8b0e31c70311
2025-09-11 14:40:07,383 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/16773abf-a05e-43c2-941b-8b0e31c70311
2025-09-11 14:40:07,392 - DEBUG - Requesting: http://10.0.0.137:8082/route-target/f352082f-bb56-4d74-aade-16e1fb211da3
2025-09-11 14:40:07,408 - DEBUG - Control-node 10.0.0.137 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-48073208:ctest-vn-29166188', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-48073208', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11377681732354917290', 'uuid-lslong': '10154364339973494755'}, 'enable': 'true', 'created': '2025-09-11T14:40:04', 'last-modified': '2025-09-11T14:40:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.647365'}
2025-09-11 14:40:07,415 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-11 14:40:07,415 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-29166188 passed
2025-09-11 14:40:07,415 - DEBUG - ====Verifying policy data for ctest-vn-29166188 in API_Server ======
2025-09-11 14:40:07,415 - DEBUG - Requesting: http://10.0.0.137:8082/domains
2025-09-11 14:40:07,423 - DEBUG - Requesting: http://10.0.0.137:8082/domain/04dd93ea-241f-48e6-8e53-caba2a1a15aa
2025-09-11 14:40:07,436 - DEBUG - Requesting: http://10.0.0.137:8082/project/e3936e56-d882-41ac-9dca-045d160bb80a
2025-09-11 14:40:07,515 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/9de5a541-0877-43aa-8ceb-8c912c0397e3
2025-09-11 14:40:07,527 - DEBUG - ==>Verifying data for policy with id: 49c3ae54-dfb8-4b23-9d50-686be2f1e131, fqn: ['default-domain', 'ctest-TestBasicPolicy-48073208', 'ctest-policy-allow-all-89833090']
2025-09-11 14:40:07,527 - INFO - VN ctest-vn-29166188 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-11 14:40:07,527 - DEBUG - Verifying the vn in opserver
2025-09-11 14:40:07,527 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-48073208:ctest-vn-29166188 virtual network link through opserver 10.0.0.137
2025-09-11 14:40:07,527 - DEBUG - Requesting: http://10.0.0.137:8081/analytics/uves/virtual-networks
2025-09-11 14:40:07,540 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-48073208:ctest-vn-29166188', 'href': 'http://10.0.0.137:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-48073208:ctest-vn-29166188?flat'}
2025-09-11 14:40:07,540 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-48073208:ctest-vn-29166188 is found in opserver
2025-09-11 14:40:07,550 - DEBUG - Do not have enough data to verify VN in agent
2025-09-11 14:40:07,555 - DEBUG - VRF ids for VN ctest-vn-29166188: {}
2025-09-11 14:40:07,631 - DEBUG - Services list from nova: [