2025-09-15 18:39:49,934 - INFO - Domain Default found not creating
2025-09-15 18:39:50,072 - INFO - Project ctest-TestBasicPolicy-67782911 not found, creating it
2025-09-15 18:39:50,500 - INFO - Created Project:ctest-TestBasicPolicy-67782911, ID : a0119acc-ea9d-4647-9674-d3f23594c0ab
2025-09-15 18:39:51,879 - INFO - ================================================================================
2025-09-15 18:39:51,879 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-15 18:39:51,880 - 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-09-15 18:39:52,132 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-09-15 18:39:52,132 - INFO - Initial checks done. Running the testcase now
2025-09-15 18:39:52,132 - INFO -
2025-09-15 18:39:52,655 - DEBUG - Response for create_network : {'network': {'id': 'd3ad809c-793d-4ae5-9099-8714f170eb8c', 'name': 'ctest-vn-76351044', 'tenant_id': 'a0119accea9d46479674d3f23594c0ab', 'project_id': 'a0119accea9d46479674d3f23594c0ab', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-67782911', 'ctest-vn-76351044'], 'port_security_enabled': True, 'description': ''}}
2025-09-15 18:39:52,823 - DEBUG - Response for create_subnet : {'subnet': {'id': '5c900559-3ed0-4af6-afc2-138e0bd5d497', 'name': '', 'tenant_id': 'a0119accea9d46479674d3f23594c0ab', 'network_id': 'd3ad809c-793d-4ae5-9099-8714f170eb8c', 'ip_version': 4, 'cidr': '172.2.36.64/26', 'allocation_pools': [{'start': '172.2.36.66', 'end': '172.2.36.126'}], 'gateway_ip': '172.2.36.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '172.2.36.66', 'tags': [], 'project_id': 'a0119accea9d46479674d3f23594c0ab'}}
2025-09-15 18:39:52,840 - INFO - Created VN ctest-vn-76351044
2025-09-15 18:39:52,891 - DEBUG - VN ctest-vn-76351044 UUID is d3ad809c-793d-4ae5-9099-8714f170eb8c
2025-09-15 18:39:53,202 - DEBUG - Response for create_network : {'network': {'id': 'ccf8ade6-9952-4b95-80b6-033db6555472', 'name': 'ctest-vn-97016193', 'tenant_id': 'a0119accea9d46479674d3f23594c0ab', 'project_id': 'a0119accea9d46479674d3f23594c0ab', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-67782911', 'ctest-vn-97016193'], 'port_security_enabled': True, 'description': ''}}
2025-09-15 18:39:53,398 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ee2d2914-bc23-41c6-a0f0-55af8d5ad1ba', 'name': '', 'tenant_id': 'a0119accea9d46479674d3f23594c0ab', 'network_id': 'ccf8ade6-9952-4b95-80b6-033db6555472', 'ip_version': 4, 'cidr': '104.19.17.0/26', 'allocation_pools': [{'start': '104.19.17.2', 'end': '104.19.17.62'}], 'gateway_ip': '104.19.17.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '104.19.17.2', 'tags': [], 'project_id': 'a0119accea9d46479674d3f23594c0ab'}}
2025-09-15 18:39:53,414 - INFO - Created VN ctest-vn-97016193
2025-09-15 18:39:53,463 - DEBUG - VN ctest-vn-97016193 UUID is ccf8ade6-9952-4b95-80b6-033db6555472
2025-09-15 18:39:53,607 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-67782911:ctest-vn-76351044, 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-67782911:ctest-vn-97016193, 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-09-15 18:39:53,898 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd3ad809c-793d-4ae5-9099-8714f170eb8c', 'name': 'ctest-vn-76351044', 'tenant_id': 'a0119accea9d46479674d3f23594c0ab', 'project_id': 'a0119accea9d46479674d3f23594c0ab', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5c900559-3ed0-4af6-afc2-138e0bd5d497'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-67782911', 'ctest-vn-76351044'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-67782911', 'ctest-policy-allow-all-51543901']], 'subnet_ipam': [{'subnet_cidr': '172.2.36.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-15 18:39:54,144 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ccf8ade6-9952-4b95-80b6-033db6555472', 'name': 'ctest-vn-97016193', 'tenant_id': 'a0119accea9d46479674d3f23594c0ab', 'project_id': 'a0119accea9d46479674d3f23594c0ab', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ee2d2914-bc23-41c6-a0f0-55af8d5ad1ba'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-67782911', 'ctest-vn-97016193'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-67782911', 'ctest-policy-allow-all-51543901']], 'subnet_ipam': [{'subnet_cidr': '104.19.17.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-15 18:39:54,303 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-15 18:39:54,598 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-15 18:39:54,625 - DEBUG - Requesting: http://10.0.0.254:8082/domain/870ccc99-65f8-4381-a8fb-d0b15e6273f4
2025-09-15 18:39:54,639 - DEBUG - Requesting: http://10.0.0.254:8082/project/a0119acc-ea9d-4647-9674-d3f23594c0ab
2025-09-15 18:39:54,713 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d3ad809c-793d-4ae5-9099-8714f170eb8c
2025-09-15 18:39:54,722 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d3ad809c-793d-4ae5-9099-8714f170eb8c
2025-09-15 18:39:54,730 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ded7f439-b1e9-428e-ba8a-fbdd201d57be
2025-09-15 18:39:54,735 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ded7f439-b1e9-428e-ba8a-fbdd201d57be
2025-09-15 18:39:54,741 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/c0103a3c-5b2a-4620-a0cb-2aab56ff4206
2025-09-15 18:39:54,746 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-15 18:39:54,746 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d3ad809c-793d-4ae5-9099-8714f170eb8c
2025-09-15 18:39:54,753 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ded7f439-b1e9-428e-ba8a-fbdd201d57be
2025-09-15 18:39:54,765 - INFO - Verified VN network id 12 for VN d3ad809c-793d-4ae5-9099-8714f170eb8c
2025-09-15 18:39:54,765 - INFO - Verifications in API Server for VN ctest-vn-76351044 passed
2025-09-15 18:39:54,765 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d3ad809c-793d-4ae5-9099-8714f170eb8c
2025-09-15 18:39:54,772 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ded7f439-b1e9-428e-ba8a-fbdd201d57be
2025-09-15 18:39:54,778 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ded7f439-b1e9-428e-ba8a-fbdd201d57be
2025-09-15 18:39:54,782 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/c0103a3c-5b2a-4620-a0cb-2aab56ff4206
2025-09-15 18:39:54,791 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-67782911:ctest-vn-76351044', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-67782911', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15252988922511051493', 'uuid-lslong': '10419507736918158220'}, 'enable': 'true', 'created': '2025-09-15T18:39:52', 'last-modified': '2025-09-15T18:39:53', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.912963'}
2025-09-15 18:39:54,796 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-15 18:39:54,796 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-76351044 passed
2025-09-15 18:39:54,796 - DEBUG - ====Verifying policy data for ctest-vn-76351044 in API_Server ======
2025-09-15 18:39:54,796 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-15 18:39:54,801 - DEBUG - Requesting: http://10.0.0.254:8082/domain/870ccc99-65f8-4381-a8fb-d0b15e6273f4
2025-09-15 18:39:54,810 - DEBUG - Requesting: http://10.0.0.254:8082/project/a0119acc-ea9d-4647-9674-d3f23594c0ab
2025-09-15 18:39:54,877 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d3ad809c-793d-4ae5-9099-8714f170eb8c
2025-09-15 18:39:54,885 - DEBUG - ==>Verifying data for policy with id: a2621b74-be88-484d-b203-85a654b37391, fqn: ['default-domain', 'ctest-TestBasicPolicy-67782911', 'ctest-policy-allow-all-51543901']
2025-09-15 18:39:54,885 - INFO - VN ctest-vn-76351044 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-15 18:39:54,885 - DEBUG - Verifying the vn in opserver
2025-09-15 18:39:54,885 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-67782911:ctest-vn-76351044 virtual network link through opserver 10.0.0.254
2025-09-15 18:39:54,885 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-09-15 18:39:55,173 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-09-15 18:39:55,224 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-67782911:ctest-vn-76351044', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-67782911:ctest-vn-76351044?flat'}
2025-09-15 18:39:55,224 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-67782911:ctest-vn-76351044 is found in opserver
2025-09-15 18:39:55,232 - DEBUG - Do not have enough data to verify VN in agent
2025-09-15 18:39:55,236 - DEBUG - VRF ids for VN ctest-vn-76351044: {}
2025-09-15 18:39:55,236 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-15 18:39:55,241 - DEBUG - Requesting: http://10.0.0.254:8082/domain/870ccc99-65f8-4381-a8fb-d0b15e6273f4
2025-09-15 18:39:55,250 - DEBUG - Requesting: http://10.0.0.254:8082/project/a0119acc-ea9d-4647-9674-d3f23594c0ab
2025-09-15 18:39:55,318 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ccf8ade6-9952-4b95-80b6-033db6555472
2025-09-15 18:39:55,328 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ccf8ade6-9952-4b95-80b6-033db6555472
2025-09-15 18:39:55,336 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ec120231-d49d-4d8a-bf10-5e815e6f3ed0
2025-09-15 18:39:55,341 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ec120231-d49d-4d8a-bf10-5e815e6f3ed0
2025-09-15 18:39:55,347 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/d696e6d2-1274-4574-ba2b-01e07003ac0f
2025-09-15 18:39:55,352 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-15 18:39:55,352 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ccf8ade6-9952-4b95-80b6-033db6555472
2025-09-15 18:39:55,359 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ec120231-d49d-4d8a-bf10-5e815e6f3ed0
2025-09-15 18:39:55,370 - INFO - Verified VN network id 13 for VN ccf8ade6-9952-4b95-80b6-033db6555472
2025-09-15 18:39:55,370 - INFO - Verifications in API Server for VN ctest-vn-97016193 passed
2025-09-15 18:39:55,370 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ccf8ade6-9952-4b95-80b6-033db6555472
2025-09-15 18:39:55,377 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ec120231-d49d-4d8a-bf10-5e815e6f3ed0
2025-09-15 18:39:55,383 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ec120231-d49d-4d8a-bf10-5e815e6f3ed0
2025-09-15 18:39:55,388 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/d696e6d2-1274-4574-ba2b-01e07003ac0f
2025-09-15 18:39:55,398 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-67782911:ctest-vn-97016193', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-67782911', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14769746183887932309', 'uuid-lslong': '9274604046203049074'}, 'enable': 'true', 'created': '2025-09-15T18:39:53', 'last-modified': '2025-09-15T18:39:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.277651'}
2025-09-15 18:39:55,403 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-15 18:39:55,403 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-97016193 passed
2025-09-15 18:39:55,404 - DEBUG - ====Verifying policy data for ctest-vn-97016193 in API_Server ======
2025-09-15 18:39:55,404 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-15 18:39:55,409 - DEBUG - Requesting: http://10.0.0.254:8082/domain/870ccc99-65f8-4381-a8fb-d0b15e6273f4
2025-09-15 18:39:55,418 - DEBUG - Requesting: http://10.0.0.254:8082/project/a0119acc-ea9d-4647-9674-d3f23594c0ab
2025-09-15 18:39:55,487 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ccf8ade6-9952-4b95-80b6-033db6555472
2025-09-15 18:39:55,496 - DEBUG - ==>Verifying data for policy with id: a2621b74-be88-484d-b203-85a654b37391, fqn: ['default-domain', 'ctest-TestBasicPolicy-67782911', 'ctest-policy-allow-all-51543901']
2025-09-15 18:39:55,496 - INFO - VN ctest-vn-97016193 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-15 18:39:55,496 - DEBUG - Verifying the vn in opserver
2025-09-15 18:39:55,496 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-67782911:ctest-vn-97016193 virtual network link through opserver 10.0.0.254
2025-09-15 18:39:55,496 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-09-15 18:39:55,507 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-67782911:ctest-vn-97016193', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-67782911:ctest-vn-97016193?flat'}
2025-09-15 18:39:55,507 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-67782911:ctest-vn-97016193 is found in opserver
2025-09-15 18:39:55,517 - DEBUG - Do not have enough data to verify VN in agent
2025-09-15 18:39:55,521 - DEBUG - VRF ids for VN ctest-vn-97016193: {}
2025-09-15 18:39:55,574 - DEBUG - Services list from nova: [