2025-08-11 16:48:02,695 - INFO - Domain Default found not creating
2025-08-11 16:48:02,813 - INFO - Project ctest-TestBasicPolicy-38106665 not found, creating it
2025-08-11 16:48:03,307 - INFO - Created Project:ctest-TestBasicPolicy-38106665, ID : 6246efc2-7b8d-48e4-8bb5-7a27667e1a8f
2025-08-11 16:48:04,603 - INFO - ================================================================================
2025-08-11 16:48:04,603 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-11 16:48:04,603 - 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-08-11 16:48:04,865 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.254': '0'}} with
2025-08-11 16:48:04,865 - INFO - Initial checks done. Running the testcase now
2025-08-11 16:48:04,865 - INFO -
2025-08-11 16:48:05,388 - DEBUG - Response for create_network : {'network': {'id': '81d9f7a7-f4e3-4714-9bf4-936cfcc6d69c', 'name': 'ctest-vn-61460065', 'tenant_id': '6246efc27b8d48e48bb57a27667e1a8f', 'project_id': '6246efc27b8d48e48bb57a27667e1a8f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38106665', 'ctest-vn-61460065'], 'port_security_enabled': True, 'description': ''}}
2025-08-11 16:48:05,592 - DEBUG - Response for create_subnet : {'subnet': {'id': '974626d2-685b-4859-8ab7-c2ca8986a83b', 'name': '', 'tenant_id': '6246efc27b8d48e48bb57a27667e1a8f', 'network_id': '81d9f7a7-f4e3-4714-9bf4-936cfcc6d69c', 'ip_version': 4, 'cidr': '196.9.254.192/26', 'allocation_pools': [{'start': '196.9.254.194', 'end': '196.9.254.254'}], 'gateway_ip': '196.9.254.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '196.9.254.194', 'tags': [], 'project_id': '6246efc27b8d48e48bb57a27667e1a8f'}}
2025-08-11 16:48:05,607 - INFO - Created VN ctest-vn-61460065
2025-08-11 16:48:05,663 - DEBUG - VN ctest-vn-61460065 UUID is 81d9f7a7-f4e3-4714-9bf4-936cfcc6d69c
2025-08-11 16:48:05,970 - DEBUG - Response for create_network : {'network': {'id': '5f23f31c-0d99-46b5-890d-33a5d4838959', 'name': 'ctest-vn-56045290', 'tenant_id': '6246efc27b8d48e48bb57a27667e1a8f', 'project_id': '6246efc27b8d48e48bb57a27667e1a8f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38106665', 'ctest-vn-56045290'], 'port_security_enabled': True, 'description': ''}}
2025-08-11 16:48:06,143 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b9f38864-cab8-4078-a09b-a6a4e492fc7a', 'name': '', 'tenant_id': '6246efc27b8d48e48bb57a27667e1a8f', 'network_id': '5f23f31c-0d99-46b5-890d-33a5d4838959', 'ip_version': 4, 'cidr': '16.6.235.0/26', 'allocation_pools': [{'start': '16.6.235.2', 'end': '16.6.235.62'}], 'gateway_ip': '16.6.235.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '16.6.235.2', 'tags': [], 'project_id': '6246efc27b8d48e48bb57a27667e1a8f'}}
2025-08-11 16:48:06,158 - INFO - Created VN ctest-vn-56045290
2025-08-11 16:48:06,211 - DEBUG - VN ctest-vn-56045290 UUID is 5f23f31c-0d99-46b5-890d-33a5d4838959
2025-08-11 16:48:06,363 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-38106665:ctest-vn-61460065, 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-38106665:ctest-vn-56045290, 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-08-11 16:48:06,650 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '81d9f7a7-f4e3-4714-9bf4-936cfcc6d69c', 'name': 'ctest-vn-61460065', 'tenant_id': '6246efc27b8d48e48bb57a27667e1a8f', 'project_id': '6246efc27b8d48e48bb57a27667e1a8f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['974626d2-685b-4859-8ab7-c2ca8986a83b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38106665', 'ctest-vn-61460065'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-38106665', 'ctest-policy-allow-all-14093164']], 'subnet_ipam': [{'subnet_cidr': '196.9.254.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-11 16:48:06,881 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5f23f31c-0d99-46b5-890d-33a5d4838959', 'name': 'ctest-vn-56045290', 'tenant_id': '6246efc27b8d48e48bb57a27667e1a8f', 'project_id': '6246efc27b8d48e48bb57a27667e1a8f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b9f38864-cab8-4078-a09b-a6a4e492fc7a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38106665', 'ctest-vn-56045290'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-38106665', 'ctest-policy-allow-all-14093164']], 'subnet_ipam': [{'subnet_cidr': '16.6.235.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-11 16:48:07,043 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-08-11 16:48:07,334 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-08-11 16:48:07,363 - DEBUG - Requesting: http://10.0.0.22:8082/domain/cccc9324-b118-457c-9075-f4ad0c706549
2025-08-11 16:48:07,375 - DEBUG - Requesting: http://10.0.0.22:8082/project/6246efc2-7b8d-48e4-8bb5-7a27667e1a8f
2025-08-11 16:48:07,445 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/81d9f7a7-f4e3-4714-9bf4-936cfcc6d69c
2025-08-11 16:48:07,455 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/81d9f7a7-f4e3-4714-9bf4-936cfcc6d69c
2025-08-11 16:48:07,464 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/4badb920-556c-41de-9c1b-2feb3732aea1
2025-08-11 16:48:07,470 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/4badb920-556c-41de-9c1b-2feb3732aea1
2025-08-11 16:48:07,476 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/d6ec8fa5-61fc-48e9-a2a5-8bf98331bab7
2025-08-11 16:48:07,481 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-11 16:48:07,481 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/81d9f7a7-f4e3-4714-9bf4-936cfcc6d69c
2025-08-11 16:48:07,489 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/4badb920-556c-41de-9c1b-2feb3732aea1
2025-08-11 16:48:07,501 - INFO - Verified VN network id 11 for VN 81d9f7a7-f4e3-4714-9bf4-936cfcc6d69c
2025-08-11 16:48:07,502 - INFO - Verifications in API Server for VN ctest-vn-61460065 passed
2025-08-11 16:48:07,502 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/81d9f7a7-f4e3-4714-9bf4-936cfcc6d69c
2025-08-11 16:48:07,510 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/4badb920-556c-41de-9c1b-2feb3732aea1
2025-08-11 16:48:07,516 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/4badb920-556c-41de-9c1b-2feb3732aea1
2025-08-11 16:48:07,522 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/d6ec8fa5-61fc-48e9-a2a5-8bf98331bab7
2025-08-11 16:48:07,532 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-38106665:ctest-vn-61460065', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-38106665', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9356782001579050772', 'uuid-lslong': '11237769066502870684'}, 'enable': 'true', 'created': '2025-08-11T16:48:05', 'last-modified': '2025-08-11T16:48:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.904737'}
2025-08-11 16:48:07,538 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-11 16:48:07,538 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-61460065 passed
2025-08-11 16:48:07,538 - DEBUG - ====Verifying policy data for ctest-vn-61460065 in API_Server ======
2025-08-11 16:48:07,538 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-08-11 16:48:07,543 - DEBUG - Requesting: http://10.0.0.22:8082/domain/cccc9324-b118-457c-9075-f4ad0c706549
2025-08-11 16:48:07,553 - DEBUG - Requesting: http://10.0.0.22:8082/project/6246efc2-7b8d-48e4-8bb5-7a27667e1a8f
2025-08-11 16:48:07,620 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/81d9f7a7-f4e3-4714-9bf4-936cfcc6d69c
2025-08-11 16:48:07,629 - DEBUG - ==>Verifying data for policy with id: 5bb587a8-37b1-4698-a7dc-f091c601c65f, fqn: ['default-domain', 'ctest-TestBasicPolicy-38106665', 'ctest-policy-allow-all-14093164']
2025-08-11 16:48:07,629 - INFO - VN ctest-vn-61460065 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-11 16:48:07,629 - DEBUG - Verifying the vn in opserver
2025-08-11 16:48:07,629 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-38106665:ctest-vn-61460065 virtual network link through opserver 10.0.0.22
2025-08-11 16:48:07,630 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-08-11 16:48:07,916 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-08-11 16:48:07,964 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-38106665:ctest-vn-61460065', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-38106665:ctest-vn-61460065?flat'}
2025-08-11 16:48:07,964 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-38106665:ctest-vn-61460065 is found in opserver
2025-08-11 16:48:07,974 - DEBUG - Do not have enough data to verify VN in agent
2025-08-11 16:48:07,978 - DEBUG - VRF ids for VN ctest-vn-61460065: {}
2025-08-11 16:48:07,978 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-08-11 16:48:07,983 - DEBUG - Requesting: http://10.0.0.22:8082/domain/cccc9324-b118-457c-9075-f4ad0c706549
2025-08-11 16:48:07,993 - DEBUG - Requesting: http://10.0.0.22:8082/project/6246efc2-7b8d-48e4-8bb5-7a27667e1a8f
2025-08-11 16:48:08,057 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/5f23f31c-0d99-46b5-890d-33a5d4838959
2025-08-11 16:48:08,067 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/5f23f31c-0d99-46b5-890d-33a5d4838959
2025-08-11 16:48:08,076 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/8be845ae-9d7d-4a5b-bca5-326a9c358d4c
2025-08-11 16:48:08,082 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/8be845ae-9d7d-4a5b-bca5-326a9c358d4c
2025-08-11 16:48:08,088 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/ec00488d-c244-442f-9262-4c4945dfcdc6
2025-08-11 16:48:08,094 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-11 16:48:08,094 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/5f23f31c-0d99-46b5-890d-33a5d4838959
2025-08-11 16:48:08,102 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/8be845ae-9d7d-4a5b-bca5-326a9c358d4c
2025-08-11 16:48:08,114 - INFO - Verified VN network id 12 for VN 5f23f31c-0d99-46b5-890d-33a5d4838959
2025-08-11 16:48:08,114 - INFO - Verifications in API Server for VN ctest-vn-56045290 passed
2025-08-11 16:48:08,114 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/5f23f31c-0d99-46b5-890d-33a5d4838959
2025-08-11 16:48:08,123 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/8be845ae-9d7d-4a5b-bca5-326a9c358d4c
2025-08-11 16:48:08,129 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/8be845ae-9d7d-4a5b-bca5-326a9c358d4c
2025-08-11 16:48:08,134 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/ec00488d-c244-442f-9262-4c4945dfcdc6
2025-08-11 16:48:08,144 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-38106665:ctest-vn-56045290', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-38106665', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6855590359600809653', 'uuid-lslong': '9875606345221376345'}, 'enable': 'true', 'created': '2025-08-11T16:48:05', 'last-modified': '2025-08-11T16:48:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.291185'}
2025-08-11 16:48:08,150 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-11 16:48:08,150 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-56045290 passed
2025-08-11 16:48:08,150 - DEBUG - ====Verifying policy data for ctest-vn-56045290 in API_Server ======
2025-08-11 16:48:08,150 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-08-11 16:48:08,154 - DEBUG - Requesting: http://10.0.0.22:8082/domain/cccc9324-b118-457c-9075-f4ad0c706549
2025-08-11 16:48:08,164 - DEBUG - Requesting: http://10.0.0.22:8082/project/6246efc2-7b8d-48e4-8bb5-7a27667e1a8f
2025-08-11 16:48:08,233 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/5f23f31c-0d99-46b5-890d-33a5d4838959
2025-08-11 16:48:08,242 - DEBUG - ==>Verifying data for policy with id: 5bb587a8-37b1-4698-a7dc-f091c601c65f, fqn: ['default-domain', 'ctest-TestBasicPolicy-38106665', 'ctest-policy-allow-all-14093164']
2025-08-11 16:48:08,242 - INFO - VN ctest-vn-56045290 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-11 16:48:08,242 - DEBUG - Verifying the vn in opserver
2025-08-11 16:48:08,242 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-38106665:ctest-vn-56045290 virtual network link through opserver 10.0.0.22
2025-08-11 16:48:08,242 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-08-11 16:48:08,251 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-38106665:ctest-vn-56045290', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-38106665:ctest-vn-56045290?flat'}
2025-08-11 16:48:08,251 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-38106665:ctest-vn-56045290 is found in opserver
2025-08-11 16:48:08,260 - DEBUG - Do not have enough data to verify VN in agent
2025-08-11 16:48:08,264 - DEBUG - VRF ids for VN ctest-vn-56045290: {}
2025-08-11 16:48:08,311 - DEBUG - Services list from nova: [