2026-04-21 19:47:09,303 - INFO - Domain Default found not creating
2026-04-21 19:47:09,459 - INFO - Project ctest-TestBasicPolicy-52237532 not found, creating it
2026-04-21 19:47:09,898 - INFO - Created Project:ctest-TestBasicPolicy-52237532, ID : 2ed918fb-0a8f-4c2e-a09e-c99cc13986f8
2026-04-21 19:47:11,992 - INFO - ================================================================================
2026-04-21 19:47:11,992 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-04-21 19:47:11,992 - 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-04-21 19:47:12,245 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2026-04-21 19:47:12,245 - INFO - Initial checks done. Running the testcase now
2026-04-21 19:47:12,245 - INFO -
2026-04-21 19:47:12,769 - DEBUG - Response for create_network : {'network': {'id': '7b52c8b7-ab5d-417a-897c-402cd9f4ae97', 'name': 'ctest-vn-78065028', 'tenant_id': '2ed918fb0a8f4c2ea09ec99cc13986f8', 'project_id': '2ed918fb0a8f4c2ea09ec99cc13986f8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-52237532', 'ctest-vn-78065028'], 'port_security_enabled': True, 'description': ''}}
2026-04-21 19:47:12,935 - DEBUG - Response for create_subnet : {'subnet': {'id': '96b983c3-047a-4cba-a4c7-307ed20f3a38', 'name': '', 'tenant_id': '2ed918fb0a8f4c2ea09ec99cc13986f8', 'network_id': '7b52c8b7-ab5d-417a-897c-402cd9f4ae97', 'ip_version': 4, 'cidr': '149.123.17.192/26', 'allocation_pools': [{'start': '149.123.17.194', 'end': '149.123.17.254'}], 'gateway_ip': '149.123.17.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '149.123.17.194', 'tags': [], 'project_id': '2ed918fb0a8f4c2ea09ec99cc13986f8'}}
2026-04-21 19:47:12,951 - INFO - Created VN ctest-vn-78065028
2026-04-21 19:47:13,004 - DEBUG - VN ctest-vn-78065028 UUID is 7b52c8b7-ab5d-417a-897c-402cd9f4ae97
2026-04-21 19:47:13,341 - DEBUG - Response for create_network : {'network': {'id': '7f594eb7-ff5e-4b83-8973-4814942d7051', 'name': 'ctest-vn-64248671', 'tenant_id': '2ed918fb0a8f4c2ea09ec99cc13986f8', 'project_id': '2ed918fb0a8f4c2ea09ec99cc13986f8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-52237532', 'ctest-vn-64248671'], 'port_security_enabled': True, 'description': ''}}
2026-04-21 19:47:13,504 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cc9e080f-a437-4a5e-a305-56dbba97a859', 'name': '', 'tenant_id': '2ed918fb0a8f4c2ea09ec99cc13986f8', 'network_id': '7f594eb7-ff5e-4b83-8973-4814942d7051', 'ip_version': 4, 'cidr': '173.27.66.192/26', 'allocation_pools': [{'start': '173.27.66.194', 'end': '173.27.66.254'}], 'gateway_ip': '173.27.66.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '173.27.66.194', 'tags': [], 'project_id': '2ed918fb0a8f4c2ea09ec99cc13986f8'}}
2026-04-21 19:47:13,521 - INFO - Created VN ctest-vn-64248671
2026-04-21 19:47:13,572 - DEBUG - VN ctest-vn-64248671 UUID is 7f594eb7-ff5e-4b83-8973-4814942d7051
2026-04-21 19:47:13,720 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-52237532:ctest-vn-78065028, 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-52237532:ctest-vn-64248671, 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-04-21 19:47:14,020 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7b52c8b7-ab5d-417a-897c-402cd9f4ae97', 'name': 'ctest-vn-78065028', 'tenant_id': '2ed918fb0a8f4c2ea09ec99cc13986f8', 'project_id': '2ed918fb0a8f4c2ea09ec99cc13986f8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['96b983c3-047a-4cba-a4c7-307ed20f3a38'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-52237532', 'ctest-vn-78065028'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-52237532', 'ctest-policy-allow-all-01833741']], 'subnet_ipam': [{'subnet_cidr': '149.123.17.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-21 19:47:14,251 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7f594eb7-ff5e-4b83-8973-4814942d7051', 'name': 'ctest-vn-64248671', 'tenant_id': '2ed918fb0a8f4c2ea09ec99cc13986f8', 'project_id': '2ed918fb0a8f4c2ea09ec99cc13986f8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cc9e080f-a437-4a5e-a305-56dbba97a859'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-52237532', 'ctest-vn-64248671'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-52237532', 'ctest-policy-allow-all-01833741']], 'subnet_ipam': [{'subnet_cidr': '173.27.66.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-21 19:47:14,424 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-21 19:47:14,717 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-21 19:47:14,750 - DEBUG - Requesting: http://10.0.0.50:8082/domain/8a42d8d3-b791-46a2-aef4-4cf3befe4b5b
2026-04-21 19:47:14,760 - DEBUG - Requesting: http://10.0.0.50:8082/project/2ed918fb-0a8f-4c2e-a09e-c99cc13986f8
2026-04-21 19:47:14,833 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7b52c8b7-ab5d-417a-897c-402cd9f4ae97
2026-04-21 19:47:14,843 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7b52c8b7-ab5d-417a-897c-402cd9f4ae97
2026-04-21 19:47:14,852 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/58da511b-082a-4954-844e-d48b275058a4
2026-04-21 19:47:14,858 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/58da511b-082a-4954-844e-d48b275058a4
2026-04-21 19:47:14,865 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/3cf1d4e2-984d-46ba-92e7-789868a14fe5
2026-04-21 19:47:14,870 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-21 19:47:14,870 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7b52c8b7-ab5d-417a-897c-402cd9f4ae97
2026-04-21 19:47:14,878 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/58da511b-082a-4954-844e-d48b275058a4
2026-04-21 19:47:14,889 - INFO - Verified VN network id 10 for VN 7b52c8b7-ab5d-417a-897c-402cd9f4ae97
2026-04-21 19:47:14,889 - INFO - Verifications in API Server for VN ctest-vn-78065028 passed
2026-04-21 19:47:14,889 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7b52c8b7-ab5d-417a-897c-402cd9f4ae97
2026-04-21 19:47:14,896 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/58da511b-082a-4954-844e-d48b275058a4
2026-04-21 19:47:14,902 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/58da511b-082a-4954-844e-d48b275058a4
2026-04-21 19:47:14,907 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/3cf1d4e2-984d-46ba-92e7-789868a14fe5
2026-04-21 19:47:14,916 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-52237532:ctest-vn-78065028', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-52237532', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8886385705934995834', 'uuid-lslong': '9906863841687678615'}, 'enable': 'true', 'created': '2026-04-21T19:47:12', 'last-modified': '2026-04-21T19:47:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.923871'}
2026-04-21 19:47:14,921 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-21 19:47:14,921 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-78065028 passed
2026-04-21 19:47:14,921 - DEBUG - ====Verifying policy data for ctest-vn-78065028 in API_Server ======
2026-04-21 19:47:14,921 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-21 19:47:14,926 - DEBUG - Requesting: http://10.0.0.50:8082/domain/8a42d8d3-b791-46a2-aef4-4cf3befe4b5b
2026-04-21 19:47:14,935 - DEBUG - Requesting: http://10.0.0.50:8082/project/2ed918fb-0a8f-4c2e-a09e-c99cc13986f8
2026-04-21 19:47:15,005 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7b52c8b7-ab5d-417a-897c-402cd9f4ae97
2026-04-21 19:47:15,013 - DEBUG - ==>Verifying data for policy with id: c0c75ed2-3bc2-46a1-876b-aaa595268a1b, fqn: ['default-domain', 'ctest-TestBasicPolicy-52237532', 'ctest-policy-allow-all-01833741']
2026-04-21 19:47:15,013 - INFO - VN ctest-vn-78065028 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-21 19:47:15,013 - DEBUG - Verifying the vn in opserver
2026-04-21 19:47:15,014 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-52237532:ctest-vn-78065028 virtual network link through opserver 10.0.0.50
2026-04-21 19:47:15,014 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-04-21 19:47:15,304 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-04-21 19:47:15,355 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-52237532:ctest-vn-78065028', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-52237532:ctest-vn-78065028?flat'}
2026-04-21 19:47:15,355 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-52237532:ctest-vn-78065028 is found in opserver
2026-04-21 19:47:15,363 - DEBUG - Do not have enough data to verify VN in agent
2026-04-21 19:47:15,367 - DEBUG - VRF ids for VN ctest-vn-78065028: {}
2026-04-21 19:47:15,367 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-21 19:47:15,372 - DEBUG - Requesting: http://10.0.0.50:8082/domain/8a42d8d3-b791-46a2-aef4-4cf3befe4b5b
2026-04-21 19:47:15,380 - DEBUG - Requesting: http://10.0.0.50:8082/project/2ed918fb-0a8f-4c2e-a09e-c99cc13986f8
2026-04-21 19:47:15,449 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7f594eb7-ff5e-4b83-8973-4814942d7051
2026-04-21 19:47:15,459 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7f594eb7-ff5e-4b83-8973-4814942d7051
2026-04-21 19:47:15,466 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3a8774bf-1f63-4729-aa02-36821e0b3ef0
2026-04-21 19:47:15,473 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3a8774bf-1f63-4729-aa02-36821e0b3ef0
2026-04-21 19:47:15,478 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/71913c6f-3905-4a13-b468-cace4b6977e0
2026-04-21 19:47:15,483 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-21 19:47:15,483 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7f594eb7-ff5e-4b83-8973-4814942d7051
2026-04-21 19:47:15,490 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3a8774bf-1f63-4729-aa02-36821e0b3ef0
2026-04-21 19:47:15,503 - INFO - Verified VN network id 11 for VN 7f594eb7-ff5e-4b83-8973-4814942d7051
2026-04-21 19:47:15,503 - INFO - Verifications in API Server for VN ctest-vn-64248671 passed
2026-04-21 19:47:15,503 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7f594eb7-ff5e-4b83-8973-4814942d7051
2026-04-21 19:47:15,511 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3a8774bf-1f63-4729-aa02-36821e0b3ef0
2026-04-21 19:47:15,516 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3a8774bf-1f63-4729-aa02-36821e0b3ef0
2026-04-21 19:47:15,522 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/71913c6f-3905-4a13-b468-cace4b6977e0
2026-04-21 19:47:15,533 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-52237532:ctest-vn-64248671', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-52237532', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9176452267914447747', 'uuid-lslong': '9904339258740404305'}, 'enable': 'true', 'created': '2026-04-21T19:47:13', 'last-modified': '2026-04-21T19:47:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.300095'}
2026-04-21 19:47:15,540 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-21 19:47:15,540 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-64248671 passed
2026-04-21 19:47:15,541 - DEBUG - ====Verifying policy data for ctest-vn-64248671 in API_Server ======
2026-04-21 19:47:15,541 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-21 19:47:15,547 - DEBUG - Requesting: http://10.0.0.50:8082/domain/8a42d8d3-b791-46a2-aef4-4cf3befe4b5b
2026-04-21 19:47:15,556 - DEBUG - Requesting: http://10.0.0.50:8082/project/2ed918fb-0a8f-4c2e-a09e-c99cc13986f8
2026-04-21 19:47:15,631 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7f594eb7-ff5e-4b83-8973-4814942d7051
2026-04-21 19:47:15,638 - DEBUG - ==>Verifying data for policy with id: c0c75ed2-3bc2-46a1-876b-aaa595268a1b, fqn: ['default-domain', 'ctest-TestBasicPolicy-52237532', 'ctest-policy-allow-all-01833741']
2026-04-21 19:47:15,638 - INFO - VN ctest-vn-64248671 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-21 19:47:15,638 - DEBUG - Verifying the vn in opserver
2026-04-21 19:47:15,638 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-52237532:ctest-vn-64248671 virtual network link through opserver 10.0.0.50
2026-04-21 19:47:15,638 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-04-21 19:47:15,646 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-52237532:ctest-vn-64248671', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-52237532:ctest-vn-64248671?flat'}
2026-04-21 19:47:15,646 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-52237532:ctest-vn-64248671 is found in opserver
2026-04-21 19:47:15,654 - DEBUG - Do not have enough data to verify VN in agent
2026-04-21 19:47:15,658 - DEBUG - VRF ids for VN ctest-vn-64248671: {}
2026-04-21 19:47:15,708 - DEBUG - Services list from nova: [