2025-08-06 07:25:19,735 - INFO - Domain Default found not creating
2025-08-06 07:25:19,904 - INFO - Project ctest-TestBasicPolicy-71199424 not found, creating it
2025-08-06 07:25:20,392 - INFO - Created Project:ctest-TestBasicPolicy-71199424, ID : 515d1ead-969e-4e24-a2c0-e71834b7f39f
2025-08-06 07:25:21,993 - INFO - ================================================================================
2025-08-06 07:25:21,993 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-06 07:25:21,993 - 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-08-06 07:25:22,251 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2025-08-06 07:25:22,251 - INFO - Initial checks done. Running the testcase now
2025-08-06 07:25:22,252 - INFO -
2025-08-06 07:25:22,790 - DEBUG - Response for create_network : {'network': {'id': '444194b0-4793-4727-8ce9-525d167347c9', 'name': 'ctest-vn-31280049', 'tenant_id': '515d1ead969e4e24a2c0e71834b7f39f', 'project_id': '515d1ead969e4e24a2c0e71834b7f39f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71199424', 'ctest-vn-31280049'], 'port_security_enabled': True, 'description': ''}}
2025-08-06 07:25:22,982 - DEBUG - Response for create_subnet : {'subnet': {'id': '79bb4cca-4fcb-404a-a9c3-f25e43126ee0', 'name': '', 'tenant_id': '515d1ead969e4e24a2c0e71834b7f39f', 'network_id': '444194b0-4793-4727-8ce9-525d167347c9', 'ip_version': 4, 'cidr': '102.32.43.64/26', 'allocation_pools': [{'start': '102.32.43.66', 'end': '102.32.43.126'}], 'gateway_ip': '102.32.43.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '102.32.43.66', 'tags': [], 'project_id': '515d1ead969e4e24a2c0e71834b7f39f'}}
2025-08-06 07:25:23,002 - INFO - Created VN ctest-vn-31280049
2025-08-06 07:25:23,057 - DEBUG - VN ctest-vn-31280049 UUID is 444194b0-4793-4727-8ce9-525d167347c9
2025-08-06 07:25:23,366 - DEBUG - Response for create_network : {'network': {'id': 'a74af2df-108d-4987-92c7-e64c5ac970dc', 'name': 'ctest-vn-57676565', 'tenant_id': '515d1ead969e4e24a2c0e71834b7f39f', 'project_id': '515d1ead969e4e24a2c0e71834b7f39f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71199424', 'ctest-vn-57676565'], 'port_security_enabled': True, 'description': ''}}
2025-08-06 07:25:23,587 - DEBUG - Response for create_subnet : {'subnet': {'id': 'de3169c3-00c8-4f54-9d0b-00ef556549ed', 'name': '', 'tenant_id': '515d1ead969e4e24a2c0e71834b7f39f', 'network_id': 'a74af2df-108d-4987-92c7-e64c5ac970dc', 'ip_version': 4, 'cidr': '143.101.182.192/26', 'allocation_pools': [{'start': '143.101.182.194', 'end': '143.101.182.254'}], 'gateway_ip': '143.101.182.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '143.101.182.194', 'tags': [], 'project_id': '515d1ead969e4e24a2c0e71834b7f39f'}}
2025-08-06 07:25:23,605 - INFO - Created VN ctest-vn-57676565
2025-08-06 07:25:23,657 - DEBUG - VN ctest-vn-57676565 UUID is a74af2df-108d-4987-92c7-e64c5ac970dc
2025-08-06 07:25:23,771 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-71199424:ctest-vn-31280049, 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-71199424:ctest-vn-57676565, 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-08-06 07:25:24,070 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '444194b0-4793-4727-8ce9-525d167347c9', 'name': 'ctest-vn-31280049', 'tenant_id': '515d1ead969e4e24a2c0e71834b7f39f', 'project_id': '515d1ead969e4e24a2c0e71834b7f39f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['79bb4cca-4fcb-404a-a9c3-f25e43126ee0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71199424', 'ctest-vn-31280049'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-71199424', 'ctest-policy-allow-all-52213550']], 'subnet_ipam': [{'subnet_cidr': '102.32.43.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-06 07:25:24,308 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a74af2df-108d-4987-92c7-e64c5ac970dc', 'name': 'ctest-vn-57676565', 'tenant_id': '515d1ead969e4e24a2c0e71834b7f39f', 'project_id': '515d1ead969e4e24a2c0e71834b7f39f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['de3169c3-00c8-4f54-9d0b-00ef556549ed'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71199424', 'ctest-vn-57676565'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-71199424', 'ctest-policy-allow-all-52213550']], 'subnet_ipam': [{'subnet_cidr': '143.101.182.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-06 07:25:24,501 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-08-06 07:25:24,797 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-08-06 07:25:24,832 - DEBUG - Requesting: http://10.0.0.50:8082/domain/2a737637-7d29-4639-922a-91f5300d9f2c
2025-08-06 07:25:24,845 - DEBUG - Requesting: http://10.0.0.50:8082/project/515d1ead-969e-4e24-a2c0-e71834b7f39f
2025-08-06 07:25:24,927 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/444194b0-4793-4727-8ce9-525d167347c9
2025-08-06 07:25:24,945 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/444194b0-4793-4727-8ce9-525d167347c9
2025-08-06 07:25:24,959 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/196243d2-8930-4882-85ff-e8b4b9e3444f
2025-08-06 07:25:24,969 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/196243d2-8930-4882-85ff-e8b4b9e3444f
2025-08-06 07:25:24,978 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/591e7aa3-f1a5-4893-9fcd-d39de5be3a05
2025-08-06 07:25:24,985 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-06 07:25:24,985 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/444194b0-4793-4727-8ce9-525d167347c9
2025-08-06 07:25:24,997 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/196243d2-8930-4882-85ff-e8b4b9e3444f
2025-08-06 07:25:25,013 - INFO - Verified VN network id 10 for VN 444194b0-4793-4727-8ce9-525d167347c9
2025-08-06 07:25:25,014 - INFO - Verifications in API Server for VN ctest-vn-31280049 passed
2025-08-06 07:25:25,014 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/444194b0-4793-4727-8ce9-525d167347c9
2025-08-06 07:25:25,025 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/196243d2-8930-4882-85ff-e8b4b9e3444f
2025-08-06 07:25:25,035 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/196243d2-8930-4882-85ff-e8b4b9e3444f
2025-08-06 07:25:25,043 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/591e7aa3-f1a5-4893-9fcd-d39de5be3a05
2025-08-06 07:25:25,057 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-71199424:ctest-vn-31280049', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-71199424', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4918375752901281575', 'uuid-lslong': '10153737394645583817'}, 'enable': 'true', 'created': '2025-08-06T07:25:22', 'last-modified': '2025-08-06T07:25:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.016097'}
2025-08-06 07:25:25,064 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-06 07:25:25,065 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-31280049 passed
2025-08-06 07:25:25,065 - DEBUG - ====Verifying policy data for ctest-vn-31280049 in API_Server ======
2025-08-06 07:25:25,065 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-08-06 07:25:25,071 - DEBUG - Requesting: http://10.0.0.50:8082/domain/2a737637-7d29-4639-922a-91f5300d9f2c
2025-08-06 07:25:25,091 - DEBUG - Requesting: http://10.0.0.50:8082/project/515d1ead-969e-4e24-a2c0-e71834b7f39f
2025-08-06 07:25:25,166 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/444194b0-4793-4727-8ce9-525d167347c9
2025-08-06 07:25:25,176 - DEBUG - ==>Verifying data for policy with id: 3a2731bf-7e98-4254-831e-caa66cabee74, fqn: ['default-domain', 'ctest-TestBasicPolicy-71199424', 'ctest-policy-allow-all-52213550']
2025-08-06 07:25:25,176 - INFO - VN ctest-vn-31280049 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-06 07:25:25,176 - DEBUG - Verifying the vn in opserver
2025-08-06 07:25:25,176 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-71199424:ctest-vn-31280049 virtual network link through opserver 10.0.0.50
2025-08-06 07:25:25,176 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-08-06 07:25:25,470 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-08-06 07:25:25,539 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-71199424:ctest-vn-31280049', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-71199424:ctest-vn-31280049?flat'}
2025-08-06 07:25:25,540 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-71199424:ctest-vn-31280049 is found in opserver
2025-08-06 07:25:25,552 - DEBUG - Do not have enough data to verify VN in agent
2025-08-06 07:25:25,558 - DEBUG - VRF ids for VN ctest-vn-31280049: {}
2025-08-06 07:25:25,558 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-08-06 07:25:25,564 - DEBUG - Requesting: http://10.0.0.50:8082/domain/2a737637-7d29-4639-922a-91f5300d9f2c
2025-08-06 07:25:25,576 - DEBUG - Requesting: http://10.0.0.50:8082/project/515d1ead-969e-4e24-a2c0-e71834b7f39f
2025-08-06 07:25:25,656 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a74af2df-108d-4987-92c7-e64c5ac970dc
2025-08-06 07:25:25,669 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a74af2df-108d-4987-92c7-e64c5ac970dc
2025-08-06 07:25:25,681 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/058aa8f8-6994-4cb0-965e-5f24db1f8a7e
2025-08-06 07:25:25,689 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/058aa8f8-6994-4cb0-965e-5f24db1f8a7e
2025-08-06 07:25:25,697 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/f3318233-a5ab-408b-bd6b-98dff37bcc30
2025-08-06 07:25:25,704 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-06 07:25:25,704 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a74af2df-108d-4987-92c7-e64c5ac970dc
2025-08-06 07:25:25,715 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/058aa8f8-6994-4cb0-965e-5f24db1f8a7e
2025-08-06 07:25:25,731 - INFO - Verified VN network id 11 for VN a74af2df-108d-4987-92c7-e64c5ac970dc
2025-08-06 07:25:25,732 - INFO - Verifications in API Server for VN ctest-vn-57676565 passed
2025-08-06 07:25:25,732 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a74af2df-108d-4987-92c7-e64c5ac970dc
2025-08-06 07:25:25,743 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/058aa8f8-6994-4cb0-965e-5f24db1f8a7e
2025-08-06 07:25:25,752 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/058aa8f8-6994-4cb0-965e-5f24db1f8a7e
2025-08-06 07:25:25,761 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/f3318233-a5ab-408b-bd6b-98dff37bcc30
2025-08-06 07:25:25,776 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-71199424:ctest-vn-57676565', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-71199424', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12054714392479877511', 'uuid-lslong': '10576675465517953244'}, 'enable': 'true', 'created': '2025-08-06T07:25:23', 'last-modified': '2025-08-06T07:25:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.488290'}
2025-08-06 07:25:25,784 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-06 07:25:25,784 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-57676565 passed
2025-08-06 07:25:25,784 - DEBUG - ====Verifying policy data for ctest-vn-57676565 in API_Server ======
2025-08-06 07:25:25,784 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-08-06 07:25:25,790 - DEBUG - Requesting: http://10.0.0.50:8082/domain/2a737637-7d29-4639-922a-91f5300d9f2c
2025-08-06 07:25:25,806 - DEBUG - Requesting: http://10.0.0.50:8082/project/515d1ead-969e-4e24-a2c0-e71834b7f39f
2025-08-06 07:25:25,887 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a74af2df-108d-4987-92c7-e64c5ac970dc
2025-08-06 07:25:25,898 - DEBUG - ==>Verifying data for policy with id: 3a2731bf-7e98-4254-831e-caa66cabee74, fqn: ['default-domain', 'ctest-TestBasicPolicy-71199424', 'ctest-policy-allow-all-52213550']
2025-08-06 07:25:25,898 - INFO - VN ctest-vn-57676565 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-06 07:25:25,898 - DEBUG - Verifying the vn in opserver
2025-08-06 07:25:25,898 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-71199424:ctest-vn-57676565 virtual network link through opserver 10.0.0.50
2025-08-06 07:25:25,898 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-08-06 07:25:25,910 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-71199424:ctest-vn-57676565', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-71199424:ctest-vn-57676565?flat'}
2025-08-06 07:25:25,910 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-71199424:ctest-vn-57676565 is found in opserver
2025-08-06 07:25:25,922 - DEBUG - Do not have enough data to verify VN in agent
2025-08-06 07:25:25,928 - DEBUG - VRF ids for VN ctest-vn-57676565: {}
2025-08-06 07:25:25,986 - DEBUG - Services list from nova: [