2025-09-16 15:00:02,110 - INFO - Domain Default found not creating
2025-09-16 15:00:02,291 - INFO - Project ctest-TestBasicPolicy-89960766 not found, creating it
2025-09-16 15:00:02,767 - INFO - Created Project:ctest-TestBasicPolicy-89960766, ID : 38c1b838-b6b6-4ef7-aa5f-7e2060bcc341
2025-09-16 15:00:04,428 - INFO - ================================================================================
2025-09-16 15:00:04,428 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-16 15:00:04,428 - 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-16 15:00:04,685 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-09-16 15:00:04,686 - INFO - Initial checks done. Running the testcase now
2025-09-16 15:00:04,686 - INFO -
2025-09-16 15:00:05,286 - DEBUG - Response for create_network : {'network': {'id': 'e40660d0-8564-4984-812a-032497eb8dc4', 'name': 'ctest-vn-18358177', 'tenant_id': '38c1b838b6b64ef7aa5f7e2060bcc341', 'project_id': '38c1b838b6b64ef7aa5f7e2060bcc341', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89960766', 'ctest-vn-18358177'], 'port_security_enabled': True, 'description': ''}}
2025-09-16 15:00:05,515 - DEBUG - Response for create_subnet : {'subnet': {'id': '9e9f8c5a-3008-4b17-b3d4-278b008edade', 'name': '', 'tenant_id': '38c1b838b6b64ef7aa5f7e2060bcc341', 'network_id': 'e40660d0-8564-4984-812a-032497eb8dc4', 'ip_version': 4, 'cidr': '129.20.234.64/26', 'allocation_pools': [{'start': '129.20.234.66', 'end': '129.20.234.126'}], 'gateway_ip': '129.20.234.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '129.20.234.66', 'tags': [], 'project_id': '38c1b838b6b64ef7aa5f7e2060bcc341'}}
2025-09-16 15:00:05,535 - INFO - Created VN ctest-vn-18358177
2025-09-16 15:00:05,588 - DEBUG - VN ctest-vn-18358177 UUID is e40660d0-8564-4984-812a-032497eb8dc4
2025-09-16 15:00:05,888 - DEBUG - Response for create_network : {'network': {'id': 'f25a6da1-3f49-47dd-8408-012f03400908', 'name': 'ctest-vn-91863510', 'tenant_id': '38c1b838b6b64ef7aa5f7e2060bcc341', 'project_id': '38c1b838b6b64ef7aa5f7e2060bcc341', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89960766', 'ctest-vn-91863510'], 'port_security_enabled': True, 'description': ''}}
2025-09-16 15:00:06,052 - DEBUG - Response for create_subnet : {'subnet': {'id': '98caa785-a089-4067-9764-e09e6402c3e4', 'name': '', 'tenant_id': '38c1b838b6b64ef7aa5f7e2060bcc341', 'network_id': 'f25a6da1-3f49-47dd-8408-012f03400908', 'ip_version': 4, 'cidr': '151.20.39.128/26', 'allocation_pools': [{'start': '151.20.39.130', 'end': '151.20.39.190'}], 'gateway_ip': '151.20.39.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '151.20.39.130', 'tags': [], 'project_id': '38c1b838b6b64ef7aa5f7e2060bcc341'}}
2025-09-16 15:00:06,070 - INFO - Created VN ctest-vn-91863510
2025-09-16 15:00:06,124 - DEBUG - VN ctest-vn-91863510 UUID is f25a6da1-3f49-47dd-8408-012f03400908
2025-09-16 15:00:06,247 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-89960766:ctest-vn-18358177, 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-89960766:ctest-vn-91863510, 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-16 15:00:06,551 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e40660d0-8564-4984-812a-032497eb8dc4', 'name': 'ctest-vn-18358177', 'tenant_id': '38c1b838b6b64ef7aa5f7e2060bcc341', 'project_id': '38c1b838b6b64ef7aa5f7e2060bcc341', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9e9f8c5a-3008-4b17-b3d4-278b008edade'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89960766', 'ctest-vn-18358177'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-89960766', 'ctest-policy-allow-all-57692065']], 'subnet_ipam': [{'subnet_cidr': '129.20.234.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-16 15:00:06,786 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f25a6da1-3f49-47dd-8408-012f03400908', 'name': 'ctest-vn-91863510', 'tenant_id': '38c1b838b6b64ef7aa5f7e2060bcc341', 'project_id': '38c1b838b6b64ef7aa5f7e2060bcc341', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['98caa785-a089-4067-9764-e09e6402c3e4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89960766', 'ctest-vn-91863510'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-89960766', 'ctest-policy-allow-all-57692065']], 'subnet_ipam': [{'subnet_cidr': '151.20.39.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-16 15:00:06,964 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-16 15:00:07,300 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-16 15:00:07,332 - DEBUG - Requesting: http://10.0.0.254:8082/domain/594256e9-e44e-4769-a59b-3aac374792fa
2025-09-16 15:00:07,346 - DEBUG - Requesting: http://10.0.0.254:8082/project/38c1b838-b6b6-4ef7-aa5f-7e2060bcc341
2025-09-16 15:00:07,419 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e40660d0-8564-4984-812a-032497eb8dc4
2025-09-16 15:00:07,430 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e40660d0-8564-4984-812a-032497eb8dc4
2025-09-16 15:00:07,440 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c1395f67-8bf5-41fc-a64b-9c52be1d3b81
2025-09-16 15:00:07,447 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c1395f67-8bf5-41fc-a64b-9c52be1d3b81
2025-09-16 15:00:07,454 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/166a7b62-8cb9-4f61-9be8-d00fde31d97e
2025-09-16 15:00:07,461 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-16 15:00:07,461 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e40660d0-8564-4984-812a-032497eb8dc4
2025-09-16 15:00:07,470 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c1395f67-8bf5-41fc-a64b-9c52be1d3b81
2025-09-16 15:00:07,484 - INFO - Verified VN network id 11 for VN e40660d0-8564-4984-812a-032497eb8dc4
2025-09-16 15:00:07,485 - INFO - Verifications in API Server for VN ctest-vn-18358177 passed
2025-09-16 15:00:07,485 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e40660d0-8564-4984-812a-032497eb8dc4
2025-09-16 15:00:07,494 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c1395f67-8bf5-41fc-a64b-9c52be1d3b81
2025-09-16 15:00:07,502 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c1395f67-8bf5-41fc-a64b-9c52be1d3b81
2025-09-16 15:00:07,509 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/166a7b62-8cb9-4f61-9be8-d00fde31d97e
2025-09-16 15:00:07,521 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-89960766:ctest-vn-18358177', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-89960766', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16430926739215239556', 'uuid-lslong': '9307255035617054148'}, 'enable': 'true', 'created': '2025-09-16T15:00:05', 'last-modified': '2025-09-16T15:00:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.994297'}
2025-09-16 15:00:07,527 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-16 15:00:07,527 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-18358177 passed
2025-09-16 15:00:07,528 - DEBUG - ====Verifying policy data for ctest-vn-18358177 in API_Server ======
2025-09-16 15:00:07,528 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-16 15:00:07,534 - DEBUG - Requesting: http://10.0.0.254:8082/domain/594256e9-e44e-4769-a59b-3aac374792fa
2025-09-16 15:00:07,546 - DEBUG - Requesting: http://10.0.0.254:8082/project/38c1b838-b6b6-4ef7-aa5f-7e2060bcc341
2025-09-16 15:00:07,617 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e40660d0-8564-4984-812a-032497eb8dc4
2025-09-16 15:00:07,627 - DEBUG - ==>Verifying data for policy with id: d84c03d8-b557-4449-9c93-55a68b39580c, fqn: ['default-domain', 'ctest-TestBasicPolicy-89960766', 'ctest-policy-allow-all-57692065']
2025-09-16 15:00:07,628 - INFO - VN ctest-vn-18358177 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-16 15:00:07,628 - DEBUG - Verifying the vn in opserver
2025-09-16 15:00:07,628 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-89960766:ctest-vn-18358177 virtual network link through opserver 10.0.0.254
2025-09-16 15:00:07,628 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-09-16 15:00:07,967 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-09-16 15:00:08,036 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-89960766:ctest-vn-18358177', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-89960766:ctest-vn-18358177?flat'}
2025-09-16 15:00:08,036 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-89960766:ctest-vn-18358177 is found in opserver
2025-09-16 15:00:08,047 - DEBUG - Do not have enough data to verify VN in agent
2025-09-16 15:00:08,052 - DEBUG - VRF ids for VN ctest-vn-18358177: {}
2025-09-16 15:00:08,052 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-16 15:00:08,059 - DEBUG - Requesting: http://10.0.0.254:8082/domain/594256e9-e44e-4769-a59b-3aac374792fa
2025-09-16 15:00:08,071 - DEBUG - Requesting: http://10.0.0.254:8082/project/38c1b838-b6b6-4ef7-aa5f-7e2060bcc341
2025-09-16 15:00:08,145 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/f25a6da1-3f49-47dd-8408-012f03400908
2025-09-16 15:00:08,157 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/f25a6da1-3f49-47dd-8408-012f03400908
2025-09-16 15:00:08,166 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a0f7db5d-c8f7-45cf-a5ec-0cb8f3844e1f
2025-09-16 15:00:08,174 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a0f7db5d-c8f7-45cf-a5ec-0cb8f3844e1f
2025-09-16 15:00:08,180 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/febed38c-b67e-4e1d-9ec7-d08cf68bb2e2
2025-09-16 15:00:08,187 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-16 15:00:08,187 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/f25a6da1-3f49-47dd-8408-012f03400908
2025-09-16 15:00:08,196 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a0f7db5d-c8f7-45cf-a5ec-0cb8f3844e1f
2025-09-16 15:00:08,211 - INFO - Verified VN network id 12 for VN f25a6da1-3f49-47dd-8408-012f03400908
2025-09-16 15:00:08,212 - INFO - Verifications in API Server for VN ctest-vn-91863510 passed
2025-09-16 15:00:08,212 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/f25a6da1-3f49-47dd-8408-012f03400908
2025-09-16 15:00:08,222 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a0f7db5d-c8f7-45cf-a5ec-0cb8f3844e1f
2025-09-16 15:00:08,229 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a0f7db5d-c8f7-45cf-a5ec-0cb8f3844e1f
2025-09-16 15:00:08,237 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/febed38c-b67e-4e1d-9ec7-d08cf68bb2e2
2025-09-16 15:00:08,251 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-89960766:ctest-vn-91863510', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-89960766', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17463391044401448925', 'uuid-lslong': '9513855514249791752'}, 'enable': 'true', 'created': '2025-09-16T15:00:05', 'last-modified': '2025-09-16T15:00:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.486210'}
2025-09-16 15:00:08,257 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-16 15:00:08,258 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-91863510 passed
2025-09-16 15:00:08,258 - DEBUG - ====Verifying policy data for ctest-vn-91863510 in API_Server ======
2025-09-16 15:00:08,258 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-16 15:00:08,264 - DEBUG - Requesting: http://10.0.0.254:8082/domain/594256e9-e44e-4769-a59b-3aac374792fa
2025-09-16 15:00:08,276 - DEBUG - Requesting: http://10.0.0.254:8082/project/38c1b838-b6b6-4ef7-aa5f-7e2060bcc341
2025-09-16 15:00:08,352 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/f25a6da1-3f49-47dd-8408-012f03400908
2025-09-16 15:00:08,362 - DEBUG - ==>Verifying data for policy with id: d84c03d8-b557-4449-9c93-55a68b39580c, fqn: ['default-domain', 'ctest-TestBasicPolicy-89960766', 'ctest-policy-allow-all-57692065']
2025-09-16 15:00:08,362 - INFO - VN ctest-vn-91863510 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-16 15:00:08,362 - DEBUG - Verifying the vn in opserver
2025-09-16 15:00:08,362 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-89960766:ctest-vn-91863510 virtual network link through opserver 10.0.0.254
2025-09-16 15:00:08,362 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-09-16 15:00:08,372 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-89960766:ctest-vn-91863510', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-89960766:ctest-vn-91863510?flat'}
2025-09-16 15:00:08,372 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-89960766:ctest-vn-91863510 is found in opserver
2025-09-16 15:00:08,385 - DEBUG - Do not have enough data to verify VN in agent
2025-09-16 15:00:08,390 - DEBUG - VRF ids for VN ctest-vn-91863510: {}
2025-09-16 15:00:08,453 - DEBUG - Services list from nova: [