2025-07-09 09:32:19,319 - INFO - Domain Default found not creating
2025-07-09 09:32:19,476 - INFO - Project ctest-TestBasicPolicy-31222223 not found, creating it
2025-07-09 09:32:19,987 - INFO - Created Project:ctest-TestBasicPolicy-31222223, ID : cd4eb286-a25b-4865-b57b-e0b2536807e2
2025-07-09 09:32:21,490 - INFO - ================================================================================
2025-07-09 09:32:21,490 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-09 09:32:21,490 - 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-09 09:32:21,751 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.14': '0'}} with
2025-07-09 09:32:21,751 - INFO - Initial checks done. Running the testcase now
2025-07-09 09:32:21,751 - INFO -
2025-07-09 09:32:22,340 - DEBUG - Response for create_network : {'network': {'id': 'c26c2097-29f0-46f4-9415-d53f50392c9b', 'name': 'ctest-vn-37672832', 'tenant_id': 'cd4eb286a25b4865b57be0b2536807e2', 'project_id': 'cd4eb286a25b4865b57be0b2536807e2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31222223', 'ctest-vn-37672832'], 'port_security_enabled': True, 'description': ''}}
2025-07-09 09:32:22,544 - DEBUG - Response for create_subnet : {'subnet': {'id': '73d5cd74-8858-47cc-baec-8775c736a5ba', 'name': '', 'tenant_id': 'cd4eb286a25b4865b57be0b2536807e2', 'network_id': 'c26c2097-29f0-46f4-9415-d53f50392c9b', 'ip_version': 4, 'cidr': '93.15.196.192/26', 'allocation_pools': [{'start': '93.15.196.194', 'end': '93.15.196.254'}], 'gateway_ip': '93.15.196.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '93.15.196.194', 'tags': [], 'project_id': 'cd4eb286a25b4865b57be0b2536807e2'}}
2025-07-09 09:32:22,572 - INFO - Created VN ctest-vn-37672832
2025-07-09 09:32:22,630 - DEBUG - VN ctest-vn-37672832 UUID is c26c2097-29f0-46f4-9415-d53f50392c9b
2025-07-09 09:32:22,956 - DEBUG - Response for create_network : {'network': {'id': '548ef478-6897-4c08-8647-e6e66170b564', 'name': 'ctest-vn-24913796', 'tenant_id': 'cd4eb286a25b4865b57be0b2536807e2', 'project_id': 'cd4eb286a25b4865b57be0b2536807e2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31222223', 'ctest-vn-24913796'], 'port_security_enabled': True, 'description': ''}}
2025-07-09 09:32:23,148 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ae13209a-afa1-4091-b88e-b37887d8f8a5', 'name': '', 'tenant_id': 'cd4eb286a25b4865b57be0b2536807e2', 'network_id': '548ef478-6897-4c08-8647-e6e66170b564', 'ip_version': 4, 'cidr': '206.164.128.64/26', 'allocation_pools': [{'start': '206.164.128.66', 'end': '206.164.128.126'}], 'gateway_ip': '206.164.128.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '206.164.128.66', 'tags': [], 'project_id': 'cd4eb286a25b4865b57be0b2536807e2'}}
2025-07-09 09:32:23,169 - INFO - Created VN ctest-vn-24913796
2025-07-09 09:32:23,226 - DEBUG - VN ctest-vn-24913796 UUID is 548ef478-6897-4c08-8647-e6e66170b564
2025-07-09 09:32:23,348 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-31222223:ctest-vn-37672832, 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-31222223:ctest-vn-24913796, 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-09 09:32:23,655 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c26c2097-29f0-46f4-9415-d53f50392c9b', 'name': 'ctest-vn-37672832', 'tenant_id': 'cd4eb286a25b4865b57be0b2536807e2', 'project_id': 'cd4eb286a25b4865b57be0b2536807e2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['73d5cd74-8858-47cc-baec-8775c736a5ba'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31222223', 'ctest-vn-37672832'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-31222223', 'ctest-policy-allow-all-14344789']], 'subnet_ipam': [{'subnet_cidr': '93.15.196.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-09 09:32:23,901 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '548ef478-6897-4c08-8647-e6e66170b564', 'name': 'ctest-vn-24913796', 'tenant_id': 'cd4eb286a25b4865b57be0b2536807e2', 'project_id': 'cd4eb286a25b4865b57be0b2536807e2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ae13209a-afa1-4091-b88e-b37887d8f8a5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31222223', 'ctest-vn-24913796'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-31222223', 'ctest-policy-allow-all-14344789']], 'subnet_ipam': [{'subnet_cidr': '206.164.128.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-09 09:32:24,066 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-07-09 09:32:24,365 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-07-09 09:32:24,393 - DEBUG - Requesting: http://10.0.0.50:8082/domain/5bfc1f5d-4920-4332-93a9-ff26ea09f458
2025-07-09 09:32:24,408 - DEBUG - Requesting: http://10.0.0.50:8082/project/cd4eb286-a25b-4865-b57b-e0b2536807e2
2025-07-09 09:32:24,484 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c26c2097-29f0-46f4-9415-d53f50392c9b
2025-07-09 09:32:24,500 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c26c2097-29f0-46f4-9415-d53f50392c9b
2025-07-09 09:32:24,513 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/08f52ebc-66ba-45e5-8efd-23ebe08f9562
2025-07-09 09:32:24,524 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/08f52ebc-66ba-45e5-8efd-23ebe08f9562
2025-07-09 09:32:24,534 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/77d184ca-4361-42db-a864-39aa544f7cef
2025-07-09 09:32:24,541 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-09 09:32:24,541 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c26c2097-29f0-46f4-9415-d53f50392c9b
2025-07-09 09:32:24,554 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/08f52ebc-66ba-45e5-8efd-23ebe08f9562
2025-07-09 09:32:24,573 - INFO - Verified VN network id 8 for VN c26c2097-29f0-46f4-9415-d53f50392c9b
2025-07-09 09:32:24,573 - INFO - Verifications in API Server for VN ctest-vn-37672832 passed
2025-07-09 09:32:24,573 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c26c2097-29f0-46f4-9415-d53f50392c9b
2025-07-09 09:32:24,584 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/08f52ebc-66ba-45e5-8efd-23ebe08f9562
2025-07-09 09:32:24,592 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/08f52ebc-66ba-45e5-8efd-23ebe08f9562
2025-07-09 09:32:24,599 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/77d184ca-4361-42db-a864-39aa544f7cef
2025-07-09 09:32:24,612 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-31222223:ctest-vn-37672832', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-31222223', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14009608374458533620', 'uuid-lslong': '10670669360029838491'}, 'enable': 'true', 'created': '2025-07-09T09:32:22', 'last-modified': '2025-07-09T09:32:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.984470'}
2025-07-09 09:32:24,619 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-09 09:32:24,619 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-37672832 passed
2025-07-09 09:32:24,619 - DEBUG - ====Verifying policy data for ctest-vn-37672832 in API_Server ======
2025-07-09 09:32:24,620 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-07-09 09:32:24,625 - DEBUG - Requesting: http://10.0.0.50:8082/domain/5bfc1f5d-4920-4332-93a9-ff26ea09f458
2025-07-09 09:32:24,638 - DEBUG - Requesting: http://10.0.0.50:8082/project/cd4eb286-a25b-4865-b57b-e0b2536807e2
2025-07-09 09:32:24,711 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c26c2097-29f0-46f4-9415-d53f50392c9b
2025-07-09 09:32:24,722 - DEBUG - ==>Verifying data for policy with id: f58e6985-f3a1-4f25-8d58-ac1dfeee491c, fqn: ['default-domain', 'ctest-TestBasicPolicy-31222223', 'ctest-policy-allow-all-14344789']
2025-07-09 09:32:24,722 - INFO - VN ctest-vn-37672832 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-09 09:32:24,722 - DEBUG - Verifying the vn in opserver
2025-07-09 09:32:24,722 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-31222223:ctest-vn-37672832 virtual network link through opserver 10.0.0.50
2025-07-09 09:32:24,722 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-07-09 09:32:25,012 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-07-09 09:32:25,071 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-31222223:ctest-vn-37672832', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-31222223:ctest-vn-37672832?flat'}
2025-07-09 09:32:25,071 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-31222223:ctest-vn-37672832 is found in opserver
2025-07-09 09:32:25,084 - DEBUG - Do not have enough data to verify VN in agent
2025-07-09 09:32:25,090 - DEBUG - VRF ids for VN ctest-vn-37672832: {}
2025-07-09 09:32:25,090 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-07-09 09:32:25,096 - DEBUG - Requesting: http://10.0.0.50:8082/domain/5bfc1f5d-4920-4332-93a9-ff26ea09f458
2025-07-09 09:32:25,109 - DEBUG - Requesting: http://10.0.0.50:8082/project/cd4eb286-a25b-4865-b57b-e0b2536807e2
2025-07-09 09:32:25,192 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/548ef478-6897-4c08-8647-e6e66170b564
2025-07-09 09:32:25,207 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/548ef478-6897-4c08-8647-e6e66170b564
2025-07-09 09:32:25,217 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/fd0fb4e2-82d7-4802-be66-4e2e6ee4c1bd
2025-07-09 09:32:25,226 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/fd0fb4e2-82d7-4802-be66-4e2e6ee4c1bd
2025-07-09 09:32:25,234 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/134862e3-db9e-4780-b5b4-d20c625279d2
2025-07-09 09:32:25,242 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-09 09:32:25,242 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/548ef478-6897-4c08-8647-e6e66170b564
2025-07-09 09:32:25,252 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/fd0fb4e2-82d7-4802-be66-4e2e6ee4c1bd
2025-07-09 09:32:25,268 - INFO - Verified VN network id 9 for VN 548ef478-6897-4c08-8647-e6e66170b564
2025-07-09 09:32:25,268 - INFO - Verifications in API Server for VN ctest-vn-24913796 passed
2025-07-09 09:32:25,268 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/548ef478-6897-4c08-8647-e6e66170b564
2025-07-09 09:32:25,279 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/fd0fb4e2-82d7-4802-be66-4e2e6ee4c1bd
2025-07-09 09:32:25,286 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/fd0fb4e2-82d7-4802-be66-4e2e6ee4c1bd
2025-07-09 09:32:25,294 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/134862e3-db9e-4780-b5b4-d20c625279d2
2025-07-09 09:32:25,307 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-31222223:ctest-vn-24913796', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-31222223', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6093076143866858504', 'uuid-lslong': '9675956201580442980'}, 'enable': 'true', 'created': '2025-07-09T09:32:22', 'last-modified': '2025-07-09T09:32:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.430621'}
2025-07-09 09:32:25,314 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-09 09:32:25,314 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-24913796 passed
2025-07-09 09:32:25,314 - DEBUG - ====Verifying policy data for ctest-vn-24913796 in API_Server ======
2025-07-09 09:32:25,314 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-07-09 09:32:25,320 - DEBUG - Requesting: http://10.0.0.50:8082/domain/5bfc1f5d-4920-4332-93a9-ff26ea09f458
2025-07-09 09:32:25,333 - DEBUG - Requesting: http://10.0.0.50:8082/project/cd4eb286-a25b-4865-b57b-e0b2536807e2
2025-07-09 09:32:25,409 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/548ef478-6897-4c08-8647-e6e66170b564
2025-07-09 09:32:25,420 - DEBUG - ==>Verifying data for policy with id: f58e6985-f3a1-4f25-8d58-ac1dfeee491c, fqn: ['default-domain', 'ctest-TestBasicPolicy-31222223', 'ctest-policy-allow-all-14344789']
2025-07-09 09:32:25,420 - INFO - VN ctest-vn-24913796 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-09 09:32:25,420 - DEBUG - Verifying the vn in opserver
2025-07-09 09:32:25,420 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-31222223:ctest-vn-24913796 virtual network link through opserver 10.0.0.50
2025-07-09 09:32:25,420 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-07-09 09:32:25,432 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-31222223:ctest-vn-24913796', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-31222223:ctest-vn-24913796?flat'}
2025-07-09 09:32:25,432 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-31222223:ctest-vn-24913796 is found in opserver
2025-07-09 09:32:25,443 - DEBUG - Do not have enough data to verify VN in agent
2025-07-09 09:32:25,448 - DEBUG - VRF ids for VN ctest-vn-24913796: {}
2025-07-09 09:32:25,503 - DEBUG - Services list from nova: [