2025-06-18 14:24:47,295 - INFO - Domain Default found not creating
2025-06-18 14:24:47,561 - INFO - Project ctest-TestBasicPolicy-77599544 not found, creating it
2025-06-18 14:24:48,051 - INFO - Created Project:ctest-TestBasicPolicy-77599544, ID : ed0e1048-7131-49a0-b701-3d4dc86b941f
2025-06-18 14:24:49,579 - INFO - ================================================================================
2025-06-18 14:24:49,580 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-18 14:24:49,580 - 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-18 14:24:49,836 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-06-18 14:24:49,836 - INFO - Initial checks done. Running the testcase now
2025-06-18 14:24:49,837 - INFO -
2025-06-18 14:24:50,389 - DEBUG - Response for create_network : {'network': {'id': '9840951d-92db-4c08-a265-d9fdcea064ce', 'name': 'ctest-vn-38022686', 'tenant_id': 'ed0e1048713149a0b7013d4dc86b941f', 'project_id': 'ed0e1048713149a0b7013d4dc86b941f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77599544', 'ctest-vn-38022686'], 'port_security_enabled': True, 'description': ''}}
2025-06-18 14:24:50,554 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b97bb890-568b-46ee-8547-20e8f38a15a1', 'name': '', 'tenant_id': 'ed0e1048713149a0b7013d4dc86b941f', 'network_id': '9840951d-92db-4c08-a265-d9fdcea064ce', 'ip_version': 4, 'cidr': '123.174.87.0/26', 'allocation_pools': [{'start': '123.174.87.2', 'end': '123.174.87.62'}], 'gateway_ip': '123.174.87.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '123.174.87.2', 'tags': [], 'project_id': 'ed0e1048713149a0b7013d4dc86b941f'}}
2025-06-18 14:24:50,573 - INFO - Created VN ctest-vn-38022686
2025-06-18 14:24:50,627 - DEBUG - VN ctest-vn-38022686 UUID is 9840951d-92db-4c08-a265-d9fdcea064ce
2025-06-18 14:24:50,963 - DEBUG - Response for create_network : {'network': {'id': '0a13fd72-3deb-414a-a528-bf5dc90d7d3a', 'name': 'ctest-vn-02262224', 'tenant_id': 'ed0e1048713149a0b7013d4dc86b941f', 'project_id': 'ed0e1048713149a0b7013d4dc86b941f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77599544', 'ctest-vn-02262224'], 'port_security_enabled': True, 'description': ''}}
2025-06-18 14:24:51,170 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a4ebd993-72fd-4699-9548-67a4d28dd3d0', 'name': '', 'tenant_id': 'ed0e1048713149a0b7013d4dc86b941f', 'network_id': '0a13fd72-3deb-414a-a528-bf5dc90d7d3a', 'ip_version': 4, 'cidr': '34.104.197.0/26', 'allocation_pools': [{'start': '34.104.197.2', 'end': '34.104.197.62'}], 'gateway_ip': '34.104.197.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '34.104.197.2', 'tags': [], 'project_id': 'ed0e1048713149a0b7013d4dc86b941f'}}
2025-06-18 14:24:51,188 - INFO - Created VN ctest-vn-02262224
2025-06-18 14:24:51,243 - DEBUG - VN ctest-vn-02262224 UUID is 0a13fd72-3deb-414a-a528-bf5dc90d7d3a
2025-06-18 14:24:51,364 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-77599544:ctest-vn-38022686, 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-77599544:ctest-vn-02262224, 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-18 14:24:51,668 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9840951d-92db-4c08-a265-d9fdcea064ce', 'name': 'ctest-vn-38022686', 'tenant_id': 'ed0e1048713149a0b7013d4dc86b941f', 'project_id': 'ed0e1048713149a0b7013d4dc86b941f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b97bb890-568b-46ee-8547-20e8f38a15a1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77599544', 'ctest-vn-38022686'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-77599544', 'ctest-policy-allow-all-49062482']], 'subnet_ipam': [{'subnet_cidr': '123.174.87.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-18 14:24:51,896 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0a13fd72-3deb-414a-a528-bf5dc90d7d3a', 'name': 'ctest-vn-02262224', 'tenant_id': 'ed0e1048713149a0b7013d4dc86b941f', 'project_id': 'ed0e1048713149a0b7013d4dc86b941f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a4ebd993-72fd-4699-9548-67a4d28dd3d0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77599544', 'ctest-vn-02262224'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-77599544', 'ctest-policy-allow-all-49062482']], 'subnet_ipam': [{'subnet_cidr': '34.104.197.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-18 14:24:52,047 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-18 14:24:52,364 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-18 14:24:52,396 - DEBUG - Requesting: http://10.0.0.254:8082/domain/518d22b5-f3c3-4ab1-8538-722f619c8f23
2025-06-18 14:24:52,411 - DEBUG - Requesting: http://10.0.0.254:8082/project/ed0e1048-7131-49a0-b701-3d4dc86b941f
2025-06-18 14:24:52,488 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/9840951d-92db-4c08-a265-d9fdcea064ce
2025-06-18 14:24:52,503 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/9840951d-92db-4c08-a265-d9fdcea064ce
2025-06-18 14:24:52,514 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/06b10e02-1991-4b82-b6d6-454811c0f421
2025-06-18 14:24:52,533 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/06b10e02-1991-4b82-b6d6-454811c0f421
2025-06-18 14:24:52,543 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/787b42ef-21fe-4d72-9769-ea2d7b7385c2
2025-06-18 14:24:52,551 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-18 14:24:52,551 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/9840951d-92db-4c08-a265-d9fdcea064ce
2025-06-18 14:24:52,562 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/06b10e02-1991-4b82-b6d6-454811c0f421
2025-06-18 14:24:52,578 - INFO - Verified VN network id 8 for VN 9840951d-92db-4c08-a265-d9fdcea064ce
2025-06-18 14:24:52,578 - INFO - Verifications in API Server for VN ctest-vn-38022686 passed
2025-06-18 14:24:52,578 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/9840951d-92db-4c08-a265-d9fdcea064ce
2025-06-18 14:24:52,589 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/06b10e02-1991-4b82-b6d6-454811c0f421
2025-06-18 14:24:52,600 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/06b10e02-1991-4b82-b6d6-454811c0f421
2025-06-18 14:24:52,608 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/787b42ef-21fe-4d72-9769-ea2d7b7385c2
2025-06-18 14:24:52,624 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-77599544:ctest-vn-38022686', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-77599544', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10970932646524963848', 'uuid-lslong': '11701998890908673230'}, 'enable': 'true', 'created': '2025-06-18T14:24:50', 'last-modified': '2025-06-18T14:24:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.979018'}
2025-06-18 14:24:52,633 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-18 14:24:52,633 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-38022686 passed
2025-06-18 14:24:52,634 - DEBUG - ====Verifying policy data for ctest-vn-38022686 in API_Server ======
2025-06-18 14:24:52,634 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-18 14:24:52,641 - DEBUG - Requesting: http://10.0.0.254:8082/domain/518d22b5-f3c3-4ab1-8538-722f619c8f23
2025-06-18 14:24:52,656 - DEBUG - Requesting: http://10.0.0.254:8082/project/ed0e1048-7131-49a0-b701-3d4dc86b941f
2025-06-18 14:24:52,735 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/9840951d-92db-4c08-a265-d9fdcea064ce
2025-06-18 14:24:52,746 - DEBUG - ==>Verifying data for policy with id: 6fffaf99-3932-45d3-860a-a767040f8c86, fqn: ['default-domain', 'ctest-TestBasicPolicy-77599544', 'ctest-policy-allow-all-49062482']
2025-06-18 14:24:52,747 - INFO - VN ctest-vn-38022686 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-18 14:24:52,747 - DEBUG - Verifying the vn in opserver
2025-06-18 14:24:52,747 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-77599544:ctest-vn-38022686 virtual network link through opserver 10.0.0.254
2025-06-18 14:24:52,747 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-18 14:24:53,040 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-18 14:24:53,098 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-77599544:ctest-vn-38022686', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-77599544:ctest-vn-38022686?flat'}
2025-06-18 14:24:53,098 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-77599544:ctest-vn-38022686 is found in opserver
2025-06-18 14:24:53,109 - DEBUG - Do not have enough data to verify VN in agent
2025-06-18 14:24:53,114 - DEBUG - VRF ids for VN ctest-vn-38022686: {}
2025-06-18 14:24:53,114 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-18 14:24:53,120 - DEBUG - Requesting: http://10.0.0.254:8082/domain/518d22b5-f3c3-4ab1-8538-722f619c8f23
2025-06-18 14:24:53,132 - DEBUG - Requesting: http://10.0.0.254:8082/project/ed0e1048-7131-49a0-b701-3d4dc86b941f
2025-06-18 14:24:53,205 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0a13fd72-3deb-414a-a528-bf5dc90d7d3a
2025-06-18 14:24:53,218 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0a13fd72-3deb-414a-a528-bf5dc90d7d3a
2025-06-18 14:24:53,228 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/81ebd172-2cbc-4e09-a50e-0467f87c90ff
2025-06-18 14:24:53,237 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/81ebd172-2cbc-4e09-a50e-0467f87c90ff
2025-06-18 14:24:53,246 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/abd06a20-d384-4b0c-ab54-0429ae295481
2025-06-18 14:24:53,256 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-18 14:24:53,256 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0a13fd72-3deb-414a-a528-bf5dc90d7d3a
2025-06-18 14:24:53,269 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/81ebd172-2cbc-4e09-a50e-0467f87c90ff
2025-06-18 14:24:53,289 - INFO - Verified VN network id 9 for VN 0a13fd72-3deb-414a-a528-bf5dc90d7d3a
2025-06-18 14:24:53,290 - INFO - Verifications in API Server for VN ctest-vn-02262224 passed
2025-06-18 14:24:53,290 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0a13fd72-3deb-414a-a528-bf5dc90d7d3a
2025-06-18 14:24:53,304 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/81ebd172-2cbc-4e09-a50e-0467f87c90ff
2025-06-18 14:24:53,312 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/81ebd172-2cbc-4e09-a50e-0467f87c90ff
2025-06-18 14:24:53,320 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/abd06a20-d384-4b0c-ab54-0429ae295481
2025-06-18 14:24:53,337 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-77599544:ctest-vn-02262224', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-77599544', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '726202632043708746', 'uuid-lslong': '11900972424852503866'}, 'enable': 'true', 'created': '2025-06-18T14:24:50', 'last-modified': '2025-06-18T14:24:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.465105'}
2025-06-18 14:24:53,346 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-18 14:24:53,346 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-02262224 passed
2025-06-18 14:24:53,346 - DEBUG - ====Verifying policy data for ctest-vn-02262224 in API_Server ======
2025-06-18 14:24:53,346 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-18 14:24:53,353 - DEBUG - Requesting: http://10.0.0.254:8082/domain/518d22b5-f3c3-4ab1-8538-722f619c8f23
2025-06-18 14:24:53,366 - DEBUG - Requesting: http://10.0.0.254:8082/project/ed0e1048-7131-49a0-b701-3d4dc86b941f
2025-06-18 14:24:53,444 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0a13fd72-3deb-414a-a528-bf5dc90d7d3a
2025-06-18 14:24:53,455 - DEBUG - ==>Verifying data for policy with id: 6fffaf99-3932-45d3-860a-a767040f8c86, fqn: ['default-domain', 'ctest-TestBasicPolicy-77599544', 'ctest-policy-allow-all-49062482']
2025-06-18 14:24:53,455 - INFO - VN ctest-vn-02262224 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-18 14:24:53,455 - DEBUG - Verifying the vn in opserver
2025-06-18 14:24:53,455 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-77599544:ctest-vn-02262224 virtual network link through opserver 10.0.0.254
2025-06-18 14:24:53,455 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-18 14:24:53,466 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-77599544:ctest-vn-02262224', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-77599544:ctest-vn-02262224?flat'}
2025-06-18 14:24:53,466 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-77599544:ctest-vn-02262224 is found in opserver
2025-06-18 14:24:53,477 - DEBUG - Do not have enough data to verify VN in agent
2025-06-18 14:24:53,483 - DEBUG - VRF ids for VN ctest-vn-02262224: {}
2025-06-18 14:24:53,540 - DEBUG - Services list from nova: [