2026-08-21 05:08:02,190 - INFO - Domain Default found not creating
2026-08-21 05:08:02,388 - INFO - Project ctest-TestBasicPolicy-87876640 not found, creating it
2026-08-21 05:08:02,913 - INFO - Created Project:ctest-TestBasicPolicy-87876640, ID : 8fdedba0-a59a-44e0-9df3-43ffb5976ae1
2026-08-21 05:08:04,527 - INFO - ================================================================================
2026-08-21 05:08:04,527 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-08-21 05:08:04,527 - 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
2026-08-21 05:08:04,786 - DEBUG - Nothing to compare xmpp stats {'10.0.0.250': {'10.20.0.25': '0'}} with
2026-08-21 05:08:04,786 - INFO - Initial checks done. Running the testcase now
2026-08-21 05:08:04,786 - INFO -
2026-08-21 05:08:05,396 - DEBUG - Response for create_network : {'network': {'id': 'ebee96b7-0b08-4a7c-951c-da1066960b3e', 'name': 'ctest-vn-21893950', 'tenant_id': '8fdedba0a59a44e09df343ffb5976ae1', 'project_id': '8fdedba0a59a44e09df343ffb5976ae1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87876640', 'ctest-vn-21893950'], 'port_security_enabled': True, 'description': ''}}
2026-08-21 05:08:05,644 - DEBUG - Response for create_subnet : {'subnet': {'id': '580243c4-b54f-4523-9552-31a9891f3706', 'name': '', 'tenant_id': '8fdedba0a59a44e09df343ffb5976ae1', 'network_id': 'ebee96b7-0b08-4a7c-951c-da1066960b3e', 'ip_version': 4, 'cidr': '13.19.128.64/26', 'allocation_pools': [{'start': '13.19.128.66', 'end': '13.19.128.126'}], 'gateway_ip': '13.19.128.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '13.19.128.66', 'tags': [], 'project_id': '8fdedba0a59a44e09df343ffb5976ae1'}}
2026-08-21 05:08:05,663 - INFO - Created VN ctest-vn-21893950
2026-08-21 05:08:05,716 - DEBUG - VN ctest-vn-21893950 UUID is ebee96b7-0b08-4a7c-951c-da1066960b3e
2026-08-21 05:08:06,093 - DEBUG - Response for create_network : {'network': {'id': 'd443b461-056f-4cef-837a-4220a4b771c2', 'name': 'ctest-vn-97411169', 'tenant_id': '8fdedba0a59a44e09df343ffb5976ae1', 'project_id': '8fdedba0a59a44e09df343ffb5976ae1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87876640', 'ctest-vn-97411169'], 'port_security_enabled': True, 'description': ''}}
2026-08-21 05:08:06,334 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c2975411-6f8c-4e06-b12c-620ec5ceafa9', 'name': '', 'tenant_id': '8fdedba0a59a44e09df343ffb5976ae1', 'network_id': 'd443b461-056f-4cef-837a-4220a4b771c2', 'ip_version': 4, 'cidr': '61.181.19.192/26', 'allocation_pools': [{'start': '61.181.19.194', 'end': '61.181.19.254'}], 'gateway_ip': '61.181.19.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '61.181.19.194', 'tags': [], 'project_id': '8fdedba0a59a44e09df343ffb5976ae1'}}
2026-08-21 05:08:06,353 - INFO - Created VN ctest-vn-97411169
2026-08-21 05:08:06,408 - DEBUG - VN ctest-vn-97411169 UUID is d443b461-056f-4cef-837a-4220a4b771c2
2026-08-21 05:08:06,525 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-87876640:ctest-vn-21893950, 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-87876640:ctest-vn-97411169, 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]
2026-08-21 05:08:06,864 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ebee96b7-0b08-4a7c-951c-da1066960b3e', 'name': 'ctest-vn-21893950', 'tenant_id': '8fdedba0a59a44e09df343ffb5976ae1', 'project_id': '8fdedba0a59a44e09df343ffb5976ae1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['580243c4-b54f-4523-9552-31a9891f3706'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87876640', 'ctest-vn-21893950'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-87876640', 'ctest-policy-allow-all-24808664']], 'subnet_ipam': [{'subnet_cidr': '13.19.128.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-08-21 05:08:07,137 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd443b461-056f-4cef-837a-4220a4b771c2', 'name': 'ctest-vn-97411169', 'tenant_id': '8fdedba0a59a44e09df343ffb5976ae1', 'project_id': '8fdedba0a59a44e09df343ffb5976ae1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c2975411-6f8c-4e06-b12c-620ec5ceafa9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87876640', 'ctest-vn-97411169'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-87876640', 'ctest-policy-allow-all-24808664']], 'subnet_ipam': [{'subnet_cidr': '61.181.19.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-08-21 05:08:07,308 - DEBUG - Requesting: http://10.0.0.250:8082/domains
2026-08-21 05:08:07,659 - DEBUG - Requesting: http://10.0.0.250:8082/domains
2026-08-21 05:08:07,695 - DEBUG - Requesting: http://10.0.0.250:8082/domain/4c8fc260-3709-44de-980f-9868b10dcaa7
2026-08-21 05:08:07,710 - DEBUG - Requesting: http://10.0.0.250:8082/project/8fdedba0-a59a-44e0-9df3-43ffb5976ae1
2026-08-21 05:08:07,790 - DEBUG - Requesting: http://10.0.0.250:8082/virtual-network/ebee96b7-0b08-4a7c-951c-da1066960b3e
2026-08-21 05:08:07,805 - DEBUG - Requesting: http://10.0.0.250:8082/virtual-network/ebee96b7-0b08-4a7c-951c-da1066960b3e
2026-08-21 05:08:07,817 - DEBUG - Requesting: http://10.0.0.250:8082/routing-instance/844c1e27-c1f5-4bda-a0dd-016985f978bf
2026-08-21 05:08:07,827 - DEBUG - Requesting: http://10.0.0.250:8082/routing-instance/844c1e27-c1f5-4bda-a0dd-016985f978bf
2026-08-21 05:08:07,835 - DEBUG - Requesting: http://10.0.0.250:8082/route-target/72ba2d80-e652-462f-8671-e5243fed79df
2026-08-21 05:08:07,843 - DEBUG - Route Targets: ['target:64512:8000004']
2026-08-21 05:08:07,843 - DEBUG - Requesting: http://10.0.0.250:8082/virtual-network/ebee96b7-0b08-4a7c-951c-da1066960b3e
2026-08-21 05:08:07,854 - DEBUG - Requesting: http://10.0.0.250:8082/routing-instance/844c1e27-c1f5-4bda-a0dd-016985f978bf
2026-08-21 05:08:07,869 - INFO - Verified VN network id 11 for VN ebee96b7-0b08-4a7c-951c-da1066960b3e
2026-08-21 05:08:07,869 - INFO - Verifications in API Server for VN ctest-vn-21893950 passed
2026-08-21 05:08:07,869 - DEBUG - Requesting: http://10.0.0.250:8082/virtual-network/ebee96b7-0b08-4a7c-951c-da1066960b3e
2026-08-21 05:08:07,879 - DEBUG - Requesting: http://10.0.0.250:8082/routing-instance/844c1e27-c1f5-4bda-a0dd-016985f978bf
2026-08-21 05:08:07,889 - DEBUG - Requesting: http://10.0.0.250:8082/routing-instance/844c1e27-c1f5-4bda-a0dd-016985f978bf
2026-08-21 05:08:07,897 - DEBUG - Requesting: http://10.0.0.250:8082/route-target/72ba2d80-e652-462f-8671-e5243fed79df
2026-08-21 05:08:07,909 - DEBUG - Control-node 10.0.0.250 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-87876640:ctest-vn-21893950', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-87876640', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17000691356278475388', 'uuid-lslong': '10744702574974602046'}, 'enable': 'true', 'created': '2026-08-21T05:08:05', 'last-modified': '2026-08-21T05:08:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.082953'}
2026-08-21 05:08:07,916 - DEBUG - Route Targets: ['target:64512:8000004']
2026-08-21 05:08:07,917 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-21893950 passed
2026-08-21 05:08:07,917 - DEBUG - ====Verifying policy data for ctest-vn-21893950 in API_Server ======
2026-08-21 05:08:07,917 - DEBUG - Requesting: http://10.0.0.250:8082/domains
2026-08-21 05:08:07,924 - DEBUG - Requesting: http://10.0.0.250:8082/domain/4c8fc260-3709-44de-980f-9868b10dcaa7
2026-08-21 05:08:07,937 - DEBUG - Requesting: http://10.0.0.250:8082/project/8fdedba0-a59a-44e0-9df3-43ffb5976ae1
2026-08-21 05:08:08,022 - DEBUG - Requesting: http://10.0.0.250:8082/virtual-network/ebee96b7-0b08-4a7c-951c-da1066960b3e
2026-08-21 05:08:08,033 - DEBUG - ==>Verifying data for policy with id: 473cfecc-0a21-4697-b3cd-d7db389cddad, fqn: ['default-domain', 'ctest-TestBasicPolicy-87876640', 'ctest-policy-allow-all-24808664']
2026-08-21 05:08:08,034 - INFO - VN ctest-vn-21893950 Policy verification: verify_vn_policy_in_api_server, status: True
2026-08-21 05:08:08,034 - DEBUG - Verifying the vn in opserver
2026-08-21 05:08:08,034 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-87876640:ctest-vn-21893950 virtual network link through opserver 10.0.0.250
2026-08-21 05:08:08,034 - DEBUG - Requesting: http://10.0.0.250:8081/analytics/uves/virtual-networks
2026-08-21 05:08:08,370 - DEBUG - Requesting: http://10.0.0.250:8081/analytics/uves/virtual-networks
2026-08-21 05:08:08,432 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-87876640:ctest-vn-21893950', 'href': 'http://10.0.0.250:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-87876640:ctest-vn-21893950?flat'}
2026-08-21 05:08:08,432 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-87876640:ctest-vn-21893950 is found in opserver
2026-08-21 05:08:08,443 - DEBUG - Do not have enough data to verify VN in agent
2026-08-21 05:08:08,449 - DEBUG - VRF ids for VN ctest-vn-21893950: {}
2026-08-21 05:08:08,450 - DEBUG - Requesting: http://10.0.0.250:8082/domains
2026-08-21 05:08:08,457 - DEBUG - Requesting: http://10.0.0.250:8082/domain/4c8fc260-3709-44de-980f-9868b10dcaa7
2026-08-21 05:08:08,469 - DEBUG - Requesting: http://10.0.0.250:8082/project/8fdedba0-a59a-44e0-9df3-43ffb5976ae1
2026-08-21 05:08:08,549 - DEBUG - Requesting: http://10.0.0.250:8082/virtual-network/d443b461-056f-4cef-837a-4220a4b771c2
2026-08-21 05:08:08,563 - DEBUG - Requesting: http://10.0.0.250:8082/virtual-network/d443b461-056f-4cef-837a-4220a4b771c2
2026-08-21 05:08:08,574 - DEBUG - Requesting: http://10.0.0.250:8082/routing-instance/29bf63fb-fb22-4bef-b1a8-f2672f39d04f
2026-08-21 05:08:08,583 - DEBUG - Requesting: http://10.0.0.250:8082/routing-instance/29bf63fb-fb22-4bef-b1a8-f2672f39d04f
2026-08-21 05:08:08,591 - DEBUG - Requesting: http://10.0.0.250:8082/route-target/a70ec62e-c2ee-41a5-b4a9-c785cb83f4b1
2026-08-21 05:08:08,598 - DEBUG - Route Targets: ['target:64512:8000005']
2026-08-21 05:08:08,598 - DEBUG - Requesting: http://10.0.0.250:8082/virtual-network/d443b461-056f-4cef-837a-4220a4b771c2
2026-08-21 05:08:08,609 - DEBUG - Requesting: http://10.0.0.250:8082/routing-instance/29bf63fb-fb22-4bef-b1a8-f2672f39d04f
2026-08-21 05:08:08,627 - INFO - Verified VN network id 12 for VN d443b461-056f-4cef-837a-4220a4b771c2
2026-08-21 05:08:08,627 - INFO - Verifications in API Server for VN ctest-vn-97411169 passed
2026-08-21 05:08:08,627 - DEBUG - Requesting: http://10.0.0.250:8082/virtual-network/d443b461-056f-4cef-837a-4220a4b771c2
2026-08-21 05:08:08,638 - DEBUG - Requesting: http://10.0.0.250:8082/routing-instance/29bf63fb-fb22-4bef-b1a8-f2672f39d04f
2026-08-21 05:08:08,647 - DEBUG - Requesting: http://10.0.0.250:8082/routing-instance/29bf63fb-fb22-4bef-b1a8-f2672f39d04f
2026-08-21 05:08:08,654 - DEBUG - Requesting: http://10.0.0.250:8082/route-target/a70ec62e-c2ee-41a5-b4a9-c785cb83f4b1
2026-08-21 05:08:08,667 - DEBUG - Control-node 10.0.0.250 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-87876640:ctest-vn-97411169', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-87876640', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15295267088276344047', 'uuid-lslong': '9473957474097131970'}, 'enable': 'true', 'created': '2026-08-21T05:08:06', 'last-modified': '2026-08-21T05:08:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.576707'}
2026-08-21 05:08:08,673 - DEBUG - Route Targets: ['target:64512:8000005']
2026-08-21 05:08:08,673 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-97411169 passed
2026-08-21 05:08:08,673 - DEBUG - ====Verifying policy data for ctest-vn-97411169 in API_Server ======
2026-08-21 05:08:08,673 - DEBUG - Requesting: http://10.0.0.250:8082/domains
2026-08-21 05:08:08,679 - DEBUG - Requesting: http://10.0.0.250:8082/domain/4c8fc260-3709-44de-980f-9868b10dcaa7
2026-08-21 05:08:08,691 - DEBUG - Requesting: http://10.0.0.250:8082/project/8fdedba0-a59a-44e0-9df3-43ffb5976ae1
2026-08-21 05:08:08,767 - DEBUG - Requesting: http://10.0.0.250:8082/virtual-network/d443b461-056f-4cef-837a-4220a4b771c2
2026-08-21 05:08:08,776 - DEBUG - ==>Verifying data for policy with id: 473cfecc-0a21-4697-b3cd-d7db389cddad, fqn: ['default-domain', 'ctest-TestBasicPolicy-87876640', 'ctest-policy-allow-all-24808664']
2026-08-21 05:08:08,776 - INFO - VN ctest-vn-97411169 Policy verification: verify_vn_policy_in_api_server, status: True
2026-08-21 05:08:08,776 - DEBUG - Verifying the vn in opserver
2026-08-21 05:08:08,776 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-87876640:ctest-vn-97411169 virtual network link through opserver 10.0.0.250
2026-08-21 05:08:08,776 - DEBUG - Requesting: http://10.0.0.250:8081/analytics/uves/virtual-networks
2026-08-21 05:08:08,787 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-87876640:ctest-vn-97411169', 'href': 'http://10.0.0.250:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-87876640:ctest-vn-97411169?flat'}
2026-08-21 05:08:08,788 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-87876640:ctest-vn-97411169 is found in opserver
2026-08-21 05:08:08,798 - DEBUG - Do not have enough data to verify VN in agent
2026-08-21 05:08:08,802 - DEBUG - VRF ids for VN ctest-vn-97411169: {}
2026-08-21 05:08:08,873 - DEBUG - Services list from nova: [