2026-01-28 17:48:54,514 - INFO - Domain Default found not creating
2026-01-28 17:48:54,683 - INFO - Project ctest-TestBasicPolicy-90378147 not found, creating it
2026-01-28 17:48:55,134 - INFO - Created Project:ctest-TestBasicPolicy-90378147, ID : b0cfe8f6-4322-4c73-9930-7d896423b07d
2026-01-28 17:48:56,568 - INFO - ================================================================================
2026-01-28 17:48:56,568 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-01-28 17:48:56,568 - 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-01-28 17:48:56,822 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2026-01-28 17:48:56,822 - INFO - Initial checks done. Running the testcase now
2026-01-28 17:48:56,822 - INFO -
2026-01-28 17:48:57,352 - DEBUG - Response for create_network : {'network': {'id': '0cd75a37-5f07-4edb-8b13-94f355915f51', 'name': 'ctest-vn-55501069', 'tenant_id': 'b0cfe8f643224c7399307d896423b07d', 'project_id': 'b0cfe8f643224c7399307d896423b07d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90378147', 'ctest-vn-55501069'], 'port_security_enabled': True, 'description': ''}}
2026-01-28 17:48:57,537 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ea08f383-3f9c-4058-9745-8983276c1a8d', 'name': '', 'tenant_id': 'b0cfe8f643224c7399307d896423b07d', 'network_id': '0cd75a37-5f07-4edb-8b13-94f355915f51', 'ip_version': 4, 'cidr': '214.13.52.128/26', 'allocation_pools': [{'start': '214.13.52.130', 'end': '214.13.52.190'}], 'gateway_ip': '214.13.52.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '214.13.52.130', 'tags': [], 'project_id': 'b0cfe8f643224c7399307d896423b07d'}}
2026-01-28 17:48:57,553 - INFO - Created VN ctest-vn-55501069
2026-01-28 17:48:57,605 - DEBUG - VN ctest-vn-55501069 UUID is 0cd75a37-5f07-4edb-8b13-94f355915f51
2026-01-28 17:48:57,922 - DEBUG - Response for create_network : {'network': {'id': 'd04cb5ee-01f1-4019-a5c5-8fe7fbf39771', 'name': 'ctest-vn-03709674', 'tenant_id': 'b0cfe8f643224c7399307d896423b07d', 'project_id': 'b0cfe8f643224c7399307d896423b07d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90378147', 'ctest-vn-03709674'], 'port_security_enabled': True, 'description': ''}}
2026-01-28 17:48:58,130 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c11730c3-cb15-47d4-bf8f-cd674f80b858', 'name': '', 'tenant_id': 'b0cfe8f643224c7399307d896423b07d', 'network_id': 'd04cb5ee-01f1-4019-a5c5-8fe7fbf39771', 'ip_version': 4, 'cidr': '166.244.154.64/26', 'allocation_pools': [{'start': '166.244.154.66', 'end': '166.244.154.126'}], 'gateway_ip': '166.244.154.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '166.244.154.66', 'tags': [], 'project_id': 'b0cfe8f643224c7399307d896423b07d'}}
2026-01-28 17:48:58,148 - INFO - Created VN ctest-vn-03709674
2026-01-28 17:48:58,201 - DEBUG - VN ctest-vn-03709674 UUID is d04cb5ee-01f1-4019-a5c5-8fe7fbf39771
2026-01-28 17:48:58,349 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-90378147:ctest-vn-55501069, 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-90378147:ctest-vn-03709674, 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-01-28 17:48:58,634 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0cd75a37-5f07-4edb-8b13-94f355915f51', 'name': 'ctest-vn-55501069', 'tenant_id': 'b0cfe8f643224c7399307d896423b07d', 'project_id': 'b0cfe8f643224c7399307d896423b07d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ea08f383-3f9c-4058-9745-8983276c1a8d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90378147', 'ctest-vn-55501069'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-90378147', 'ctest-policy-allow-all-68312316']], 'subnet_ipam': [{'subnet_cidr': '214.13.52.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-28 17:48:58,859 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd04cb5ee-01f1-4019-a5c5-8fe7fbf39771', 'name': 'ctest-vn-03709674', 'tenant_id': 'b0cfe8f643224c7399307d896423b07d', 'project_id': 'b0cfe8f643224c7399307d896423b07d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c11730c3-cb15-47d4-bf8f-cd674f80b858'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90378147', 'ctest-vn-03709674'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-90378147', 'ctest-policy-allow-all-68312316']], 'subnet_ipam': [{'subnet_cidr': '166.244.154.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-28 17:48:59,029 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-28 17:48:59,325 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-28 17:48:59,353 - DEBUG - Requesting: http://10.0.0.38:8082/domain/9a62bedf-dab5-4bd9-82b0-dcb953c50c09
2026-01-28 17:48:59,364 - DEBUG - Requesting: http://10.0.0.38:8082/project/b0cfe8f6-4322-4c73-9930-7d896423b07d
2026-01-28 17:48:59,430 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0cd75a37-5f07-4edb-8b13-94f355915f51
2026-01-28 17:48:59,440 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0cd75a37-5f07-4edb-8b13-94f355915f51
2026-01-28 17:48:59,449 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a05fb5b5-45d6-42f2-87f7-61790d4b2dc2
2026-01-28 17:48:59,455 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a05fb5b5-45d6-42f2-87f7-61790d4b2dc2
2026-01-28 17:48:59,461 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/2465e99c-1ef0-40c8-b5ca-4d223836748a
2026-01-28 17:48:59,466 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-28 17:48:59,466 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0cd75a37-5f07-4edb-8b13-94f355915f51
2026-01-28 17:48:59,475 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a05fb5b5-45d6-42f2-87f7-61790d4b2dc2
2026-01-28 17:48:59,487 - INFO - Verified VN network id 12 for VN 0cd75a37-5f07-4edb-8b13-94f355915f51
2026-01-28 17:48:59,487 - INFO - Verifications in API Server for VN ctest-vn-55501069 passed
2026-01-28 17:48:59,487 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0cd75a37-5f07-4edb-8b13-94f355915f51
2026-01-28 17:48:59,495 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a05fb5b5-45d6-42f2-87f7-61790d4b2dc2
2026-01-28 17:48:59,500 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a05fb5b5-45d6-42f2-87f7-61790d4b2dc2
2026-01-28 17:48:59,506 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/2465e99c-1ef0-40c8-b5ca-4d223836748a
2026-01-28 17:48:59,516 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-90378147:ctest-vn-55501069', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-90378147', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '925307442311941851', 'uuid-lslong': '10021517368663039825'}, 'enable': 'true', 'created': '2026-01-28T17:48:57', 'last-modified': '2026-01-28T17:48:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.905324'}
2026-01-28 17:48:59,522 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-28 17:48:59,522 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-55501069 passed
2026-01-28 17:48:59,522 - DEBUG - ====Verifying policy data for ctest-vn-55501069 in API_Server ======
2026-01-28 17:48:59,522 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-28 17:48:59,527 - DEBUG - Requesting: http://10.0.0.38:8082/domain/9a62bedf-dab5-4bd9-82b0-dcb953c50c09
2026-01-28 17:48:59,537 - DEBUG - Requesting: http://10.0.0.38:8082/project/b0cfe8f6-4322-4c73-9930-7d896423b07d
2026-01-28 17:48:59,606 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0cd75a37-5f07-4edb-8b13-94f355915f51
2026-01-28 17:48:59,614 - DEBUG - ==>Verifying data for policy with id: 525d4db8-bbcd-4ec3-8f58-4c571edfa006, fqn: ['default-domain', 'ctest-TestBasicPolicy-90378147', 'ctest-policy-allow-all-68312316']
2026-01-28 17:48:59,614 - INFO - VN ctest-vn-55501069 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-28 17:48:59,614 - DEBUG - Verifying the vn in opserver
2026-01-28 17:48:59,614 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-90378147:ctest-vn-55501069 virtual network link through opserver 10.0.0.38
2026-01-28 17:48:59,614 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-01-28 17:48:59,904 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-01-28 17:48:59,964 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-90378147:ctest-vn-55501069', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-90378147:ctest-vn-55501069?flat'}
2026-01-28 17:48:59,964 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-90378147:ctest-vn-55501069 is found in opserver
2026-01-28 17:48:59,973 - DEBUG - Do not have enough data to verify VN in agent
2026-01-28 17:48:59,977 - DEBUG - VRF ids for VN ctest-vn-55501069: {}
2026-01-28 17:48:59,977 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-28 17:48:59,981 - DEBUG - Requesting: http://10.0.0.38:8082/domain/9a62bedf-dab5-4bd9-82b0-dcb953c50c09
2026-01-28 17:48:59,991 - DEBUG - Requesting: http://10.0.0.38:8082/project/b0cfe8f6-4322-4c73-9930-7d896423b07d
2026-01-28 17:49:00,060 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d04cb5ee-01f1-4019-a5c5-8fe7fbf39771
2026-01-28 17:49:00,071 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d04cb5ee-01f1-4019-a5c5-8fe7fbf39771
2026-01-28 17:49:00,079 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a68e61c6-bef3-4547-883e-272a2fb1e765
2026-01-28 17:49:00,086 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a68e61c6-bef3-4547-883e-272a2fb1e765
2026-01-28 17:49:00,092 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/358cde09-8c4e-4978-bf37-1f48a8cc4aad
2026-01-28 17:49:00,098 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-28 17:49:00,098 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d04cb5ee-01f1-4019-a5c5-8fe7fbf39771
2026-01-28 17:49:00,106 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a68e61c6-bef3-4547-883e-272a2fb1e765
2026-01-28 17:49:00,119 - INFO - Verified VN network id 13 for VN d04cb5ee-01f1-4019-a5c5-8fe7fbf39771
2026-01-28 17:49:00,119 - INFO - Verifications in API Server for VN ctest-vn-03709674 passed
2026-01-28 17:49:00,119 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d04cb5ee-01f1-4019-a5c5-8fe7fbf39771
2026-01-28 17:49:00,128 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a68e61c6-bef3-4547-883e-272a2fb1e765
2026-01-28 17:49:00,134 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a68e61c6-bef3-4547-883e-272a2fb1e765
2026-01-28 17:49:00,141 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/358cde09-8c4e-4978-bf37-1f48a8cc4aad
2026-01-28 17:49:00,151 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-90378147:ctest-vn-03709674', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-90378147', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15009571691958452249', 'uuid-lslong': '11945111813197371249'}, 'enable': 'true', 'created': '2026-01-28T17:48:57', 'last-modified': '2026-01-28T17:48:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.312582'}
2026-01-28 17:49:00,157 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-28 17:49:00,157 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-03709674 passed
2026-01-28 17:49:00,157 - DEBUG - ====Verifying policy data for ctest-vn-03709674 in API_Server ======
2026-01-28 17:49:00,157 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-28 17:49:00,163 - DEBUG - Requesting: http://10.0.0.38:8082/domain/9a62bedf-dab5-4bd9-82b0-dcb953c50c09
2026-01-28 17:49:00,173 - DEBUG - Requesting: http://10.0.0.38:8082/project/b0cfe8f6-4322-4c73-9930-7d896423b07d
2026-01-28 17:49:00,246 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d04cb5ee-01f1-4019-a5c5-8fe7fbf39771
2026-01-28 17:49:00,256 - DEBUG - ==>Verifying data for policy with id: 525d4db8-bbcd-4ec3-8f58-4c571edfa006, fqn: ['default-domain', 'ctest-TestBasicPolicy-90378147', 'ctest-policy-allow-all-68312316']
2026-01-28 17:49:00,256 - INFO - VN ctest-vn-03709674 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-28 17:49:00,256 - DEBUG - Verifying the vn in opserver
2026-01-28 17:49:00,256 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-90378147:ctest-vn-03709674 virtual network link through opserver 10.0.0.38
2026-01-28 17:49:00,256 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-01-28 17:49:00,265 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-90378147:ctest-vn-03709674', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-90378147:ctest-vn-03709674?flat'}
2026-01-28 17:49:00,265 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-90378147:ctest-vn-03709674 is found in opserver
2026-01-28 17:49:00,274 - DEBUG - Do not have enough data to verify VN in agent
2026-01-28 17:49:00,279 - DEBUG - VRF ids for VN ctest-vn-03709674: {}
2026-01-28 17:49:00,334 - DEBUG - Services list from nova: [