2025-04-24 11:39:11,724 - INFO - Domain Default found not creating
2025-04-24 11:39:11,844 - INFO - Project ctest-TestBasicPolicy-70575691 not found, creating it
2025-04-24 11:39:12,267 - INFO - Created Project:ctest-TestBasicPolicy-70575691, ID : e71449da-4ff2-4409-91c6-e53225b37597
2025-04-24 11:39:13,595 - INFO - ================================================================================
2025-04-24 11:39:13,595 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-24 11:39:13,595 - 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-04-24 11:39:13,844 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with
2025-04-24 11:39:13,844 - INFO - Initial checks done. Running the testcase now
2025-04-24 11:39:13,844 - INFO -
2025-04-24 11:39:14,640 - DEBUG - Response for create_network : {'network': {'id': 'c9de802a-181d-4c61-9f26-916119d5e1c6', 'name': 'ctest-vn-91097785', 'tenant_id': 'e71449da4ff2440991c6e53225b37597', 'project_id': 'e71449da4ff2440991c6e53225b37597', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-70575691', 'ctest-vn-91097785'], 'port_security_enabled': True, 'description': ''}}
2025-04-24 11:39:14,927 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bcc10faa-a16c-464d-8e43-5bf691c9de97', 'name': '', 'tenant_id': 'e71449da4ff2440991c6e53225b37597', 'network_id': 'c9de802a-181d-4c61-9f26-916119d5e1c6', 'ip_version': 4, 'cidr': '171.156.233.128/26', 'allocation_pools': [{'start': '171.156.233.130', 'end': '171.156.233.190'}], 'gateway_ip': '171.156.233.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '171.156.233.130', 'tags': [], 'project_id': 'e71449da4ff2440991c6e53225b37597'}}
2025-04-24 11:39:14,949 - INFO - Created VN ctest-vn-91097785
2025-04-24 11:39:15,010 - DEBUG - VN ctest-vn-91097785 UUID is c9de802a-181d-4c61-9f26-916119d5e1c6
2025-04-24 11:39:15,310 - DEBUG - Response for create_network : {'network': {'id': 'b4ee2ed3-0dd5-4c9f-8787-47846015d6a6', 'name': 'ctest-vn-86964771', 'tenant_id': 'e71449da4ff2440991c6e53225b37597', 'project_id': 'e71449da4ff2440991c6e53225b37597', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-70575691', 'ctest-vn-86964771'], 'port_security_enabled': True, 'description': ''}}
2025-04-24 11:39:15,510 - DEBUG - Response for create_subnet : {'subnet': {'id': '4ac79733-abf1-4b41-a319-f5fc04aa3415', 'name': '', 'tenant_id': 'e71449da4ff2440991c6e53225b37597', 'network_id': 'b4ee2ed3-0dd5-4c9f-8787-47846015d6a6', 'ip_version': 4, 'cidr': '203.196.252.0/26', 'allocation_pools': [{'start': '203.196.252.2', 'end': '203.196.252.62'}], 'gateway_ip': '203.196.252.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '203.196.252.2', 'tags': [], 'project_id': 'e71449da4ff2440991c6e53225b37597'}}
2025-04-24 11:39:15,526 - INFO - Created VN ctest-vn-86964771
2025-04-24 11:39:15,582 - DEBUG - VN ctest-vn-86964771 UUID is b4ee2ed3-0dd5-4c9f-8787-47846015d6a6
2025-04-24 11:39:15,726 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-70575691:ctest-vn-91097785, 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-70575691:ctest-vn-86964771, 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-04-24 11:39:15,992 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c9de802a-181d-4c61-9f26-916119d5e1c6', 'name': 'ctest-vn-91097785', 'tenant_id': 'e71449da4ff2440991c6e53225b37597', 'project_id': 'e71449da4ff2440991c6e53225b37597', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['bcc10faa-a16c-464d-8e43-5bf691c9de97'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-70575691', 'ctest-vn-91097785'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-70575691', 'ctest-policy-allow-all-10161798']], 'subnet_ipam': [{'subnet_cidr': '171.156.233.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-24 11:39:16,223 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b4ee2ed3-0dd5-4c9f-8787-47846015d6a6', 'name': 'ctest-vn-86964771', 'tenant_id': 'e71449da4ff2440991c6e53225b37597', 'project_id': 'e71449da4ff2440991c6e53225b37597', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4ac79733-abf1-4b41-a319-f5fc04aa3415'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-70575691', 'ctest-vn-86964771'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-70575691', 'ctest-policy-allow-all-10161798']], 'subnet_ipam': [{'subnet_cidr': '203.196.252.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-24 11:39:16,378 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-04-24 11:39:16,675 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-04-24 11:39:16,699 - DEBUG - Requesting: http://10.0.0.50:8082/domain/300c94ca-dbd2-4892-accb-b19fb1c3d5f9
2025-04-24 11:39:16,711 - DEBUG - Requesting: http://10.0.0.50:8082/project/e71449da-4ff2-4409-91c6-e53225b37597
2025-04-24 11:39:16,780 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c9de802a-181d-4c61-9f26-916119d5e1c6
2025-04-24 11:39:16,792 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c9de802a-181d-4c61-9f26-916119d5e1c6
2025-04-24 11:39:16,801 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/5c78fcf1-3e4a-4edb-a9b1-7c595cb79820
2025-04-24 11:39:16,807 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/5c78fcf1-3e4a-4edb-a9b1-7c595cb79820
2025-04-24 11:39:16,814 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/30c12955-424d-4e7e-b7c5-2f8c6b1f3142
2025-04-24 11:39:16,819 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-24 11:39:16,819 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c9de802a-181d-4c61-9f26-916119d5e1c6
2025-04-24 11:39:16,828 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/5c78fcf1-3e4a-4edb-a9b1-7c595cb79820
2025-04-24 11:39:16,840 - INFO - Verified VN network id 9 for VN c9de802a-181d-4c61-9f26-916119d5e1c6
2025-04-24 11:39:16,840 - INFO - Verifications in API Server for VN ctest-vn-91097785 passed
2025-04-24 11:39:16,841 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c9de802a-181d-4c61-9f26-916119d5e1c6
2025-04-24 11:39:16,849 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/5c78fcf1-3e4a-4edb-a9b1-7c595cb79820
2025-04-24 11:39:16,854 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/5c78fcf1-3e4a-4edb-a9b1-7c595cb79820
2025-04-24 11:39:16,860 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/30c12955-424d-4e7e-b7c5-2f8c6b1f3142
2025-04-24 11:39:16,871 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-70575691:ctest-vn-91097785', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-70575691', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14546204764734835809', 'uuid-lslong': '11468013347376849350'}, 'enable': 'true', 'created': '2025-04-24T11:39:14', 'last-modified': '2025-04-24T11:39:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.867875'}
2025-04-24 11:39:16,877 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-24 11:39:16,877 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-91097785 passed
2025-04-24 11:39:16,877 - DEBUG - ====Verifying policy data for ctest-vn-91097785 in API_Server ======
2025-04-24 11:39:16,877 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-04-24 11:39:16,882 - DEBUG - Requesting: http://10.0.0.50:8082/domain/300c94ca-dbd2-4892-accb-b19fb1c3d5f9
2025-04-24 11:39:16,891 - DEBUG - Requesting: http://10.0.0.50:8082/project/e71449da-4ff2-4409-91c6-e53225b37597
2025-04-24 11:39:16,962 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c9de802a-181d-4c61-9f26-916119d5e1c6
2025-04-24 11:39:16,972 - DEBUG - ==>Verifying data for policy with id: 5795de2c-ba38-4550-b158-fa830f3f232c, fqn: ['default-domain', 'ctest-TestBasicPolicy-70575691', 'ctest-policy-allow-all-10161798']
2025-04-24 11:39:16,972 - INFO - VN ctest-vn-91097785 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-24 11:39:16,972 - DEBUG - Verifying the vn in opserver
2025-04-24 11:39:16,972 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-70575691:ctest-vn-91097785 virtual network link through opserver 10.0.0.50
2025-04-24 11:39:16,972 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-04-24 11:39:17,259 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-04-24 11:39:17,304 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-70575691:ctest-vn-91097785', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-70575691:ctest-vn-91097785?flat'}
2025-04-24 11:39:17,304 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-70575691:ctest-vn-91097785 is found in opserver
2025-04-24 11:39:17,313 - DEBUG - Do not have enough data to verify VN in agent
2025-04-24 11:39:17,318 - DEBUG - VRF ids for VN ctest-vn-91097785: {}
2025-04-24 11:39:17,318 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-04-24 11:39:17,323 - DEBUG - Requesting: http://10.0.0.50:8082/domain/300c94ca-dbd2-4892-accb-b19fb1c3d5f9
2025-04-24 11:39:17,332 - DEBUG - Requesting: http://10.0.0.50:8082/project/e71449da-4ff2-4409-91c6-e53225b37597
2025-04-24 11:39:17,405 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/b4ee2ed3-0dd5-4c9f-8787-47846015d6a6
2025-04-24 11:39:17,416 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/b4ee2ed3-0dd5-4c9f-8787-47846015d6a6
2025-04-24 11:39:17,424 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/112de88b-f5b2-48d6-b476-05ca6ddad25f
2025-04-24 11:39:17,430 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/112de88b-f5b2-48d6-b476-05ca6ddad25f
2025-04-24 11:39:17,436 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/3ae1bfaa-621f-4b1c-abc3-162aaa76bdc2
2025-04-24 11:39:17,441 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-24 11:39:17,441 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/b4ee2ed3-0dd5-4c9f-8787-47846015d6a6
2025-04-24 11:39:17,449 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/112de88b-f5b2-48d6-b476-05ca6ddad25f
2025-04-24 11:39:17,461 - INFO - Verified VN network id 10 for VN b4ee2ed3-0dd5-4c9f-8787-47846015d6a6
2025-04-24 11:39:17,461 - INFO - Verifications in API Server for VN ctest-vn-86964771 passed
2025-04-24 11:39:17,461 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/b4ee2ed3-0dd5-4c9f-8787-47846015d6a6
2025-04-24 11:39:17,469 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/112de88b-f5b2-48d6-b476-05ca6ddad25f
2025-04-24 11:39:17,474 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/112de88b-f5b2-48d6-b476-05ca6ddad25f
2025-04-24 11:39:17,480 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/3ae1bfaa-621f-4b1c-abc3-162aaa76bdc2
2025-04-24 11:39:17,491 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-70575691:ctest-vn-86964771', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-70575691', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13037409455289224351', 'uuid-lslong': '9765852950849509030'}, 'enable': 'true', 'created': '2025-04-24T11:39:15', 'last-modified': '2025-04-24T11:39:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.330846'}
2025-04-24 11:39:17,496 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-24 11:39:17,496 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-86964771 passed
2025-04-24 11:39:17,496 - DEBUG - ====Verifying policy data for ctest-vn-86964771 in API_Server ======
2025-04-24 11:39:17,496 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-04-24 11:39:17,501 - DEBUG - Requesting: http://10.0.0.50:8082/domain/300c94ca-dbd2-4892-accb-b19fb1c3d5f9
2025-04-24 11:39:17,510 - DEBUG - Requesting: http://10.0.0.50:8082/project/e71449da-4ff2-4409-91c6-e53225b37597
2025-04-24 11:39:17,582 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/b4ee2ed3-0dd5-4c9f-8787-47846015d6a6
2025-04-24 11:39:17,592 - DEBUG - ==>Verifying data for policy with id: 5795de2c-ba38-4550-b158-fa830f3f232c, fqn: ['default-domain', 'ctest-TestBasicPolicy-70575691', 'ctest-policy-allow-all-10161798']
2025-04-24 11:39:17,592 - INFO - VN ctest-vn-86964771 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-24 11:39:17,592 - DEBUG - Verifying the vn in opserver
2025-04-24 11:39:17,592 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-70575691:ctest-vn-86964771 virtual network link through opserver 10.0.0.50
2025-04-24 11:39:17,592 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-04-24 11:39:17,600 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-70575691:ctest-vn-86964771', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-70575691:ctest-vn-86964771?flat'}
2025-04-24 11:39:17,600 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-70575691:ctest-vn-86964771 is found in opserver
2025-04-24 11:39:17,610 - DEBUG - Do not have enough data to verify VN in agent
2025-04-24 11:39:17,614 - DEBUG - VRF ids for VN ctest-vn-86964771: {}
2025-04-24 11:39:17,661 - DEBUG - Services list from nova: [