2025-06-24 13:39:28,194 - INFO - Domain Default found not creating
2025-06-24 13:39:28,388 - INFO - Project ctest-TestBasicPolicy-47027696 not found, creating it
2025-06-24 13:39:28,886 - INFO - Created Project:ctest-TestBasicPolicy-47027696, ID : 2b41732a-89bf-4e3d-a1a1-a456c008697b
2025-06-24 13:39:30,426 - INFO - ================================================================================
2025-06-24 13:39:30,426 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-24 13:39:30,426 - 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-06-24 13:39:30,686 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.14': '0'}} with
2025-06-24 13:39:30,686 - INFO - Initial checks done. Running the testcase now
2025-06-24 13:39:30,686 - INFO -
2025-06-24 13:39:31,267 - DEBUG - Response for create_network : {'network': {'id': '72808be0-2917-49be-bda7-58916eaa67d2', 'name': 'ctest-vn-12245003', 'tenant_id': '2b41732a89bf4e3da1a1a456c008697b', 'project_id': '2b41732a89bf4e3da1a1a456c008697b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-47027696', 'ctest-vn-12245003'], 'port_security_enabled': True, 'description': ''}}
2025-06-24 13:39:31,470 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e73156c8-2c7f-4279-9e31-4e060c57fc03', 'name': '', 'tenant_id': '2b41732a89bf4e3da1a1a456c008697b', 'network_id': '72808be0-2917-49be-bda7-58916eaa67d2', 'ip_version': 4, 'cidr': '212.234.5.128/26', 'allocation_pools': [{'start': '212.234.5.130', 'end': '212.234.5.190'}], 'gateway_ip': '212.234.5.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '212.234.5.130', 'tags': [], 'project_id': '2b41732a89bf4e3da1a1a456c008697b'}}
2025-06-24 13:39:31,491 - INFO - Created VN ctest-vn-12245003
2025-06-24 13:39:31,548 - DEBUG - VN ctest-vn-12245003 UUID is 72808be0-2917-49be-bda7-58916eaa67d2
2025-06-24 13:39:31,886 - DEBUG - Response for create_network : {'network': {'id': '1066ffd4-82b3-4baf-9ab4-7b9334b55799', 'name': 'ctest-vn-38473866', 'tenant_id': '2b41732a89bf4e3da1a1a456c008697b', 'project_id': '2b41732a89bf4e3da1a1a456c008697b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-47027696', 'ctest-vn-38473866'], 'port_security_enabled': True, 'description': ''}}
2025-06-24 13:39:32,104 - DEBUG - Response for create_subnet : {'subnet': {'id': '04a242d7-5956-4e15-bb45-9d90a5d3f40b', 'name': '', 'tenant_id': '2b41732a89bf4e3da1a1a456c008697b', 'network_id': '1066ffd4-82b3-4baf-9ab4-7b9334b55799', 'ip_version': 4, 'cidr': '155.255.75.128/26', 'allocation_pools': [{'start': '155.255.75.130', 'end': '155.255.75.190'}], 'gateway_ip': '155.255.75.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '155.255.75.130', 'tags': [], 'project_id': '2b41732a89bf4e3da1a1a456c008697b'}}
2025-06-24 13:39:32,128 - INFO - Created VN ctest-vn-38473866
2025-06-24 13:39:32,188 - DEBUG - VN ctest-vn-38473866 UUID is 1066ffd4-82b3-4baf-9ab4-7b9334b55799
2025-06-24 13:39:32,318 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-47027696:ctest-vn-12245003, 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-47027696:ctest-vn-38473866, 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-06-24 13:39:32,686 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '72808be0-2917-49be-bda7-58916eaa67d2', 'name': 'ctest-vn-12245003', 'tenant_id': '2b41732a89bf4e3da1a1a456c008697b', 'project_id': '2b41732a89bf4e3da1a1a456c008697b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e73156c8-2c7f-4279-9e31-4e060c57fc03'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-47027696', 'ctest-vn-12245003'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-47027696', 'ctest-policy-allow-all-42474284']], 'subnet_ipam': [{'subnet_cidr': '212.234.5.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-24 13:39:33,002 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1066ffd4-82b3-4baf-9ab4-7b9334b55799', 'name': 'ctest-vn-38473866', 'tenant_id': '2b41732a89bf4e3da1a1a456c008697b', 'project_id': '2b41732a89bf4e3da1a1a456c008697b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['04a242d7-5956-4e15-bb45-9d90a5d3f40b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-47027696', 'ctest-vn-38473866'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-47027696', 'ctest-policy-allow-all-42474284']], 'subnet_ipam': [{'subnet_cidr': '155.255.75.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-24 13:39:33,160 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-06-24 13:39:33,470 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-06-24 13:39:33,501 - DEBUG - Requesting: http://10.0.0.65:8082/domain/fe050c28-cb55-4177-b840-47f183f49813
2025-06-24 13:39:33,519 - DEBUG - Requesting: http://10.0.0.65:8082/project/2b41732a-89bf-4e3d-a1a1-a456c008697b
2025-06-24 13:39:33,602 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/72808be0-2917-49be-bda7-58916eaa67d2
2025-06-24 13:39:33,615 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/72808be0-2917-49be-bda7-58916eaa67d2
2025-06-24 13:39:33,625 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/5a71cf2f-3dc1-4da8-838b-ac1188a887c3
2025-06-24 13:39:33,633 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/5a71cf2f-3dc1-4da8-838b-ac1188a887c3
2025-06-24 13:39:33,641 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/667a697b-6327-410d-8740-400a5179c820
2025-06-24 13:39:33,648 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-24 13:39:33,648 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/72808be0-2917-49be-bda7-58916eaa67d2
2025-06-24 13:39:33,657 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/5a71cf2f-3dc1-4da8-838b-ac1188a887c3
2025-06-24 13:39:33,673 - INFO - Verified VN network id 8 for VN 72808be0-2917-49be-bda7-58916eaa67d2
2025-06-24 13:39:33,673 - INFO - Verifications in API Server for VN ctest-vn-12245003 passed
2025-06-24 13:39:33,674 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/72808be0-2917-49be-bda7-58916eaa67d2
2025-06-24 13:39:33,683 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/5a71cf2f-3dc1-4da8-838b-ac1188a887c3
2025-06-24 13:39:33,691 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/5a71cf2f-3dc1-4da8-838b-ac1188a887c3
2025-06-24 13:39:33,698 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/667a697b-6327-410d-8740-400a5179c820
2025-06-24 13:39:33,711 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-47027696:ctest-vn-12245003', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-47027696', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8250748312221075902', 'uuid-lslong': '13665988975929223122'}, 'enable': 'true', 'created': '2025-06-24T13:39:31', 'last-modified': '2025-06-24T13:39:32', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.047700'}
2025-06-24 13:39:33,719 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-24 13:39:33,720 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-12245003 passed
2025-06-24 13:39:33,720 - DEBUG - ====Verifying policy data for ctest-vn-12245003 in API_Server ======
2025-06-24 13:39:33,720 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-06-24 13:39:33,727 - DEBUG - Requesting: http://10.0.0.65:8082/domain/fe050c28-cb55-4177-b840-47f183f49813
2025-06-24 13:39:33,741 - DEBUG - Requesting: http://10.0.0.65:8082/project/2b41732a-89bf-4e3d-a1a1-a456c008697b
2025-06-24 13:39:33,818 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/72808be0-2917-49be-bda7-58916eaa67d2
2025-06-24 13:39:33,828 - DEBUG - ==>Verifying data for policy with id: ec3cf0d1-fd46-46a0-a3d2-0b7bf5feb1a3, fqn: ['default-domain', 'ctest-TestBasicPolicy-47027696', 'ctest-policy-allow-all-42474284']
2025-06-24 13:39:33,828 - INFO - VN ctest-vn-12245003 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-24 13:39:33,828 - DEBUG - Verifying the vn in opserver
2025-06-24 13:39:33,829 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-47027696:ctest-vn-12245003 virtual network link through opserver 10.0.0.65
2025-06-24 13:39:33,829 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-06-24 13:39:34,121 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-06-24 13:39:34,184 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-47027696:ctest-vn-12245003', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-47027696:ctest-vn-12245003?flat'}
2025-06-24 13:39:34,184 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-47027696:ctest-vn-12245003 is found in opserver
2025-06-24 13:39:34,198 - DEBUG - Do not have enough data to verify VN in agent
2025-06-24 13:39:34,204 - DEBUG - VRF ids for VN ctest-vn-12245003: {}
2025-06-24 13:39:34,204 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-06-24 13:39:34,210 - DEBUG - Requesting: http://10.0.0.65:8082/domain/fe050c28-cb55-4177-b840-47f183f49813
2025-06-24 13:39:34,224 - DEBUG - Requesting: http://10.0.0.65:8082/project/2b41732a-89bf-4e3d-a1a1-a456c008697b
2025-06-24 13:39:34,306 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/1066ffd4-82b3-4baf-9ab4-7b9334b55799
2025-06-24 13:39:34,324 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/1066ffd4-82b3-4baf-9ab4-7b9334b55799
2025-06-24 13:39:34,336 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/2408def7-7c58-471d-9a2c-54e1dfc4efe2
2025-06-24 13:39:34,346 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/2408def7-7c58-471d-9a2c-54e1dfc4efe2
2025-06-24 13:39:34,355 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/ebedecd8-4dbb-4cdc-9b08-00c5ecd8a0e4
2025-06-24 13:39:34,364 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-24 13:39:34,364 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/1066ffd4-82b3-4baf-9ab4-7b9334b55799
2025-06-24 13:39:34,376 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/2408def7-7c58-471d-9a2c-54e1dfc4efe2
2025-06-24 13:39:34,396 - INFO - Verified VN network id 9 for VN 1066ffd4-82b3-4baf-9ab4-7b9334b55799
2025-06-24 13:39:34,397 - INFO - Verifications in API Server for VN ctest-vn-38473866 passed
2025-06-24 13:39:34,397 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/1066ffd4-82b3-4baf-9ab4-7b9334b55799
2025-06-24 13:39:34,410 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/2408def7-7c58-471d-9a2c-54e1dfc4efe2
2025-06-24 13:39:34,420 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/2408def7-7c58-471d-9a2c-54e1dfc4efe2
2025-06-24 13:39:34,430 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/ebedecd8-4dbb-4cdc-9b08-00c5ecd8a0e4
2025-06-24 13:39:34,445 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-47027696:ctest-vn-38473866', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-47027696', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1181913240422271919', 'uuid-lslong': '11147670849823528857'}, 'enable': 'true', 'created': '2025-06-24T13:39:31', 'last-modified': '2025-06-24T13:39:32', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.520402'}
2025-06-24 13:39:34,452 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-24 13:39:34,452 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-38473866 passed
2025-06-24 13:39:34,453 - DEBUG - ====Verifying policy data for ctest-vn-38473866 in API_Server ======
2025-06-24 13:39:34,453 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-06-24 13:39:34,459 - DEBUG - Requesting: http://10.0.0.65:8082/domain/fe050c28-cb55-4177-b840-47f183f49813
2025-06-24 13:39:34,475 - DEBUG - Requesting: http://10.0.0.65:8082/project/2b41732a-89bf-4e3d-a1a1-a456c008697b
2025-06-24 13:39:34,552 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/1066ffd4-82b3-4baf-9ab4-7b9334b55799
2025-06-24 13:39:34,568 - DEBUG - ==>Verifying data for policy with id: ec3cf0d1-fd46-46a0-a3d2-0b7bf5feb1a3, fqn: ['default-domain', 'ctest-TestBasicPolicy-47027696', 'ctest-policy-allow-all-42474284']
2025-06-24 13:39:34,568 - INFO - VN ctest-vn-38473866 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-24 13:39:34,568 - DEBUG - Verifying the vn in opserver
2025-06-24 13:39:34,568 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-47027696:ctest-vn-38473866 virtual network link through opserver 10.0.0.65
2025-06-24 13:39:34,569 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-06-24 13:39:34,583 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-47027696:ctest-vn-38473866', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-47027696:ctest-vn-38473866?flat'}
2025-06-24 13:39:34,583 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-47027696:ctest-vn-38473866 is found in opserver
2025-06-24 13:39:34,598 - DEBUG - Do not have enough data to verify VN in agent
2025-06-24 13:39:34,605 - DEBUG - VRF ids for VN ctest-vn-38473866: {}
2025-06-24 13:39:34,668 - DEBUG - Services list from nova: [